@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 -------------------------------------------------------------------

<https://fhir-ig.digital.health.nz/nzhts/Observation/smoking-status-example> a fhir:Observation ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "smoking-status-example"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Observation smoking-status-example</b></p><a name=\"smoking-status-example\"> </a><a name=\"hcsmoking-status-example\"> </a><p><b>status</b>: Final</p><p><b>code</b>: <span title=\"Codes:\">Smoking status</span></p><p><b>subject</b>: <a href=\"#hcsmoking-status-example/patient\">Anonymous Patient (no stated gender), DoB Unknown ( https://standards.digital.health.nz/ns/nhi-id#ZZZ0039 (use: official, ))</a></p><p><b>effective</b>: 2026-06-24</p><p><b>value</b>: <span title=\"Codes:{http://snomed.info/sct 77176002}\">Currently smoking</span></p><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: Patient #patient</b></p><a name=\"smoking-status-example/patient\"> </a><a name=\"hcsmoking-status-example/patient\"> </a><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\"/><p style=\"margin-bottom: 0px\">Profile: <code>http://hl7.org.nz/fhir/StructureDefinition/NzPatient</code></p></div><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">Anonymous Patient (no stated gender), DoB Unknown ( https://standards.digital.health.nz/ns/nhi-id#ZZZ0039 (use: official, ))</p><hr/></blockquote></div>"
  ] ;
  fhir:DomainResource.contained [
     a fhir:Patient ;
     fhir:index 0 ;
     fhir:Resource.id [ fhir:value "patient" ] ;
     fhir:Resource.meta [
       fhir:Meta.profile [
         fhir:value "http://hl7.org.nz/fhir/StructureDefinition/NzPatient" ;
         fhir:index 0 ;
         fhir:link <http://hl7.org.nz/fhir/StructureDefinition/NzPatient>
       ]
     ] ;
     fhir:Patient.identifier [
       fhir:index 0 ;
       fhir:Identifier.use [ fhir:value "official" ] ;
       fhir:Identifier.system [ fhir:value "https://standards.digital.health.nz/ns/nhi-id" ] ;
       fhir:Identifier.value [ fhir:value "ZZZ0039" ]
     ]
  ] ;
  fhir:Observation.status [ fhir:value "final"] ;
  fhir:Observation.code [
     fhir:CodeableConcept.text [ fhir:value "Smoking status" ]
  ] ;
  fhir:Observation.subject [
     fhir:Reference.reference [ fhir:value "#patient" ]
  ] ;
  fhir:Observation.effectiveDateTime [ fhir:value "2026-06-24"^^xsd:date] ;
  fhir:Observation.valueCodeableConcept [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       a sct:77176002 ;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
       fhir:Coding.version [ fhir:value "http://snomed.info/sct/21000210109/version/20260401" ] ;
       fhir:Coding.code [ fhir:value "77176002" ] ;
       fhir:Coding.display [ fhir:value "Currently smoking" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://fhir-ig.digital.health.nz/nzhts/Observation/smoking-status-example.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

