This page is part of the FHIR Specification (v5.0.0-ballot: FHIR R5 Ballot Preview). 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: Device, Encounter, Patient, Practitioner, RelatedPerson |
Raw XML (canonical form + also see XML Format Specification)
Example of a multi-select values/answers Observation with individual answers/values as components (id = "alcohol-type")
<?xml version="1.0" encoding="UTF-8"?> <Observation xmlns="http://hl7.org/fhir"> <id value="alcohol-type"/> <!-- the mandatory quality flags: --><text> <status value="generated"/> <div xmlns="http://www.w3.org/1999/xhtml"><p> <b> Generated Narrative: Observation</b> <a name="alcohol-type"> </a> </p> <div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px">Resource Observation "alcohol-type" </p> </div> <p> <b> status</b> : <span title=" the mandatory quality flags: ">final</span> </p> <p> <b> category</b> : <span title=" Observations are often coded in multiple code systems. - LOINC - or SNOMED -and/or the source system may provides its own "local" code, which may be less or more granular than LOINC. In this example there is only local codes ">Social History <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="http://terminology.hl7.org/3.1.0/CodeSystem-observation-category.html">Observation Category Codes</a> #social-history)</span> </span> </p> <p> <b> code</b> : Type of alcohol consumed <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (acme-rehab.org#alcohol-type)</span> </p> <p> <b> subject</b> : <a href="patient-example.html">Patient/example: Peter James Chalmers</a> "Peter CHALMERS"</p> <p> <b> effective</b> : 2014-12-11T04:44:16Z</p> <blockquote> <p> <b> component</b> </p> <p> <b> code</b> : <span title=" component.code is same as code ">alcohol-type <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (acme-rehab.org#alcohol-type)</span> </span> </p> <p> <b> value</b> : <span title=" coded value using SNONED-CT, could also use a local code here or only text ">Wine <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="https://browser.ihtsdotools.org/">SNOMED CT</a> #35748005 "Wine (substance)")</span> </span> </p> </blockquote> <blockquote> <p> <b> component</b> </p> <p> <b> code</b> : <span title=" component.code is same as code ">alcohol-type <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (acme-rehab.org#alcohol-type)</span> </span> </p> <p> <b> value</b> : <span title=" coded value using SNONED-CT, could also use a local code here or only text ">Beer <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="https://browser.ihtsdotools.org/">SNOMED CT</a> #53410008 "Beer (substance)")</span> </span> </p> </blockquote> <blockquote> <p> <b> component</b> </p> <p> <b> code</b> : <span title=" component.code is same as code ">alcohol-type <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (acme-rehab.org#alcohol-type)</span> </span> </p> <p> <b> value</b> : <span title=" coded value using SNONED-CT, could also use a local code here or only text ">Liquor <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="https://browser.ihtsdotools.org/">SNOMED CT</a> #6524003 " Distilled spirits (substance)")</span> </span> </p> </blockquote> </div> </text> <status value="final"/> <!-- Observations are often coded in multiple code systems. - LOINC - or SNOMED -and/or the source system may provides its own "local" code, which may be less or more granular than LOINC. In this example there is only local codes --><category> <coding> <system value="http://terminology.hl7.org/CodeSystem/observation-category"/> <code value="social-history"/> <display value="Social History"/> </coding> <text value="Social History"/> </category> <code> <!-- Local - unable to identify a proper LOINC code --><coding> <system value="http://acme-rehab.org"/> <code value="alcohol-type"/> <display value="Type of alcohol consumed"/> </coding> <text value="Type of alcohol consumed"/> </code> <subject> <reference value="Patient/example"/> <display value="Peter James Chalmers"/> </subject> <effectiveDateTime value="2014-12-11T04:44:16Z"/> <!-- When the code is the same as component.code the value element must be empty per invariant obs-7 --><!-- Using components since multi-select values/answers share the same attributes (such as id, performer, effective date, status, comment.. --><!-- answer 1 --><component> <!-- component.code is same as code --><code> <!-- Local - unable to identify a proper LOINC code --><coding> <system value="http://acme-rehab.org"/> <code value="alcohol-type"/> </coding> </code> <!-- coded value using SNONED-CT, could also use a local code here or only text --><valueCodeableConcept> <coding> <system value="http://snomed.info/sct"/> <code value="35748005"/> <display value="Wine (substance)"/> </coding> <text value="Wine"/> </valueCodeableConcept> </component> <!-- answer 2 --><component> <!-- component.code is same as code --><code> <!-- Local - unable to identify a proper LOINC code --><coding> <system value="http://acme-rehab.org"/> <code value="alcohol-type"/> </coding> </code> <!-- coded value using SNONED-CT, could also use a local code here or only text --><valueCodeableConcept> <coding> <system value="http://snomed.info/sct"/> <code value="53410008"/> <display value="Beer (substance)"/> </coding> <text value="Beer"/> </valueCodeableConcept> </component> <!-- answer 3 --><component> <!-- component.code is same as code --><code> <!-- Local - unable to identify a proper LOINC code --><coding> <system value="http://acme-rehab.org"/> <code value="alcohol-type"/> </coding> </code> <!-- coded value using SNONED-CT, could also use a local code here or only text --><valueCodeableConcept> <coding> <system value="http://snomed.info/sct"/> <code value="6524003"/> <display value=" Distilled spirits (substance)"/> </coding> <text value="Liquor"/> </valueCodeableConcept> </component> </Observation>
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.