IE Medication Events Implementation Guide
0.1.0 - Nostalgic IE (draft) Ireland flag

IE Medication Events Implementation Guide - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Resource Profile: IE MPD Electronic Prescription Group (ePG, cross-border)

Official URL: https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-electronic-prescription-group-crossborder Version: 0.1.0
Draft as of 2026-10-09 Computable Name: IEMpdElectronicPrescriptionGroupCrossBorder

An ePrescription issued in Ireland to be dispensed in another EU Member State, or issued in another Member State to be dispensed in Ireland. A sender (NePS or the National Contact Point for eHealth) marks a cross-border prescription by claiming this profile in Bundle.meta.profile. No invented tag is used (IE Core ADR-003). It adds the legal requirements HIQA cites for cross-border prescriptions: patient date of birth (EP 1.4.1), prescriber telephone and secure email (EP 2.10.1, 2.10.2), and an electronic signature (EP 2.13).

Usages:

You can also check for usages in the FHIR IG Statistics

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Bundle C 0..* IEMpdElectronicPrescriptionGroup(0.1.0) Contains a collection of resources
Constraints: bdl-1, bdl-2, bdl-3, bdl-4, bdl-7, bdl-9, bdl-10, bdl-11, bdl-12, ie-bnd-rx-1, ie-bnd-rx-2, ie-bnd-rx-3, ie-bnd-rx-4, ie-bnd-rx-5, ie-bnd-rx-6, ie-bnd-rx-7, ie-bnd-rx-8, ie-bnd-rx-9, ie-bnd-rx-10, ie-bnd-rx-11, ie-bnd-rx-12, ie-bnd-rx-13, ie-bnd-rx-14, ie-bnd-xb-1, ie-bnd-xb-2
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... identifier SΣ 1..1 Identifier Persistent identifier for the bundle
... type Σ 1..1 code document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection
Binding: BundleType (required): Indicates the purpose of a bundle - how it is intended to be used.
Required Pattern: collection
... Slices for entry SΣC 5..* BackboneElement Entry in the bundle - will have a resource or information
Slice: Unordered, Open by type:resource
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
.... entry:All Slices Content/Rules for all slices
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource Σ 1..1 Resource A resource in the bundle
.... entry:patient SΣC 1..1 BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdPatientEPrescription(0.1.0) Information about an individual or animal receiving health care services
.... entry:header SΣC 1..1 BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdPrescriptionGroupHeader(0.1.0) A group of related requests
.... entry:electronicPrescription SΣC 1..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdMedicationRequestEPrescription(0.1.0) Ordering of medication for patient or group
.... entry:allergyStatement SΣC 1..1 BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdListAllergiesAtPrescribing(0.1.0) A list is a curated collection of resources
.... entry:allergy SΣC 0..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdAllergyIntolerance(0.1.0) Allergy or Intolerance (generally: Risk of adverse reaction to a substance)
.... entry:practitioner SΣC 0..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdPractitioner(0.1.0) A person with a formal responsibility in the provisioning of healthcare or related services
.... entry:practitionerRole SΣC 0..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdPractitionerRole(0.1.0) Roles/organizations the practitioner is associated with
.... entry:organization SΣC 0..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdOrganization(0.1.0) A grouping of people or organizations with a common purpose
.... entry:medication SΣC 0..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdMedicationEPrescription(0.1.0) Definition of a Medication
.... entry:dispensation SΣC 0..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdMedicationDispenseEDispensation(0.1.0) Dispensing a medication to a named patient
.... entry:provenance SΣC 1..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdProvenance(0.1.0) Who, What, When for a set of resources

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Bundle.type Base required BundleType 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
bdl-1 error Bundle total only when a search or history total.empty() or (type = 'searchset') or (type = 'history')
bdl-2 error Bundle entry.search only when a search entry.search.empty() or (type = 'searchset')
bdl-3 error Bundle entry.request mandatory for batch/transaction/history, otherwise prohibited entry.all(request.exists() = (%resource.type = 'batch' or %resource.type = 'transaction' or %resource.type = 'history'))
bdl-4 error Bundle entry.response mandatory for batch-response/transaction-response/history, otherwise prohibited entry.all(response.exists() = (%resource.type = 'batch-response' or %resource.type = 'transaction-response' or %resource.type = 'history'))
bdl-5 error Bundle.entry, Bundle.entry:patient, Bundle.entry:header, Bundle.entry:electronicPrescription, Bundle.entry:allergyStatement, Bundle.entry:allergy, Bundle.entry:practitioner, Bundle.entry:practitionerRole, Bundle.entry:organization, Bundle.entry:medication, Bundle.entry:dispensation, Bundle.entry:provenance must be a resource unless there's a request or response resource.exists() or request.exists() or response.exists()
bdl-7 error Bundle FullUrl must be unique in a bundle, or else entries with the same fullUrl must have different meta.versionId (except in history bundles) (type = 'history') or entry.where(fullUrl.exists()).select(fullUrl&resource.meta.versionId).isDistinct()
bdl-8 error Bundle.entry, Bundle.entry:patient, Bundle.entry:header, Bundle.entry:electronicPrescription, Bundle.entry:allergyStatement, Bundle.entry:allergy, Bundle.entry:practitioner, Bundle.entry:practitionerRole, Bundle.entry:organization, Bundle.entry:medication, Bundle.entry:dispensation, Bundle.entry:provenance fullUrl cannot be a version specific reference fullUrl.contains('/_history/').not()
bdl-9 error Bundle A document must have an identifier with a system and a value type = 'document' implies (identifier.system.exists() and identifier.value.exists())
bdl-10 error Bundle A document must have a date type = 'document' implies (timestamp.hasValue())
bdl-11 error Bundle A document must have a Composition as the first resource type = 'document' implies entry.first().resource.is(Composition)
bdl-12 error Bundle A message must have a MessageHeader as the first resource type = 'message' implies entry.first().resource.is(MessageHeader)
ele-1 error Bundle.implicitRules, Bundle.identifier, Bundle.type, Bundle.timestamp, Bundle.entry, Bundle.entry.modifierExtension, Bundle.entry.fullUrl, Bundle.entry:patient, Bundle.entry:patient.modifierExtension, Bundle.entry:patient.fullUrl, Bundle.entry:header, Bundle.entry:header.modifierExtension, Bundle.entry:header.fullUrl, Bundle.entry:electronicPrescription, Bundle.entry:electronicPrescription.modifierExtension, Bundle.entry:electronicPrescription.fullUrl, Bundle.entry:allergyStatement, Bundle.entry:allergyStatement.modifierExtension, Bundle.entry:allergyStatement.fullUrl, Bundle.entry:allergy, Bundle.entry:allergy.modifierExtension, Bundle.entry:allergy.fullUrl, Bundle.entry:practitioner, Bundle.entry:practitioner.modifierExtension, Bundle.entry:practitioner.fullUrl, Bundle.entry:practitionerRole, Bundle.entry:practitionerRole.modifierExtension, Bundle.entry:practitionerRole.fullUrl, Bundle.entry:organization, Bundle.entry:organization.modifierExtension, Bundle.entry:organization.fullUrl, Bundle.entry:medication, Bundle.entry:medication.modifierExtension, Bundle.entry:medication.fullUrl, Bundle.entry:dispensation, Bundle.entry:dispensation.modifierExtension, Bundle.entry:dispensation.fullUrl, Bundle.entry:provenance, Bundle.entry:provenance.modifierExtension, Bundle.entry:provenance.fullUrl All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error Bundle.entry.modifierExtension, Bundle.entry:patient.modifierExtension, Bundle.entry:header.modifierExtension, Bundle.entry:electronicPrescription.modifierExtension, Bundle.entry:allergyStatement.modifierExtension, Bundle.entry:allergy.modifierExtension, Bundle.entry:practitioner.modifierExtension, Bundle.entry:practitionerRole.modifierExtension, Bundle.entry:organization.modifierExtension, Bundle.entry:medication.modifierExtension, Bundle.entry:dispensation.modifierExtension, Bundle.entry:provenance.modifierExtension Must have either extensions or value[x], not both extension.exists() != value.exists()
ie-bnd-rx-1 error Bundle All electronic prescriptions (eP) in the ePG SHALL share one prescription group identifier (system and value) (HIQA EP 3.1) entry.resource.ofType(MedicationRequest).count() <= 1 or (entry.resource.ofType(MedicationRequest).all(groupIdentifier.exists()) and entry.resource.ofType(MedicationRequest).select(groupIdentifier.system + '|' + groupIdentifier.value).distinct().count() = 1)
ie-bnd-rx-2 error Bundle Every eP SHALL reference the allergy statement (a List coded LOINC 48765-2) in supportingInformation (HIQA EP 1.6.1 / 1.6.2) entry.resource.ofType(MedicationRequest).all(supportingInformation.where(resolve() is List and resolve().code.coding.where(system = 'http://loinc.org' and code = '48765-2').exists()).exists())
ie-bnd-rx-3 error Bundle If the patient is under 12 years old at the date of prescribing, or the date of birth is not a full date, every eP SHALL record the patient's age (HIQA EP 1.4.2; a legal requirement) entry.resource.ofType(MedicationRequest).all(extension('https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-patient-age-at-prescribing').exists() or ((%resource.entry.resource.ofType(Patient).first().birthDate.toString().length() = 10) and ((%resource.entry.resource.ofType(Patient).first().birthDate + 12 years).toString() <= authoredOn.toString().substring(0,10))))
ie-bnd-rx-4 error Bundle The prescriber (the requester, its practitioner, or its organisation) SHALL have a telephone number (HIQA EP 2.10 / 2.10.1, Mandatory) entry.resource.ofType(MedicationRequest).all(requester.resolve().telecom.where(system = 'phone').exists() or requester.resolve().ofType(PractitionerRole).practitioner.resolve().telecom.where(system = 'phone').exists() or requester.resolve().ofType(PractitionerRole).organization.resolve().telecom.where(system = 'phone').exists())
ie-bnd-rx-5 error Bundle Every eP, the allergy statement and every allergy SHALL be about the one Patient in the Bundle (patient safety: the allergy statement must be the patient's own) (entry.resource.ofType(MedicationRequest).subject.reference | entry.resource.ofType(List).subject.reference | entry.resource.ofType(AllergyIntolerance).patient.reference).all(($this = %resource.entry.where(resource is Patient).fullUrl) or ($this = ('Patient/' + %resource.entry.resource.ofType(Patient).id)))
ie-bnd-rx-6 error Bundle Every allergy listed in the allergy statement SHALL be included in the Bundle (HIQA EP 1.6.2) entry.resource.ofType(List).entry.item.reference.all(($this in %resource.entry.fullUrl) or ($this.replace('AllergyIntolerance/', '') in %resource.entry.resource.ofType(AllergyIntolerance).id))
ie-bnd-rx-7 error Bundle The prescription group header SHALL list every eP in the ePG as an action, and only those (HIQA EP 3.5) entry.where(resource is MedicationRequest).all((fullUrl in %resource.entry.resource.ofType(RequestGroup).action.resource.reference) or (('MedicationRequest/' + resource.id) in %resource.entry.resource.ofType(RequestGroup).action.resource.reference)) and entry.resource.ofType(RequestGroup).action.resource.reference.all(($this in %resource.entry.where(resource is MedicationRequest).fullUrl) or ($this.replace('MedicationRequest/', '') in %resource.entry.resource.ofType(MedicationRequest).id))
ie-bnd-rx-8 error Bundle Every eP SHALL carry one of the prescription group identifiers as its groupIdentifier (HIQA EP 3.1) entry.resource.ofType(MedicationRequest).all((groupIdentifier.system + '|' + groupIdentifier.value) in %resource.entry.resource.ofType(RequestGroup).identifier.select(system + '|' + value))
ie-bnd-rx-9 error Bundle Every eP SHALL have the prescription group's patient, prescriber and date of issue (HIQA EP 3.2; compare NHS EPS prescription-order) entry.resource.ofType(MedicationRequest).all(subject.reference = %resource.entry.resource.ofType(RequestGroup).first().subject.reference and requester.reference = %resource.entry.resource.ofType(RequestGroup).first().author.reference and authoredOn = %resource.entry.resource.ofType(RequestGroup).first().authoredOn)
ie-bnd-rx-10 warning Bundle The prescription group status SHOULD agree with the eP statuses: an active group has an active eP; a revoked (cancelled) group has only cancelled or stopped eP; a completed group has no active, on-hold or draft eP (HIQA EP 3.3) entry.resource.ofType(RequestGroup).all((status = 'active' implies %resource.entry.resource.ofType(MedicationRequest).where(status = 'active').exists()) and (status = 'revoked' implies %resource.entry.resource.ofType(MedicationRequest).all(status = 'cancelled' or status = 'stopped')) and (status = 'completed' implies %resource.entry.resource.ofType(MedicationRequest).all(status = 'completed' or status = 'stopped' or status = 'cancelled')))
ie-bnd-rx-11 error Bundle The prescriber's healthcare facility (the organisation of the prescriber's role) SHALL have an address with address line, county, postcode and country (HIQA EP 2.9, 2.9.1, 2.9.2, 2.9.4, 2.9.5, Mandatory) entry.resource.ofType(MedicationRequest).all(requester.resolve().ofType(PractitionerRole).organization.resolve().address.where(line.exists() and state.exists() and postalCode.exists() and country.exists()).exists())
ie-bnd-rx-12 error Bundle Every eDispensation in the ePG SHALL be authorised by an eP in the same ePG (HIQA EP 6.5) entry.resource.ofType(MedicationDispense).all(authorizingPrescription.exists() and authorizingPrescription.reference.all(($this in %resource.entry.where(resource is MedicationRequest).fullUrl) or ($this.replace('MedicationRequest/', '') in %resource.entry.resource.ofType(MedicationRequest).id)))
ie-bnd-rx-13 error Bundle Every eDispensation in the ePG SHALL be for the ePG's patient (patient safety) entry.resource.ofType(MedicationDispense).all(subject.reference = %resource.entry.resource.ofType(RequestGroup).first().subject.reference)
ie-bnd-rx-14 warning Bundle Every Provenance in the ePG SHOULD target resources in the same ePG entry.resource.ofType(Provenance).target.reference.all(($this in %resource.entry.fullUrl) or ($this in %resource.entry.resource.select(resourceType + '/' + id)))
ie-bnd-xb-1 error Bundle A cross-border prescription SHALL give a secure contact email for the prescriber (the requester, its practitioner, or its organisation) (HIQA EP 2.10.2; a legal requirement cross-border) entry.resource.ofType(MedicationRequest).all(requester.resolve().telecom.where(system = 'email').exists() or requester.resolve().ofType(PractitionerRole).practitioner.resolve().telecom.where(system = 'email').exists() or requester.resolve().ofType(PractitionerRole).organization.resolve().telecom.where(system = 'email').exists())
ie-bnd-xb-2 error Bundle A cross-border prescription SHALL carry a prescriber signature covering every eP, referenced by fullUrl or by relative reference (HIQA EP 2.13; a legal requirement) entry.where(resource is MedicationRequest).all((fullUrl in %resource.entry.resource.ofType(Provenance).where(signature.exists()).target.reference) or (('MedicationRequest/' + resource.id) in %resource.entry.resource.ofType(Provenance).where(signature.exists()).target.reference))

This structure is derived from IEMpdElectronicPrescriptionGroup

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Bundle C 0..* IEMpdElectronicPrescriptionGroup(0.1.0) Contains a collection of resources
... entry 5..* BackboneElement Entry in the bundle - will have a resource or information
... Slices for entry Content/Rules for all slices
.... entry:provenance 1..* BackboneElement Entry in the bundle - will have a resource or information

doco Documentation for this format

Constraints

Id Grade Path(s) Description Expression
ie-bnd-xb-1 error Bundle A cross-border prescription SHALL give a secure contact email for the prescriber (the requester, its practitioner, or its organisation) (HIQA EP 2.10.2; a legal requirement cross-border) entry.resource.ofType(MedicationRequest).all(requester.resolve().telecom.where(system = 'email').exists() or requester.resolve().ofType(PractitionerRole).practitioner.resolve().telecom.where(system = 'email').exists() or requester.resolve().ofType(PractitionerRole).organization.resolve().telecom.where(system = 'email').exists())
ie-bnd-xb-2 error Bundle A cross-border prescription SHALL carry a prescriber signature covering every eP, referenced by fullUrl or by relative reference (HIQA EP 2.13; a legal requirement) entry.where(resource is MedicationRequest).all((fullUrl in %resource.entry.resource.ofType(Provenance).where(signature.exists()).target.reference) or (('MedicationRequest/' + resource.id) in %resource.entry.resource.ofType(Provenance).where(signature.exists()).target.reference))
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Bundle C 0..* IEMpdElectronicPrescriptionGroup(0.1.0) Contains a collection of resources
Constraints: bdl-1, bdl-2, bdl-3, bdl-4, bdl-7, bdl-9, bdl-10, bdl-11, bdl-12, ie-bnd-rx-1, ie-bnd-rx-2, ie-bnd-rx-3, ie-bnd-rx-4, ie-bnd-rx-5, ie-bnd-rx-6, ie-bnd-rx-7, ie-bnd-rx-8, ie-bnd-rx-9, ie-bnd-rx-10, ie-bnd-rx-11, ie-bnd-rx-12, ie-bnd-rx-13, ie-bnd-rx-14, ie-bnd-xb-1, ie-bnd-xb-2
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... identifier SΣ 1..1 Identifier Persistent identifier for the bundle
... type Σ 1..1 code document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection
Binding: BundleType (required): Indicates the purpose of a bundle - how it is intended to be used.
Required Pattern: collection
... timestamp SΣ 1..1 instant When the bundle was assembled
... total ΣC 0..1 unsignedInt If search, the total number of matches
... link Σ 0..* BackboneElement Links related to this Bundle
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
.... relation Σ 1..1 string See http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1
.... url Σ 1..1 uri Reference details for the link
... Slices for entry SΣC 5..* BackboneElement Entry in the bundle - will have a resource or information
Slice: Unordered, Open by type:resource
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
.... entry:All Slices Content/Rules for all slices
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... link Σ 0..* See link (Bundle) Links related to this entry
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource Σ 1..1 Resource A resource in the bundle
..... search ΣC 0..1 BackboneElement Search related information
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... mode Σ 0..1 code match | include | outcome - why this is in the result set
Binding: SearchEntryMode (required): Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.
...... score Σ 0..1 decimal Search ranking (between 0 and 1)
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... method Σ 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Binding: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
...... ifNoneMatch Σ 0..1 string For managing cache currency
...... ifModifiedSince Σ 0..1 instant For managing cache currency
...... ifMatch Σ 0..1 string For managing update contention
...... ifNoneExist Σ 0..1 string For conditional creates
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... status Σ 1..1 string Status response code (text optional)
...... location Σ 0..1 uri The location (if the operation returns a location)
...... etag Σ 0..1 string The Etag for the resource (if relevant)
...... lastModified Σ 0..1 instant Server's date time modified
...... outcome Σ 0..1 Resource OperationOutcome with hints and warnings (for batch/transaction)
.... entry:patient SΣC 1..1 BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... link Σ 0..* See link (Bundle) Links related to this entry
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdPatientEPrescription(0.1.0) Information about an individual or animal receiving health care services
..... search ΣC 0..1 BackboneElement Search related information
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... mode Σ 0..1 code match | include | outcome - why this is in the result set
Binding: SearchEntryMode (required): Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.
...... score Σ 0..1 decimal Search ranking (between 0 and 1)
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... method Σ 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Binding: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
...... ifNoneMatch Σ 0..1 string For managing cache currency
...... ifModifiedSince Σ 0..1 instant For managing cache currency
...... ifMatch Σ 0..1 string For managing update contention
...... ifNoneExist Σ 0..1 string For conditional creates
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... status Σ 1..1 string Status response code (text optional)
...... location Σ 0..1 uri The location (if the operation returns a location)
...... etag Σ 0..1 string The Etag for the resource (if relevant)
...... lastModified Σ 0..1 instant Server's date time modified
...... outcome Σ 0..1 Resource OperationOutcome with hints and warnings (for batch/transaction)
.... entry:header SΣC 1..1 BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... link Σ 0..* See link (Bundle) Links related to this entry
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdPrescriptionGroupHeader(0.1.0) A group of related requests
..... search ΣC 0..1 BackboneElement Search related information
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... mode Σ 0..1 code match | include | outcome - why this is in the result set
Binding: SearchEntryMode (required): Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.
...... score Σ 0..1 decimal Search ranking (between 0 and 1)
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... method Σ 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Binding: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
...... ifNoneMatch Σ 0..1 string For managing cache currency
...... ifModifiedSince Σ 0..1 instant For managing cache currency
...... ifMatch Σ 0..1 string For managing update contention
...... ifNoneExist Σ 0..1 string For conditional creates
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... status Σ 1..1 string Status response code (text optional)
...... location Σ 0..1 uri The location (if the operation returns a location)
...... etag Σ 0..1 string The Etag for the resource (if relevant)
...... lastModified Σ 0..1 instant Server's date time modified
...... outcome Σ 0..1 Resource OperationOutcome with hints and warnings (for batch/transaction)
.... entry:electronicPrescription SΣC 1..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... link Σ 0..* See link (Bundle) Links related to this entry
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdMedicationRequestEPrescription(0.1.0) Ordering of medication for patient or group
..... search ΣC 0..1 BackboneElement Search related information
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... mode Σ 0..1 code match | include | outcome - why this is in the result set
Binding: SearchEntryMode (required): Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.
...... score Σ 0..1 decimal Search ranking (between 0 and 1)
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... method Σ 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Binding: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
...... ifNoneMatch Σ 0..1 string For managing cache currency
...... ifModifiedSince Σ 0..1 instant For managing cache currency
...... ifMatch Σ 0..1 string For managing update contention
...... ifNoneExist Σ 0..1 string For conditional creates
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... status Σ 1..1 string Status response code (text optional)
...... location Σ 0..1 uri The location (if the operation returns a location)
...... etag Σ 0..1 string The Etag for the resource (if relevant)
...... lastModified Σ 0..1 instant Server's date time modified
...... outcome Σ 0..1 Resource OperationOutcome with hints and warnings (for batch/transaction)
.... entry:allergyStatement SΣC 1..1 BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... link Σ 0..* See link (Bundle) Links related to this entry
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdListAllergiesAtPrescribing(0.1.0) A list is a curated collection of resources
..... search ΣC 0..1 BackboneElement Search related information
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... mode Σ 0..1 code match | include | outcome - why this is in the result set
Binding: SearchEntryMode (required): Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.
...... score Σ 0..1 decimal Search ranking (between 0 and 1)
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... method Σ 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Binding: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
...... ifNoneMatch Σ 0..1 string For managing cache currency
...... ifModifiedSince Σ 0..1 instant For managing cache currency
...... ifMatch Σ 0..1 string For managing update contention
...... ifNoneExist Σ 0..1 string For conditional creates
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... status Σ 1..1 string Status response code (text optional)
...... location Σ 0..1 uri The location (if the operation returns a location)
...... etag Σ 0..1 string The Etag for the resource (if relevant)
...... lastModified Σ 0..1 instant Server's date time modified
...... outcome Σ 0..1 Resource OperationOutcome with hints and warnings (for batch/transaction)
.... entry:allergy SΣC 0..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... link Σ 0..* See link (Bundle) Links related to this entry
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdAllergyIntolerance(0.1.0) Allergy or Intolerance (generally: Risk of adverse reaction to a substance)
..... search ΣC 0..1 BackboneElement Search related information
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... mode Σ 0..1 code match | include | outcome - why this is in the result set
Binding: SearchEntryMode (required): Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.
...... score Σ 0..1 decimal Search ranking (between 0 and 1)
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... method Σ 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Binding: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
...... ifNoneMatch Σ 0..1 string For managing cache currency
...... ifModifiedSince Σ 0..1 instant For managing cache currency
...... ifMatch Σ 0..1 string For managing update contention
...... ifNoneExist Σ 0..1 string For conditional creates
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... status Σ 1..1 string Status response code (text optional)
...... location Σ 0..1 uri The location (if the operation returns a location)
...... etag Σ 0..1 string The Etag for the resource (if relevant)
...... lastModified Σ 0..1 instant Server's date time modified
...... outcome Σ 0..1 Resource OperationOutcome with hints and warnings (for batch/transaction)
.... entry:practitioner SΣC 0..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... link Σ 0..* See link (Bundle) Links related to this entry
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdPractitioner(0.1.0) A person with a formal responsibility in the provisioning of healthcare or related services
..... search ΣC 0..1 BackboneElement Search related information
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... mode Σ 0..1 code match | include | outcome - why this is in the result set
Binding: SearchEntryMode (required): Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.
...... score Σ 0..1 decimal Search ranking (between 0 and 1)
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... method Σ 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Binding: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
...... ifNoneMatch Σ 0..1 string For managing cache currency
...... ifModifiedSince Σ 0..1 instant For managing cache currency
...... ifMatch Σ 0..1 string For managing update contention
...... ifNoneExist Σ 0..1 string For conditional creates
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... status Σ 1..1 string Status response code (text optional)
...... location Σ 0..1 uri The location (if the operation returns a location)
...... etag Σ 0..1 string The Etag for the resource (if relevant)
...... lastModified Σ 0..1 instant Server's date time modified
...... outcome Σ 0..1 Resource OperationOutcome with hints and warnings (for batch/transaction)
.... entry:practitionerRole SΣC 0..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... link Σ 0..* See link (Bundle) Links related to this entry
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdPractitionerRole(0.1.0) Roles/organizations the practitioner is associated with
..... search ΣC 0..1 BackboneElement Search related information
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... mode Σ 0..1 code match | include | outcome - why this is in the result set
Binding: SearchEntryMode (required): Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.
...... score Σ 0..1 decimal Search ranking (between 0 and 1)
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... method Σ 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Binding: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
...... ifNoneMatch Σ 0..1 string For managing cache currency
...... ifModifiedSince Σ 0..1 instant For managing cache currency
...... ifMatch Σ 0..1 string For managing update contention
...... ifNoneExist Σ 0..1 string For conditional creates
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... status Σ 1..1 string Status response code (text optional)
...... location Σ 0..1 uri The location (if the operation returns a location)
...... etag Σ 0..1 string The Etag for the resource (if relevant)
...... lastModified Σ 0..1 instant Server's date time modified
...... outcome Σ 0..1 Resource OperationOutcome with hints and warnings (for batch/transaction)
.... entry:organization SΣC 0..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... link Σ 0..* See link (Bundle) Links related to this entry
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdOrganization(0.1.0) A grouping of people or organizations with a common purpose
..... search ΣC 0..1 BackboneElement Search related information
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... mode Σ 0..1 code match | include | outcome - why this is in the result set
Binding: SearchEntryMode (required): Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.
...... score Σ 0..1 decimal Search ranking (between 0 and 1)
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... method Σ 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Binding: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
...... ifNoneMatch Σ 0..1 string For managing cache currency
...... ifModifiedSince Σ 0..1 instant For managing cache currency
...... ifMatch Σ 0..1 string For managing update contention
...... ifNoneExist Σ 0..1 string For conditional creates
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... status Σ 1..1 string Status response code (text optional)
...... location Σ 0..1 uri The location (if the operation returns a location)
...... etag Σ 0..1 string The Etag for the resource (if relevant)
...... lastModified Σ 0..1 instant Server's date time modified
...... outcome Σ 0..1 Resource OperationOutcome with hints and warnings (for batch/transaction)
.... entry:medication SΣC 0..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... link Σ 0..* See link (Bundle) Links related to this entry
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdMedicationEPrescription(0.1.0) Definition of a Medication
..... search ΣC 0..1 BackboneElement Search related information
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... mode Σ 0..1 code match | include | outcome - why this is in the result set
Binding: SearchEntryMode (required): Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.
...... score Σ 0..1 decimal Search ranking (between 0 and 1)
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... method Σ 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Binding: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
...... ifNoneMatch Σ 0..1 string For managing cache currency
...... ifModifiedSince Σ 0..1 instant For managing cache currency
...... ifMatch Σ 0..1 string For managing update contention
...... ifNoneExist Σ 0..1 string For conditional creates
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... status Σ 1..1 string Status response code (text optional)
...... location Σ 0..1 uri The location (if the operation returns a location)
...... etag Σ 0..1 string The Etag for the resource (if relevant)
...... lastModified Σ 0..1 instant Server's date time modified
...... outcome Σ 0..1 Resource OperationOutcome with hints and warnings (for batch/transaction)
.... entry:dispensation SΣC 0..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... link Σ 0..* See link (Bundle) Links related to this entry
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdMedicationDispenseEDispensation(0.1.0) Dispensing a medication to a named patient
..... search ΣC 0..1 BackboneElement Search related information
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... mode Σ 0..1 code match | include | outcome - why this is in the result set
Binding: SearchEntryMode (required): Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.
...... score Σ 0..1 decimal Search ranking (between 0 and 1)
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... method Σ 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Binding: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
...... ifNoneMatch Σ 0..1 string For managing cache currency
...... ifModifiedSince Σ 0..1 instant For managing cache currency
...... ifMatch Σ 0..1 string For managing update contention
...... ifNoneExist Σ 0..1 string For conditional creates
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... status Σ 1..1 string Status response code (text optional)
...... location Σ 0..1 uri The location (if the operation returns a location)
...... etag Σ 0..1 string The Etag for the resource (if relevant)
...... lastModified Σ 0..1 instant Server's date time modified
...... outcome Σ 0..1 Resource OperationOutcome with hints and warnings (for batch/transaction)
.... entry:provenance SΣC 1..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... link Σ 0..* See link (Bundle) Links related to this entry
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdProvenance(0.1.0) Who, What, When for a set of resources
..... search ΣC 0..1 BackboneElement Search related information
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... mode Σ 0..1 code match | include | outcome - why this is in the result set
Binding: SearchEntryMode (required): Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.
...... score Σ 0..1 decimal Search ranking (between 0 and 1)
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... method Σ 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Binding: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
...... ifNoneMatch Σ 0..1 string For managing cache currency
...... ifModifiedSince Σ 0..1 instant For managing cache currency
...... ifMatch Σ 0..1 string For managing update contention
...... ifNoneExist Σ 0..1 string For conditional creates
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... status Σ 1..1 string Status response code (text optional)
...... location Σ 0..1 uri The location (if the operation returns a location)
...... etag Σ 0..1 string The Etag for the resource (if relevant)
...... lastModified Σ 0..1 instant Server's date time modified
...... outcome Σ 0..1 Resource OperationOutcome with hints and warnings (for batch/transaction)
... signature Σ 0..1 Signature Digital Signature

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Bundle.language Base preferred Common Languages 📍4.0.1 FHIR Std.
Bundle.type Base required BundleType 📍4.0.1 FHIR Std.
Bundle.entry.search.​mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry.request.​method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:patient.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:patient.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:header.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:header.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:electronicPrescription.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:electronicPrescription.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:allergyStatement.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:allergyStatement.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:allergy.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:allergy.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:practitioner.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:practitioner.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:practitionerRole.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:practitionerRole.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:organization.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:organization.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:medication.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:medication.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:dispensation.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:dispensation.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:provenance.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:provenance.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
bdl-1 error Bundle total only when a search or history total.empty() or (type = 'searchset') or (type = 'history')
bdl-2 error Bundle entry.search only when a search entry.search.empty() or (type = 'searchset')
bdl-3 error Bundle entry.request mandatory for batch/transaction/history, otherwise prohibited entry.all(request.exists() = (%resource.type = 'batch' or %resource.type = 'transaction' or %resource.type = 'history'))
bdl-4 error Bundle entry.response mandatory for batch-response/transaction-response/history, otherwise prohibited entry.all(response.exists() = (%resource.type = 'batch-response' or %resource.type = 'transaction-response' or %resource.type = 'history'))
bdl-5 error Bundle.entry, Bundle.entry:patient, Bundle.entry:header, Bundle.entry:electronicPrescription, Bundle.entry:allergyStatement, Bundle.entry:allergy, Bundle.entry:practitioner, Bundle.entry:practitionerRole, Bundle.entry:organization, Bundle.entry:medication, Bundle.entry:dispensation, Bundle.entry:provenance must be a resource unless there's a request or response resource.exists() or request.exists() or response.exists()
bdl-7 error Bundle FullUrl must be unique in a bundle, or else entries with the same fullUrl must have different meta.versionId (except in history bundles) (type = 'history') or entry.where(fullUrl.exists()).select(fullUrl&resource.meta.versionId).isDistinct()
bdl-8 error Bundle.entry, Bundle.entry:patient, Bundle.entry:header, Bundle.entry:electronicPrescription, Bundle.entry:allergyStatement, Bundle.entry:allergy, Bundle.entry:practitioner, Bundle.entry:practitionerRole, Bundle.entry:organization, Bundle.entry:medication, Bundle.entry:dispensation, Bundle.entry:provenance fullUrl cannot be a version specific reference fullUrl.contains('/_history/').not()
bdl-9 error Bundle A document must have an identifier with a system and a value type = 'document' implies (identifier.system.exists() and identifier.value.exists())
bdl-10 error Bundle A document must have a date type = 'document' implies (timestamp.hasValue())
bdl-11 error Bundle A document must have a Composition as the first resource type = 'document' implies entry.first().resource.is(Composition)
bdl-12 error Bundle A message must have a MessageHeader as the first resource type = 'message' implies entry.first().resource.is(MessageHeader)
ele-1 error Bundle.meta, Bundle.implicitRules, Bundle.language, Bundle.identifier, Bundle.type, Bundle.timestamp, Bundle.total, Bundle.link, Bundle.link.extension, Bundle.link.modifierExtension, Bundle.link.relation, Bundle.link.url, Bundle.entry, Bundle.entry.extension, Bundle.entry.modifierExtension, Bundle.entry.link, Bundle.entry.fullUrl, Bundle.entry.search, Bundle.entry.search.extension, Bundle.entry.search.modifierExtension, Bundle.entry.search.mode, Bundle.entry.search.score, Bundle.entry.request, Bundle.entry.request.extension, Bundle.entry.request.modifierExtension, Bundle.entry.request.method, Bundle.entry.request.url, Bundle.entry.request.ifNoneMatch, Bundle.entry.request.ifModifiedSince, Bundle.entry.request.ifMatch, Bundle.entry.request.ifNoneExist, Bundle.entry.response, Bundle.entry.response.extension, Bundle.entry.response.modifierExtension, Bundle.entry.response.status, Bundle.entry.response.location, Bundle.entry.response.etag, Bundle.entry.response.lastModified, Bundle.entry:patient, Bundle.entry:patient.extension, Bundle.entry:patient.modifierExtension, Bundle.entry:patient.link, Bundle.entry:patient.fullUrl, Bundle.entry:patient.search, Bundle.entry:patient.search.extension, Bundle.entry:patient.search.modifierExtension, Bundle.entry:patient.search.mode, Bundle.entry:patient.search.score, Bundle.entry:patient.request, Bundle.entry:patient.request.extension, Bundle.entry:patient.request.modifierExtension, Bundle.entry:patient.request.method, Bundle.entry:patient.request.url, Bundle.entry:patient.request.ifNoneMatch, Bundle.entry:patient.request.ifModifiedSince, Bundle.entry:patient.request.ifMatch, Bundle.entry:patient.request.ifNoneExist, Bundle.entry:patient.response, Bundle.entry:patient.response.extension, Bundle.entry:patient.response.modifierExtension, Bundle.entry:patient.response.status, Bundle.entry:patient.response.location, Bundle.entry:patient.response.etag, Bundle.entry:patient.response.lastModified, Bundle.entry:header, Bundle.entry:header.extension, Bundle.entry:header.modifierExtension, Bundle.entry:header.link, Bundle.entry:header.fullUrl, Bundle.entry:header.search, Bundle.entry:header.search.extension, Bundle.entry:header.search.modifierExtension, Bundle.entry:header.search.mode, Bundle.entry:header.search.score, Bundle.entry:header.request, Bundle.entry:header.request.extension, Bundle.entry:header.request.modifierExtension, Bundle.entry:header.request.method, Bundle.entry:header.request.url, Bundle.entry:header.request.ifNoneMatch, Bundle.entry:header.request.ifModifiedSince, Bundle.entry:header.request.ifMatch, Bundle.entry:header.request.ifNoneExist, Bundle.entry:header.response, Bundle.entry:header.response.extension, Bundle.entry:header.response.modifierExtension, Bundle.entry:header.response.status, Bundle.entry:header.response.location, Bundle.entry:header.response.etag, Bundle.entry:header.response.lastModified, Bundle.entry:electronicPrescription, Bundle.entry:electronicPrescription.extension, Bundle.entry:electronicPrescription.modifierExtension, Bundle.entry:electronicPrescription.link, Bundle.entry:electronicPrescription.fullUrl, Bundle.entry:electronicPrescription.search, Bundle.entry:electronicPrescription.search.extension, Bundle.entry:electronicPrescription.search.modifierExtension, Bundle.entry:electronicPrescription.search.mode, Bundle.entry:electronicPrescription.search.score, Bundle.entry:electronicPrescription.request, Bundle.entry:electronicPrescription.request.extension, Bundle.entry:electronicPrescription.request.modifierExtension, Bundle.entry:electronicPrescription.request.method, Bundle.entry:electronicPrescription.request.url, Bundle.entry:electronicPrescription.request.ifNoneMatch, Bundle.entry:electronicPrescription.request.ifModifiedSince, Bundle.entry:electronicPrescription.request.ifMatch, Bundle.entry:electronicPrescription.request.ifNoneExist, Bundle.entry:electronicPrescription.response, Bundle.entry:electronicPrescription.response.extension, Bundle.entry:electronicPrescription.response.modifierExtension, Bundle.entry:electronicPrescription.response.status, Bundle.entry:electronicPrescription.response.location, Bundle.entry:electronicPrescription.response.etag, Bundle.entry:electronicPrescription.response.lastModified, Bundle.entry:allergyStatement, Bundle.entry:allergyStatement.extension, Bundle.entry:allergyStatement.modifierExtension, Bundle.entry:allergyStatement.link, Bundle.entry:allergyStatement.fullUrl, Bundle.entry:allergyStatement.search, Bundle.entry:allergyStatement.search.extension, Bundle.entry:allergyStatement.search.modifierExtension, Bundle.entry:allergyStatement.search.mode, Bundle.entry:allergyStatement.search.score, Bundle.entry:allergyStatement.request, Bundle.entry:allergyStatement.request.extension, Bundle.entry:allergyStatement.request.modifierExtension, Bundle.entry:allergyStatement.request.method, Bundle.entry:allergyStatement.request.url, Bundle.entry:allergyStatement.request.ifNoneMatch, Bundle.entry:allergyStatement.request.ifModifiedSince, Bundle.entry:allergyStatement.request.ifMatch, Bundle.entry:allergyStatement.request.ifNoneExist, Bundle.entry:allergyStatement.response, Bundle.entry:allergyStatement.response.extension, Bundle.entry:allergyStatement.response.modifierExtension, Bundle.entry:allergyStatement.response.status, Bundle.entry:allergyStatement.response.location, Bundle.entry:allergyStatement.response.etag, Bundle.entry:allergyStatement.response.lastModified, Bundle.entry:allergy, Bundle.entry:allergy.extension, Bundle.entry:allergy.modifierExtension, Bundle.entry:allergy.link, Bundle.entry:allergy.fullUrl, Bundle.entry:allergy.search, Bundle.entry:allergy.search.extension, Bundle.entry:allergy.search.modifierExtension, Bundle.entry:allergy.search.mode, Bundle.entry:allergy.search.score, Bundle.entry:allergy.request, Bundle.entry:allergy.request.extension, Bundle.entry:allergy.request.modifierExtension, Bundle.entry:allergy.request.method, Bundle.entry:allergy.request.url, Bundle.entry:allergy.request.ifNoneMatch, Bundle.entry:allergy.request.ifModifiedSince, Bundle.entry:allergy.request.ifMatch, Bundle.entry:allergy.request.ifNoneExist, Bundle.entry:allergy.response, Bundle.entry:allergy.response.extension, Bundle.entry:allergy.response.modifierExtension, Bundle.entry:allergy.response.status, Bundle.entry:allergy.response.location, Bundle.entry:allergy.response.etag, Bundle.entry:allergy.response.lastModified, Bundle.entry:practitioner, Bundle.entry:practitioner.extension, Bundle.entry:practitioner.modifierExtension, Bundle.entry:practitioner.link, Bundle.entry:practitioner.fullUrl, Bundle.entry:practitioner.search, Bundle.entry:practitioner.search.extension, Bundle.entry:practitioner.search.modifierExtension, Bundle.entry:practitioner.search.mode, Bundle.entry:practitioner.search.score, Bundle.entry:practitioner.request, Bundle.entry:practitioner.request.extension, Bundle.entry:practitioner.request.modifierExtension, Bundle.entry:practitioner.request.method, Bundle.entry:practitioner.request.url, Bundle.entry:practitioner.request.ifNoneMatch, Bundle.entry:practitioner.request.ifModifiedSince, Bundle.entry:practitioner.request.ifMatch, Bundle.entry:practitioner.request.ifNoneExist, Bundle.entry:practitioner.response, Bundle.entry:practitioner.response.extension, Bundle.entry:practitioner.response.modifierExtension, Bundle.entry:practitioner.response.status, Bundle.entry:practitioner.response.location, Bundle.entry:practitioner.response.etag, Bundle.entry:practitioner.response.lastModified, Bundle.entry:practitionerRole, Bundle.entry:practitionerRole.extension, Bundle.entry:practitionerRole.modifierExtension, Bundle.entry:practitionerRole.link, Bundle.entry:practitionerRole.fullUrl, Bundle.entry:practitionerRole.search, Bundle.entry:practitionerRole.search.extension, Bundle.entry:practitionerRole.search.modifierExtension, Bundle.entry:practitionerRole.search.mode, Bundle.entry:practitionerRole.search.score, Bundle.entry:practitionerRole.request, Bundle.entry:practitionerRole.request.extension, Bundle.entry:practitionerRole.request.modifierExtension, Bundle.entry:practitionerRole.request.method, Bundle.entry:practitionerRole.request.url, Bundle.entry:practitionerRole.request.ifNoneMatch, Bundle.entry:practitionerRole.request.ifModifiedSince, Bundle.entry:practitionerRole.request.ifMatch, Bundle.entry:practitionerRole.request.ifNoneExist, Bundle.entry:practitionerRole.response, Bundle.entry:practitionerRole.response.extension, Bundle.entry:practitionerRole.response.modifierExtension, Bundle.entry:practitionerRole.response.status, Bundle.entry:practitionerRole.response.location, Bundle.entry:practitionerRole.response.etag, Bundle.entry:practitionerRole.response.lastModified, Bundle.entry:organization, Bundle.entry:organization.extension, Bundle.entry:organization.modifierExtension, Bundle.entry:organization.link, Bundle.entry:organization.fullUrl, Bundle.entry:organization.search, Bundle.entry:organization.search.extension, Bundle.entry:organization.search.modifierExtension, Bundle.entry:organization.search.mode, Bundle.entry:organization.search.score, Bundle.entry:organization.request, Bundle.entry:organization.request.extension, Bundle.entry:organization.request.modifierExtension, Bundle.entry:organization.request.method, Bundle.entry:organization.request.url, Bundle.entry:organization.request.ifNoneMatch, Bundle.entry:organization.request.ifModifiedSince, Bundle.entry:organization.request.ifMatch, Bundle.entry:organization.request.ifNoneExist, Bundle.entry:organization.response, Bundle.entry:organization.response.extension, Bundle.entry:organization.response.modifierExtension, Bundle.entry:organization.response.status, Bundle.entry:organization.response.location, Bundle.entry:organization.response.etag, Bundle.entry:organization.response.lastModified, Bundle.entry:medication, Bundle.entry:medication.extension, Bundle.entry:medication.modifierExtension, Bundle.entry:medication.link, Bundle.entry:medication.fullUrl, Bundle.entry:medication.search, Bundle.entry:medication.search.extension, Bundle.entry:medication.search.modifierExtension, Bundle.entry:medication.search.mode, Bundle.entry:medication.search.score, Bundle.entry:medication.request, Bundle.entry:medication.request.extension, Bundle.entry:medication.request.modifierExtension, Bundle.entry:medication.request.method, Bundle.entry:medication.request.url, Bundle.entry:medication.request.ifNoneMatch, Bundle.entry:medication.request.ifModifiedSince, Bundle.entry:medication.request.ifMatch, Bundle.entry:medication.request.ifNoneExist, Bundle.entry:medication.response, Bundle.entry:medication.response.extension, Bundle.entry:medication.response.modifierExtension, Bundle.entry:medication.response.status, Bundle.entry:medication.response.location, Bundle.entry:medication.response.etag, Bundle.entry:medication.response.lastModified, Bundle.entry:dispensation, Bundle.entry:dispensation.extension, Bundle.entry:dispensation.modifierExtension, Bundle.entry:dispensation.link, Bundle.entry:dispensation.fullUrl, Bundle.entry:dispensation.search, Bundle.entry:dispensation.search.extension, Bundle.entry:dispensation.search.modifierExtension, Bundle.entry:dispensation.search.mode, Bundle.entry:dispensation.search.score, Bundle.entry:dispensation.request, Bundle.entry:dispensation.request.extension, Bundle.entry:dispensation.request.modifierExtension, Bundle.entry:dispensation.request.method, Bundle.entry:dispensation.request.url, Bundle.entry:dispensation.request.ifNoneMatch, Bundle.entry:dispensation.request.ifModifiedSince, Bundle.entry:dispensation.request.ifMatch, Bundle.entry:dispensation.request.ifNoneExist, Bundle.entry:dispensation.response, Bundle.entry:dispensation.response.extension, Bundle.entry:dispensation.response.modifierExtension, Bundle.entry:dispensation.response.status, Bundle.entry:dispensation.response.location, Bundle.entry:dispensation.response.etag, Bundle.entry:dispensation.response.lastModified, Bundle.entry:provenance, Bundle.entry:provenance.extension, Bundle.entry:provenance.modifierExtension, Bundle.entry:provenance.link, Bundle.entry:provenance.fullUrl, Bundle.entry:provenance.search, Bundle.entry:provenance.search.extension, Bundle.entry:provenance.search.modifierExtension, Bundle.entry:provenance.search.mode, Bundle.entry:provenance.search.score, Bundle.entry:provenance.request, Bundle.entry:provenance.request.extension, Bundle.entry:provenance.request.modifierExtension, Bundle.entry:provenance.request.method, Bundle.entry:provenance.request.url, Bundle.entry:provenance.request.ifNoneMatch, Bundle.entry:provenance.request.ifModifiedSince, Bundle.entry:provenance.request.ifMatch, Bundle.entry:provenance.request.ifNoneExist, Bundle.entry:provenance.response, Bundle.entry:provenance.response.extension, Bundle.entry:provenance.response.modifierExtension, Bundle.entry:provenance.response.status, Bundle.entry:provenance.response.location, Bundle.entry:provenance.response.etag, Bundle.entry:provenance.response.lastModified, Bundle.signature All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error Bundle.link.extension, Bundle.link.modifierExtension, Bundle.entry.extension, Bundle.entry.modifierExtension, Bundle.entry.search.extension, Bundle.entry.search.modifierExtension, Bundle.entry.request.extension, Bundle.entry.request.modifierExtension, Bundle.entry.response.extension, Bundle.entry.response.modifierExtension, Bundle.entry:patient.extension, Bundle.entry:patient.modifierExtension, Bundle.entry:patient.search.extension, Bundle.entry:patient.search.modifierExtension, Bundle.entry:patient.request.extension, Bundle.entry:patient.request.modifierExtension, Bundle.entry:patient.response.extension, Bundle.entry:patient.response.modifierExtension, Bundle.entry:header.extension, Bundle.entry:header.modifierExtension, Bundle.entry:header.search.extension, Bundle.entry:header.search.modifierExtension, Bundle.entry:header.request.extension, Bundle.entry:header.request.modifierExtension, Bundle.entry:header.response.extension, Bundle.entry:header.response.modifierExtension, Bundle.entry:electronicPrescription.extension, Bundle.entry:electronicPrescription.modifierExtension, Bundle.entry:electronicPrescription.search.extension, Bundle.entry:electronicPrescription.search.modifierExtension, Bundle.entry:electronicPrescription.request.extension, Bundle.entry:electronicPrescription.request.modifierExtension, Bundle.entry:electronicPrescription.response.extension, Bundle.entry:electronicPrescription.response.modifierExtension, Bundle.entry:allergyStatement.extension, Bundle.entry:allergyStatement.modifierExtension, Bundle.entry:allergyStatement.search.extension, Bundle.entry:allergyStatement.search.modifierExtension, Bundle.entry:allergyStatement.request.extension, Bundle.entry:allergyStatement.request.modifierExtension, Bundle.entry:allergyStatement.response.extension, Bundle.entry:allergyStatement.response.modifierExtension, Bundle.entry:allergy.extension, Bundle.entry:allergy.modifierExtension, Bundle.entry:allergy.search.extension, Bundle.entry:allergy.search.modifierExtension, Bundle.entry:allergy.request.extension, Bundle.entry:allergy.request.modifierExtension, Bundle.entry:allergy.response.extension, Bundle.entry:allergy.response.modifierExtension, Bundle.entry:practitioner.extension, Bundle.entry:practitioner.modifierExtension, Bundle.entry:practitioner.search.extension, Bundle.entry:practitioner.search.modifierExtension, Bundle.entry:practitioner.request.extension, Bundle.entry:practitioner.request.modifierExtension, Bundle.entry:practitioner.response.extension, Bundle.entry:practitioner.response.modifierExtension, Bundle.entry:practitionerRole.extension, Bundle.entry:practitionerRole.modifierExtension, Bundle.entry:practitionerRole.search.extension, Bundle.entry:practitionerRole.search.modifierExtension, Bundle.entry:practitionerRole.request.extension, Bundle.entry:practitionerRole.request.modifierExtension, Bundle.entry:practitionerRole.response.extension, Bundle.entry:practitionerRole.response.modifierExtension, Bundle.entry:organization.extension, Bundle.entry:organization.modifierExtension, Bundle.entry:organization.search.extension, Bundle.entry:organization.search.modifierExtension, Bundle.entry:organization.request.extension, Bundle.entry:organization.request.modifierExtension, Bundle.entry:organization.response.extension, Bundle.entry:organization.response.modifierExtension, Bundle.entry:medication.extension, Bundle.entry:medication.modifierExtension, Bundle.entry:medication.search.extension, Bundle.entry:medication.search.modifierExtension, Bundle.entry:medication.request.extension, Bundle.entry:medication.request.modifierExtension, Bundle.entry:medication.response.extension, Bundle.entry:medication.response.modifierExtension, Bundle.entry:dispensation.extension, Bundle.entry:dispensation.modifierExtension, Bundle.entry:dispensation.search.extension, Bundle.entry:dispensation.search.modifierExtension, Bundle.entry:dispensation.request.extension, Bundle.entry:dispensation.request.modifierExtension, Bundle.entry:dispensation.response.extension, Bundle.entry:dispensation.response.modifierExtension, Bundle.entry:provenance.extension, Bundle.entry:provenance.modifierExtension, Bundle.entry:provenance.search.extension, Bundle.entry:provenance.search.modifierExtension, Bundle.entry:provenance.request.extension, Bundle.entry:provenance.request.modifierExtension, Bundle.entry:provenance.response.extension, Bundle.entry:provenance.response.modifierExtension Must have either extensions or value[x], not both extension.exists() != value.exists()
ie-bnd-rx-1 error Bundle All electronic prescriptions (eP) in the ePG SHALL share one prescription group identifier (system and value) (HIQA EP 3.1) entry.resource.ofType(MedicationRequest).count() <= 1 or (entry.resource.ofType(MedicationRequest).all(groupIdentifier.exists()) and entry.resource.ofType(MedicationRequest).select(groupIdentifier.system + '|' + groupIdentifier.value).distinct().count() = 1)
ie-bnd-rx-2 error Bundle Every eP SHALL reference the allergy statement (a List coded LOINC 48765-2) in supportingInformation (HIQA EP 1.6.1 / 1.6.2) entry.resource.ofType(MedicationRequest).all(supportingInformation.where(resolve() is List and resolve().code.coding.where(system = 'http://loinc.org' and code = '48765-2').exists()).exists())
ie-bnd-rx-3 error Bundle If the patient is under 12 years old at the date of prescribing, or the date of birth is not a full date, every eP SHALL record the patient's age (HIQA EP 1.4.2; a legal requirement) entry.resource.ofType(MedicationRequest).all(extension('https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-patient-age-at-prescribing').exists() or ((%resource.entry.resource.ofType(Patient).first().birthDate.toString().length() = 10) and ((%resource.entry.resource.ofType(Patient).first().birthDate + 12 years).toString() <= authoredOn.toString().substring(0,10))))
ie-bnd-rx-4 error Bundle The prescriber (the requester, its practitioner, or its organisation) SHALL have a telephone number (HIQA EP 2.10 / 2.10.1, Mandatory) entry.resource.ofType(MedicationRequest).all(requester.resolve().telecom.where(system = 'phone').exists() or requester.resolve().ofType(PractitionerRole).practitioner.resolve().telecom.where(system = 'phone').exists() or requester.resolve().ofType(PractitionerRole).organization.resolve().telecom.where(system = 'phone').exists())
ie-bnd-rx-5 error Bundle Every eP, the allergy statement and every allergy SHALL be about the one Patient in the Bundle (patient safety: the allergy statement must be the patient's own) (entry.resource.ofType(MedicationRequest).subject.reference | entry.resource.ofType(List).subject.reference | entry.resource.ofType(AllergyIntolerance).patient.reference).all(($this = %resource.entry.where(resource is Patient).fullUrl) or ($this = ('Patient/' + %resource.entry.resource.ofType(Patient).id)))
ie-bnd-rx-6 error Bundle Every allergy listed in the allergy statement SHALL be included in the Bundle (HIQA EP 1.6.2) entry.resource.ofType(List).entry.item.reference.all(($this in %resource.entry.fullUrl) or ($this.replace('AllergyIntolerance/', '') in %resource.entry.resource.ofType(AllergyIntolerance).id))
ie-bnd-rx-7 error Bundle The prescription group header SHALL list every eP in the ePG as an action, and only those (HIQA EP 3.5) entry.where(resource is MedicationRequest).all((fullUrl in %resource.entry.resource.ofType(RequestGroup).action.resource.reference) or (('MedicationRequest/' + resource.id) in %resource.entry.resource.ofType(RequestGroup).action.resource.reference)) and entry.resource.ofType(RequestGroup).action.resource.reference.all(($this in %resource.entry.where(resource is MedicationRequest).fullUrl) or ($this.replace('MedicationRequest/', '') in %resource.entry.resource.ofType(MedicationRequest).id))
ie-bnd-rx-8 error Bundle Every eP SHALL carry one of the prescription group identifiers as its groupIdentifier (HIQA EP 3.1) entry.resource.ofType(MedicationRequest).all((groupIdentifier.system + '|' + groupIdentifier.value) in %resource.entry.resource.ofType(RequestGroup).identifier.select(system + '|' + value))
ie-bnd-rx-9 error Bundle Every eP SHALL have the prescription group's patient, prescriber and date of issue (HIQA EP 3.2; compare NHS EPS prescription-order) entry.resource.ofType(MedicationRequest).all(subject.reference = %resource.entry.resource.ofType(RequestGroup).first().subject.reference and requester.reference = %resource.entry.resource.ofType(RequestGroup).first().author.reference and authoredOn = %resource.entry.resource.ofType(RequestGroup).first().authoredOn)
ie-bnd-rx-10 warning Bundle The prescription group status SHOULD agree with the eP statuses: an active group has an active eP; a revoked (cancelled) group has only cancelled or stopped eP; a completed group has no active, on-hold or draft eP (HIQA EP 3.3) entry.resource.ofType(RequestGroup).all((status = 'active' implies %resource.entry.resource.ofType(MedicationRequest).where(status = 'active').exists()) and (status = 'revoked' implies %resource.entry.resource.ofType(MedicationRequest).all(status = 'cancelled' or status = 'stopped')) and (status = 'completed' implies %resource.entry.resource.ofType(MedicationRequest).all(status = 'completed' or status = 'stopped' or status = 'cancelled')))
ie-bnd-rx-11 error Bundle The prescriber's healthcare facility (the organisation of the prescriber's role) SHALL have an address with address line, county, postcode and country (HIQA EP 2.9, 2.9.1, 2.9.2, 2.9.4, 2.9.5, Mandatory) entry.resource.ofType(MedicationRequest).all(requester.resolve().ofType(PractitionerRole).organization.resolve().address.where(line.exists() and state.exists() and postalCode.exists() and country.exists()).exists())
ie-bnd-rx-12 error Bundle Every eDispensation in the ePG SHALL be authorised by an eP in the same ePG (HIQA EP 6.5) entry.resource.ofType(MedicationDispense).all(authorizingPrescription.exists() and authorizingPrescription.reference.all(($this in %resource.entry.where(resource is MedicationRequest).fullUrl) or ($this.replace('MedicationRequest/', '') in %resource.entry.resource.ofType(MedicationRequest).id)))
ie-bnd-rx-13 error Bundle Every eDispensation in the ePG SHALL be for the ePG's patient (patient safety) entry.resource.ofType(MedicationDispense).all(subject.reference = %resource.entry.resource.ofType(RequestGroup).first().subject.reference)
ie-bnd-rx-14 warning Bundle Every Provenance in the ePG SHOULD target resources in the same ePG entry.resource.ofType(Provenance).target.reference.all(($this in %resource.entry.fullUrl) or ($this in %resource.entry.resource.select(resourceType + '/' + id)))
ie-bnd-xb-1 error Bundle A cross-border prescription SHALL give a secure contact email for the prescriber (the requester, its practitioner, or its organisation) (HIQA EP 2.10.2; a legal requirement cross-border) entry.resource.ofType(MedicationRequest).all(requester.resolve().telecom.where(system = 'email').exists() or requester.resolve().ofType(PractitionerRole).practitioner.resolve().telecom.where(system = 'email').exists() or requester.resolve().ofType(PractitionerRole).organization.resolve().telecom.where(system = 'email').exists())
ie-bnd-xb-2 error Bundle A cross-border prescription SHALL carry a prescriber signature covering every eP, referenced by fullUrl or by relative reference (HIQA EP 2.13; a legal requirement) entry.where(resource is MedicationRequest).all((fullUrl in %resource.entry.resource.ofType(Provenance).where(signature.exists()).target.reference) or (('MedicationRequest/' + resource.id) in %resource.entry.resource.ofType(Provenance).where(signature.exists()).target.reference))

This structure is derived from IEMpdElectronicPrescriptionGroup

Summary

Mandatory: 1 element

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Bundle C 0..* IEMpdElectronicPrescriptionGroup(0.1.0) Contains a collection of resources
Constraints: bdl-1, bdl-2, bdl-3, bdl-4, bdl-7, bdl-9, bdl-10, bdl-11, bdl-12, ie-bnd-rx-1, ie-bnd-rx-2, ie-bnd-rx-3, ie-bnd-rx-4, ie-bnd-rx-5, ie-bnd-rx-6, ie-bnd-rx-7, ie-bnd-rx-8, ie-bnd-rx-9, ie-bnd-rx-10, ie-bnd-rx-11, ie-bnd-rx-12, ie-bnd-rx-13, ie-bnd-rx-14, ie-bnd-xb-1, ie-bnd-xb-2
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... identifier SΣ 1..1 Identifier Persistent identifier for the bundle
... type Σ 1..1 code document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection
Binding: BundleType (required): Indicates the purpose of a bundle - how it is intended to be used.
Required Pattern: collection
... Slices for entry SΣC 5..* BackboneElement Entry in the bundle - will have a resource or information
Slice: Unordered, Open by type:resource
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
.... entry:All Slices Content/Rules for all slices
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource Σ 1..1 Resource A resource in the bundle
.... entry:patient SΣC 1..1 BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdPatientEPrescription(0.1.0) Information about an individual or animal receiving health care services
.... entry:header SΣC 1..1 BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdPrescriptionGroupHeader(0.1.0) A group of related requests
.... entry:electronicPrescription SΣC 1..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdMedicationRequestEPrescription(0.1.0) Ordering of medication for patient or group
.... entry:allergyStatement SΣC 1..1 BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdListAllergiesAtPrescribing(0.1.0) A list is a curated collection of resources
.... entry:allergy SΣC 0..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdAllergyIntolerance(0.1.0) Allergy or Intolerance (generally: Risk of adverse reaction to a substance)
.... entry:practitioner SΣC 0..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdPractitioner(0.1.0) A person with a formal responsibility in the provisioning of healthcare or related services
.... entry:practitionerRole SΣC 0..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdPractitionerRole(0.1.0) Roles/organizations the practitioner is associated with
.... entry:organization SΣC 0..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdOrganization(0.1.0) A grouping of people or organizations with a common purpose
.... entry:medication SΣC 0..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdMedicationEPrescription(0.1.0) Definition of a Medication
.... entry:dispensation SΣC 0..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdMedicationDispenseEDispensation(0.1.0) Dispensing a medication to a named patient
.... entry:provenance SΣC 1..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdProvenance(0.1.0) Who, What, When for a set of resources

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Bundle.type Base required BundleType 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
bdl-1 error Bundle total only when a search or history total.empty() or (type = 'searchset') or (type = 'history')
bdl-2 error Bundle entry.search only when a search entry.search.empty() or (type = 'searchset')
bdl-3 error Bundle entry.request mandatory for batch/transaction/history, otherwise prohibited entry.all(request.exists() = (%resource.type = 'batch' or %resource.type = 'transaction' or %resource.type = 'history'))
bdl-4 error Bundle entry.response mandatory for batch-response/transaction-response/history, otherwise prohibited entry.all(response.exists() = (%resource.type = 'batch-response' or %resource.type = 'transaction-response' or %resource.type = 'history'))
bdl-5 error Bundle.entry, Bundle.entry:patient, Bundle.entry:header, Bundle.entry:electronicPrescription, Bundle.entry:allergyStatement, Bundle.entry:allergy, Bundle.entry:practitioner, Bundle.entry:practitionerRole, Bundle.entry:organization, Bundle.entry:medication, Bundle.entry:dispensation, Bundle.entry:provenance must be a resource unless there's a request or response resource.exists() or request.exists() or response.exists()
bdl-7 error Bundle FullUrl must be unique in a bundle, or else entries with the same fullUrl must have different meta.versionId (except in history bundles) (type = 'history') or entry.where(fullUrl.exists()).select(fullUrl&resource.meta.versionId).isDistinct()
bdl-8 error Bundle.entry, Bundle.entry:patient, Bundle.entry:header, Bundle.entry:electronicPrescription, Bundle.entry:allergyStatement, Bundle.entry:allergy, Bundle.entry:practitioner, Bundle.entry:practitionerRole, Bundle.entry:organization, Bundle.entry:medication, Bundle.entry:dispensation, Bundle.entry:provenance fullUrl cannot be a version specific reference fullUrl.contains('/_history/').not()
bdl-9 error Bundle A document must have an identifier with a system and a value type = 'document' implies (identifier.system.exists() and identifier.value.exists())
bdl-10 error Bundle A document must have a date type = 'document' implies (timestamp.hasValue())
bdl-11 error Bundle A document must have a Composition as the first resource type = 'document' implies entry.first().resource.is(Composition)
bdl-12 error Bundle A message must have a MessageHeader as the first resource type = 'message' implies entry.first().resource.is(MessageHeader)
ele-1 error Bundle.implicitRules, Bundle.identifier, Bundle.type, Bundle.timestamp, Bundle.entry, Bundle.entry.modifierExtension, Bundle.entry.fullUrl, Bundle.entry:patient, Bundle.entry:patient.modifierExtension, Bundle.entry:patient.fullUrl, Bundle.entry:header, Bundle.entry:header.modifierExtension, Bundle.entry:header.fullUrl, Bundle.entry:electronicPrescription, Bundle.entry:electronicPrescription.modifierExtension, Bundle.entry:electronicPrescription.fullUrl, Bundle.entry:allergyStatement, Bundle.entry:allergyStatement.modifierExtension, Bundle.entry:allergyStatement.fullUrl, Bundle.entry:allergy, Bundle.entry:allergy.modifierExtension, Bundle.entry:allergy.fullUrl, Bundle.entry:practitioner, Bundle.entry:practitioner.modifierExtension, Bundle.entry:practitioner.fullUrl, Bundle.entry:practitionerRole, Bundle.entry:practitionerRole.modifierExtension, Bundle.entry:practitionerRole.fullUrl, Bundle.entry:organization, Bundle.entry:organization.modifierExtension, Bundle.entry:organization.fullUrl, Bundle.entry:medication, Bundle.entry:medication.modifierExtension, Bundle.entry:medication.fullUrl, Bundle.entry:dispensation, Bundle.entry:dispensation.modifierExtension, Bundle.entry:dispensation.fullUrl, Bundle.entry:provenance, Bundle.entry:provenance.modifierExtension, Bundle.entry:provenance.fullUrl All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error Bundle.entry.modifierExtension, Bundle.entry:patient.modifierExtension, Bundle.entry:header.modifierExtension, Bundle.entry:electronicPrescription.modifierExtension, Bundle.entry:allergyStatement.modifierExtension, Bundle.entry:allergy.modifierExtension, Bundle.entry:practitioner.modifierExtension, Bundle.entry:practitionerRole.modifierExtension, Bundle.entry:organization.modifierExtension, Bundle.entry:medication.modifierExtension, Bundle.entry:dispensation.modifierExtension, Bundle.entry:provenance.modifierExtension Must have either extensions or value[x], not both extension.exists() != value.exists()
ie-bnd-rx-1 error Bundle All electronic prescriptions (eP) in the ePG SHALL share one prescription group identifier (system and value) (HIQA EP 3.1) entry.resource.ofType(MedicationRequest).count() <= 1 or (entry.resource.ofType(MedicationRequest).all(groupIdentifier.exists()) and entry.resource.ofType(MedicationRequest).select(groupIdentifier.system + '|' + groupIdentifier.value).distinct().count() = 1)
ie-bnd-rx-2 error Bundle Every eP SHALL reference the allergy statement (a List coded LOINC 48765-2) in supportingInformation (HIQA EP 1.6.1 / 1.6.2) entry.resource.ofType(MedicationRequest).all(supportingInformation.where(resolve() is List and resolve().code.coding.where(system = 'http://loinc.org' and code = '48765-2').exists()).exists())
ie-bnd-rx-3 error Bundle If the patient is under 12 years old at the date of prescribing, or the date of birth is not a full date, every eP SHALL record the patient's age (HIQA EP 1.4.2; a legal requirement) entry.resource.ofType(MedicationRequest).all(extension('https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-patient-age-at-prescribing').exists() or ((%resource.entry.resource.ofType(Patient).first().birthDate.toString().length() = 10) and ((%resource.entry.resource.ofType(Patient).first().birthDate + 12 years).toString() <= authoredOn.toString().substring(0,10))))
ie-bnd-rx-4 error Bundle The prescriber (the requester, its practitioner, or its organisation) SHALL have a telephone number (HIQA EP 2.10 / 2.10.1, Mandatory) entry.resource.ofType(MedicationRequest).all(requester.resolve().telecom.where(system = 'phone').exists() or requester.resolve().ofType(PractitionerRole).practitioner.resolve().telecom.where(system = 'phone').exists() or requester.resolve().ofType(PractitionerRole).organization.resolve().telecom.where(system = 'phone').exists())
ie-bnd-rx-5 error Bundle Every eP, the allergy statement and every allergy SHALL be about the one Patient in the Bundle (patient safety: the allergy statement must be the patient's own) (entry.resource.ofType(MedicationRequest).subject.reference | entry.resource.ofType(List).subject.reference | entry.resource.ofType(AllergyIntolerance).patient.reference).all(($this = %resource.entry.where(resource is Patient).fullUrl) or ($this = ('Patient/' + %resource.entry.resource.ofType(Patient).id)))
ie-bnd-rx-6 error Bundle Every allergy listed in the allergy statement SHALL be included in the Bundle (HIQA EP 1.6.2) entry.resource.ofType(List).entry.item.reference.all(($this in %resource.entry.fullUrl) or ($this.replace('AllergyIntolerance/', '') in %resource.entry.resource.ofType(AllergyIntolerance).id))
ie-bnd-rx-7 error Bundle The prescription group header SHALL list every eP in the ePG as an action, and only those (HIQA EP 3.5) entry.where(resource is MedicationRequest).all((fullUrl in %resource.entry.resource.ofType(RequestGroup).action.resource.reference) or (('MedicationRequest/' + resource.id) in %resource.entry.resource.ofType(RequestGroup).action.resource.reference)) and entry.resource.ofType(RequestGroup).action.resource.reference.all(($this in %resource.entry.where(resource is MedicationRequest).fullUrl) or ($this.replace('MedicationRequest/', '') in %resource.entry.resource.ofType(MedicationRequest).id))
ie-bnd-rx-8 error Bundle Every eP SHALL carry one of the prescription group identifiers as its groupIdentifier (HIQA EP 3.1) entry.resource.ofType(MedicationRequest).all((groupIdentifier.system + '|' + groupIdentifier.value) in %resource.entry.resource.ofType(RequestGroup).identifier.select(system + '|' + value))
ie-bnd-rx-9 error Bundle Every eP SHALL have the prescription group's patient, prescriber and date of issue (HIQA EP 3.2; compare NHS EPS prescription-order) entry.resource.ofType(MedicationRequest).all(subject.reference = %resource.entry.resource.ofType(RequestGroup).first().subject.reference and requester.reference = %resource.entry.resource.ofType(RequestGroup).first().author.reference and authoredOn = %resource.entry.resource.ofType(RequestGroup).first().authoredOn)
ie-bnd-rx-10 warning Bundle The prescription group status SHOULD agree with the eP statuses: an active group has an active eP; a revoked (cancelled) group has only cancelled or stopped eP; a completed group has no active, on-hold or draft eP (HIQA EP 3.3) entry.resource.ofType(RequestGroup).all((status = 'active' implies %resource.entry.resource.ofType(MedicationRequest).where(status = 'active').exists()) and (status = 'revoked' implies %resource.entry.resource.ofType(MedicationRequest).all(status = 'cancelled' or status = 'stopped')) and (status = 'completed' implies %resource.entry.resource.ofType(MedicationRequest).all(status = 'completed' or status = 'stopped' or status = 'cancelled')))
ie-bnd-rx-11 error Bundle The prescriber's healthcare facility (the organisation of the prescriber's role) SHALL have an address with address line, county, postcode and country (HIQA EP 2.9, 2.9.1, 2.9.2, 2.9.4, 2.9.5, Mandatory) entry.resource.ofType(MedicationRequest).all(requester.resolve().ofType(PractitionerRole).organization.resolve().address.where(line.exists() and state.exists() and postalCode.exists() and country.exists()).exists())
ie-bnd-rx-12 error Bundle Every eDispensation in the ePG SHALL be authorised by an eP in the same ePG (HIQA EP 6.5) entry.resource.ofType(MedicationDispense).all(authorizingPrescription.exists() and authorizingPrescription.reference.all(($this in %resource.entry.where(resource is MedicationRequest).fullUrl) or ($this.replace('MedicationRequest/', '') in %resource.entry.resource.ofType(MedicationRequest).id)))
ie-bnd-rx-13 error Bundle Every eDispensation in the ePG SHALL be for the ePG's patient (patient safety) entry.resource.ofType(MedicationDispense).all(subject.reference = %resource.entry.resource.ofType(RequestGroup).first().subject.reference)
ie-bnd-rx-14 warning Bundle Every Provenance in the ePG SHOULD target resources in the same ePG entry.resource.ofType(Provenance).target.reference.all(($this in %resource.entry.fullUrl) or ($this in %resource.entry.resource.select(resourceType + '/' + id)))
ie-bnd-xb-1 error Bundle A cross-border prescription SHALL give a secure contact email for the prescriber (the requester, its practitioner, or its organisation) (HIQA EP 2.10.2; a legal requirement cross-border) entry.resource.ofType(MedicationRequest).all(requester.resolve().telecom.where(system = 'email').exists() or requester.resolve().ofType(PractitionerRole).practitioner.resolve().telecom.where(system = 'email').exists() or requester.resolve().ofType(PractitionerRole).organization.resolve().telecom.where(system = 'email').exists())
ie-bnd-xb-2 error Bundle A cross-border prescription SHALL carry a prescriber signature covering every eP, referenced by fullUrl or by relative reference (HIQA EP 2.13; a legal requirement) entry.where(resource is MedicationRequest).all((fullUrl in %resource.entry.resource.ofType(Provenance).where(signature.exists()).target.reference) or (('MedicationRequest/' + resource.id) in %resource.entry.resource.ofType(Provenance).where(signature.exists()).target.reference))

Differential View

This structure is derived from IEMpdElectronicPrescriptionGroup

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Bundle C 0..* IEMpdElectronicPrescriptionGroup(0.1.0) Contains a collection of resources
... entry 5..* BackboneElement Entry in the bundle - will have a resource or information
... Slices for entry Content/Rules for all slices
.... entry:provenance 1..* BackboneElement Entry in the bundle - will have a resource or information

doco Documentation for this format

Constraints

Id Grade Path(s) Description Expression
ie-bnd-xb-1 error Bundle A cross-border prescription SHALL give a secure contact email for the prescriber (the requester, its practitioner, or its organisation) (HIQA EP 2.10.2; a legal requirement cross-border) entry.resource.ofType(MedicationRequest).all(requester.resolve().telecom.where(system = 'email').exists() or requester.resolve().ofType(PractitionerRole).practitioner.resolve().telecom.where(system = 'email').exists() or requester.resolve().ofType(PractitionerRole).organization.resolve().telecom.where(system = 'email').exists())
ie-bnd-xb-2 error Bundle A cross-border prescription SHALL carry a prescriber signature covering every eP, referenced by fullUrl or by relative reference (HIQA EP 2.13; a legal requirement) entry.where(resource is MedicationRequest).all((fullUrl in %resource.entry.resource.ofType(Provenance).where(signature.exists()).target.reference) or (('MedicationRequest/' + resource.id) in %resource.entry.resource.ofType(Provenance).where(signature.exists()).target.reference))

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Bundle C 0..* IEMpdElectronicPrescriptionGroup(0.1.0) Contains a collection of resources
Constraints: bdl-1, bdl-2, bdl-3, bdl-4, bdl-7, bdl-9, bdl-10, bdl-11, bdl-12, ie-bnd-rx-1, ie-bnd-rx-2, ie-bnd-rx-3, ie-bnd-rx-4, ie-bnd-rx-5, ie-bnd-rx-6, ie-bnd-rx-7, ie-bnd-rx-8, ie-bnd-rx-9, ie-bnd-rx-10, ie-bnd-rx-11, ie-bnd-rx-12, ie-bnd-rx-13, ie-bnd-rx-14, ie-bnd-xb-1, ie-bnd-xb-2
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... identifier SΣ 1..1 Identifier Persistent identifier for the bundle
... type Σ 1..1 code document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection
Binding: BundleType (required): Indicates the purpose of a bundle - how it is intended to be used.
Required Pattern: collection
... timestamp SΣ 1..1 instant When the bundle was assembled
... total ΣC 0..1 unsignedInt If search, the total number of matches
... link Σ 0..* BackboneElement Links related to this Bundle
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
.... relation Σ 1..1 string See http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1
.... url Σ 1..1 uri Reference details for the link
... Slices for entry SΣC 5..* BackboneElement Entry in the bundle - will have a resource or information
Slice: Unordered, Open by type:resource
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
.... entry:All Slices Content/Rules for all slices
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... link Σ 0..* See link (Bundle) Links related to this entry
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource Σ 1..1 Resource A resource in the bundle
..... search ΣC 0..1 BackboneElement Search related information
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... mode Σ 0..1 code match | include | outcome - why this is in the result set
Binding: SearchEntryMode (required): Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.
...... score Σ 0..1 decimal Search ranking (between 0 and 1)
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... method Σ 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Binding: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
...... ifNoneMatch Σ 0..1 string For managing cache currency
...... ifModifiedSince Σ 0..1 instant For managing cache currency
...... ifMatch Σ 0..1 string For managing update contention
...... ifNoneExist Σ 0..1 string For conditional creates
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... status Σ 1..1 string Status response code (text optional)
...... location Σ 0..1 uri The location (if the operation returns a location)
...... etag Σ 0..1 string The Etag for the resource (if relevant)
...... lastModified Σ 0..1 instant Server's date time modified
...... outcome Σ 0..1 Resource OperationOutcome with hints and warnings (for batch/transaction)
.... entry:patient SΣC 1..1 BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... link Σ 0..* See link (Bundle) Links related to this entry
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdPatientEPrescription(0.1.0) Information about an individual or animal receiving health care services
..... search ΣC 0..1 BackboneElement Search related information
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... mode Σ 0..1 code match | include | outcome - why this is in the result set
Binding: SearchEntryMode (required): Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.
...... score Σ 0..1 decimal Search ranking (between 0 and 1)
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... method Σ 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Binding: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
...... ifNoneMatch Σ 0..1 string For managing cache currency
...... ifModifiedSince Σ 0..1 instant For managing cache currency
...... ifMatch Σ 0..1 string For managing update contention
...... ifNoneExist Σ 0..1 string For conditional creates
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... status Σ 1..1 string Status response code (text optional)
...... location Σ 0..1 uri The location (if the operation returns a location)
...... etag Σ 0..1 string The Etag for the resource (if relevant)
...... lastModified Σ 0..1 instant Server's date time modified
...... outcome Σ 0..1 Resource OperationOutcome with hints and warnings (for batch/transaction)
.... entry:header SΣC 1..1 BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... link Σ 0..* See link (Bundle) Links related to this entry
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdPrescriptionGroupHeader(0.1.0) A group of related requests
..... search ΣC 0..1 BackboneElement Search related information
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... mode Σ 0..1 code match | include | outcome - why this is in the result set
Binding: SearchEntryMode (required): Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.
...... score Σ 0..1 decimal Search ranking (between 0 and 1)
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... method Σ 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Binding: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
...... ifNoneMatch Σ 0..1 string For managing cache currency
...... ifModifiedSince Σ 0..1 instant For managing cache currency
...... ifMatch Σ 0..1 string For managing update contention
...... ifNoneExist Σ 0..1 string For conditional creates
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... status Σ 1..1 string Status response code (text optional)
...... location Σ 0..1 uri The location (if the operation returns a location)
...... etag Σ 0..1 string The Etag for the resource (if relevant)
...... lastModified Σ 0..1 instant Server's date time modified
...... outcome Σ 0..1 Resource OperationOutcome with hints and warnings (for batch/transaction)
.... entry:electronicPrescription SΣC 1..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... link Σ 0..* See link (Bundle) Links related to this entry
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdMedicationRequestEPrescription(0.1.0) Ordering of medication for patient or group
..... search ΣC 0..1 BackboneElement Search related information
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... mode Σ 0..1 code match | include | outcome - why this is in the result set
Binding: SearchEntryMode (required): Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.
...... score Σ 0..1 decimal Search ranking (between 0 and 1)
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... method Σ 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Binding: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
...... ifNoneMatch Σ 0..1 string For managing cache currency
...... ifModifiedSince Σ 0..1 instant For managing cache currency
...... ifMatch Σ 0..1 string For managing update contention
...... ifNoneExist Σ 0..1 string For conditional creates
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... status Σ 1..1 string Status response code (text optional)
...... location Σ 0..1 uri The location (if the operation returns a location)
...... etag Σ 0..1 string The Etag for the resource (if relevant)
...... lastModified Σ 0..1 instant Server's date time modified
...... outcome Σ 0..1 Resource OperationOutcome with hints and warnings (for batch/transaction)
.... entry:allergyStatement SΣC 1..1 BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... link Σ 0..* See link (Bundle) Links related to this entry
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdListAllergiesAtPrescribing(0.1.0) A list is a curated collection of resources
..... search ΣC 0..1 BackboneElement Search related information
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... mode Σ 0..1 code match | include | outcome - why this is in the result set
Binding: SearchEntryMode (required): Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.
...... score Σ 0..1 decimal Search ranking (between 0 and 1)
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... method Σ 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Binding: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
...... ifNoneMatch Σ 0..1 string For managing cache currency
...... ifModifiedSince Σ 0..1 instant For managing cache currency
...... ifMatch Σ 0..1 string For managing update contention
...... ifNoneExist Σ 0..1 string For conditional creates
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... status Σ 1..1 string Status response code (text optional)
...... location Σ 0..1 uri The location (if the operation returns a location)
...... etag Σ 0..1 string The Etag for the resource (if relevant)
...... lastModified Σ 0..1 instant Server's date time modified
...... outcome Σ 0..1 Resource OperationOutcome with hints and warnings (for batch/transaction)
.... entry:allergy SΣC 0..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... link Σ 0..* See link (Bundle) Links related to this entry
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdAllergyIntolerance(0.1.0) Allergy or Intolerance (generally: Risk of adverse reaction to a substance)
..... search ΣC 0..1 BackboneElement Search related information
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... mode Σ 0..1 code match | include | outcome - why this is in the result set
Binding: SearchEntryMode (required): Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.
...... score Σ 0..1 decimal Search ranking (between 0 and 1)
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... method Σ 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Binding: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
...... ifNoneMatch Σ 0..1 string For managing cache currency
...... ifModifiedSince Σ 0..1 instant For managing cache currency
...... ifMatch Σ 0..1 string For managing update contention
...... ifNoneExist Σ 0..1 string For conditional creates
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... status Σ 1..1 string Status response code (text optional)
...... location Σ 0..1 uri The location (if the operation returns a location)
...... etag Σ 0..1 string The Etag for the resource (if relevant)
...... lastModified Σ 0..1 instant Server's date time modified
...... outcome Σ 0..1 Resource OperationOutcome with hints and warnings (for batch/transaction)
.... entry:practitioner SΣC 0..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... link Σ 0..* See link (Bundle) Links related to this entry
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdPractitioner(0.1.0) A person with a formal responsibility in the provisioning of healthcare or related services
..... search ΣC 0..1 BackboneElement Search related information
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... mode Σ 0..1 code match | include | outcome - why this is in the result set
Binding: SearchEntryMode (required): Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.
...... score Σ 0..1 decimal Search ranking (between 0 and 1)
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... method Σ 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Binding: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
...... ifNoneMatch Σ 0..1 string For managing cache currency
...... ifModifiedSince Σ 0..1 instant For managing cache currency
...... ifMatch Σ 0..1 string For managing update contention
...... ifNoneExist Σ 0..1 string For conditional creates
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... status Σ 1..1 string Status response code (text optional)
...... location Σ 0..1 uri The location (if the operation returns a location)
...... etag Σ 0..1 string The Etag for the resource (if relevant)
...... lastModified Σ 0..1 instant Server's date time modified
...... outcome Σ 0..1 Resource OperationOutcome with hints and warnings (for batch/transaction)
.... entry:practitionerRole SΣC 0..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... link Σ 0..* See link (Bundle) Links related to this entry
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdPractitionerRole(0.1.0) Roles/organizations the practitioner is associated with
..... search ΣC 0..1 BackboneElement Search related information
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... mode Σ 0..1 code match | include | outcome - why this is in the result set
Binding: SearchEntryMode (required): Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.
...... score Σ 0..1 decimal Search ranking (between 0 and 1)
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... method Σ 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Binding: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
...... ifNoneMatch Σ 0..1 string For managing cache currency
...... ifModifiedSince Σ 0..1 instant For managing cache currency
...... ifMatch Σ 0..1 string For managing update contention
...... ifNoneExist Σ 0..1 string For conditional creates
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... status Σ 1..1 string Status response code (text optional)
...... location Σ 0..1 uri The location (if the operation returns a location)
...... etag Σ 0..1 string The Etag for the resource (if relevant)
...... lastModified Σ 0..1 instant Server's date time modified
...... outcome Σ 0..1 Resource OperationOutcome with hints and warnings (for batch/transaction)
.... entry:organization SΣC 0..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... link Σ 0..* See link (Bundle) Links related to this entry
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdOrganization(0.1.0) A grouping of people or organizations with a common purpose
..... search ΣC 0..1 BackboneElement Search related information
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... mode Σ 0..1 code match | include | outcome - why this is in the result set
Binding: SearchEntryMode (required): Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.
...... score Σ 0..1 decimal Search ranking (between 0 and 1)
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... method Σ 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Binding: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
...... ifNoneMatch Σ 0..1 string For managing cache currency
...... ifModifiedSince Σ 0..1 instant For managing cache currency
...... ifMatch Σ 0..1 string For managing update contention
...... ifNoneExist Σ 0..1 string For conditional creates
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... status Σ 1..1 string Status response code (text optional)
...... location Σ 0..1 uri The location (if the operation returns a location)
...... etag Σ 0..1 string The Etag for the resource (if relevant)
...... lastModified Σ 0..1 instant Server's date time modified
...... outcome Σ 0..1 Resource OperationOutcome with hints and warnings (for batch/transaction)
.... entry:medication SΣC 0..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... link Σ 0..* See link (Bundle) Links related to this entry
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdMedicationEPrescription(0.1.0) Definition of a Medication
..... search ΣC 0..1 BackboneElement Search related information
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... mode Σ 0..1 code match | include | outcome - why this is in the result set
Binding: SearchEntryMode (required): Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.
...... score Σ 0..1 decimal Search ranking (between 0 and 1)
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... method Σ 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Binding: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
...... ifNoneMatch Σ 0..1 string For managing cache currency
...... ifModifiedSince Σ 0..1 instant For managing cache currency
...... ifMatch Σ 0..1 string For managing update contention
...... ifNoneExist Σ 0..1 string For conditional creates
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... status Σ 1..1 string Status response code (text optional)
...... location Σ 0..1 uri The location (if the operation returns a location)
...... etag Σ 0..1 string The Etag for the resource (if relevant)
...... lastModified Σ 0..1 instant Server's date time modified
...... outcome Σ 0..1 Resource OperationOutcome with hints and warnings (for batch/transaction)
.... entry:dispensation SΣC 0..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... link Σ 0..* See link (Bundle) Links related to this entry
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdMedicationDispenseEDispensation(0.1.0) Dispensing a medication to a named patient
..... search ΣC 0..1 BackboneElement Search related information
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... mode Σ 0..1 code match | include | outcome - why this is in the result set
Binding: SearchEntryMode (required): Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.
...... score Σ 0..1 decimal Search ranking (between 0 and 1)
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... method Σ 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Binding: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
...... ifNoneMatch Σ 0..1 string For managing cache currency
...... ifModifiedSince Σ 0..1 instant For managing cache currency
...... ifMatch Σ 0..1 string For managing update contention
...... ifNoneExist Σ 0..1 string For conditional creates
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... status Σ 1..1 string Status response code (text optional)
...... location Σ 0..1 uri The location (if the operation returns a location)
...... etag Σ 0..1 string The Etag for the resource (if relevant)
...... lastModified Σ 0..1 instant Server's date time modified
...... outcome Σ 0..1 Resource OperationOutcome with hints and warnings (for batch/transaction)
.... entry:provenance SΣC 1..* BackboneElement Entry in the bundle - will have a resource or information
Constraints: bdl-5, bdl-8
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
..... link Σ 0..* See link (Bundle) Links related to this entry
..... fullUrl Σ 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
..... resource 1..1 IEMpdProvenance(0.1.0) Who, What, When for a set of resources
..... search ΣC 0..1 BackboneElement Search related information
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... mode Σ 0..1 code match | include | outcome - why this is in the result set
Binding: SearchEntryMode (required): Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.
...... score Σ 0..1 decimal Search ranking (between 0 and 1)
..... request ΣC 0..1 BackboneElement Additional execution information (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... method Σ 1..1 code GET | HEAD | POST | PUT | DELETE | PATCH
Binding: HTTPVerb (required): HTTP verbs (in the HTTP command line). See HTTP rfc for details.
...... url Σ 1..1 uri URL for HTTP equivalent of this entry
...... ifNoneMatch Σ 0..1 string For managing cache currency
...... ifModifiedSince Σ 0..1 instant For managing cache currency
...... ifMatch Σ 0..1 string For managing update contention
...... ifNoneExist Σ 0..1 string For conditional creates
..... response ΣC 0..1 BackboneElement Results of execution (transaction/batch/history)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Constraints: ext-1
...... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
...... status Σ 1..1 string Status response code (text optional)
...... location Σ 0..1 uri The location (if the operation returns a location)
...... etag Σ 0..1 string The Etag for the resource (if relevant)
...... lastModified Σ 0..1 instant Server's date time modified
...... outcome Σ 0..1 Resource OperationOutcome with hints and warnings (for batch/transaction)
... signature Σ 0..1 Signature Digital Signature

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Bundle.language Base preferred Common Languages 📍4.0.1 FHIR Std.
Bundle.type Base required BundleType 📍4.0.1 FHIR Std.
Bundle.entry.search.​mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry.request.​method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:patient.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:patient.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:header.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:header.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:electronicPrescription.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:electronicPrescription.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:allergyStatement.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:allergyStatement.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:allergy.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:allergy.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:practitioner.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:practitioner.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:practitionerRole.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:practitionerRole.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:organization.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:organization.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:medication.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:medication.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:dispensation.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:dispensation.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:provenance.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:provenance.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
bdl-1 error Bundle total only when a search or history total.empty() or (type = 'searchset') or (type = 'history')
bdl-2 error Bundle entry.search only when a search entry.search.empty() or (type = 'searchset')
bdl-3 error Bundle entry.request mandatory for batch/transaction/history, otherwise prohibited entry.all(request.exists() = (%resource.type = 'batch' or %resource.type = 'transaction' or %resource.type = 'history'))
bdl-4 error Bundle entry.response mandatory for batch-response/transaction-response/history, otherwise prohibited entry.all(response.exists() = (%resource.type = 'batch-response' or %resource.type = 'transaction-response' or %resource.type = 'history'))
bdl-5 error Bundle.entry, Bundle.entry:patient, Bundle.entry:header, Bundle.entry:electronicPrescription, Bundle.entry:allergyStatement, Bundle.entry:allergy, Bundle.entry:practitioner, Bundle.entry:practitionerRole, Bundle.entry:organization, Bundle.entry:medication, Bundle.entry:dispensation, Bundle.entry:provenance must be a resource unless there's a request or response resource.exists() or request.exists() or response.exists()
bdl-7 error Bundle FullUrl must be unique in a bundle, or else entries with the same fullUrl must have different meta.versionId (except in history bundles) (type = 'history') or entry.where(fullUrl.exists()).select(fullUrl&resource.meta.versionId).isDistinct()
bdl-8 error Bundle.entry, Bundle.entry:patient, Bundle.entry:header, Bundle.entry:electronicPrescription, Bundle.entry:allergyStatement, Bundle.entry:allergy, Bundle.entry:practitioner, Bundle.entry:practitionerRole, Bundle.entry:organization, Bundle.entry:medication, Bundle.entry:dispensation, Bundle.entry:provenance fullUrl cannot be a version specific reference fullUrl.contains('/_history/').not()
bdl-9 error Bundle A document must have an identifier with a system and a value type = 'document' implies (identifier.system.exists() and identifier.value.exists())
bdl-10 error Bundle A document must have a date type = 'document' implies (timestamp.hasValue())
bdl-11 error Bundle A document must have a Composition as the first resource type = 'document' implies entry.first().resource.is(Composition)
bdl-12 error Bundle A message must have a MessageHeader as the first resource type = 'message' implies entry.first().resource.is(MessageHeader)
ele-1 error Bundle.meta, Bundle.implicitRules, Bundle.language, Bundle.identifier, Bundle.type, Bundle.timestamp, Bundle.total, Bundle.link, Bundle.link.extension, Bundle.link.modifierExtension, Bundle.link.relation, Bundle.link.url, Bundle.entry, Bundle.entry.extension, Bundle.entry.modifierExtension, Bundle.entry.link, Bundle.entry.fullUrl, Bundle.entry.search, Bundle.entry.search.extension, Bundle.entry.search.modifierExtension, Bundle.entry.search.mode, Bundle.entry.search.score, Bundle.entry.request, Bundle.entry.request.extension, Bundle.entry.request.modifierExtension, Bundle.entry.request.method, Bundle.entry.request.url, Bundle.entry.request.ifNoneMatch, Bundle.entry.request.ifModifiedSince, Bundle.entry.request.ifMatch, Bundle.entry.request.ifNoneExist, Bundle.entry.response, Bundle.entry.response.extension, Bundle.entry.response.modifierExtension, Bundle.entry.response.status, Bundle.entry.response.location, Bundle.entry.response.etag, Bundle.entry.response.lastModified, Bundle.entry:patient, Bundle.entry:patient.extension, Bundle.entry:patient.modifierExtension, Bundle.entry:patient.link, Bundle.entry:patient.fullUrl, Bundle.entry:patient.search, Bundle.entry:patient.search.extension, Bundle.entry:patient.search.modifierExtension, Bundle.entry:patient.search.mode, Bundle.entry:patient.search.score, Bundle.entry:patient.request, Bundle.entry:patient.request.extension, Bundle.entry:patient.request.modifierExtension, Bundle.entry:patient.request.method, Bundle.entry:patient.request.url, Bundle.entry:patient.request.ifNoneMatch, Bundle.entry:patient.request.ifModifiedSince, Bundle.entry:patient.request.ifMatch, Bundle.entry:patient.request.ifNoneExist, Bundle.entry:patient.response, Bundle.entry:patient.response.extension, Bundle.entry:patient.response.modifierExtension, Bundle.entry:patient.response.status, Bundle.entry:patient.response.location, Bundle.entry:patient.response.etag, Bundle.entry:patient.response.lastModified, Bundle.entry:header, Bundle.entry:header.extension, Bundle.entry:header.modifierExtension, Bundle.entry:header.link, Bundle.entry:header.fullUrl, Bundle.entry:header.search, Bundle.entry:header.search.extension, Bundle.entry:header.search.modifierExtension, Bundle.entry:header.search.mode, Bundle.entry:header.search.score, Bundle.entry:header.request, Bundle.entry:header.request.extension, Bundle.entry:header.request.modifierExtension, Bundle.entry:header.request.method, Bundle.entry:header.request.url, Bundle.entry:header.request.ifNoneMatch, Bundle.entry:header.request.ifModifiedSince, Bundle.entry:header.request.ifMatch, Bundle.entry:header.request.ifNoneExist, Bundle.entry:header.response, Bundle.entry:header.response.extension, Bundle.entry:header.response.modifierExtension, Bundle.entry:header.response.status, Bundle.entry:header.response.location, Bundle.entry:header.response.etag, Bundle.entry:header.response.lastModified, Bundle.entry:electronicPrescription, Bundle.entry:electronicPrescription.extension, Bundle.entry:electronicPrescription.modifierExtension, Bundle.entry:electronicPrescription.link, Bundle.entry:electronicPrescription.fullUrl, Bundle.entry:electronicPrescription.search, Bundle.entry:electronicPrescription.search.extension, Bundle.entry:electronicPrescription.search.modifierExtension, Bundle.entry:electronicPrescription.search.mode, Bundle.entry:electronicPrescription.search.score, Bundle.entry:electronicPrescription.request, Bundle.entry:electronicPrescription.request.extension, Bundle.entry:electronicPrescription.request.modifierExtension, Bundle.entry:electronicPrescription.request.method, Bundle.entry:electronicPrescription.request.url, Bundle.entry:electronicPrescription.request.ifNoneMatch, Bundle.entry:electronicPrescription.request.ifModifiedSince, Bundle.entry:electronicPrescription.request.ifMatch, Bundle.entry:electronicPrescription.request.ifNoneExist, Bundle.entry:electronicPrescription.response, Bundle.entry:electronicPrescription.response.extension, Bundle.entry:electronicPrescription.response.modifierExtension, Bundle.entry:electronicPrescription.response.status, Bundle.entry:electronicPrescription.response.location, Bundle.entry:electronicPrescription.response.etag, Bundle.entry:electronicPrescription.response.lastModified, Bundle.entry:allergyStatement, Bundle.entry:allergyStatement.extension, Bundle.entry:allergyStatement.modifierExtension, Bundle.entry:allergyStatement.link, Bundle.entry:allergyStatement.fullUrl, Bundle.entry:allergyStatement.search, Bundle.entry:allergyStatement.search.extension, Bundle.entry:allergyStatement.search.modifierExtension, Bundle.entry:allergyStatement.search.mode, Bundle.entry:allergyStatement.search.score, Bundle.entry:allergyStatement.request, Bundle.entry:allergyStatement.request.extension, Bundle.entry:allergyStatement.request.modifierExtension, Bundle.entry:allergyStatement.request.method, Bundle.entry:allergyStatement.request.url, Bundle.entry:allergyStatement.request.ifNoneMatch, Bundle.entry:allergyStatement.request.ifModifiedSince, Bundle.entry:allergyStatement.request.ifMatch, Bundle.entry:allergyStatement.request.ifNoneExist, Bundle.entry:allergyStatement.response, Bundle.entry:allergyStatement.response.extension, Bundle.entry:allergyStatement.response.modifierExtension, Bundle.entry:allergyStatement.response.status, Bundle.entry:allergyStatement.response.location, Bundle.entry:allergyStatement.response.etag, Bundle.entry:allergyStatement.response.lastModified, Bundle.entry:allergy, Bundle.entry:allergy.extension, Bundle.entry:allergy.modifierExtension, Bundle.entry:allergy.link, Bundle.entry:allergy.fullUrl, Bundle.entry:allergy.search, Bundle.entry:allergy.search.extension, Bundle.entry:allergy.search.modifierExtension, Bundle.entry:allergy.search.mode, Bundle.entry:allergy.search.score, Bundle.entry:allergy.request, Bundle.entry:allergy.request.extension, Bundle.entry:allergy.request.modifierExtension, Bundle.entry:allergy.request.method, Bundle.entry:allergy.request.url, Bundle.entry:allergy.request.ifNoneMatch, Bundle.entry:allergy.request.ifModifiedSince, Bundle.entry:allergy.request.ifMatch, Bundle.entry:allergy.request.ifNoneExist, Bundle.entry:allergy.response, Bundle.entry:allergy.response.extension, Bundle.entry:allergy.response.modifierExtension, Bundle.entry:allergy.response.status, Bundle.entry:allergy.response.location, Bundle.entry:allergy.response.etag, Bundle.entry:allergy.response.lastModified, Bundle.entry:practitioner, Bundle.entry:practitioner.extension, Bundle.entry:practitioner.modifierExtension, Bundle.entry:practitioner.link, Bundle.entry:practitioner.fullUrl, Bundle.entry:practitioner.search, Bundle.entry:practitioner.search.extension, Bundle.entry:practitioner.search.modifierExtension, Bundle.entry:practitioner.search.mode, Bundle.entry:practitioner.search.score, Bundle.entry:practitioner.request, Bundle.entry:practitioner.request.extension, Bundle.entry:practitioner.request.modifierExtension, Bundle.entry:practitioner.request.method, Bundle.entry:practitioner.request.url, Bundle.entry:practitioner.request.ifNoneMatch, Bundle.entry:practitioner.request.ifModifiedSince, Bundle.entry:practitioner.request.ifMatch, Bundle.entry:practitioner.request.ifNoneExist, Bundle.entry:practitioner.response, Bundle.entry:practitioner.response.extension, Bundle.entry:practitioner.response.modifierExtension, Bundle.entry:practitioner.response.status, Bundle.entry:practitioner.response.location, Bundle.entry:practitioner.response.etag, Bundle.entry:practitioner.response.lastModified, Bundle.entry:practitionerRole, Bundle.entry:practitionerRole.extension, Bundle.entry:practitionerRole.modifierExtension, Bundle.entry:practitionerRole.link, Bundle.entry:practitionerRole.fullUrl, Bundle.entry:practitionerRole.search, Bundle.entry:practitionerRole.search.extension, Bundle.entry:practitionerRole.search.modifierExtension, Bundle.entry:practitionerRole.search.mode, Bundle.entry:practitionerRole.search.score, Bundle.entry:practitionerRole.request, Bundle.entry:practitionerRole.request.extension, Bundle.entry:practitionerRole.request.modifierExtension, Bundle.entry:practitionerRole.request.method, Bundle.entry:practitionerRole.request.url, Bundle.entry:practitionerRole.request.ifNoneMatch, Bundle.entry:practitionerRole.request.ifModifiedSince, Bundle.entry:practitionerRole.request.ifMatch, Bundle.entry:practitionerRole.request.ifNoneExist, Bundle.entry:practitionerRole.response, Bundle.entry:practitionerRole.response.extension, Bundle.entry:practitionerRole.response.modifierExtension, Bundle.entry:practitionerRole.response.status, Bundle.entry:practitionerRole.response.location, Bundle.entry:practitionerRole.response.etag, Bundle.entry:practitionerRole.response.lastModified, Bundle.entry:organization, Bundle.entry:organization.extension, Bundle.entry:organization.modifierExtension, Bundle.entry:organization.link, Bundle.entry:organization.fullUrl, Bundle.entry:organization.search, Bundle.entry:organization.search.extension, Bundle.entry:organization.search.modifierExtension, Bundle.entry:organization.search.mode, Bundle.entry:organization.search.score, Bundle.entry:organization.request, Bundle.entry:organization.request.extension, Bundle.entry:organization.request.modifierExtension, Bundle.entry:organization.request.method, Bundle.entry:organization.request.url, Bundle.entry:organization.request.ifNoneMatch, Bundle.entry:organization.request.ifModifiedSince, Bundle.entry:organization.request.ifMatch, Bundle.entry:organization.request.ifNoneExist, Bundle.entry:organization.response, Bundle.entry:organization.response.extension, Bundle.entry:organization.response.modifierExtension, Bundle.entry:organization.response.status, Bundle.entry:organization.response.location, Bundle.entry:organization.response.etag, Bundle.entry:organization.response.lastModified, Bundle.entry:medication, Bundle.entry:medication.extension, Bundle.entry:medication.modifierExtension, Bundle.entry:medication.link, Bundle.entry:medication.fullUrl, Bundle.entry:medication.search, Bundle.entry:medication.search.extension, Bundle.entry:medication.search.modifierExtension, Bundle.entry:medication.search.mode, Bundle.entry:medication.search.score, Bundle.entry:medication.request, Bundle.entry:medication.request.extension, Bundle.entry:medication.request.modifierExtension, Bundle.entry:medication.request.method, Bundle.entry:medication.request.url, Bundle.entry:medication.request.ifNoneMatch, Bundle.entry:medication.request.ifModifiedSince, Bundle.entry:medication.request.ifMatch, Bundle.entry:medication.request.ifNoneExist, Bundle.entry:medication.response, Bundle.entry:medication.response.extension, Bundle.entry:medication.response.modifierExtension, Bundle.entry:medication.response.status, Bundle.entry:medication.response.location, Bundle.entry:medication.response.etag, Bundle.entry:medication.response.lastModified, Bundle.entry:dispensation, Bundle.entry:dispensation.extension, Bundle.entry:dispensation.modifierExtension, Bundle.entry:dispensation.link, Bundle.entry:dispensation.fullUrl, Bundle.entry:dispensation.search, Bundle.entry:dispensation.search.extension, Bundle.entry:dispensation.search.modifierExtension, Bundle.entry:dispensation.search.mode, Bundle.entry:dispensation.search.score, Bundle.entry:dispensation.request, Bundle.entry:dispensation.request.extension, Bundle.entry:dispensation.request.modifierExtension, Bundle.entry:dispensation.request.method, Bundle.entry:dispensation.request.url, Bundle.entry:dispensation.request.ifNoneMatch, Bundle.entry:dispensation.request.ifModifiedSince, Bundle.entry:dispensation.request.ifMatch, Bundle.entry:dispensation.request.ifNoneExist, Bundle.entry:dispensation.response, Bundle.entry:dispensation.response.extension, Bundle.entry:dispensation.response.modifierExtension, Bundle.entry:dispensation.response.status, Bundle.entry:dispensation.response.location, Bundle.entry:dispensation.response.etag, Bundle.entry:dispensation.response.lastModified, Bundle.entry:provenance, Bundle.entry:provenance.extension, Bundle.entry:provenance.modifierExtension, Bundle.entry:provenance.link, Bundle.entry:provenance.fullUrl, Bundle.entry:provenance.search, Bundle.entry:provenance.search.extension, Bundle.entry:provenance.search.modifierExtension, Bundle.entry:provenance.search.mode, Bundle.entry:provenance.search.score, Bundle.entry:provenance.request, Bundle.entry:provenance.request.extension, Bundle.entry:provenance.request.modifierExtension, Bundle.entry:provenance.request.method, Bundle.entry:provenance.request.url, Bundle.entry:provenance.request.ifNoneMatch, Bundle.entry:provenance.request.ifModifiedSince, Bundle.entry:provenance.request.ifMatch, Bundle.entry:provenance.request.ifNoneExist, Bundle.entry:provenance.response, Bundle.entry:provenance.response.extension, Bundle.entry:provenance.response.modifierExtension, Bundle.entry:provenance.response.status, Bundle.entry:provenance.response.location, Bundle.entry:provenance.response.etag, Bundle.entry:provenance.response.lastModified, Bundle.signature All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error Bundle.link.extension, Bundle.link.modifierExtension, Bundle.entry.extension, Bundle.entry.modifierExtension, Bundle.entry.search.extension, Bundle.entry.search.modifierExtension, Bundle.entry.request.extension, Bundle.entry.request.modifierExtension, Bundle.entry.response.extension, Bundle.entry.response.modifierExtension, Bundle.entry:patient.extension, Bundle.entry:patient.modifierExtension, Bundle.entry:patient.search.extension, Bundle.entry:patient.search.modifierExtension, Bundle.entry:patient.request.extension, Bundle.entry:patient.request.modifierExtension, Bundle.entry:patient.response.extension, Bundle.entry:patient.response.modifierExtension, Bundle.entry:header.extension, Bundle.entry:header.modifierExtension, Bundle.entry:header.search.extension, Bundle.entry:header.search.modifierExtension, Bundle.entry:header.request.extension, Bundle.entry:header.request.modifierExtension, Bundle.entry:header.response.extension, Bundle.entry:header.response.modifierExtension, Bundle.entry:electronicPrescription.extension, Bundle.entry:electronicPrescription.modifierExtension, Bundle.entry:electronicPrescription.search.extension, Bundle.entry:electronicPrescription.search.modifierExtension, Bundle.entry:electronicPrescription.request.extension, Bundle.entry:electronicPrescription.request.modifierExtension, Bundle.entry:electronicPrescription.response.extension, Bundle.entry:electronicPrescription.response.modifierExtension, Bundle.entry:allergyStatement.extension, Bundle.entry:allergyStatement.modifierExtension, Bundle.entry:allergyStatement.search.extension, Bundle.entry:allergyStatement.search.modifierExtension, Bundle.entry:allergyStatement.request.extension, Bundle.entry:allergyStatement.request.modifierExtension, Bundle.entry:allergyStatement.response.extension, Bundle.entry:allergyStatement.response.modifierExtension, Bundle.entry:allergy.extension, Bundle.entry:allergy.modifierExtension, Bundle.entry:allergy.search.extension, Bundle.entry:allergy.search.modifierExtension, Bundle.entry:allergy.request.extension, Bundle.entry:allergy.request.modifierExtension, Bundle.entry:allergy.response.extension, Bundle.entry:allergy.response.modifierExtension, Bundle.entry:practitioner.extension, Bundle.entry:practitioner.modifierExtension, Bundle.entry:practitioner.search.extension, Bundle.entry:practitioner.search.modifierExtension, Bundle.entry:practitioner.request.extension, Bundle.entry:practitioner.request.modifierExtension, Bundle.entry:practitioner.response.extension, Bundle.entry:practitioner.response.modifierExtension, Bundle.entry:practitionerRole.extension, Bundle.entry:practitionerRole.modifierExtension, Bundle.entry:practitionerRole.search.extension, Bundle.entry:practitionerRole.search.modifierExtension, Bundle.entry:practitionerRole.request.extension, Bundle.entry:practitionerRole.request.modifierExtension, Bundle.entry:practitionerRole.response.extension, Bundle.entry:practitionerRole.response.modifierExtension, Bundle.entry:organization.extension, Bundle.entry:organization.modifierExtension, Bundle.entry:organization.search.extension, Bundle.entry:organization.search.modifierExtension, Bundle.entry:organization.request.extension, Bundle.entry:organization.request.modifierExtension, Bundle.entry:organization.response.extension, Bundle.entry:organization.response.modifierExtension, Bundle.entry:medication.extension, Bundle.entry:medication.modifierExtension, Bundle.entry:medication.search.extension, Bundle.entry:medication.search.modifierExtension, Bundle.entry:medication.request.extension, Bundle.entry:medication.request.modifierExtension, Bundle.entry:medication.response.extension, Bundle.entry:medication.response.modifierExtension, Bundle.entry:dispensation.extension, Bundle.entry:dispensation.modifierExtension, Bundle.entry:dispensation.search.extension, Bundle.entry:dispensation.search.modifierExtension, Bundle.entry:dispensation.request.extension, Bundle.entry:dispensation.request.modifierExtension, Bundle.entry:dispensation.response.extension, Bundle.entry:dispensation.response.modifierExtension, Bundle.entry:provenance.extension, Bundle.entry:provenance.modifierExtension, Bundle.entry:provenance.search.extension, Bundle.entry:provenance.search.modifierExtension, Bundle.entry:provenance.request.extension, Bundle.entry:provenance.request.modifierExtension, Bundle.entry:provenance.response.extension, Bundle.entry:provenance.response.modifierExtension Must have either extensions or value[x], not both extension.exists() != value.exists()
ie-bnd-rx-1 error Bundle All electronic prescriptions (eP) in the ePG SHALL share one prescription group identifier (system and value) (HIQA EP 3.1) entry.resource.ofType(MedicationRequest).count() <= 1 or (entry.resource.ofType(MedicationRequest).all(groupIdentifier.exists()) and entry.resource.ofType(MedicationRequest).select(groupIdentifier.system + '|' + groupIdentifier.value).distinct().count() = 1)
ie-bnd-rx-2 error Bundle Every eP SHALL reference the allergy statement (a List coded LOINC 48765-2) in supportingInformation (HIQA EP 1.6.1 / 1.6.2) entry.resource.ofType(MedicationRequest).all(supportingInformation.where(resolve() is List and resolve().code.coding.where(system = 'http://loinc.org' and code = '48765-2').exists()).exists())
ie-bnd-rx-3 error Bundle If the patient is under 12 years old at the date of prescribing, or the date of birth is not a full date, every eP SHALL record the patient's age (HIQA EP 1.4.2; a legal requirement) entry.resource.ofType(MedicationRequest).all(extension('https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-patient-age-at-prescribing').exists() or ((%resource.entry.resource.ofType(Patient).first().birthDate.toString().length() = 10) and ((%resource.entry.resource.ofType(Patient).first().birthDate + 12 years).toString() <= authoredOn.toString().substring(0,10))))
ie-bnd-rx-4 error Bundle The prescriber (the requester, its practitioner, or its organisation) SHALL have a telephone number (HIQA EP 2.10 / 2.10.1, Mandatory) entry.resource.ofType(MedicationRequest).all(requester.resolve().telecom.where(system = 'phone').exists() or requester.resolve().ofType(PractitionerRole).practitioner.resolve().telecom.where(system = 'phone').exists() or requester.resolve().ofType(PractitionerRole).organization.resolve().telecom.where(system = 'phone').exists())
ie-bnd-rx-5 error Bundle Every eP, the allergy statement and every allergy SHALL be about the one Patient in the Bundle (patient safety: the allergy statement must be the patient's own) (entry.resource.ofType(MedicationRequest).subject.reference | entry.resource.ofType(List).subject.reference | entry.resource.ofType(AllergyIntolerance).patient.reference).all(($this = %resource.entry.where(resource is Patient).fullUrl) or ($this = ('Patient/' + %resource.entry.resource.ofType(Patient).id)))
ie-bnd-rx-6 error Bundle Every allergy listed in the allergy statement SHALL be included in the Bundle (HIQA EP 1.6.2) entry.resource.ofType(List).entry.item.reference.all(($this in %resource.entry.fullUrl) or ($this.replace('AllergyIntolerance/', '') in %resource.entry.resource.ofType(AllergyIntolerance).id))
ie-bnd-rx-7 error Bundle The prescription group header SHALL list every eP in the ePG as an action, and only those (HIQA EP 3.5) entry.where(resource is MedicationRequest).all((fullUrl in %resource.entry.resource.ofType(RequestGroup).action.resource.reference) or (('MedicationRequest/' + resource.id) in %resource.entry.resource.ofType(RequestGroup).action.resource.reference)) and entry.resource.ofType(RequestGroup).action.resource.reference.all(($this in %resource.entry.where(resource is MedicationRequest).fullUrl) or ($this.replace('MedicationRequest/', '') in %resource.entry.resource.ofType(MedicationRequest).id))
ie-bnd-rx-8 error Bundle Every eP SHALL carry one of the prescription group identifiers as its groupIdentifier (HIQA EP 3.1) entry.resource.ofType(MedicationRequest).all((groupIdentifier.system + '|' + groupIdentifier.value) in %resource.entry.resource.ofType(RequestGroup).identifier.select(system + '|' + value))
ie-bnd-rx-9 error Bundle Every eP SHALL have the prescription group's patient, prescriber and date of issue (HIQA EP 3.2; compare NHS EPS prescription-order) entry.resource.ofType(MedicationRequest).all(subject.reference = %resource.entry.resource.ofType(RequestGroup).first().subject.reference and requester.reference = %resource.entry.resource.ofType(RequestGroup).first().author.reference and authoredOn = %resource.entry.resource.ofType(RequestGroup).first().authoredOn)
ie-bnd-rx-10 warning Bundle The prescription group status SHOULD agree with the eP statuses: an active group has an active eP; a revoked (cancelled) group has only cancelled or stopped eP; a completed group has no active, on-hold or draft eP (HIQA EP 3.3) entry.resource.ofType(RequestGroup).all((status = 'active' implies %resource.entry.resource.ofType(MedicationRequest).where(status = 'active').exists()) and (status = 'revoked' implies %resource.entry.resource.ofType(MedicationRequest).all(status = 'cancelled' or status = 'stopped')) and (status = 'completed' implies %resource.entry.resource.ofType(MedicationRequest).all(status = 'completed' or status = 'stopped' or status = 'cancelled')))
ie-bnd-rx-11 error Bundle The prescriber's healthcare facility (the organisation of the prescriber's role) SHALL have an address with address line, county, postcode and country (HIQA EP 2.9, 2.9.1, 2.9.2, 2.9.4, 2.9.5, Mandatory) entry.resource.ofType(MedicationRequest).all(requester.resolve().ofType(PractitionerRole).organization.resolve().address.where(line.exists() and state.exists() and postalCode.exists() and country.exists()).exists())
ie-bnd-rx-12 error Bundle Every eDispensation in the ePG SHALL be authorised by an eP in the same ePG (HIQA EP 6.5) entry.resource.ofType(MedicationDispense).all(authorizingPrescription.exists() and authorizingPrescription.reference.all(($this in %resource.entry.where(resource is MedicationRequest).fullUrl) or ($this.replace('MedicationRequest/', '') in %resource.entry.resource.ofType(MedicationRequest).id)))
ie-bnd-rx-13 error Bundle Every eDispensation in the ePG SHALL be for the ePG's patient (patient safety) entry.resource.ofType(MedicationDispense).all(subject.reference = %resource.entry.resource.ofType(RequestGroup).first().subject.reference)
ie-bnd-rx-14 warning Bundle Every Provenance in the ePG SHOULD target resources in the same ePG entry.resource.ofType(Provenance).target.reference.all(($this in %resource.entry.fullUrl) or ($this in %resource.entry.resource.select(resourceType + '/' + id)))
ie-bnd-xb-1 error Bundle A cross-border prescription SHALL give a secure contact email for the prescriber (the requester, its practitioner, or its organisation) (HIQA EP 2.10.2; a legal requirement cross-border) entry.resource.ofType(MedicationRequest).all(requester.resolve().telecom.where(system = 'email').exists() or requester.resolve().ofType(PractitionerRole).practitioner.resolve().telecom.where(system = 'email').exists() or requester.resolve().ofType(PractitionerRole).organization.resolve().telecom.where(system = 'email').exists())
ie-bnd-xb-2 error Bundle A cross-border prescription SHALL carry a prescriber signature covering every eP, referenced by fullUrl or by relative reference (HIQA EP 2.13; a legal requirement) entry.where(resource is MedicationRequest).all((fullUrl in %resource.entry.resource.ofType(Provenance).where(signature.exists()).target.reference) or (('MedicationRequest/' + resource.id) in %resource.entry.resource.ofType(Provenance).where(signature.exists()).target.reference))

This structure is derived from IEMpdElectronicPrescriptionGroup

Summary

Mandatory: 1 element

 

Other representations of profile: CSV, Excel, Schematron