{
  "resourceType": "StructureDefinition",
  "id": "profile-DwObservationAlcoholUse",
  "meta": {
    "lastUpdated": "2024-05-03T22:07:42.2667034+00:00"
  },
  "url": "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwObservationAlcoholUse",
  "version": "2.0.0",
  "name": "DwObservationAlcoholUse",
  "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",
        "mustSupport": true
      },
      {
        "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\r\n\r\nThis element is labeled as a modifier because the status contains codes that mark the resource as not currently valid",
        "mustSupport": true
      },
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "mustSupport": true
      },
      {
        "id": "Observation.category.coding.system",
        "path": "Observation.category.coding.system",
        "fixedUri": "http://terminology.hl7.org/CodeSystem/observation-category"
      },
      {
        "id": "Observation.category.coding.code",
        "path": "Observation.category.coding.code",
        "fixedCode": "social-history"
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "mustSupport": true
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "mustSupport": true
      },
      {
        "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": "11330-8",
        "mustSupport": true
      },
      {
        "id": "Observation.code.coding.display",
        "path": "Observation.code.coding.display",
        "fixedString": "History of Alcohol use Narrative",
        "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",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwEncounter"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "comment": "Usage note - Last updated date for the risk factor.",
        "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 - PSS  provide description text \r\nMA - Consumption observation + comment",
        "mustSupport": true
      },
      {
        "id": "Observation.note",
        "path": "Observation.note",
        "comment": "Usage Note: PSS provide Details if documented\r\nMA: Provide note in the task (on the left)",
        "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.hasMember",
        "path": "Observation.hasMember",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwObservationSocialHistory",
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwObservationAlcoholUseCurrentStatus",
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwObservationAlcoholUseDrinksConsumed",
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwObservationAlcoholUseFrequency",
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwObservationAlcoholUseType",
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwObservationAlcoholUseYearsOfETOHUse"
            ]
          }
        ],
        "mustSupport": true
      }
    ]
  }
}