{
  "resourceType": "StructureDefinition",
  "id": "profile-DwObservationTobaccoUseCurrentStatus",
  "meta": {
    "lastUpdated": "2024-04-25T16:51:26.2363918+00:00"
  },
  "url": "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwObservationTobaccoUseCurrentStatus",
  "version": "2.0.0",
  "name": "DwObservationTobaccoUseCurrentStatus",
  "status": "active",
  "date": "2026-05-29",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.id",
        "path": "Observation.id",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.meta.lastUpdated",
        "path": "Observation.meta.lastUpdated",
        "min": 1
      },
      {
        "id": "Observation.meta.source",
        "path": "Observation.meta.source",
        "mustSupport": true
      },
      {
        "id": "Observation.meta.security",
        "path": "Observation.meta.security",
        "mustSupport": true
      },
      {
        "id": "Observation.text",
        "path": "Observation.text",
        "mustSupport": true
      },
      {
        "id": "Observation.identifier",
        "path": "Observation.identifier",
        "mustSupport": true
      },
      {
        "id": "Observation.status",
        "path": "Observation.status",
        "comment": "Usage Note - Historical load do not send the deleted entries. For delta send all updated resource including deleted\r\nPSS -->FHIR\r\nNeeds Review, unfinished --> Final\r\nUpdated --> amended - only if delta is being send\r\ndeleted --> entered-in-error - only if delta is being sent\r\n\r\nConformance Rule - PSS status for active risk factors the status should be final. For updated risk factor the status should be updated to amended\r\n\r\nMA --> FHIR\r\nActive --> Final\r\ndeleted --> entered-in-error - only if delta is being sent",
        "mustSupport": true
      },
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "fixedCodeableConcept": {
          "text": "social-history"
        },
        "mustSupport": true
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "mustSupport": true
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "mustSupport": true,
        "binding": {
          "strength": "example",
          "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes"
        }
      },
      {
        "id": "Observation.code.coding.system",
        "path": "Observation.code.coding.system",
        "fixedUri": "http://loinc.org",
        "mustSupport": true
      },
      {
        "id": "Observation.code.coding.code",
        "path": "Observation.code.coding.code",
        "fixedCode": "72166-2",
        "mustSupport": true
      },
      {
        "id": "Observation.code.text",
        "path": "Observation.code.text",
        "mustSupport": true
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwPatient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.encounter",
        "path": "Observation.encounter",
        "comment": "Usage Note - Provide encounter for MA if available\r\n\r\nThis will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwEncounter"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.issued",
        "path": "Observation.issued",
        "mustSupport": true
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwPractitioner",
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwPractitionerRole",
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwOrganization",
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwCareTeam",
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwPatient"
            ]
          }
        ]
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "comment": "Usage note - provide smoking status + comment as text\r\n \r\n266919005 Never smoked tobacco\r\n8392000 Non-smoker\r\n281018007 Ex-cigarette smoker",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.value[x].coding",
        "path": "Observation.value[x].coding",
        "mustSupport": true
      },
      {
        "id": "Observation.value[x].coding.system",
        "path": "Observation.value[x].coding.system",
        "fixedUri": "http://snomed.info/sct",
        "mustSupport": true
      },
      {
        "id": "Observation.value[x].coding.code",
        "path": "Observation.value[x].coding.code",
        "mustSupport": true
      },
      {
        "id": "Observation.value[x].coding.display",
        "path": "Observation.value[x].coding.display",
        "mustSupport": true
      },
      {
        "id": "Observation.value[x].text",
        "path": "Observation.value[x].text",
        "comment": "Usage Note: For coding.text provide the text selected within the EMR.",
        "mustSupport": true
      },
      {
        "id": "Observation.note",
        "path": "Observation.note",
        "mustSupport": true
      },
      {
        "id": "Observation.bodySite",
        "path": "Observation.bodySite",
        "max": "0"
      },
      {
        "id": "Observation.specimen",
        "path": "Observation.specimen",
        "max": "0"
      },
      {
        "id": "Observation.device",
        "path": "Observation.device",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange",
        "path": "Observation.referenceRange",
        "max": "0"
      },
      {
        "id": "Observation.derivedFrom",
        "path": "Observation.derivedFrom",
        "max": "0"
      }
    ]
  }
}