blue-button / bluebutton.js

The Blue Button JavaScript Library
blue-button.github.io/bluebutton.js
Other
152 stars 102 forks source link

Lab value showing up 2x in rendered JSON #23

Closed jmandel closed 11 years ago

jmandel commented 11 years ago

In the example C-CDA at: http://bluebutton.blacktm.com/json

It looks like the code for PLT (platelets, a component of a complete blood count) is being pulled up in the header for the whole lab panel (which should be binding to the "CBC WO DIFFERENTIAL" code)

[
  {
    "name": "PLT",   // <------- this should be "CBC WO DIFFERENTIAL"
    "code": "26515-7",  <------ this should be "43789009"
    "code_system": "2.16.840.1.113883.6.1",  <------- this should be "2.16.840.1.113883.6.96"
    "code_system_name": "LOINC",
    "results": [
...

        "date": "2000-04-23T07:00:00.000Z",
        "name": "PLT",
        "value": "123",
        "unit": "10+3/ul",
        "code": "26515-7",
blacktm commented 11 years ago

This should be fixed. (Remember kids, use different loop variable names when embedding for loops.)