<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="HdBe-DrugUse" />
  <url value="https://fhir.healthdata.be/StructureDefinition/HdBe-DrugUse" />
  <name value="HdBeDrugUse" />
  <title value="HdBe DrugUse" />
  <status value="draft" />
  <date value="2022-10-17T09:09:13.9562003+00:00" />
  <publisher value="Healthdata.be (Sciensano)" />
  <contact>
    <name value="Service portal – healthdata.be" />
    <telecom>
      <system value="url" />
      <value value="https://sciensano.service-now.com/sp" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="Drugs (or: narcotics, amphetamines, intoxicants, highs, hallucinogenics, illegal substances or dope) is a collective term for drugs and chemical substances with a more or less ‘drugging' (anesthetic, boosting and/or hallucinogenic) effect and which can lead to addiction. Drug [Online] Available at: nl.Wikipedia.org/wiki/drug [Accessed: 11 February 2015].&#xD;&#xA;&#xD;&#xA;This information model describes the information asked of the patient about their drug use." />
  <copyright value="Copyright and related rights waived via CC0, https://creativecommons.org/publicdomain/zero/1.0/. This does not apply to information from third parties, for example a medical terminology system. The implementer alone is responsible for identifying and obtaining any necessary licenses or authorizations to utilize third party IP in connection with the specification or otherwise." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="HdBe-DrugUse" />
    <uri value="https://fhir.healthdata.be/StructureDefinition/LogicalModel/HdBe-DrugUse" />
    <name value="HdBe logical model DrugUse" />
  </mapping>
  <mapping>
    <identity value="zib-druguse-v3.3-2020EN" />
    <uri value="https://zibs.nl/wiki/DrugUse-v3.3(2020EN)" />
    <name value="zib DrugUse-v3.3(2020EN)" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation">
      <path value="Observation" />
      <short value="DrugUse" />
      <alias value="DrugsGebruik" />
      <mapping>
        <identity value="zib-druguse-v3.3-2020EN" />
        <map value="NL-CM:7.4.1" />
        <comment value="DrugUse" />
      </mapping>
      <mapping>
        <identity value="HdBe-DrugUse" />
        <map value="DrugUse" />
      </mapping>
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <patternCodeableConcept>
        <coding>
          <system value="http://snomed.info/sct" />
          <code value="228366006" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Observation.effective[x]">
      <path value="Observation.effective[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Observation.effective[x]:effectivePeriod">
      <path value="Observation.effective[x]" />
      <sliceName value="effectivePeriod" />
      <type>
        <code value="Period" />
      </type>
    </element>
    <element id="Observation.effective[x]:effectivePeriod.start">
      <path value="Observation.effective[x].start" />
      <short value="StartDate" />
      <definition value="The date on which the patient started using." />
      <alias value="StartDatum" />
      <mapping>
        <identity value="zib-druguse-v3.3-2020EN" />
        <map value="NL-CM:7.4.6" />
        <comment value="StartDate" />
      </mapping>
      <mapping>
        <identity value="HdBe-DrugUse" />
        <map value="DrugUse.ObservationOfUse.StartDate" />
      </mapping>
    </element>
    <element id="Observation.effective[x]:effectivePeriod.end">
      <path value="Observation.effective[x].end" />
      <short value="StopDate" />
      <definition value="The date on which the patient quit using" />
      <alias value="StopDatum" />
      <mapping>
        <identity value="zib-druguse-v3.3-2020EN" />
        <map value="NL-CM:7.4.7" />
        <comment value="StopDate" />
      </mapping>
      <mapping>
        <identity value="HdBe-DrugUse" />
        <map value="DrugUse.ObservationOfUse.StopDate" />
      </mapping>
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Observation.value[x]:valueCodeableConcept">
      <path value="Observation.value[x]" />
      <sliceName value="valueCodeableConcept" />
      <short value="DrugUseStatus" />
      <definition value="Indication stating whether there was any drug use in the past or present." />
      <alias value="DrugsGebruikStatus" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="extensible" />
        <valueSet value="https://fhir.healthdata.be/ValueSet/DrugUseStatus" />
      </binding>
      <mapping>
        <identity value="zib-druguse-v3.3-2020EN" />
        <map value="NL-CM:7.4.3" />
        <comment value="DrugUseStatus" />
      </mapping>
      <mapping>
        <identity value="HdBe-DrugUse" />
        <map value="DrugUse.DrugUseStatus" />
      </mapping>
    </element>
    <element id="Observation.note">
      <path value="Observation.note" />
      <max value="1" />
    </element>
    <element id="Observation.note.text">
      <path value="Observation.note.text" />
      <short value="Comment" />
      <definition value="Relevant comments on the drug use." />
      <alias value="Toelichting" />
      <mapping>
        <identity value="zib-druguse-v3.3-2020EN" />
        <map value="NL-CM:7.4.9" />
        <comment value="Comment" />
      </mapping>
      <mapping>
        <identity value="HdBe-DrugUse" />
        <map value="DrugUse.Comment" />
      </mapping>
    </element>
    <element id="Observation.component">
      <path value="Observation.component" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="code" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Observation.component:amount">
      <path value="Observation.component" />
      <sliceName value="amount" />
      <max value="1" />
    </element>
    <element id="Observation.component:amount.code">
      <path value="Observation.component.code" />
      <patternCodeableConcept>
        <coding>
          <system value="http://snomed.info/sct" />
          <code value="363908000" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Observation.component:amount.value[x]">
      <path value="Observation.component.value[x]" />
      <short value="Amount" />
      <definition value="The number of units (pills, joints, shots etc.) per day, week, month or year or the frequency of use." />
      <alias value="Hoeveelheid" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="zib-druguse-v3.3-2020EN" />
        <map value="NL-CM:7.4.8" />
        <comment value="Amount" />
      </mapping>
      <mapping>
        <identity value="HdBe-DrugUse" />
        <map value="DrugUse.ObservationOfUse.Amount" />
      </mapping>
    </element>
    <element id="Observation.component:drugOrMedicationType">
      <path value="Observation.component" />
      <sliceName value="drugOrMedicationType" />
      <max value="1" />
    </element>
    <element id="Observation.component:drugOrMedicationType.code">
      <path value="Observation.component.code" />
      <patternCodeableConcept>
        <coding>
          <system value="http://snomed.info/sct" />
          <code value="105590001" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Observation.component:drugOrMedicationType.value[x]">
      <path value="Observation.component.value[x]" />
      <short value="DrugOrMedicationType" />
      <definition value="Type of drug used by the patient." />
      <alias value="DrugsOfGeneesmiddelSoort" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="extensible" />
        <valueSet value="https://fhir.healthdata.be/ValueSet/TypeOfDrugOrMedication" />
      </binding>
      <mapping>
        <identity value="zib-druguse-v3.3-2020EN" />
        <map value="NL-CM:7.4.2" />
        <comment value="DrugOrMedicationType" />
      </mapping>
      <mapping>
        <identity value="HdBe-DrugUse" />
        <map value="DrugUse.DrugOrMedicationType" />
      </mapping>
    </element>
    <element id="Observation.component:routeOfAdministration">
      <path value="Observation.component" />
      <sliceName value="routeOfAdministration" />
    </element>
    <element id="Observation.component:routeOfAdministration.code">
      <path value="Observation.component.code" />
      <patternCodeableConcept>
        <coding>
          <system value="http://snomed.info/sct" />
          <code value="410675002" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Observation.component:routeOfAdministration.value[x]">
      <path value="Observation.component.value[x]" />
      <short value="RouteOfAdministration" />
      <definition value="The way the drugs are used." />
      <alias value="Toedieningsweg" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="extensible" />
        <valueSet value="https://fhir.healthdata.be/ValueSet/RouteOfAdministration" />
      </binding>
      <mapping>
        <identity value="zib-druguse-v3.3-2020EN" />
        <map value="NL-CM:7.4.4" />
        <comment value="RouteOfAdministration" />
      </mapping>
      <mapping>
        <identity value="HdBe-DrugUse" />
        <map value="DrugUse.RouteOfAdministration" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>