@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <https://loinc.org/rdf/> .
@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/us/healthedata1-sandbox/Observation/tobacco-use-panel> a fhir:Observation ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "tobacco-use-panel"] ; # 
  fhir:meta [
     fhir:extension ( [
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/instance-name"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/instance-name>
       ] ;
       fhir:value [
         a fhir:String ;
         fhir:v "Tobacco Use Panel Example"
       ]
     ] [
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/instance-description"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/instance-description>
       ] ;
       fhir:value [
         a fhir:Markdown ;
         fhir:v "This example for the proposed *US Core Tobacco Use Profile* shows a single Observation using `component` elements to convey the LOINC 88028-6 Tobacco use panel members. The patient is a current every day cigarette and e-cigarette smoker who also uses smokeless tobacco occasionally, smokes less than one pack per day, has used tobacco for ten years, and has a calculated cumulative exposure of less than ten pack-years."
       ]
     ] ) ;
     fhir:profile ( [
       fhir:v "http://hl7.org/fhir/us/core/StructureDefinition/us-core-tobacco-use"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/us/core/StructureDefinition/us-core-tobacco-use>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Observation tobacco-use-panel</b></p><a name=\"tobacco-use-panel\"> </a><a name=\"hctobacco-use-panel\"> </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/fhir/us/core/StructureDefinition/us-core-tobacco-use</code></p></div><p><b>status</b>: Final</p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/observation-category social-history}\">Social History</span></p><p><b>code</b>: <span title=\"Codes:{http://loinc.org 88028-6}\">88028-6 (LOINC): Tobacco use panel</span></p><p><b>subject</b>: <a href=\"http://hl7.org/fhir/us/core/2026Jan/Patient-example.html\">Amy Shaw</a></p><p><b>effective</b>: 2026-05-20</p><p><b>performer</b>: <a href=\"http://hl7.org/fhir/us/core/2026Jan/Practitioner-practitioner-1.html\">Dr Ronald Bone</a></p><blockquote><p><b>component</b></p><p><b>code</b>: <span title=\"Codes:{http://loinc.org 72166-2}\">72166-2 (LOINC): Tobacco smoking status</span></p><p><b>value</b>: <span title=\"Codes:{http://snomed.info/sct 449868002}\">449868002 (SNOMED CT): Current every day smoker</span></p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: <span title=\"Codes:{http://loinc.org 88031-0}\">88031-0 (LOINC): Smokeless tobacco status</span></p><p><b>value</b>: <span title=\"Codes:{http://snomed.info/sct 881731000124108}\">881731000124108 (SNOMED CT): Uses smokeless tobacco occasionally</span></p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: <span title=\"Codes:{http://loinc.org 82769-1}\">82769-1 (LOINC): Smoked or non-smoked tobacco</span></p><p><b>value</b>: <span title=\"Codes:{http://loinc.org LA26673-6}\">LA26673-6 (LOINC): Use of both smoked and non-smoked tobacco products</span></p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: <span title=\"Codes:{http://loinc.org 81228-9}\">81228-9 (LOINC): Tobacco product</span></p><p><b>value</b>: <span title=\"Codes:{http://loinc.org LA15332-2}\">LA15332-2 (LOINC): Cigarettes</span></p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: <span title=\"Codes:{http://loinc.org 81228-9}\">81228-9 (LOINC): Tobacco product</span></p><p><b>value</b>: <span title=\"Codes:{http://snomed.info/sct 722498003}\">722498003 (SNOMED CT): Electronic cigarette</span></p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: <span title=\"Codes:{http://loinc.org 8663-7}\">8663-7 (LOINC): Cigarettes smoked current (pack per day) - Reported</span></p><p><b>value</b>: &lt;1 {pack}/d<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code{pack}/d = '{pack}/d')</span></p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: <span title=\"Codes:{http://loinc.org 88029-4}\">88029-4 (LOINC): Tobacco use duration</span></p><p><b>value</b>: 10 a<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  codea = 'a')</span></p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: <span title=\"Codes:{http://snomed.info/sct 782516008}\">782516008 (SNOMED CT): Number of calculated pack years for cumulative lifetime tobacco exposure</span></p><p><b>value</b>: &lt;10 {PackYears}<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code{PackYears} = '{PackYears}')</span></p></blockquote></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:status [ fhir:v "final"] ; # 
  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" ]
  ] ) ; # 
  fhir:code [
     fhir:coding ( [
       a loinc:88028-6 ;
       fhir:system [
         fhir:v "http://loinc.org"^^xsd:anyURI ;
         fhir:l <http://loinc.org>
       ] ;
       fhir:code [ fhir:v "88028-6" ] ;
       fhir:display [ fhir:v "Tobacco use panel" ]
     ] ) ;
     fhir:text [ fhir:v "88028-6 (LOINC): Tobacco use panel" ]
  ] ; # 
  fhir:subject [
     fhir:l <http://hl7.org/fhir/us/healthedata1-sandbox/Patient/example> ;
     fhir:reference [ fhir:v "Patient/example" ] ;
     fhir:display [ fhir:v "Amy Shaw" ]
  ] ; # 
  fhir:effective [
     a fhir:DateTime ;
     fhir:v "2026-05-20"^^xsd:date
  ] ; # 
  fhir:performer ( [
     fhir:l <http://hl7.org/fhir/us/healthedata1-sandbox/Practitioner/practitioner-1> ;
     fhir:reference [ fhir:v "Practitioner/practitioner-1" ] ;
     fhir:display [ fhir:v "Dr Ronald Bone" ]
  ] ) ; # 
  fhir:component ( [
     fhir:code [
       fhir:coding ( [
         a loinc:72166-2 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "72166-2" ] ;
         fhir:display [ fhir:v "Tobacco smoking status" ]
       ] ) ;
       fhir:text [ fhir:v "72166-2 (LOINC): Tobacco smoking status" ]
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         a sct:449868002 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "449868002" ] ;
         fhir:display [ fhir:v "Current every day smoker" ]
       ] ) ;
       fhir:text [ fhir:v "449868002 (SNOMED CT): Current every day smoker" ]
     ]
  ] [
     fhir:code [
       fhir:coding ( [
         a loinc:88031-0 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "88031-0" ] ;
         fhir:display [ fhir:v "Smokeless tobacco status" ]
       ] ) ;
       fhir:text [ fhir:v "88031-0 (LOINC): Smokeless tobacco status" ]
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         a sct:881731000124108 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "881731000124108" ] ;
         fhir:display [ fhir:v "Uses smokeless tobacco occasionally" ]
       ] ) ;
       fhir:text [ fhir:v "881731000124108 (SNOMED CT): Uses smokeless tobacco occasionally" ]
     ]
  ] [
     fhir:code [
       fhir:coding ( [
         a loinc:82769-1 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "82769-1" ] ;
         fhir:display [ fhir:v "Smoked or non-smoked tobacco" ]
       ] ) ;
       fhir:text [ fhir:v "82769-1 (LOINC): Smoked or non-smoked tobacco" ]
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         a loinc:LA26673-6 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "LA26673-6" ] ;
         fhir:display [ fhir:v "Use of both smoked and non-smoked tobacco products" ]
       ] ) ;
       fhir:text [ fhir:v "LA26673-6 (LOINC): Use of both smoked and non-smoked tobacco products" ]
     ]
  ] [
     fhir:code [
       fhir:coding ( [
         a loinc:81228-9 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "81228-9" ] ;
         fhir:display [ fhir:v "Tobacco product" ]
       ] ) ;
       fhir:text [ fhir:v "81228-9 (LOINC): Tobacco product" ]
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         a loinc:LA15332-2 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "LA15332-2" ] ;
         fhir:display [ fhir:v "Cigarettes" ]
       ] ) ;
       fhir:text [ fhir:v "LA15332-2 (LOINC): Cigarettes" ]
     ]
  ] [
     fhir:code [
       fhir:coding ( [
         a loinc:81228-9 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "81228-9" ] ;
         fhir:display [ fhir:v "Tobacco product" ]
       ] ) ;
       fhir:text [ fhir:v "81228-9 (LOINC): Tobacco product" ]
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         a sct:722498003 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "722498003" ] ;
         fhir:display [ fhir:v "Electronic cigarette" ]
       ] ) ;
       fhir:text [ fhir:v "722498003 (SNOMED CT): Electronic cigarette" ]
     ]
  ] [
     fhir:code [
       fhir:coding ( [
         a loinc:8663-7 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "8663-7" ] ;
         fhir:display [ fhir:v "Cigarettes smoked current (pack per day) - Reported" ]
       ] ) ;
       fhir:text [ fhir:v "8663-7 (LOINC): Cigarettes smoked current (pack per day) - Reported" ]
     ] ;
     fhir:value [
       a fhir:Quantity ;
       fhir:value [ fhir:v "1"^^xsd:decimal ] ;
       fhir:comparator [ fhir:v "<" ] ;
       fhir:unit [ fhir:v "{pack}/d" ] ;
       fhir:system [
         fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
         fhir:l <http://unitsofmeasure.org>
       ] ;
       fhir:code [ fhir:v "{pack}/d" ]
     ]
  ] [
     fhir:code [
       fhir:coding ( [
         a loinc:88029-4 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "88029-4" ] ;
         fhir:display [ fhir:v "Tobacco use duration" ]
       ] ) ;
       fhir:text [ fhir:v "88029-4 (LOINC): Tobacco use duration" ]
     ] ;
     fhir:value [
       a fhir:Quantity ;
       fhir:value [ fhir:v "10"^^xsd:decimal ] ;
       fhir:unit [ fhir:v "a" ] ;
       fhir:system [
         fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
         fhir:l <http://unitsofmeasure.org>
       ] ;
       fhir:code [ fhir:v "a" ]
     ]
  ] [
     fhir:code [
       fhir:coding ( [
         a sct:782516008 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "782516008" ] ;
         fhir:display [ fhir:v "Number of calculated pack years for cumulative lifetime tobacco exposure (observable entity)" ]
       ] ) ;
       fhir:text [ fhir:v "782516008 (SNOMED CT): Number of calculated pack years for cumulative lifetime tobacco exposure" ]
     ] ;
     fhir:value [
       a fhir:Quantity ;
       fhir:value [ fhir:v "10"^^xsd:decimal ] ;
       fhir:comparator [ fhir:v "<" ] ;
       fhir:unit [ fhir:v "{PackYears}" ] ;
       fhir:system [
         fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
         fhir:l <http://unitsofmeasure.org>
       ] ;
       fhir:code [ fhir:v "{PackYears}" ]
     ]
  ] ) . # 

<http://hl7.org/fhir/us/healthedata1-sandbox/Patient/example> a fhir:Us .

<http://hl7.org/fhir/us/healthedata1-sandbox/Practitioner/practitioner-1> a fhir:Us .

# -------------------------------------------------------------------------------------

