<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="zib-DrugUse" />
  <text>
    <status value="empty" />
    <div xmlns="http://www.w3.org/1999/xhtml">No narrative is provided for definitional resources. A human-readable rendering can be found in the implementation guide(s) where this resource is used.</div>
  </text>
  <url value="http://nictiz.nl/fhir/StructureDefinition/zib-DrugUse" />
  <name value="ZibDrugUse" />
  <title value="zib DrugUse" />
  <status value="draft" />
  <publisher value="Nictiz" />
  <contact>
    <name value="Nictiz" />
    <telecom>
      <system value="url" />
      <value value="https://www.nictiz.nl" />
      <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." />
  <purpose value="This Observation resource represents the Dutch [zib ('Zorginformatiebouwsteen', i.e. Health and Care Information Model) DrugUse v3.3 (2020)](https://zibs.nl/wiki/DrugUse-v3.3(2020EN))." />
  <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="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="true" />
  <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>
    </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>
    </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>
    </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="http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.7.4.2--20200901000000" />
      </binding>
      <mapping>
        <identity value="zib-druguse-v3.3-2020EN" />
        <map value="NL-CM:7.4.3" />
        <comment value="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>
    </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>
    </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="http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.7.4.1--20200901000000" />
      </binding>
      <mapping>
        <identity value="zib-druguse-v3.3-2020EN" />
        <map value="NL-CM:7.4.2" />
        <comment value="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="http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.7.4.3--20200901000000" />
      </binding>
      <mapping>
        <identity value="zib-druguse-v3.3-2020EN" />
        <map value="NL-CM:7.4.4" />
        <comment value="RouteOfAdministration" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>