R6 Ballot (2nd Draft)

Publish-box (todo)

Example Observation/alcohol-type (Turtle)

Orders and Observations Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Device, Encounter, 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 rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

#   
# This is an example of a multi-select values/answers as a single observatio using components to group  the multiple answers 
#  

[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: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: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:reference [ fhir:v "Patient/example" ] ;
     fhir:display [ fhir:v "Peter James Chalmers" ]
  ] ; # 
  fhir:effective [ 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: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: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: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: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: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: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  

# -------------------------------------------------------------------------------------


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.