<StructureDefinition xmlns="http://hl7.org/fhir">
  <meta>
    <lastUpdated value="2018-03-06T10:22:52.585+01:00" />
  </meta>
  <url value="http://trilliumbridge.eu/fhir/StructureDefinition/medicationstatement-uv-trillium2" />
  <version value="0.04" />
  <name value="MedicationStatement-uv-trillium2" />
  <status value="draft" />
  <date value="2017-11-27T09:39:33.993+01:00" />
  <publisher value="Trillium II" />
  <contact>
    <name value="François Macary - PHAST" />
  </contact>
  <description value="This profile represents the contraints applied to the MedicationStatement resource by the Trillium II project, which specifies an international patient summary based on the FHIR standard STU3. An instance of MedicationStatement represents one statement about the patient's current medications." />
  <purpose value="In the Trillium II international patient summary, the MedicationStatement resource is an item of the list of current medications prescribed to, or dispensed to, or taken by the patient. This resource captures a statement about one current medication of the patient." />
  <fhirVersion value="3.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="MedicationStatement" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/MedicationStatement" />
  <derivation value="constraint" />
  <differential>
    <element id="MedicationStatement.identifier">
      <path value="MedicationStatement.identifier" />
      <max value="0" />
    </element>
    <element id="MedicationStatement.basedOn">
      <path value="MedicationStatement.basedOn" />
      <max value="0" />
    </element>
    <element id="MedicationStatement.partOf">
      <path value="MedicationStatement.partOf" />
      <max value="0" />
    </element>
    <element id="MedicationStatement.context">
      <path value="MedicationStatement.context" />
      <max value="0" />
    </element>
    <element id="MedicationStatement.status">
      <path value="MedicationStatement.status" />
      <short value="active | intended | on-hold " />
      <definition value="A code representing the patient or other source's judgment about the state of the medication used that this statement is about.  Trillium II uses only 3 values. &#xD;&#xA;" />
      <requirements value="The value &quot;unknown&quot; is not part of STU3, has beend added in the current build and will be part of R4. The Trillium II project uses the &quot;taken&quot; element to record the value &quot;unknown&quot;, and in this case, the &quot;status&quot; element is populated with &quot;intended&quot;." />
      <defaultValueCode value="active" />
      <mustSupport value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="MedicationStatementStatus" />
        </extension>
        <strength value="required" />
        <valueSetReference>
          <reference value="http://trilliumbridge.eu/fhir/ValueSet/medication-statement-status-uv-trillium2" />
        </valueSetReference>
      </binding>
    </element>
    <element id="MedicationStatement.category">
      <path value="MedicationStatement.category" />
      <max value="0" />
    </element>
    <element id="MedicationStatement.medication[x]">
      <path value="MedicationStatement.medication[x]" />
      <definition value="Identifies the medication being administered. This is either a reference to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications.&#xD;&#xA;The meanings &quot;no medication in use&quot; and &quot;medications use unknown&quot; are represented by codes in the medicationCodeableConcept attribute" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://trilliumbridge.eu/fhir/StructureDefinition/medication-uv-trillium2" />
      </type>
    </element>
    <element id="MedicationStatement.dateAsserted">
      <path value="MedicationStatement.dateAsserted" />
      <min value="1" />
    </element>
    <element id="MedicationStatement.informationSource">
      <path value="MedicationStatement.informationSource" />
      <min value="1" />
    </element>
    <element id="MedicationStatement.subject">
      <path value="MedicationStatement.subject" />
      <definition value="The patient who is/was/will be taking the medication." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
      </type>
    </element>
    <element id="MedicationStatement.derivedFrom">
      <path value="MedicationStatement.derivedFrom" />
      <max value="0" />
    </element>
    <element id="MedicationStatement.reasonNotTaken">
      <path value="MedicationStatement.reasonNotTaken" />
      <max value="0" />
    </element>
    <element id="MedicationStatement.reasonCode">
      <path value="MedicationStatement.reasonCode" />
      <max value="0" />
    </element>
    <element id="MedicationStatement.reasonReference">
      <path value="MedicationStatement.reasonReference" />
      <max value="0" />
    </element>
    <element id="MedicationStatement.dosage.additionalInstruction">
      <path value="MedicationStatement.dosage.additionalInstruction" />
      <max value="0" />
    </element>
    <element id="MedicationStatement.dosage.site.coding.userSelected">
      <path value="MedicationStatement.dosage.site.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="MedicationStatement.dosage.route.coding.userSelected">
      <path value="MedicationStatement.dosage.route.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="MedicationStatement.dosage.method">
      <path value="MedicationStatement.dosage.method" />
      <max value="0" />
    </element>
    <element id="MedicationStatement.dosage.maxDosePerAdministration">
      <path value="MedicationStatement.dosage.maxDosePerAdministration" />
      <max value="0" />
    </element>
    <element id="MedicationStatement.dosage.maxDosePerLifetime">
      <path value="MedicationStatement.dosage.maxDosePerLifetime" />
      <max value="0" />
    </element>
    <element id="MedicationStatement.dosage.rate[x]">
      <path value="MedicationStatement.dosage.rate[x]" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>