<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="cio-ProposalContraIndication-Bundle" />
  <url value="http://nictiz.nl/fhir/StructureDefinition/cio-ProposalContraIndication-Bundle" />
  <version value="1.0.0-beta.5" />
  <name value="CioProposalContraIndicationBundle" />
  <title value="cio ProposalContraIndication Bundle" />
  <status value="draft" />
  <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 ProposalContraIndication transaction conform information standard [CiO](https://informatiestandaarden.nictiz.nl/wiki/Landingspagina_Contra-indicaties_en_Overgevoeligheden)." />
  <purpose value="To define the body of the Send ProposalContraIndication 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="cio-dataset-200-beta3-20241023" />
    <uri value="https://decor.nictiz.nl/pub/cio/cio-html-20241023T071643/ds-2.16.840.1.113883.2.4.3.11.60.26.1.2-2020-04-02T000000.html" />
    <name value="ART-DECOR Dataset Contraindications and hypersensitivities 2.0.0-beta.3 20241023" />
  </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.entry">
      <path value="Bundle.entry" />
      <slicing>
        <discriminator>
          <type value="profile" />
          <path value="resource" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="3" />
    </element>
    <element id="Bundle.entry:proposalContraIndication">
      <path value="Bundle.entry" />
      <sliceName value="proposalContraIndication" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Bundle.entry:proposalContraIndication.resource">
      <path value="Bundle.entry.resource" />
      <short value="ProposalContraIndication" />
      <definition value="Data of the proposal contraindication, i.e. a request from one health professional to another to register, retract, or modify a medication contraindication." />
      <alias value="VoorstelContraIndicatie" />
      <min value="1" />
      <type>
        <code value="Resource" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/cio-MedicationContraIndication" />
      </type>
      <mapping>
        <identity value="cio-dataset-200-beta3-20241023" />
        <map value="cio-dataelement-20-936" />
        <comment value="ProposalContraIndication" />
      </mapping>
    </element>
    <element id="Bundle.entry:proposalContraIndication.resource.meta">
      <path value="Bundle.entry.resource.meta" />
    </element>
    <element id="Bundle.entry:proposalContraIndication.resource.meta.tag">
      <path value="Bundle.entry.resource.meta.tag" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Bundle.entry:proposalContraIndication.resource.meta.tag:actionable">
      <path value="Bundle.entry.resource.meta.tag" />
      <sliceName value="actionable" />
      <min value="1" />
      <max value="1" />
      <patternCoding>
        <system value="http://terminology.hl7.org/CodeSystem/common-tags" />
        <code value="actionable" />
      </patternCoding>
    </element>
    <element id="Bundle.entry:proposalContraIndication.resource.extension:relationMedicationAgreement">
      <path value="Bundle.entry.resource.extension" />
      <sliceName value="relationMedicationAgreement" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/flag-detail" />
      </type>
    </element>
    <element id="Bundle.entry:proposalContraIndication.resource.extension:relationMedicationAgreement.value[x]">
      <path value="Bundle.entry.resource.extension.value[x]" />
      <short value="RelationMedicationAgreement" />
      <definition value="Relation to the medication agreement which served as the basis for initiating the proposal contraindication." />
      <alias value="RelatieMedicatieafspraak" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/mp-MedicationAgreement" />
      </type>
      <mapping>
        <identity value="cio-dataset-200-beta3-20241023" />
        <map value="cio-dataelement-20-938" />
        <comment value="RelationMedicationAgreement" />
      </mapping>
    </element>
    <element id="Bundle.entry:proposalContraIndication.resource.extension:proposalComment">
      <path value="Bundle.entry.resource.extension" />
      <sliceName value="proposalComment" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/ext-ProposalContraIndication.Comment" />
      </type>
    </element>
    <element id="Bundle.entry:proposalContraIndication.resource.extension:proposalComment.value[x]">
      <path value="Bundle.entry.resource.extension.value[x]" />
      <mapping>
        <identity value="cio-dataset-200-beta3-20241023" />
        <map value="cio-dataelement-20-940" />
        <comment value="Comment" />
      </mapping>
    </element>
    <element id="Bundle.entry:proposalContraIndication.resource.author">
      <path value="Bundle.entry.resource.author" />
      <definition value="Author of the proposal contraindication." />
      <min value="1" />
    </element>
    <element id="Bundle.entry:proposalRegistrationInformation">
      <path value="Bundle.entry" />
      <sliceName value="proposalRegistrationInformation" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Bundle.entry:proposalRegistrationInformation.resource">
      <path value="Bundle.entry.resource" />
      <definition value="Registration information of the proposal contraindication, which coincides with the registration information of the medication contraindication building block that is included in this proposal." />
      <min value="1" />
      <type>
        <code value="Resource" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/cio-RegistrationInformation" />
      </type>
    </element>
    <element id="Bundle.entry:proposalRegistrationInformation.resource.target">
      <path value="Bundle.entry.resource.target" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/cio-MedicationContraIndication" />
      </type>
    </element>
    <element id="Bundle.entry:proposalRegistrationInformation.resource.agent:author">
      <path value="Bundle.entry.resource.agent" />
      <sliceName value="author" />
      <min value="1" />
    </element>
    <element id="Bundle.entry:proposalRegistrationInformation.resource.agent:author.who">
      <path value="Bundle.entry.resource.agent.who" />
      <definition value="Author of the proposal contraindication." />
    </element>
    <element id="Bundle.entry:patient">
      <path value="Bundle.entry" />
      <sliceName value="patient" />
      <min value="1" />
      <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="cio-dataset-200-beta3-20241023" />
        <map value="cio-dataelement-20-302" />
        <comment value="Patient" />
      </mapping>
    </element>
    <element id="Bundle.entry:medicationAgreement">
      <path value="Bundle.entry" />
      <sliceName value="medicationAgreement" />
      <max value="1" />
    </element>
    <element id="Bundle.entry:medicationAgreement.resource">
      <path value="Bundle.entry.resource" />
      <definition value="The medication agreement which served as the basis for initiating the proposal contraindication." />
      <min value="1" />
      <type>
        <code value="Resource" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/mp-MedicationAgreement" />
      </type>
    </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>
      <mapping>
        <identity value="cio-dataset-200-beta3-20241023" />
        <map value="cio-dataelement-20-591" />
        <comment value="HealthProfessional" />
      </mapping>
    </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>
      <mapping>
        <identity value="cio-dataset-200-beta3-20241023" />
        <map value="cio-dataelement-20-591" />
        <comment value="HealthProfessional" />
      </mapping>
    </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>
      <mapping>
        <identity value="cio-dataset-200-beta3-20241023" />
        <map value="cio-dataelement-20-632" />
        <comment value="HealthcareProvider" />
      </mapping>
    </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>
      <mapping>
        <identity value="cio-dataset-200-beta3-20241023" />
        <map value="cio-dataelement-20-632" />
        <comment value="HealthcareProvider" />
      </mapping>
    </element>
    <element id="Bundle.entry:contactPerson">
      <path value="Bundle.entry" />
      <sliceName value="contactPerson" />
      <max value="1" />
    </element>
    <element id="Bundle.entry:contactPerson.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Resource" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/nl-core-ContactPerson" />
      </type>
      <mapping>
        <identity value="cio-dataset-200-beta3-20241023" />
        <map value="cio-dataelement-20-842" />
        <comment value="Contact" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>