PackagesCanonicalsLogsProblems
    Packages
    rs/nictiz.fhir.nl.r4.medicationprocess9@1.0.0
    http://nictiz.nl/fhir/StructureDefinition/mp-MedicationPrescriptionProcessing-Bundle
description: Profile on the Bundle resource which represents the structure of the Send MedicationPrescriptionProcessing transaction conform information standard ['Medication Process'](https://informatiestandaarden.nictiz.nl/wiki/Landingspagina_Medicatieproces).
package_name: rs/nictiz.fhir.nl.r4.medicationprocess9
derivation: constraint
name: MpMedicationPrescriptionProcessingBundle
type: Bundle
elements:
  type:
    pattern: {type: code, value: transaction}
    type: code
    index: 0
  entry:
    index: 1
    slicing:
      rules: open
      discriminator:
      - {path: resource, type: profile}
      min: 1
      slices:
        administrationAgreement:
          match: {}
          schema:
            _required: true
            index: 2
            elements:
              resource:
                type: Resource
                index: 3
                elements:
                  meta:
                    index: 4
                    elements:
                      tag:
                        index: 5
                        slicing:
                          rules: open
                          discriminator:
                          - {path: $this, type: pattern}
                          min: 1
                          slices:
                            actionable:
                              match: {code: actionable, system: 'http://terminology.hl7.org/CodeSystem/common-tags'}
                              schema:
                                pattern:
                                  type: Coding
                                  value: {code: actionable, system: 'http://terminology.hl7.org/CodeSystem/common-tags'}
                                _required: true
                                type: Coding
                                index: 6
                              min: 1
                              max: 1
                    required: [tag]
            required: [resource]
        medicationDispense:
          match: {}
          schema:
            index: 7
            elements:
              resource:
                type: Resource
                index: 8
                elements:
                  meta:
                    index: 9
                    elements:
                      tag:
                        index: 10
                        slicing:
                          rules: open
                          discriminator:
                          - {path: $this, type: pattern}
                          min: 1
                          slices:
                            actionable:
                              match: {code: actionable, system: 'http://terminology.hl7.org/CodeSystem/common-tags'}
                              schema:
                                pattern:
                                  type: Coding
                                  value: {code: actionable, system: 'http://terminology.hl7.org/CodeSystem/common-tags'}
                                _required: true
                                type: Coding
                                index: 11
                              min: 1
                              max: 1
                    required: [tag]
            required: [resource]
        patient:
          match: {}
          schema:
            index: 12
            elements:
              resource: {type: Resource, index: 13}
            required: [resource]
        pharmaceuticalProduct:
          match: {}
          schema:
            index: 14
            elements:
              resource: {type: Resource, index: 15}
            required: [resource]
package_version: 1.0.0
class: profile
kind: resource
url: http://nictiz.nl/fhir/StructureDefinition/mp-MedicationPrescriptionProcessing-Bundle
base: http://hl7.org/fhir/StructureDefinition/Bundle
version: 1.0.0
required: [entry]