Skip to content

Instantly share code, notes, and snippets.

@louismullie
Last active July 20, 2020 20: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 louismullie/905e3cd4093f8734550db43a3437dfa2 to your computer and use it in GitHub Desktop.
Save louismullie/905e3cd4093f8734550db43a3437dfa2 to your computer and use it in GitHub Desktop.
JSON template for the Observation FHIR resource
{
// The type of resource
"resourceType" : "Observation",
// The status of the observation
"status": "final",
// Time of the observation
"effectiveDateTime": "YYYY-MM-DDThh:mm:ss+zz:zz",
// Time result issued
"issued": "YYYY-MM-DDThh:mm:ss.sss+zz:zz",
// Patient associated with the observation
"subject": {
"reference": "Patient/3294843"
},
// Clinical episode associated with the observation
"encounter": {
"reference": "Encounter/2314234"
},
// LOINC code for the observation that was made
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "718-7",
"display": "Hemoglobin [Mass/volume] in Blood"
}
],
"text": "Hemoglobin"
},
// SNOMED code for the body site used
"bodySite": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "122555007",
"display": "Venous blood specimen (specimen)"
}
]
},
// Value and units of measure
"valueQuantity": {
"value": 96,
"unit": "g/L",
"system": "http://unitsofmeasure.org",
"code": "m-3.g"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment