Diagnostics
This
page
is
part
of
the
Continuous
Integration
Build
of
FHIR
Specification
(v4.0.1:
R4
-
Mixed
Normative
and
STU
)
in
it's
permanent
home
(it
will
always
(will
be
available
incorrect/inconsistent
at
this
URL).
The
current
version
which
supercedes
this
version
is
5.0.0
.
For
a
full
list
of
available
versions,
see
times).
See
the
Directory
of
published
versions
.
Page
versions:
R5
R4B
R4
| Responsible Owner: Orders and Observations Work Group | Standards Status : Informative | Compartments : Device , Encounter , Group , Patient , Practitioner , RelatedPerson |
Raw Turtle (+ also see Turtle/RDF Format Specification )
Example of a multi-select values/answers Observation with individual answers/values as components
@prefix fhir: <http://hl7.org/fhir/> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @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/Observation/alcohol-type> a fhir:Observation; fhir:nodeRole fhir:treeRoot; fhir:Resource.id [ fhir:value "alcohol-type"]; fhir:DomainResource.text [ fhir:Narrative.status [ fhir:value "generated" ]; fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: alcohol-type</p><p><b>status</b>: final</p><p><b>category</b>: Social History <span>(Details : {http://terminology.hl7.org/CodeSystem/observation-category code 'social-history' = 'Social History', given as 'Social History'})</span></p><p><b>code</b>: Type of alcohol consumed <span>(Details : {http://acme-rehab.org code 'alcohol-type' = 'alcohol-type', given as 'Type of alcohol consumed'})</span></p><p><b>subject</b>: <a>Peter James Chalmers</a></p><p><b>effective</b>: 11/12/2014 4:44:16 AM</p><blockquote><p><b>component</b></p><p><b>code</b>: alcohol-type <span>(Details : {http://acme-rehab.org code 'alcohol-type' = 'alcohol-type)</span></p><p><b>value</b>: Wine <span>(Details : {SNOMED CT code '35748005' = 'Wine', given as 'Wine (substance)'})</span></p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: alcohol-type <span>(Details : {http://acme-rehab.org code 'alcohol-type' = 'alcohol-type)</span></p><p><b>value</b>: Beer <span>(Details : {SNOMED CT code '53410008' = 'Beer', given as 'Beer (substance)'})</span></p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: alcohol-type <span>(Details : {http://acme-rehab.org code 'alcohol-type' = 'alcohol-type)</span></p><p><b>value</b>: Liquor <span>(Details : {SNOMED CT code '6524003' = 'Distilled spirits', given as ' Distilled spirits (substance)'})</span></p></blockquote></div>" ]; fhir:Observation.status [ fhir:value "final"]; fhir:Observation.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 "social-history" ]; fhir:Coding.display [ fhir:value "Social History" ] ]; fhir:CodeableConcept.text [ fhir:value "Social History" ] ]; fhir:Observation.code [ fhir:CodeableConcept.coding [ fhir:index 0; fhir:Coding.system [ fhir:value "http://acme-rehab.org" ]; fhir:Coding.code [ fhir:value "alcohol-type" ]; fhir:Coding.display [ fhir:value "Type of alcohol consumed" ] ]; fhir:CodeableConcept.text [ fhir:value "Type of alcohol consumed" ] ]; fhir:Observation.subject [ fhir:link <http://hl7.org/fhir/Patient/example>; fhir:Reference.reference [ fhir:value "Patient/example" ]; fhir:Reference.display [ fhir:value "Peter James Chalmers" ] ]; fhir:Observation.effectiveDateTime [ fhir:value "2014-12-11T04:44:16Z"^^xsd:dateTime]; fhir:Observation.component [ fhir:index 0; fhir:Observation.component.code [ fhir:CodeableConcept.coding [ fhir:index 0; fhir:Coding.system [ fhir:value "http://acme-rehab.org" ]; fhir:Coding.code [ fhir:value "alcohol-type" ] ] ]; fhir:Observation.component.valueCodeableConcept [ fhir:CodeableConcept.coding [ fhir:index 0; a sct:35748005; fhir:Coding.system [ fhir:value "http://snomed.info/sct" ]; fhir:Coding.code [ fhir:value "35748005" ]; fhir:Coding.display [ fhir:value "Wine (substance)" ] ]; fhir:CodeableConcept.text [ fhir:value "Wine" ] ] ], [ fhir:index 1; fhir:Observation.component.code [ fhir:CodeableConcept.coding [ fhir:index 0; fhir:Coding.system [ fhir:value "http://acme-rehab.org" ]; fhir:Coding.code [ fhir:value "alcohol-type" ] ] ]; fhir:Observation.component.valueCodeableConcept [ fhir:CodeableConcept.coding [ fhir:index 0; a sct:53410008; fhir:Coding.system [ fhir:value "http://snomed.info/sct" ]; fhir:Coding.code [ fhir:value "53410008" ]; fhir:Coding.display [ fhir:value "Beer (substance)" ] ]; fhir:CodeableConcept.text [ fhir:value "Beer" ] ] ], [ fhir:index 2; fhir:Observation.component.code [ fhir:CodeableConcept.coding [ fhir:index 0; fhir:Coding.system [ fhir:value "http://acme-rehab.org" ]; fhir:Coding.code [ fhir:value "alcohol-type" ] ] ]; fhir:Observation.component.valueCodeableConcept [ fhir:CodeableConcept.coding [ fhir:index 0; a sct:6524003; fhir:Coding.system [ fhir:value "http://snomed.info/sct" ]; fhir:Coding.code [ fhir:value "6524003" ]; fhir:Coding.display [ fhir:value " Distilled spirits (substance)" ] ]; fhir:CodeableConcept.text [ fhir:value "Liquor" ] ] ] . <http://hl7.org/fhir/Patient/example> a fhir:Patient .# # This is an example of a multi-select values/answers as a single observatio using components to group the multiple answers ## - ontology header ------------------------------------------------------------<http://hl7.org/fhir/Observation/alcohol-type> a fhir:Observation ; fhir:nodeRole fhir:treeRoot ; fhir:id [ fhir:v "alcohol-type"] ; # fhir:status [ fhir:v "final"] ; # the mandatory quality flags: fhir:category ( [ fhir:coding ( [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/observation-category"^^xsd:anyURI ; fhir:l <http://terminology.hl7.org/CodeSystem/observation-category> ] ; fhir:code [ fhir:v "social-history" ] ; fhir:display [ fhir:v "Social History" ] ] ) ; fhir:text [ fhir:v "Social History" ] ] ) ; # # 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 # fhir:code [ fhir:coding ( [ fhir:system [ fhir:v "http://acme-rehab.org"^^xsd:anyURI ; fhir:l <http://acme-rehab.org> ] ; fhir:code [ fhir:v "alcohol-type" ] ; fhir:display [ fhir:v "Type of alcohol consumed" ] ] ) ; # Local - unable to identify a proper LOINC code fhir:text [ fhir:v "Type of alcohol consumed" ] ] ; # fhir:subject [ fhir:l <http://hl7.org/fhir/Patient/example> ; fhir:reference [ fhir:v "Patient/example" ] ; fhir:display [ fhir:v "Peter James Chalmers" ] ] ; # fhir:effective [ a fhir:DateTime ; fhir:v "2014-12-11T04:44:16Z"^^xsd:dateTime ] ; # fhir:component ( [ fhir:code [ fhir:coding ( [ fhir:system [ fhir:v "http://acme-rehab.org"^^xsd:anyURI ; fhir:l <http://acme-rehab.org> ] ; fhir:code [ fhir:v "alcohol-type" ] ] ) # Local - unable to identify a proper LOINC code ] ; # component.code is same as code fhir:value [ a fhir:CodeableConcept ; fhir:coding ( [ a sct:35748005 ; fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ; fhir:l <http://snomed.info/sct> ] ; fhir:code [ fhir:v "35748005" ] ; fhir:display [ fhir:v "Wine (substance)" ] ] ) ; fhir:text [ fhir:v "Wine" ] ] # coded value using SNONED-CT, could also use a local code here or only text ] [ fhir:code [ fhir:coding ( [ fhir:system [ fhir:v "http://acme-rehab.org"^^xsd:anyURI ; fhir:l <http://acme-rehab.org> ] ; fhir:code [ fhir:v "alcohol-type" ] ] ) # Local - unable to identify a proper LOINC code ] ; # component.code is same as code fhir:value [ a fhir:CodeableConcept ; fhir:coding ( [ a sct:53410008 ; fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ; fhir:l <http://snomed.info/sct> ] ; fhir:code [ fhir:v "53410008" ] ; fhir:display [ fhir:v "Beer (substance)" ] ] ) ; fhir:text [ fhir:v "Beer" ] ] # coded value using SNONED-CT, could also use a local code here or only text ] [ fhir:code [ fhir:coding ( [ fhir:system [ fhir:v "http://acme-rehab.org"^^xsd:anyURI ; fhir:l <http://acme-rehab.org> ] ; fhir:code [ fhir:v "alcohol-type" ] ] ) # Local - unable to identify a proper LOINC code ] ; # component.code is same as code fhir:value [ a fhir:CodeableConcept ; fhir:coding ( [ a sct:6524003 ; fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ; fhir:l <http://snomed.info/sct> ] ; fhir:code [ fhir:v "6524003" ] ; fhir:display [ fhir:v "Distilled spirits (substance)" ] ] ) ; fhir:text [ fhir:v "Liquor" ] ] # coded value using SNONED-CT, could also use a local code here or only text ] ) . # 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<http://hl7.org/fhir/Observation/alcohol-type.ttl> a owl:Ontology; owl:imports fhir:fhir.ttl; owl:versionIRI <http://build.fhir.org/Observation/alcohol-type.ttl> .<http://hl7.org/fhir/Patient/example> a fhir:Patient . # -------------------------------------------------------------------------------------
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.
FHIR
®©
HL7.org
2011+.
FHIR
Release
4
(Technical
Correction
#1)
(v4.0.1)
R6
hl7.fhir.core#6.0.0-ballot3
generated
on
Fri,
Nov
1,
2019
09:36+1100.
QA
Page
Wed,
Dec
17,
2025
09:54+0000.
Links:
Search
|
Version
History
|
Table
of
Contents
|
Credits
Glossary
|
QA
|
Compare
to
R3
R4
|
Compare
to
R5
|
Compare
to
Last
Ballot
|
|
Propose
a
change