{
  "resourceType": "StructureDefinition",
  "id": "ncdhc-observation-bi-tobacco-usage",
  "url": "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-observation-bi-tobacco-usage",
  "version": "dv0.0.1",
  "name": "NCDHCBriefInterventionTobaccoObservationProfile",
  "title": "NCDHC Brief Intervention Smoking Observation",
  "status": "draft",
  "date": "2020-01-10",
  "publisher": "National Children's Digital Health Collaborative (NCDHC)",
  "description": "Brief Intervention - Smoking",
  "purpose": "To record Smoking status and relevant information",
  "copyright": "Copyright © 2019 Australian Digital Health Agency - All rights reserved. This content is licensed under a Creative Commons Attribution 4.0 International License. See https://creativecommons.org/licenses/by/4.0/",
  "fhirVersion": "3.0.2",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-observation-base",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation",
        "short": "NCDHC Tobacco Use Assessment Observation Profile"
      },
      
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "short": "Tobacco smoking status",
        "mustSupport": true
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "code"
            },
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "closed"
        },
        "min": 1
      },
      {
        "id": "Observation.code.coding:BriefInterventionSmokingSNOMED-CT",
        "path": "Observation.code.coding",
        "sliceName": "BriefInterventionSmokingSNOMED-CT",
        "min": 1,
        "max": "1",
        "patternCoding": {
          "system": "http://snomed.info/sct",
          "code": "771155005"
        }
      },
      {
        "id": "Observation.code.coding:BriefInterventionSmokingSNOMED-CT.system",
        "path": "Observation.code.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "short": "Reference to the Mother Patient",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-patient-expectant-mother"
          }
        ]
      },
      {
        "id": "Observation.effectiveDateTime:effectiveDateTime",
        "path": "Observation.effectiveDateTime",
        "sliceName": "effectiveDateTime",
        "short": "Date when Tobacco usage was discussed",
        "min": 1
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "short": "Person who is clinically responsible for the undetaking of the assessment"
      },
      {
        "id": "Observation.value[x]:valueCodeableConcept",
        "path": "Observation.valueCodeableConcept",
        "sliceName": "valueCodeableConcept",
        "short": "Brief Smoking intervention Status",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org.au/fhir/ch/v1/ValueSet/ncdhc-observation-completion-status-1"
          }
        }
      },
      {
        "id": "Observation.interpretation",
        "path": "Observation.interpretation",
        "binding": {
          "strength": "extensible",
          "valueSetReference": {
            "reference": "http://hl7.org.au/fhir/ch/v1/ValueSet/ncdhc-smoking-status-1"
          }
        }
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "code"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.component:CigarettesPerDay",
        "path": "Observation.component",
        "sliceName": "CigarettesPerDay",
        "short": "Cigarettes per day",
        "max": "1"
      },
      {
        "id": "Observation.component:CigarettesPerDay.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "1368921000168102"
            }
          ]
        }
      },
      {
        "id": "Observation.component:CigarettesPerDay.value[x]:valueQuantity",
        "path": "Observation.component.valueQuantity",
        "sliceName": "valueQuantity",
        "short": "Cigarettes Consumption",
        "definition": "Proposal is to create a ValueSet with options: 266921000: Ex-trivial cigarette smoker (<1/day), 266924008: Ex-heavy cigarette smoker (20-39/day), 160605003: Heavy cigarette smoker (20-39 cigs/day), 160603005: Light cigarette smoker (1-9 cigs/day)",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.component:CigarettesPerDay.value[x]:valueQuantity.value",
        "path": "Observation.component.valueQuantity.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.component:CigarettesPerDay.value[x]:valueQuantity.unit",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.component.valueQuantity.unit",
        "mustSupport": true
      },
      {
        "id": "Observation.component:CigarettesPerDay.value[x]:valueQuantity.system",
        "path": "Observation.component.valueQuantity.system",
        "min": 1,
        "fixedUri": "http://unitsofmeasure.org",
        "mustSupport": true
      },
      {
        "id": "Observation.component:CigarettesPerDay.value[x]:valueQuantity.code",
        "path": "Observation.component.valueQuantity.code",
        "min": 1,
        "fixedCode": "/d",
        "mustSupport": true
      },
      {
        "id": "Observation.component:SmokingQuitDate",
        "path": "Observation.component",
        "sliceName": "SmokingQuitDate",
        "short": "Smoking - Quit date",
        "max": "1"
      },
      {
        "id": "Observation.component:SmokingQuitDate.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "160625004"
            }
          ]
        }
      },
      {
        "id": "Observation.component:SmokingQuitDate.value[x]:valueDateTime",
        "path": "Observation.component.valueDateTime",
        "sliceName": "valueDateTime",
        "min": 1,
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": true
      }
    ]
  }
}