<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="profile-bundle-medicationrequest" />
  <url value="https://fhir.synapxe.sg/StructureDefinition/profile-bundle-medicationrequest" />
  <name value="Bundle" />
  <title value="Medication Request Bundle Profile" />
  <status value="active" />
  <publisher value="Synapxe" />
  <description value="A Bundle of MedicationRequest resources will be used to store one or more medication orders or requests for both supply of the medication and the instructions for administration of the medication to a patient. The resource is represented as a Bundle containing multiple MedicationRequest resources." />
  <fhirVersion value="5.0.0" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Bundle" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Bundle" />
  <derivation value="constraint" />
  <differential>
    <element id="Bundle.meta">
      <path value="Bundle.meta" />
      <short value="Metadata about a resource" />
      <definition value="The metadata about a resource. This is content in the resource that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource." />
      <type>
        <code value="Meta" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-meta" />
      </type>
    </element>
    <element id="Bundle.identifier">
      <path value="Bundle.identifier" />
      <min value="1" />
    </element>
    <element id="Bundle.identifier.system">
      <path value="Bundle.identifier.system" />
      <patternUri value="https://fhir.synap" />
    </element>
    <element id="Bundle.type">
      <path value="Bundle.type" />
      <patternCode value="transaction" />
    </element>
    <element id="Bundle.timestamp">
      <path value="Bundle.timestamp" />
      <max value="0" />
    </element>
    <element id="Bundle.total">
      <path value="Bundle.total" />
      <max value="0" />
    </element>
    <element id="Bundle.link">
      <path value="Bundle.link" />
      <max value="0" />
    </element>
    <element id="Bundle.entry">
      <path value="Bundle.entry" />
      <min value="1" />
    </element>
    <element id="Bundle.entry.id">
      <path value="Bundle.entry.id" />
      <max value="0" />
    </element>
    <element id="Bundle.entry.extension">
      <path value="Bundle.entry.extension" />
      <max value="0" />
    </element>
    <element id="Bundle.entry.modifierExtension">
      <path value="Bundle.entry.modifierExtension" />
      <max value="0" />
    </element>
    <element id="Bundle.entry.link">
      <path value="Bundle.entry.link" />
      <max value="0" />
    </element>
    <element id="Bundle.entry.fullUrl">
      <path value="Bundle.entry.fullUrl" />
      <min value="1" />
    </element>
    <element id="Bundle.entry.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Resource" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-medicationrequest" />
      </type>
    </element>
    <element id="Bundle.entry.search">
      <path value="Bundle.entry.search" />
      <max value="0" />
    </element>
    <element id="Bundle.entry.request">
      <path value="Bundle.entry.request" />
      <min value="1" />
    </element>
    <element id="Bundle.entry.request.id">
      <path value="Bundle.entry.request.id" />
      <max value="0" />
    </element>
    <element id="Bundle.entry.request.extension">
      <path value="Bundle.entry.request.extension" />
      <max value="0" />
    </element>
    <element id="Bundle.entry.request.modifierExtension">
      <path value="Bundle.entry.request.modifierExtension" />
      <max value="0" />
    </element>
    <element id="Bundle.entry.response">
      <path value="Bundle.entry.response" />
      <max value="0" />
    </element>
    <element id="Bundle.signature">
      <path value="Bundle.signature" />
      <max value="0" />
    </element>
    <element id="Bundle.issues">
      <path value="Bundle.issues" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>