{
  "resourceType": "StructureDefinition",
  "id": "profile-DwObservationAlcoholUseFrequency",
  "meta": {
    "lastUpdated": "2024-04-25T13:57:55.0126377+00:00"
  },
  "url": "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwObservationAlcoholUseFrequency",
  "version": "2.0.0",
  "name": "DwObservationAlcoholUseFrequency",
  "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",
        "fixedCodeableConcept": {
          "text": "social-history"
        },
        "mustSupport": true
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "mustSupport": true
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "comment": "code - 81032-5 Days per week alcoholic drinks consumed\r\n\r\nCodes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
        "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": "81032-5",
        "mustSupport": true
      },
      {
        "id": "Observation.code.coding.display",
        "path": "Observation.code.coding.display",
        "fixedString": "Days per week alcoholic drinks consumed"
      },
      {
        "id": "Observation.code.text",
        "path": "Observation.code.text",
        "comment": "Usage note- Label of the observation being observed from EMR UI \r\nMA - Frequency",
        "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 reviewed date for the risk factor \r\nPSS and MA to investigate whether we have last reviewed date. If unable to find last reviewed date populate with.",
        "min": 1,
        "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 - value type Quantity\r\nMA - days/week",
        "type": [
          {
            "code": "string"
          }
        ],
        "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"
      }
    ]
  }
}