Skip to content

Instantly share code, notes, and snippets.

@merqurio
Created April 23, 2017 08:46
Show Gist options
  • Save merqurio/112e23eed60e544e26e3b2dd6efb45de to your computer and use it in GitHub Desktop.
Save merqurio/112e23eed60e544e26e3b2dd6efb45de to your computer and use it in GitHub Desktop.
{
"resourceType": "Observation",
"contained": [
{
"resourceType": "Observation",
"status": "final", //////// THIS MUST BE CHANGED DEPENDING IF IT'S COMPLETLY FULLFILLED
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "9268-4",
"display": "Glasgow coma score motor"
},
],
"text": "GCS motor"
},
"subject": {
"reference": "Patient/example" /////// THIS WILL BE PROVIDED AS A REACT PROPS
},
"effectiveDateTime": "2014-12-11T04:44:16Z", //////// THIS MUST BE CHANGED WHEN ANSWER IS FULLFILLED
"valueCodeableConcept": {
"coding": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/iso21090-CO-value",
"valueDecimal": 5 //////// THIS MUST BE CHANGED WITH THE ANSWERS VALUE
}
],
"system": "http://loinc.org",
"code": "LA6566-9", //////// THIS MUST BE CHANGED WITH THE ANSWERS VALUE (CHECK PROVIDED TABLE)
"display": "Localizing pain" //////// THIS MUST BE CHANGED WITH THE ANSWERS VALUE (CHECK PROVIDED TABLE)
}
],
"text": "" //////// THIS MUST BE THE SUM OF valueDecimal + Display[this.props.language]
}
},
{
"resourceType": "Observation",
"id": "verbal",
"status": "final", //////// THIS MUST BE CHANGED DEPENDING IF IT'S COMPLETLY FULLFILLED
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "9270-0",
"display": "Glasgow coma score verbal"
}
],
"text": "Verbal"
},
"subject": {
"reference": "Patient/example" /////// THIS WILL BE PROVIDED AS A REACT PROPS
},
"effectiveDateTime": "2014-12-11T04:44:16Z", //////// THIS MUST BE CHANGED WHEN ANSWER IS FULLFILLED
"valueCodeableConcept": {
"coding": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/iso21090-CO-value",
"valueDecimal": 4 //////// THIS MUST BE CHANGED WITH THE ANSWERS VALUE
}
],
"system": "http://loinc.org",
"code": "LA6560-2", //////// THIS MUST BE CHANGED WITH THE ANSWERS VALUE (CHECK PROVIDED TABLE)
"display": "Confused" //////// THIS MUST BE CHANGED WITH THE ANSWERS VALUE (CHECK PROVIDED TABLE)
}
],
"text": "" //////// THIS MUST BE THE SUM OF valueDecimal + Display[this.props.language]
}
},
{
"resourceType": "Observation",
"id": "eyes",
"status": "final", //////// THIS MUST BE CHANGED DEPENDING IF IT'S COMPLETLY FULLFILLED
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "9267-6",
"display": "Glasgow coma score eye opening"
}
],
"text": "Eyes"
},
"subject": {
"reference": "Patient/example" /////// THIS WILL BE PROVIDED AS A REACT PROPS
},
"effectiveDateTime": "2014-12-11T04:44:16Z",
"valueCodeableConcept": {
"coding": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/iso21090-CO-value",
"valueDecimal": 4 //////// THIS MUST BE CHANGED WITH THE ANSWERS VALUE
}
],
"system": "http://loinc.org",
"code": "LA6556-0", //////// THIS MUST BE CHANGED WITH THE ANSWERS VALUE (CHECK PROVIDED TABLE)
"display": "Eyes open spontaneously" //////// THIS MUST BE CHANGED WITH THE ANSWERS VALUE (CHECK PROVIDED TABLE) AND this.props.language
}
],
"text": "" //////// THIS MUST BE THE SUM OF valueDecimal + Display[this.props.language]
}
}
{
"resourceType": "Observation",
"id": "eyes",
"status": "final",
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "9267-6",
"display": "Glasgow coma score eye opening"
}
],
"text": "Eyes"
},
"subject": {
"reference": "Patient/example"
},
"effectiveDateTime": "2014-12-11T04:44:16Z",
"valueCodeableConcept": {
"coding": [
{
"system": "http:/acme.ec/gcseye",
"code": "4",
"display": "Opens eyes spontaneously"
},
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/iso21090-CO-value",
"valueDecimal": 4
}
],
"system": "http://loinc.org",
"code": "LA6556-0",
"display": "Eyes open spontaneously"
}
],
"text": "4 (Opens eyes spontaneously)"
}
}
],
"status": "final", //////// THIS MUST BE CHANGED DEPENDING IF IT'S COMPLETLY FULLFILLED
"code": {
"coding": [
{
"system": "http://graph.iomed.es",
"code": "C0017594"
}
{
"system": "http://loinc.org",
"code": "35088-4",
"display": "Glasgow coma scale"
}
],
"text": {
"es": "Escala de coma de Glasgow",
"en": "Glasgow Coma Scale"
}
},
"subject": {
"reference": "Patient/example",
"display": "Peter James Chalmers"
},
"effectiveDateTime": "2014-12-11T04:44:16Z", //////// THIS MUST BE CHANGED TO TIME ON FINISHED
"valueQuantity": {
"value": 13, //////// THIS MUST BE CHANGED WITH FINAL SCORE
"system": "http://unitsofmeasure.org",
"code": "{score}"
},
"referenceRange": [
{
"high": {
"value": 8,
"system": "http://unitsofmeasure.org",
"code": "{score}"
},
"type": {
"text": "Severe TBI"
}
},
{
"low": {
"value": 9,
"system": "http://unitsofmeasure.org",
"code": "{score}"
},
"high": {
"value": 12,
"system": "http://unitsofmeasure.org",
"code": "{score}"
},
"type": {
"text": "Moderate TBI"
}
},
{
"low": {
"value": 13,
"system": "http://unitsofmeasure.org",
"code": "{score}"
},
"type": {
"text": "Mild TBI"
}
}
],
"related": [
{
"type": "derived-from",
"target": {
"reference": "#motor",
"display": "Motor score"
}
},
{
"type": "derived-from",
"target": {
"reference": "#verbal",
"display": "Verbal score"
}
},
{
"type": "derived-from",
"target": {
"reference": "#eyes",
"display": "Eyes score"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment