Release 5 Ballot

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

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 -------------------------------------------------------------------

[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: 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 &quot;alcohol-type&quot; </p></div><p><b>status</b>: <span title=\"   the mandatory quality flags:   \">final</span></p><p><b>category</b>: <span title=\"  \n    Observations are often coded in multiple code systems.\n      - LOINC\n		- or SNOMED\n      -and/or the source system may provides its own &quot;local&quot; code, which may be less or more granular than LOINC.\n	In this example there is only local codes\n    \">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> &quot;Peter CHALMERS&quot;</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 &quot;Wine (substance)&quot;)</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 &quot;Beer (substance)&quot;)</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 &quot; Distilled spirits (substance)&quot;)</span></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: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" ]
     ]
  ]] .

# - ontology header ------------------------------------------------------------

[a owl:Ontology;
  owl:imports fhir:fhir.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.