<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://fhir.synapxe.sg/StructureDefinition/profile-medicationdispense-request" />
  <name value="MedicationRequest" />
  <status value="active" />
  <fhirVersion value="5.0.0" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="MedicationRequest" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/MedicationRequest" />
  <derivation value="constraint" />
  <differential>
    <element id="MedicationRequest.extension:authorizer">
      <path value="MedicationRequest.extension" />
      <sliceName value="authorizer" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/ext-authorizer" />
      </type>
    </element>
    <element id="MedicationRequest.modifierExtension">
      <path value="MedicationRequest.modifierExtension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.identifier">
      <path value="MedicationRequest.identifier" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.identifier.id">
      <path value="MedicationRequest.identifier.id" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.identifier.extension">
      <path value="MedicationRequest.identifier.extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.identifier.use">
      <path value="MedicationRequest.identifier.use" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.identifier.type">
      <path value="MedicationRequest.identifier.type" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.identifier.system">
      <path value="MedicationRequest.identifier.system" />
      <min value="1" />
      <fixedUri value="https://fhir.synapxe.sg/NamingSystem/order-id" />
    </element>
    <element id="MedicationRequest.identifier.value">
      <path value="MedicationRequest.identifier.value" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.identifier.period">
      <path value="MedicationRequest.identifier.period" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.identifier.assigner">
      <path value="MedicationRequest.identifier.assigner" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.basedOn">
      <path value="MedicationRequest.basedOn" />
      <max value="0" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.synapxe.sg/StructureDefinition/profile-encounter" />
      </type>
    </element>
    <element id="MedicationRequest.basedOn.id">
      <path value="MedicationRequest.basedOn.id" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.basedOn.extension">
      <path value="MedicationRequest.basedOn.extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.basedOn.reference">
      <path value="MedicationRequest.basedOn.reference" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.basedOn.type">
      <path value="MedicationRequest.basedOn.type" />
      <min value="1" />
      <fixedUri value="Encounter" />
    </element>
    <element id="MedicationRequest.basedOn.identifier">
      <path value="MedicationRequest.basedOn.identifier" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.basedOn.identifier.id">
      <path value="MedicationRequest.basedOn.identifier.id" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.basedOn.identifier.extension">
      <path value="MedicationRequest.basedOn.identifier.extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.basedOn.identifier.use">
      <path value="MedicationRequest.basedOn.identifier.use" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.basedOn.identifier.type">
      <path value="MedicationRequest.basedOn.identifier.type" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.basedOn.identifier.system">
      <path value="MedicationRequest.basedOn.identifier.system" />
      <min value="1" />
      <fixedUri value="https://fhir.synapxe.sg/NamingSystem/record-id" />
    </element>
    <element id="MedicationRequest.basedOn.identifier.value">
      <path value="MedicationRequest.basedOn.identifier.value" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.basedOn.identifier.period">
      <path value="MedicationRequest.basedOn.identifier.period" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.basedOn.identifier.assigner">
      <path value="MedicationRequest.basedOn.identifier.assigner" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.basedOn.display">
      <path value="MedicationRequest.basedOn.display" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.priorPrescription">
      <path value="MedicationRequest.priorPrescription" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.groupIdentifier">
      <path value="MedicationRequest.groupIdentifier" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.groupIdentifier.system">
      <path value="MedicationRequest.groupIdentifier.system" />
      <fixedUri value="https://fhir.synapxe.sg/NamingSystem/group-no" />
    </element>
    <element id="MedicationRequest.status">
      <path value="MedicationRequest.status" />
      <patternCode value="completed" />
      <binding>
        <strength value="required" />
        <valueSet value="https://fhir.synapxe.sg/ValueSet/medicationrequest-status" />
      </binding>
    </element>
    <element id="MedicationRequest.statusReason">
      <path value="MedicationRequest.statusReason" />
      <short value="Reason for cancellation, if it is cancelled" />
      <max value="0" />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept" />
      </type>
    </element>
    <element id="MedicationRequest.statusReason.extension">
      <path value="MedicationRequest.statusReason.extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.statusReason.coding.system">
      <path value="MedicationRequest.statusReason.coding.system" />
      <fixedUri value="https://fhir.synapxe.sg/CodeSystem/status-reason" />
    </element>
    <element id="MedicationRequest.statusChanged">
      <path value="MedicationRequest.statusChanged" />
      <short value="if status is Discontinued, this is the discontinued date time" />
      <definition value="if status is Discontinued, this is the discontinued date time" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.intent">
      <path value="MedicationRequest.intent" />
      <patternCode value="order" />
    </element>
    <element id="MedicationRequest.category">
      <path value="MedicationRequest.category" />
      <short value="The specific clinical setting when this medication is ordered" />
      <definition value="The specific clinical setting when this medication is ordered" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="https://fhir.synapxe.sg/ValueSet/order-type" />
      </binding>
    </element>
    <element id="MedicationRequest.category.extension">
      <path value="MedicationRequest.category.extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.category.coding.system">
      <path value="MedicationRequest.category.coding.system" />
      <fixedUri value="https://fhir.synapxe.sg/CodeSystem/order-type" />
    </element>
    <element id="MedicationRequest.category.coding.version">
      <path value="MedicationRequest.category.coding.version" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.priority">
      <path value="MedicationRequest.priority" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.doNotPerform">
      <path value="MedicationRequest.doNotPerform" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.medication">
      <path value="MedicationRequest.medication" />
      <type>
        <code value="CodeableReference" />
        <targetProfile value="https://fhir.synapxe.sg/StructureDefinition/profile-medication" />
        <aggregation value="contained" />
      </type>
    </element>
    <element id="MedicationRequest.medication.id">
      <path value="MedicationRequest.medication.id" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.medication.extension">
      <path value="MedicationRequest.medication.extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.medication.concept">
      <path value="MedicationRequest.medication.concept" />
      <max value="0" />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept" />
      </type>
    </element>
    <element id="MedicationRequest.medication.concept.extension">
      <path value="MedicationRequest.medication.concept.extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.medication.concept.coding.system">
      <path value="MedicationRequest.medication.concept.coding.system" />
      <fixedUri value="https://fhir.synapxe.sg/CodeSystem/med-code" />
    </element>
    <element id="MedicationRequest.medication.concept.coding.version">
      <path value="MedicationRequest.medication.concept.coding.version" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.medication.reference">
      <path value="MedicationRequest.medication.reference" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.synapxe.sg/StructureDefinition/profile-medication" />
        <aggregation value="contained" />
      </type>
    </element>
    <element id="MedicationRequest.medication.reference.id">
      <path value="MedicationRequest.medication.reference.id" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.medication.reference.extension">
      <path value="MedicationRequest.medication.reference.extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.medication.reference.type">
      <path value="MedicationRequest.medication.reference.type" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.medication.reference.identifier.id">
      <path value="MedicationRequest.medication.reference.identifier.id" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.medication.reference.identifier.extension">
      <path value="MedicationRequest.medication.reference.identifier.extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.medication.reference.identifier.use">
      <path value="MedicationRequest.medication.reference.identifier.use" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.medication.reference.identifier.type">
      <path value="MedicationRequest.medication.reference.identifier.type" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.medication.reference.identifier.system">
      <path value="MedicationRequest.medication.reference.identifier.system" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.medication.reference.identifier.value">
      <path value="MedicationRequest.medication.reference.identifier.value" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.medication.reference.identifier.period">
      <path value="MedicationRequest.medication.reference.identifier.period" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.medication.reference.identifier.assigner">
      <path value="MedicationRequest.medication.reference.identifier.assigner" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.subject">
      <path value="MedicationRequest.subject" />
      <type>
        <code value="Reference" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-reference-patient" />
        <targetProfile value="https://fhir.synapxe.sg/StructureDefinition/profile-patient" />
      </type>
    </element>
    <element id="MedicationRequest.subject.display">
      <path value="MedicationRequest.subject.display" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.informationSource">
      <path value="MedicationRequest.informationSource" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.encounter">
      <path value="MedicationRequest.encounter" />
      <type>
        <code value="Reference" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-reference-encounter" />
        <targetProfile value="https://fhir.synapxe.sg/StructureDefinition/profile-encounter" />
      </type>
    </element>
    <element id="MedicationRequest.supportingInformation">
      <path value="MedicationRequest.supportingInformation" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.authoredOn">
      <path value="MedicationRequest.authoredOn" />
      <short value="medication order date time" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.requester">
      <path value="MedicationRequest.requester" />
      <max value="0" />
      <type>
        <code value="Reference" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-reference-practitioner" />
        <targetProfile value="https://fhir.synapxe.sg/StructureDefinition/profile-practitioner" />
      </type>
    </element>
    <element id="MedicationRequest.requester.identifier.system">
      <path value="MedicationRequest.requester.identifier.system" />
      <definition value="https://fhir.synapxe.sg/NamingSystem/mcr&#xD;&#xA;https://fhir.synapxe.sg/NamingSystem/dcr&#xD;&#xA;https://fhir.synapxe.sg/NamingSystem/prn&#xD;&#xA;https://fhir.synapxe.sg/NamingSystem/snb" />
      <valueAlternatives value="https://fhir.synapxe.sg/NamingSystem/mcr" />
      <valueAlternatives value="https://fhir.synapxe.sg/NamingSystem/snb" />
      <valueAlternatives value="https://fhir.synapxe.sg/NamingSystem/prn" />
      <valueAlternatives value="https://fhir.synapxe.sg/NamingSystem/dcr" />
    </element>
    <element id="MedicationRequest.requester.display">
      <path value="MedicationRequest.requester.display" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.reported">
      <path value="MedicationRequest.reported" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.performerType">
      <path value="MedicationRequest.performerType" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.performer">
      <path value="MedicationRequest.performer" />
      <max value="0" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.synapxe.sg/StructureDefinition/profile-practitioner" />
      </type>
    </element>
    <element id="MedicationRequest.performer.id">
      <path value="MedicationRequest.performer.id" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.performer.extension">
      <path value="MedicationRequest.performer.extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.performer.reference">
      <path value="MedicationRequest.performer.reference" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.performer.type">
      <path value="MedicationRequest.performer.type" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.performer.identifier">
      <path value="MedicationRequest.performer.identifier" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.performer.identifier.id">
      <path value="MedicationRequest.performer.identifier.id" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.performer.identifier.extension">
      <path value="MedicationRequest.performer.identifier.extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.performer.identifier.use">
      <path value="MedicationRequest.performer.identifier.use" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.performer.identifier.type">
      <path value="MedicationRequest.performer.identifier.type" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.performer.identifier.system">
      <path value="MedicationRequest.performer.identifier.system" />
      <min value="1" />
      <example>
        <label value="Medical Council Registration" />
        <valueUri value="https://fhir.synapxe.sg/NamingSystem/mcr" />
      </example>
      <example>
        <label value="Dental Council Registration" />
        <valueUri value="https://fhir.synapxe.sg/NamingSystem/dcr" />
      </example>
    </element>
    <element id="MedicationRequest.performer.identifier.value">
      <path value="MedicationRequest.performer.identifier.value" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.performer.identifier.period">
      <path value="MedicationRequest.performer.identifier.period" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.performer.identifier.assigner">
      <path value="MedicationRequest.performer.identifier.assigner" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.performer.display">
      <path value="MedicationRequest.performer.display" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.device">
      <path value="MedicationRequest.device" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.recorder">
      <path value="MedicationRequest.recorder" />
      <short value="The healthcare professional responsible for prescribing this medication order" />
      <definition value="The healthcare professional responsible for prescribing this medication order" />
      <max value="0" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.synapxe.sg/StructureDefinition/profile-practitioner" />
      </type>
    </element>
    <element id="MedicationRequest.recorder.id">
      <path value="MedicationRequest.recorder.id" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.recorder.extension">
      <path value="MedicationRequest.recorder.extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.recorder.reference">
      <path value="MedicationRequest.recorder.reference" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.recorder.type">
      <path value="MedicationRequest.recorder.type" />
      <fixedUri value="Practitioner" />
    </element>
    <element id="MedicationRequest.recorder.identifier">
      <path value="MedicationRequest.recorder.identifier" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.recorder.identifier.id">
      <path value="MedicationRequest.recorder.identifier.id" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.recorder.identifier.extension">
      <path value="MedicationRequest.recorder.identifier.extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.recorder.identifier.use">
      <path value="MedicationRequest.recorder.identifier.use" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.recorder.identifier.type">
      <path value="MedicationRequest.recorder.identifier.type" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.recorder.identifier.system">
      <path value="MedicationRequest.recorder.identifier.system" />
      <min value="1" />
      <example>
        <label value="Medical Council Registration" />
        <valueUri value="https://fhir.synapxe.sg/NamingSystem/mcr" />
      </example>
      <example>
        <label value="Pharmacist Registration Number" />
        <valueUri value="https://fhir.synapxe.sg/NamingSystem/prn" />
      </example>
      <example>
        <label value="Dental Council Registration" />
        <valueUri value="https://fhir.synapxe.sg/NamingSystem/dcr" />
      </example>
      <example>
        <label value="Singapore Nursing Board" />
        <valueUri value="https://fhir.synapxe.sg/NamingSystem/snb" />
      </example>
    </element>
    <element id="MedicationRequest.recorder.identifier.value">
      <path value="MedicationRequest.recorder.identifier.value" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.recorder.identifier.period">
      <path value="MedicationRequest.recorder.identifier.period" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.recorder.identifier.assigner">
      <path value="MedicationRequest.recorder.identifier.assigner" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.recorder.display">
      <path value="MedicationRequest.recorder.display" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.reason">
      <path value="MedicationRequest.reason" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.reason.id">
      <path value="MedicationRequest.reason.id" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.reason.extension">
      <path value="MedicationRequest.reason.extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.reason.concept">
      <path value="MedicationRequest.reason.concept" />
      <min value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="https://fhir.synapxe.sg/ValueSet/reason-for-medication" />
      </binding>
    </element>
    <element id="MedicationRequest.reason.concept.extension">
      <path value="MedicationRequest.reason.concept.extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.reason.concept.coding.system">
      <path value="MedicationRequest.reason.concept.coding.system" />
      <fixedUri value="https://fhir.synapxe.sg/CodeSystem/reason-for-medication" />
    </element>
    <element id="MedicationRequest.reason.concept.coding.version">
      <path value="MedicationRequest.reason.concept.coding.version" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.courseOfTherapyType">
      <path value="MedicationRequest.courseOfTherapyType" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.insurance">
      <path value="MedicationRequest.insurance" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.note">
      <path value="MedicationRequest.note" />
      <max value="0" />
      <type>
        <code value="Annotation" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-annotation" />
      </type>
    </element>
    <element id="MedicationRequest.renderedDosageInstruction">
      <path value="MedicationRequest.renderedDosageInstruction" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.effectiveDosePeriod.id">
      <path value="MedicationRequest.effectiveDosePeriod.id" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.effectiveDosePeriod.extension">
      <path value="MedicationRequest.effectiveDosePeriod.extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.effectiveDosePeriod.start">
      <path value="MedicationRequest.effectiveDosePeriod.start" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.effectiveDosePeriod.end">
      <path value="MedicationRequest.effectiveDosePeriod.end" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dosageInstruction">
      <path value="MedicationRequest.dosageInstruction" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.id">
      <path value="MedicationRequest.dosageInstruction.id" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.extension">
      <path value="MedicationRequest.dosageInstruction.extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.modifierExtension">
      <path value="MedicationRequest.dosageInstruction.modifierExtension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.sequence">
      <path value="MedicationRequest.dosageInstruction.sequence" />
      <short value="The sequence number of the dosage instructions for step or variable dose" />
      <definition value="The sequence number of the dosage instructions for step or variable dose" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dosageInstruction.additionalInstruction">
      <path value="MedicationRequest.dosageInstruction.additionalInstruction" />
      <max value="1" />
    </element>
    <element id="MedicationRequest.dosageInstruction.additionalInstruction.id">
      <path value="MedicationRequest.dosageInstruction.additionalInstruction.id" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.additionalInstruction.extension">
      <path value="MedicationRequest.dosageInstruction.additionalInstruction.extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.additionalInstruction.coding">
      <path value="MedicationRequest.dosageInstruction.additionalInstruction.coding" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.additionalInstruction.text">
      <path value="MedicationRequest.dosageInstruction.additionalInstruction.text" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dosageInstruction.patientInstruction">
      <path value="MedicationRequest.dosageInstruction.patientInstruction" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing">
      <path value="MedicationRequest.dosageInstruction.timing" />
      <definition value="When medication should be administered. Frequency code, duration and durationUnits. Refer to https://hl7.org/fhir/datatypes.html#timing on how to populate timing. For example duration code &quot;1 week&quot; and frquency code &quot;every morning&quot; will map to period &quot;1&quot;, periodUnit &quot;week&quot; and when &quot;MORN&quot;" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.id">
      <path value="MedicationRequest.dosageInstruction.timing.id" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.extension">
      <path value="MedicationRequest.dosageInstruction.timing.extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.modifierExtension">
      <path value="MedicationRequest.dosageInstruction.timing.modifierExtension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.event">
      <path value="MedicationRequest.dosageInstruction.timing.event" />
      <max value="1" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.id">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.id" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.extension">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.bounds[x]">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.bounds[x]" />
      <type>
        <code value="Range" />
      </type>
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].id">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].id" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].extension">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].low">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].low" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].low.id">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].low.id" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].low.extension">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].low.extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].low.value">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].low.value" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].low.unit">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].low.unit" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].low.system">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].low.system" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].low.code">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].low.code" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].high">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].high" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].high.id">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].high.id" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].high.extension">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].high.extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].high.value">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].high.value" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].high.unit">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].high.unit" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].high.system">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].high.system" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].high.code">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.bounds[x].high.code" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.dayOfWeek">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.dayOfWeek" />
      <max value="1" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.timeOfDay">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.timeOfDay" />
      <max value="1" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.when">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.when" />
      <max value="1" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.code">
      <path value="MedicationRequest.dosageInstruction.timing.code" />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept" />
      </type>
    </element>
    <element id="MedicationRequest.dosageInstruction.asNeeded">
      <path value="MedicationRequest.dosageInstruction.asNeeded" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.asNeededFor">
      <path value="MedicationRequest.dosageInstruction.asNeededFor" />
      <short value="Frequency qualifier. Take &quot;as needed&quot; (for x)" />
      <definition value="A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text." />
      <comment value="Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination." />
      <max value="1" />
    </element>
    <element id="MedicationRequest.dosageInstruction.asNeededFor.extension">
      <path value="MedicationRequest.dosageInstruction.asNeededFor.extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.asNeededFor.coding">
      <path value="MedicationRequest.dosageInstruction.asNeededFor.coding" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.asNeededFor.text">
      <path value="MedicationRequest.dosageInstruction.asNeededFor.text" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dosageInstruction.site">
      <path value="MedicationRequest.dosageInstruction.site" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.route">
      <path value="MedicationRequest.dosageInstruction.route" />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept" />
      </type>
    </element>
    <element id="MedicationRequest.dosageInstruction.route.extension">
      <path value="MedicationRequest.dosageInstruction.route.extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.route.coding.version">
      <path value="MedicationRequest.dosageInstruction.route.coding.version" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.method">
      <path value="MedicationRequest.dosageInstruction.method" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.doseAndRate.id">
      <path value="MedicationRequest.dosageInstruction.doseAndRate.id" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.doseAndRate.extension">
      <path value="MedicationRequest.dosageInstruction.doseAndRate.extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.doseAndRate.type">
      <path value="MedicationRequest.dosageInstruction.doseAndRate.type" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.doseAndRate.dose[x]">
      <path value="MedicationRequest.dosageInstruction.doseAndRate.dose[x]" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dosageInstruction.maxDosePerPeriod">
      <path value="MedicationRequest.dosageInstruction.maxDosePerPeriod" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.maxDosePerAdministration">
      <path value="MedicationRequest.dosageInstruction.maxDosePerAdministration" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.maxDosePerLifetime">
      <path value="MedicationRequest.dosageInstruction.maxDosePerLifetime" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest">
      <path value="MedicationRequest.dispenseRequest" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.id">
      <path value="MedicationRequest.dispenseRequest.id" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.extension">
      <path value="MedicationRequest.dispenseRequest.extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.modifierExtension">
      <path value="MedicationRequest.dispenseRequest.modifierExtension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.initialFill">
      <path value="MedicationRequest.dispenseRequest.initialFill" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.dispenseInterval">
      <path value="MedicationRequest.dispenseRequest.dispenseInterval" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.validityPeriod">
      <path value="MedicationRequest.dispenseRequest.validityPeriod" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.numberOfRepeatsAllowed">
      <path value="MedicationRequest.dispenseRequest.numberOfRepeatsAllowed" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.quantity">
      <path value="MedicationRequest.dispenseRequest.quantity" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dispenseRequest.quantity.id">
      <path value="MedicationRequest.dispenseRequest.quantity.id" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.quantity.extension">
      <path value="MedicationRequest.dispenseRequest.quantity.extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.quantity.value">
      <path value="MedicationRequest.dispenseRequest.quantity.value" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dispenseRequest.quantity.unit">
      <path value="MedicationRequest.dispenseRequest.quantity.unit" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dispenseRequest.quantity.system">
      <path value="MedicationRequest.dispenseRequest.quantity.system" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dispenseRequest.quantity.code">
      <path value="MedicationRequest.dispenseRequest.quantity.code" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dispenseRequest.expectedSupplyDuration">
      <path value="MedicationRequest.dispenseRequest.expectedSupplyDuration" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.expectedSupplyDuration.id">
      <path value="MedicationRequest.dispenseRequest.expectedSupplyDuration.id" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.expectedSupplyDuration.extension">
      <path value="MedicationRequest.dispenseRequest.expectedSupplyDuration.extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.expectedSupplyDuration.value">
      <path value="MedicationRequest.dispenseRequest.expectedSupplyDuration.value" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dispenseRequest.expectedSupplyDuration.comparator">
      <path value="MedicationRequest.dispenseRequest.expectedSupplyDuration.comparator" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.expectedSupplyDuration.unit">
      <path value="MedicationRequest.dispenseRequest.expectedSupplyDuration.unit" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dispenseRequest.expectedSupplyDuration.system">
      <path value="MedicationRequest.dispenseRequest.expectedSupplyDuration.system" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dispenseRequest.expectedSupplyDuration.code">
      <path value="MedicationRequest.dispenseRequest.expectedSupplyDuration.code" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dispenseRequest.dispenser">
      <path value="MedicationRequest.dispenseRequest.dispenser" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.synapxe.sg/StructureDefinition/profile-location" />
      </type>
    </element>
    <element id="MedicationRequest.dispenseRequest.dispenser.id">
      <path value="MedicationRequest.dispenseRequest.dispenser.id" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.dispenser.extension">
      <path value="MedicationRequest.dispenseRequest.dispenser.extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.dispenser.reference">
      <path value="MedicationRequest.dispenseRequest.dispenser.reference" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.dispenser.type">
      <path value="MedicationRequest.dispenseRequest.dispenser.type" />
      <min value="1" />
      <fixedUri value="Location" />
    </element>
    <element id="MedicationRequest.dispenseRequest.dispenser.identifier">
      <path value="MedicationRequest.dispenseRequest.dispenser.identifier" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dispenseRequest.dispenser.identifier.id">
      <path value="MedicationRequest.dispenseRequest.dispenser.identifier.id" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.dispenser.identifier.extension">
      <path value="MedicationRequest.dispenseRequest.dispenser.identifier.extension" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.dispenser.identifier.use">
      <path value="MedicationRequest.dispenseRequest.dispenser.identifier.use" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.dispenser.identifier.type">
      <path value="MedicationRequest.dispenseRequest.dispenser.identifier.type" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.dispenser.identifier.system">
      <path value="MedicationRequest.dispenseRequest.dispenser.identifier.system" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dispenseRequest.dispenser.identifier.value">
      <path value="MedicationRequest.dispenseRequest.dispenser.identifier.value" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dispenseRequest.dispenser.identifier.period">
      <path value="MedicationRequest.dispenseRequest.dispenser.identifier.period" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.dispenser.identifier.assigner">
      <path value="MedicationRequest.dispenseRequest.dispenser.identifier.assigner" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.dispenser.display">
      <path value="MedicationRequest.dispenseRequest.dispenser.display" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dispenseRequest.dispenserInstruction">
      <path value="MedicationRequest.dispenseRequest.dispenserInstruction" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.doseAdministrationAid">
      <path value="MedicationRequest.dispenseRequest.doseAdministrationAid" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.substitution">
      <path value="MedicationRequest.substitution" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.eventHistory">
      <path value="MedicationRequest.eventHistory" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>