<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="profile-DwObservationAlcoholUse" />
  <meta>
    <lastUpdated value="2024-05-03T22:07:42.2667034+00:00" />
  </meta>
  <url value="https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwObservationAlcoholUse" />
  <version value="2.0.0" />
  <name value="DwObservationAlcoholUse" />
  <status value="active" />
  <date value="2026-05-29" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation.id">
      <path value="Observation.id" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.meta.lastUpdated">
      <path value="Observation.meta.lastUpdated" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.meta.source">
      <path value="Observation.meta.source" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.meta.security">
      <path value="Observation.meta.security" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.text">
      <path value="Observation.text" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.identifier">
      <path value="Observation.identifier" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.status">
      <path value="Observation.status" />
      <comment value="Usage Note - Historical load do not send the deleted entries. For delta send all updated resource including deleted&#xD;&#xA;PSS --&gt;FHIR&#xD;&#xA;Needs Review, unfinished --&gt; Final&#xD;&#xA;Updated --&gt; amended - only if delta is being send&#xD;&#xA;deleted --&gt; entered-in-error - only if delta is being sent&#xD;&#xA;&#xD;&#xA;Conformance Rule - PSS status for active risk factors the status should be final. For updated risk factor the status should be updated to amended&#xD;&#xA;&#xD;&#xA;MA --&gt; FHIR&#xD;&#xA;Active --&gt; Final&#xD;&#xA;deleted --&gt; entered-in-error - only if delta is being sent&#xD;&#xA;&#xD;&#xA;This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.category">
      <path value="Observation.category" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.category.coding.system">
      <path value="Observation.category.coding.system" />
      <fixedUri value="http://terminology.hl7.org/CodeSystem/observation-category" />
    </element>
    <element id="Observation.category.coding.code">
      <path value="Observation.category.coding.code" />
      <fixedCode value="social-history" />
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.code.coding">
      <path value="Observation.code.coding" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.code.coding.system">
      <path value="Observation.code.coding.system" />
      <fixedUri value="http://loinc.org" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.code.coding.code">
      <path value="Observation.code.coding.code" />
      <fixedCode value="11330-8" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.code.coding.display">
      <path value="Observation.code.coding.display" />
      <fixedString value="History of Alcohol use Narrative" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.code.text">
      <path value="Observation.code.text" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwPatient" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.encounter">
      <path value="Observation.encounter" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwEncounter" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.effective[x]">
      <path value="Observation.effective[x]" />
      <comment value="Usage note - Last updated date for the risk factor." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.issued">
      <path value="Observation.issued" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.performer">
      <path value="Observation.performer" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwPractitioner" />
        <targetProfile value="https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwPractitionerRole" />
        <targetProfile value="https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwOrganization" />
        <targetProfile value="https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwCareTeam" />
        <targetProfile value="https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwPatient" />
      </type>
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <comment value="Usage note - PSS  provide description text &#xD;&#xA;MA - Consumption observation + comment" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.note">
      <path value="Observation.note" />
      <comment value="Usage Note: PSS provide Details if documented&#xD;&#xA;MA: Provide note in the task (on the left)" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.bodySite">
      <path value="Observation.bodySite" />
      <max value="0" />
    </element>
    <element id="Observation.specimen">
      <path value="Observation.specimen" />
      <max value="0" />
    </element>
    <element id="Observation.device">
      <path value="Observation.device" />
      <max value="0" />
    </element>
    <element id="Observation.referenceRange">
      <path value="Observation.referenceRange" />
      <max value="0" />
    </element>
    <element id="Observation.hasMember">
      <path value="Observation.hasMember" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwObservationSocialHistory" />
        <targetProfile value="https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwObservationAlcoholUseCurrentStatus" />
        <targetProfile value="https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwObservationAlcoholUseDrinksConsumed" />
        <targetProfile value="https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwObservationAlcoholUseFrequency" />
        <targetProfile value="https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwObservationAlcoholUseType" />
        <targetProfile value="https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwObservationAlcoholUseYearsOfETOHUse" />
      </type>
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>