Comments (5)
A special case:
<administrativeGenderCode code="M" codeSystem="2.16.840.1.113883.5.1"/>
This should resolve to {"gender": "male"}
or something similar -- not null
from bluebutton.js.
This completely makes sense. Quick question, can we assume consistent code system use in CCDA? If so, we can just maintain simple mappings for lookup, i.e.:
data.race = Codes.race(patient.tag('raceCode').attr('code'));
Then Codes.race
would assume the "CDC Race and Ethnicity" code system and return "white"
. Does that make sense, or do we have to do something more elaborate?
from bluebutton.js.
You can assume a fixed coding system in C-CDA (since the implementation guide says SHALL
) for:
- Race
- Ethnicity
- Administrative Gender
- Martial Status
- Language
For "guardian" relationship, it's only a SHOULD
, but I'd just run with the assumption that you can use:
https://phinvads.cdc.gov/vads/ViewValueSet.action?id=68FDBFB5-A277-DE11-9B52-0015173D1785
from bluebutton.js.
jmandel@19f70a6
Patched in this approach locally:
var gender = el.tag('administrativeGenderCode').attr('code');
var genders = {
'M': 'Male',
'F': 'Female',
'U': 'Undifferentiated'
};
data.gender = genders[gender];
from bluebutton.js.
For small-ish coding systems, I've started to add a look-up using core.js
, for example in demographics.js
:
gender = Codes.gender(el.tag('administrativeGenderCode').attr('code')),
I'm looking at other coding systems used in the CCDA (and beyond) that could be dumped into code.js
.
from bluebutton.js.
Related Issues (20)
- Patient Address - Street/Apt HOT 4
- Past Medical History - "History of Past Illness" HOT 4
- Encounter Provider HOT 1
- Procedure Specimen always null HOT 1
- Relies on <?xml to choose parser HOT 1
- insurance HOT 2
- 'encounterParticipant' is missing from parser under 'encompassingEncounter'
- TypeError: undefined is not a function HOT 2
- Seeing sample CCDA observation not picking up text HOT 3
- Multiple template Id's (C32 & CCDA) in header cause parsing to fail
- <patientRole> ID and SSN should have real data elements not fake values HOT 1
- Question: Removing hard-coded OIDs in entry population functions HOT 3
- Enhancement: Generalized "code" capture with translations HOT 2
- bluebuttonjs.com has expired HOT 1
- CCD Generator does not work at all HOT 4
- CCD Generator does not work at all
- Providing document type by hand
- religiousAffiliationCode does not work without displayName HOT 1
- Blue-Button doesn't parse through all of the Telecom use cases HOT 5
- In Document Author section the assigned person and representedOrganization is not handled
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bluebutton.js.