description: 'An Irish electronic prescription as exchanged: one patient (IECorePatientEPrescription), one or more prescription items (IECoreMedicationRequestEPrescription) sharing a group identifier, the prescriber, the prescriber''s facility, the medicinal products, and the allergy statement (IECoreListAllergiesAtPrescribing). Prescription-level legal and safety rules (HIQA EP 1.4.2, 1.6.1, 2.10.1, 3.1) are enforced here because they span resources.' package_name: nostalgic-ie.fhir.core derivation: constraint name: IECoreBundleEPrescription type: Bundle elements: identifier: {mustSupport: true, index: 0} type: pattern: {type: Code, value: collection} index: 1 timestamp: {mustSupport: true, index: 2} entry: mustSupport: true array: true min: 3 index: 3 elements: fullUrl: {index: 4} resource: {index: 5} required: [resource, fullUrl] slicing: rules: open discriminator: - {path: resource, type: type} min: 3 slices: patient: match: {} schema: mustSupport: true _required: true index: 6 elements: resource: {type: Patient, index: 7} prescriptionItem: match: {} schema: mustSupport: true array: true min: 1 _required: true index: 8 elements: resource: {type: MedicationRequest, index: 9} practitionerRole: match: {} schema: mustSupport: true array: true index: 16 elements: resource: {type: PractitionerRole, index: 17} signature: match: {} schema: mustSupport: true array: true index: 22 elements: resource: {type: Provenance, index: 23} organization: match: {} schema: mustSupport: true array: true index: 18 elements: resource: {type: Organization, index: 19} practitioner: match: {} schema: mustSupport: true array: true index: 14 elements: resource: {type: Practitioner, index: 15} allergy: match: {} schema: mustSupport: true array: true index: 12 elements: resource: {type: AllergyIntolerance, index: 13} allergyStatement: match: {} schema: mustSupport: true _required: true index: 10 elements: resource: {type: List, index: 11} medication: match: {} schema: mustSupport: true array: true index: 20 elements: resource: {type: Medication, index: 21} package_version: 0.2.0 class: profile kind: resource url: https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-bundle-eprescription base: http://hl7.org/fhir/StructureDefinition/Bundle version: 0.2.0 required: [timestamp, identifier]