<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="UKCore-MedicationStatement" />
  <url value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-MedicationStatement" />
  <version value="2.5.0" />
  <name value="UKCoreMedicationStatement" />
  <title value="UK Core Medication Statement" />
  <status value="active" />
  <date value="2024-07-11" />
  <publisher value="HL7 UK" />
  <contact>
    <name value="HL7 UK" />
    <telecom>
      <system value="email" />
      <value value="ukcore@hl7.org.uk" />
      <use value="work" />
      <rank value="1" />
    </telecom>
  </contact>
  <description value="This profile defines the UK constraints and extensions on the International FHIR resource [MedicationStatement](https://hl7.org/fhir/R4/MedicationStatement.html)." />
  <purpose value="This profile allows exchange of a record of a medication that is being consumed by a patient. &#xD;&#xA;&#xD;&#xA;A MedicationStatement may indicate that the individual may be taking the medication now or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the individual, significant other (such as a family member or spouse), or a clinician." />
  <copyright value="Copyright © 2021+ HL7 UK Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); you may not use this file except in compliance with the License. You may obtain a copy of the License at  http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. HL7® FHIR® standard Copyright © 2011+ HL7 The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at  https://www.hl7.org/fhir/license.html." />
  <fhirVersion value="4.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.extension:pharmacistVerifiedIndicator">
      <path value="MedicationStatement.extension" />
      <sliceName value="pharmacistVerifiedIndicator" />
      <short value="Indicates whether a pharmacist verified a medication." />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-PharmacistVerifiedIndicator" />
      </type>
    </element>
    <element id="MedicationStatement.extension:medicationPrescribingOrganizationType">
      <path value="MedicationStatement.extension" />
      <sliceName value="medicationPrescribingOrganizationType" />
      <short value="Identifies if the medication was `prescribed-at-gp-practice` or `prescribed-by-another-organisation`.\n\nThis extension is likely only to be populated by GP systems." />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationPrescribingOrganizationType" />
      </type>
    </element>
    <element id="MedicationStatement.extension:medicationStatementLastIssueDate">
      <path value="MedicationStatement.extension" />
      <sliceName value="medicationStatementLastIssueDate" />
      <short value="The date or date/time that the medication described in the `MedicationStatement` was last requested/prescribed.\n\nThe presence of this data does not imply medication has been dispensed or supplied to the patient." />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationStatementLastIssueDate" />
      </type>
    </element>
    <element id="MedicationStatement.identifier">
      <path value="MedicationStatement.identifier" />
      <short value="Allows the resource to be referenced within / by other resources." />
      <mustSupport value="true" />
    </element>
    <element id="MedicationStatement.identifier.system">
      <path value="MedicationStatement.identifier.system" />
      <min value="1" />
    </element>
    <element id="MedicationStatement.identifier.value">
      <path value="MedicationStatement.identifier.value" />
      <min value="1" />
    </element>
    <element id="MedicationStatement.basedOn">
      <path value="MedicationStatement.basedOn" />
      <short value="To reference to a `MedicationRequest` resource, where applicable." />
      <mustSupport value="true" />
    </element>
    <element id="MedicationStatement.status">
      <path value="MedicationStatement.status" />
      <short value="A code representing the patient or other source's judgement about the state of the medication used that this statement is about." />
      <mustSupport value="true" />
    </element>
    <element id="MedicationStatement.category">
      <path value="MedicationStatement.category" />
      <short value="Indicates where the medication is expected to be consumed or administered." />
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <valueSet value="https://fhir.hl7.org.uk/ValueSet/UKCore-MedicationStatementCategory" />
      </binding>
    </element>
    <element id="MedicationStatement.medication[x]">
      <path value="MedicationStatement.medication[x]" />
      <short value="Identifies the medication being administered." />
      <mustSupport value="true" />
      <binding>
        <strength value="preferred" />
        <valueSet value="https://fhir.hl7.org.uk/ValueSet/UKCore-MedicationCode" />
      </binding>
    </element>
    <element id="MedicationStatement.subject">
      <path value="MedicationStatement.subject" />
      <short value="Who is / was taking the medication." />
      <mustSupport value="true" />
    </element>
    <element id="MedicationStatement.effective[x]">
      <path value="MedicationStatement.effective[x]" />
      <short value="The date / time, or interval, when the medication is / was / will be taken." />
      <mustSupport value="true" />
    </element>
    <element id="MedicationStatement.dateAsserted">
      <path value="MedicationStatement.dateAsserted" />
      <short value="To timestamp the statement assertion." />
      <mustSupport value="true" />
    </element>
    <element id="MedicationStatement.informationSource">
      <path value="MedicationStatement.informationSource" />
      <short value="To reference other resources, where applicable." />
      <mustSupport value="true" />
    </element>
    <element id="MedicationStatement.derivedFrom">
      <path value="MedicationStatement.derivedFrom" />
      <short value="To reference other resources, where applicable." />
      <mustSupport value="true" />
    </element>
    <element id="MedicationStatement.dosage">
      <path value="MedicationStatement.dosage" />
      <short value="The medication dosage for the statement." />
      <mustSupport value="true" />
    </element>
    <element id="MedicationStatement.dosage.asNeeded[x]">
      <path value="MedicationStatement.dosage.asNeeded[x]" />
      <binding>
        <strength value="preferred" />
      </binding>
    </element>
    <element id="MedicationStatement.dosage.site">
      <path value="MedicationStatement.dosage.site" />
      <binding>
        <strength value="preferred" />
        <valueSet value="https://fhir.hl7.org.uk/ValueSet/UKCore-BodySite" />
      </binding>
    </element>
    <element id="MedicationStatement.dosage.route">
      <path value="MedicationStatement.dosage.route" />
      <binding>
        <strength value="preferred" />
        <valueSet value="https://fhir.hl7.org.uk/ValueSet/UKCore-SubstanceOrProductAdministrationRoute" />
      </binding>
    </element>
    <element id="MedicationStatement.dosage.method">
      <path value="MedicationStatement.dosage.method" />
      <binding>
        <strength value="preferred" />
        <valueSet value="https://fhir.hl7.org.uk/ValueSet/UKCore-MedicationDosageMethod" />
      </binding>
    </element>
  </differential>
</StructureDefinition>