This page is part of the FHIR Specification (v5.0.0-snapshot1: Release 5 Snapshot #1). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions
. Page versions: R5 R4B R4
| Orders and Observations Work Group | Maturity Level: N/A | Standards Status: Informative | Compartments: Not linked to any defined compartments |
Raw Turtle (+ also see Turtle/RDF Format Specification)
Example of observationdefinition
@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <http://loinc.org/rdf#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
<http://hl7.org/fhir/ObservationDefinition/example> a fhir:ObservationDefinition;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "example"];
fhir:DomainResource.text [
fhir:Narrative.status [ fhir:value "generated" ];
fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><div><p>Resource "example" </p></div><p><b>status</b>: active</p><p><b>category</b>: Laboratory <span> (<a>Observation Category Codes</a>#laboratory)</span></p><p><b>code</b>: Albumin/Protein.total in Serum or Plasma by Electrophoresis <span> (<a>LOINC</a>#13980-8)</span></p><p><b>permittedDataType</b>: Quantity</p><p><b>multipleResultsAllowed</b>: false</p><p><b>method</b>: Total measurement <span> (<a>SNOMED CT</a>#115341008)</span></p><p><b>preferredReportName</b>: Serum albumin/Protein total</p><h3>QuantitativeDetails</h3><table><tr><td>-</td><td><b>Unit</b></td><td><b>DecimalPrecision</b></td></tr><tr><td>*</td><td>% <span> (<a>UCUM</a>#%)</span></td><td>0</td></tr></table><blockquote><p><b>qualifiedValue</b></p><p><b>context</b>: Normal Range <span> (<a>Observation Reference Range Meaning Codes</a>#normal)</span></p><p><b>rangeCategory</b>: reference</p><p><b>range</b>: 50-?</p></blockquote><blockquote><p><b>qualifiedValue</b></p><p><b>context</b>: Normal Range <span> (<a>Observation Reference Range Meaning Codes</a>#normal)</span></p><p><b>rangeCategory</b>: critical</p><p><b>range</b>: ?-40</p></blockquote></div>"
];
fhir:ObservationDefinition.status [ fhir:value "active"];
fhir:ObservationDefinition.category [
fhir:index 0;
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/observation-category" ];
fhir:Coding.code [ fhir:value "laboratory" ]
]
];
fhir:ObservationDefinition.code [
fhir:CodeableConcept.coding [
fhir:index 0;
a loinc:13980-8;
fhir:Coding.system [ fhir:value "http://loinc.org" ];
fhir:Coding.code [ fhir:value "13980-8" ];
fhir:Coding.display [ fhir:value "Albumin/Protein.total in Serum or Plasma by Electrophoresis" ]
]
];
fhir:ObservationDefinition.permittedDataType [
fhir:value "Quantity";
fhir:index 0
];
fhir:ObservationDefinition.multipleResultsAllowed [ fhir:value "false"^^xsd:boolean];
fhir:ObservationDefinition.method [
fhir:CodeableConcept.coding [
fhir:index 0;
a sct:115341008;
fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
fhir:Coding.code [ fhir:value "115341008" ];
fhir:Coding.display [ fhir:value "Total measurement" ]
]
];
fhir:ObservationDefinition.preferredReportName [ fhir:value "Serum albumin/Protein total"];
fhir:ObservationDefinition.quantitativeDetails [
fhir:ObservationDefinition.quantitativeDetails.unit [
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://unitsofmeasure.org" ];
fhir:Coding.code [ fhir:value "%" ];
fhir:Coding.display [ fhir:value "%" ]
]
];
fhir:ObservationDefinition.quantitativeDetails.decimalPrecision [ fhir:value "0"^^xsd:integer ]
];
fhir:ObservationDefinition.qualifiedValue [
fhir:index 0;
fhir:ObservationDefinition.qualifiedValue.context [
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/referencerange-meaning" ];
fhir:Coding.code [ fhir:value "normal" ];
fhir:Coding.display [ fhir:value "Normal Range" ]
]
];
fhir:ObservationDefinition.qualifiedValue.rangeCategory [ fhir:value "reference" ];
fhir:ObservationDefinition.qualifiedValue.range [
fhir:Range.low [
fhir:Quantity.value [ fhir:value "50"^^xsd:decimal ]
]
]
], [
fhir:index 1;
fhir:ObservationDefinition.qualifiedValue.context [
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/referencerange-meaning" ];
fhir:Coding.code [ fhir:value "normal" ];
fhir:Coding.display [ fhir:value "Normal Range" ]
]
];
fhir:ObservationDefinition.qualifiedValue.rangeCategory [ fhir:value "critical" ];
fhir:ObservationDefinition.qualifiedValue.range [
fhir:Range.high [
fhir:Quantity.value [ fhir:value "40"^^xsd:decimal ]
]
]
] .
# - ontology header ------------------------------------------------------------
<http://hl7.org/fhir/ObservationDefinition/example.ttl> a owl:Ontology;
owl:imports fhir:fhir.ttl;
owl:versionIRI <http://build.fhir.org/ObservationDefinition/example.ttl> .
# -------------------------------------------------------------------------------------
Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.