{
  "resourceType": "StructureDefinition",
  "id": "mp-ReplyProposalMedicationAgreement-Bundle",
  "url": "http://nictiz.nl/fhir/StructureDefinition/mp-ReplyProposalMedicationAgreement-Bundle",
  "version": "2.0.0-rc.7",
  "name": "MpReplyProposalMedicationAgreementBundle",
  "title": "mp ReplyProposalMedicationAgreement Bundle",
  "status": "active",
  "publisher": "Nictiz",
  "contact": [
    {
      "name": "Nictiz",
      "telecom": [
        {
          "system": "url",
          "value": "https://www.nictiz.nl",
          "use": "work"
        }
      ]
    }
  ],
  "description": "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": "To define the body of the Send ReplyProposalMedicationAgreement transaction.",
  "copyright": "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": "4.0.1",
  "mapping": [
    {
      "identity": "mp-dataset-mp9-300-rc1-20250522",
      "uri": "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": "ART-DECOR Dataset MP9 3.0.0-rc.1 20250522"
    },
    {
      "identity": "mp-dataset-mp9-300-rc2-20260213",
      "uri": "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": "ART-DECOR Dataset MP9 3.0.0-rc.2 20260213"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Bundle",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Bundle.type",
        "path": "Bundle.type",
        "fixedCode": "transaction"
      },
      {
        "id": "Bundle.identifier",
        "path": "Bundle.identifier",
        "short": "ReplyIdentification",
        "definition": "The identification of the reply transaction. This identification is generated by the system of the sender and is globally unique and eternally persistent.",
        "comment": "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": 0,
        "max": "1"
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resource"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Bundle.entry:replyProposalMedicationAgreement",
        "path": "Bundle.entry",
        "sliceName": "replyProposalMedicationAgreement",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:replyProposalMedicationAgreement.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Resource",
            "profile": [
              "http://nictiz.nl/fhir/StructureDefinition/mp-ReplyProposalMedicationAgreement"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:patient",
        "path": "Bundle.entry",
        "sliceName": "patient",
        "max": "1"
      },
      {
        "id": "Bundle.entry:patient.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Resource",
            "profile": [
              "http://nictiz.nl/fhir/StructureDefinition/nl-core-Patient"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "mp-dataset-mp9-300-rc1-20250522",
            "map": "mp-dataelement9x-1",
            "comment": "Patient"
          },
          {
            "identity": "mp-dataset-mp9-300-rc2-20260213",
            "map": "mp-dataelement9x-1",
            "comment": "Patient"
          }
        ]
      },
      {
        "id": "Bundle.entry:healthProfessional-PractitionerRole",
        "path": "Bundle.entry",
        "sliceName": "healthProfessional-PractitionerRole"
      },
      {
        "id": "Bundle.entry:healthProfessional-PractitionerRole.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Resource",
            "profile": [
              "http://nictiz.nl/fhir/StructureDefinition/nl-core-HealthProfessional-PractitionerRole"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:healthProfessional-Practitioner",
        "path": "Bundle.entry",
        "sliceName": "healthProfessional-Practitioner"
      },
      {
        "id": "Bundle.entry:healthProfessional-Practitioner.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Resource",
            "profile": [
              "http://nictiz.nl/fhir/StructureDefinition/nl-core-HealthProfessional-Practitioner"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:healthcareProvider",
        "path": "Bundle.entry",
        "sliceName": "healthcareProvider"
      },
      {
        "id": "Bundle.entry:healthcareProvider.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Resource",
            "profile": [
              "http://nictiz.nl/fhir/StructureDefinition/nl-core-HealthcareProvider"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:healthcareProvider-Organization",
        "path": "Bundle.entry",
        "sliceName": "healthcareProvider-Organization"
      },
      {
        "id": "Bundle.entry:healthcareProvider-Organization.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Resource",
            "profile": [
              "http://nictiz.nl/fhir/StructureDefinition/nl-core-HealthcareProvider-Organization"
            ]
          }
        ]
      }
    ]
  }
}