<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="mp-ReplyProposalMedicationAgreement-Bundle" />
  <url value="http://nictiz.nl/fhir/StructureDefinition/mp-ReplyProposalMedicationAgreement-Bundle" />
  <version value="2.0.0-rc.7" />
  <name value="MpReplyProposalMedicationAgreementBundle" />
  <title value="mp ReplyProposalMedicationAgreement Bundle" />
  <status value="active" />
  <publisher value="Nictiz" />
  <contact>
    <name value="Nictiz" />
    <telecom>
      <system value="url" />
      <value value="https://www.nictiz.nl" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="Profile on the Bundle resource which represents the structure of the Send ReplyProposalMedicationAgreement transaction conform information standard ['Medication Process'](https://informatiestandaarden.nictiz.nl/wiki/Landingspagina_Medicatieproces)." />
  <purpose value="To define the body of the Send ReplyProposalMedicationAgreement transaction." />
  <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="mp-dataset-mp9-300-rc1-20250522" />
    <uri value="https://decor.nictiz.nl/pub/medicatieproces/mp-html-20250522T132618/ds-2.16.840.1.113883.2.4.3.11.60.20.77.1.4-2022-06-30T000000.html" />
    <name value="ART-DECOR Dataset MP9 3.0.0-rc.1 20250522" />
  </mapping>
  <mapping>
    <identity value="mp-dataset-mp9-300-rc2-20260213" />
    <uri value="https://decor.nictiz.nl/pub/medicatieproces/mp-html-20260213T112547/ds-2.16.840.1.113883.2.4.3.11.60.20.77.1.4-2022-06-30T000000.html" />
    <name value="ART-DECOR Dataset MP9 3.0.0-rc.2 20260213" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Bundle" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Bundle" />
  <derivation value="constraint" />
  <differential>
    <element id="Bundle.type">
      <path value="Bundle.type" />
      <fixedCode value="transaction" />
    </element>
    <element id="Bundle.identifier">
      <path value="Bundle.identifier" />
      <short value="ReplyIdentification" />
      <definition value="The identification of the reply transaction. This identification is generated by the system of the sender and is globally unique and eternally persistent." />
      <comment value="Leading identifier for the reply transaction. For backwards compatibility, systems MAY also populate a reply identifier on the contained reply resource (e.g. Communication.identifier) if such a mapping existed historically, but implementers SHOULD prefer Bundle.identifier." />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Bundle.entry">
      <path value="Bundle.entry" />
      <slicing>
        <discriminator>
          <type value="profile" />
          <path value="resource" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Bundle.entry:replyProposalMedicationAgreement">
      <path value="Bundle.entry" />
      <sliceName value="replyProposalMedicationAgreement" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Bundle.entry:replyProposalMedicationAgreement.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Resource" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/mp-ReplyProposalMedicationAgreement" />
      </type>
    </element>
    <element id="Bundle.entry:patient">
      <path value="Bundle.entry" />
      <sliceName value="patient" />
      <max value="1" />
    </element>
    <element id="Bundle.entry:patient.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Resource" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/nl-core-Patient" />
      </type>
      <mapping>
        <identity value="mp-dataset-mp9-300-rc1-20250522" />
        <map value="mp-dataelement9x-1" />
        <comment value="Patient" />
      </mapping>
      <mapping>
        <identity value="mp-dataset-mp9-300-rc2-20260213" />
        <map value="mp-dataelement9x-1" />
        <comment value="Patient" />
      </mapping>
    </element>
    <element id="Bundle.entry:healthProfessional-PractitionerRole">
      <path value="Bundle.entry" />
      <sliceName value="healthProfessional-PractitionerRole" />
    </element>
    <element id="Bundle.entry:healthProfessional-PractitionerRole.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Resource" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/nl-core-HealthProfessional-PractitionerRole" />
      </type>
    </element>
    <element id="Bundle.entry:healthProfessional-Practitioner">
      <path value="Bundle.entry" />
      <sliceName value="healthProfessional-Practitioner" />
    </element>
    <element id="Bundle.entry:healthProfessional-Practitioner.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Resource" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/nl-core-HealthProfessional-Practitioner" />
      </type>
    </element>
    <element id="Bundle.entry:healthcareProvider">
      <path value="Bundle.entry" />
      <sliceName value="healthcareProvider" />
    </element>
    <element id="Bundle.entry:healthcareProvider.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Resource" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/nl-core-HealthcareProvider" />
      </type>
    </element>
    <element id="Bundle.entry:healthcareProvider-Organization">
      <path value="Bundle.entry" />
      <sliceName value="healthcareProvider-Organization" />
    </element>
    <element id="Bundle.entry:healthcareProvider-Organization.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Resource" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/nl-core-HealthcareProvider-Organization" />
      </type>
    </element>
  </differential>
</StructureDefinition>