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