Created
April 27, 2017 15:13
-
-
Save merqurio/b94fc565629863d5332b60d2a659b129 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"resourceType": "Observation", | |
"contained": [ | |
{ | |
"resourceType": "Patient", | |
"id": this.props.patientID, | |
} | |
], | |
"status": "final", // THIS SHOULD BE FINAL ONLY IF ALL QUESTIONS ARE ANSWERED | |
"category": [ | |
{ | |
"coding": [ | |
{ | |
"system": "http://hl7.org/fhir/observation-category", | |
"code": "survey", | |
"display": "Survey" | |
} | |
], | |
"text": "Survey" | |
} | |
], | |
"code": { | |
"coding": [ | |
{ | |
"system": "https://uts.nlm.nih.gov/", | |
"code": "C0451019", | |
"display": "Barthel index" | |
}, | |
{ | |
"system": "http://snomed.info/sct", | |
"code": "273302005", | |
"display": "Barthel Index" | |
} | |
], | |
"text": "Barthel Index" | |
}, | |
"effectiveDateTime": Date.now() on creation, | |
"performer": [ | |
{ | |
"reference": this.props.practitionerID | |
} | |
], | |
"valueQuantity": { | |
"value": X, /// Total score | |
"system": "http://unitsofmeasure.org", | |
"code": "{score}" | |
}, | |
"component": [ | |
{ | |
"code": { | |
"coding": [ | |
{ | |
"system": "https://uts.nlm.nih.gov/", | |
"code": "C1691017", | |
"display": "Component of Barthel index scale" | |
} | |
], | |
"text": "" // TEXT OF THE QUESTION | |
}, | |
"valueCodeableConcept": { | |
"coding": [ | |
{ | |
"extension": [ | |
{ | |
"url": "http://hl7.org/fhir/StructureDefinition/iso21090-CO-value", | |
"valueDecimal": // THE VALUE OF THE ANSWER | |
} | |
], | |
"system": "https://uts.nlm.nih.gov/", | |
"code": "C1691017", | |
"display": "Component of Barthel index scale" | |
}, | |
], | |
"text": "" // TEXT OF THE ANSWER | |
} | |
}, | |
/// Repeat for every question | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment