Skip to content

Instantly share code, notes, and snippets.

@blacktm
Created November 22, 2013 23:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blacktm/7608828 to your computer and use it in GitHub Desktop.
Save blacktm/7608828 to your computer and use it in GitHub Desktop.
CCDA to JSON translation definitions.
{
"date_range": {
"start": "templateId[root='2.16.840.1.113883.10.20.22.2.6.1'] > effectiveTime > low.value",
"end": "templateId[root='2.16.840.1.113883.10.20.22.2.6.1'] > effectiveTime > high.value"
},
"name": "templateId[root='2.16.840.1.113883.10.20.22.4.7'] > code.displayName",
"code": "templateId[root='2.16.840.1.113883.10.20.22.4.7'] > code.code",
"code_system": "templateId[root='2.16.840.1.113883.10.20.22.4.7'] > code.codeSystem",
"code_system_name": "templateId[root='2.16.840.1.113883.10.20.22.4.7'] > code.codeSystemName",
"status": "templateId[root='2.16.840.1.113883.10.20.22.4.28'] > value.displayName",
"severity": "templateId[root='2.16.840.1.113883.10.20.22.4.8'] > value.displayName",
"reaction": {
"name": "templateId[root='2.16.840.1.113883.10.20.22.4.9'] > value.displayName",
"code": "templateId[root='2.16.840.1.113883.10.20.22.4.9'] > value.code",
"code_system": "templateId[root='2.16.840.1.113883.10.20.22.4.9'] > value.codeSystem"
},
"reaction_type": {
"name": "templateId[root='2.16.840.1.113883.10.20.22.4.7'] > value.displayName",
"code": "templateId[root='2.16.840.1.113883.10.20.22.4.7'] > value.code",
"code_system": "templateId[root='2.16.840.1.113883.10.20.22.4.7'] > value.codeSystem",
"code_system_name": "templateId[root='2.16.840.1.113883.10.20.22.4.7'] > value.codeSystemName"
},
"allergen": {
"name": "templateId[root='2.16.840.1.113883.10.20.22.2.6.1'] > participant > code.displayName",
"code": "templateId[root='2.16.840.1.113883.10.20.22.2.6.1'] > participant > code.code",
"code_system": "templateId[root='2.16.840.1.113883.10.20.22.2.6.1'] > participant > code.codeSystem",
"code_system_name": "templateId[root='2.16.840.1.113883.10.20.22.2.6.1'] > participant > code.codeSystemName"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment