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 Prescription Group Header

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

The header of an Electronic Prescription Group (ePG): the group-level data HIQA EP Section 3 defines, which a Bundle cannot carry: the prescription group identifier (3.1), date and time of issue (3.2), prescription group status with reason (3.3), presented form (3.4), and the electronic prescriptions (eP) it groups (3.5, one action per MedicationRequest). One entry of the ePG Bundle (IEMpdElectronicPrescriptionGroup, ADR-003).

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
.. RequestGroup C 0..* RequestGroup(4.0.1) A group of related requests
Constraints: ie-grp-status-1
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Constraints: ext-1
.... extension:statusReason S 0..1 CodeableConcept IE MPD Prescription Group Status Reason
URL: https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-prescription-group-status-reason
Constraints: ext-1
.... extension:presentedForm 0..* Attachment IE MPD Presented Form
URL: https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-presented-form
Constraints: ext-1
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
Constraints: ext-1
.... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
.... type SΣ 1..1 CodeableConcept Description of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
.... system SΣ 1..1 uri The namespace for the identifier value
Example General: http://www.acme.com/identifiers/patient
.... value SΣ 1..1 string The value that is unique
Example General: 123456
... status ?!SΣ 1..1 code draft | active | on-hold | revoked | completed | entered-in-error | unknown
Binding: RequestStatus (required): Codes identifying the lifecycle stage of a request.
... intent ?!Σ 1..1 code proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option
Binding: RequestIntent (required): Codes indicating the degree of authority/intentionality associated with a request.
Fixed Value: order
... subject S 1..1 Reference(IE MPD Patient (ePrescription/eDispensation)(0.1.0)) Who the request group is about
... authoredOn S 1..1 dateTime When the request group was authored
... author S 1..1 Reference(IE MPD PractitionerRole(0.1.0) | IE MPD Practitioner(0.1.0)) Device or practitioner that authored the request group
... note 0..* Annotation Additional notes about the response
... action SC 1..* BackboneElement Proposed actions, if any
Constraints: rqg-1
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
.... resource SC 1..1 Reference(IE MPD MedicationRequest (ePrescription)(0.1.0)) The target of the action

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
RequestGroup.identifier.​use Base required IdentifierUse 📍4.0.1 FHIR Std.
RequestGroup.identifier.​type Base extensible IdentifierType 📍4.0.1 FHIR Std.
RequestGroup.status Base required RequestStatus 📍4.0.1 FHIR Std.
RequestGroup.intent Base required RequestIntent 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error RequestGroup If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error RequestGroup If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error RequestGroup If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error RequestGroup If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice RequestGroup A resource should have narrative for robust management text.`div`.exists()
ele-1 error RequestGroup.implicitRules, RequestGroup.extension, RequestGroup.extension:statusReason, RequestGroup.extension:presentedForm, RequestGroup.modifierExtension, RequestGroup.identifier, RequestGroup.identifier.use, RequestGroup.identifier.type, RequestGroup.identifier.system, RequestGroup.identifier.value, RequestGroup.status, RequestGroup.intent, RequestGroup.subject, RequestGroup.authoredOn, RequestGroup.author, RequestGroup.note, RequestGroup.action, RequestGroup.action.modifierExtension, RequestGroup.action.resource All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error RequestGroup.extension, RequestGroup.extension:statusReason, RequestGroup.extension:presentedForm, RequestGroup.modifierExtension, RequestGroup.action.modifierExtension Must have either extensions or value[x], not both extension.exists() != value.exists()
ie-grp-status-1 error RequestGroup A status reason SHALL be given unless the prescription is active, completed or draft (HIQA EP 3.3.2) status = 'active' or status = 'completed' or status = 'draft' or extension('https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-prescription-group-status-reason').exists()
rqg-1 error RequestGroup.action Must have resource or action but not both resource.exists() != action.exists()

This structure is derived from RequestGroup

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. RequestGroup C 0..* RequestGroup(4.0.1) A group of related requests
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:statusReason S 0..1 CodeableConcept IE MPD Prescription Group Status Reason
URL: https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-prescription-group-status-reason
.... extension:presentedForm 0..* Attachment IE MPD Presented Form
URL: https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-presented-form
... identifier S 1..* Identifier Prescription group identifier (HIQA EP 3.1)
.... type S 1..1 CodeableConcept Description of identifier
.... system S 1..1 uri The namespace for the identifier value
.... value S 1..1 string The value that is unique
... status S 1..1 code draft | active | on-hold | revoked | completed | entered-in-error | unknown
... subject S 1..1 Reference(IE MPD Patient (ePrescription/eDispensation)(0.1.0)) Who the request group is about
... authoredOn S 1..1 dateTime When the request group was authored
... author S 1..1 Reference(IE MPD PractitionerRole(0.1.0) | IE MPD Practitioner(0.1.0)) Device or practitioner that authored the request group
... note 0..* Annotation Additional notes about the response
... action S 1..* BackboneElement Proposed actions, if any
.... resource S 1..1 Reference(IE MPD MedicationRequest (ePrescription)(0.1.0)) The target of the action
.... action 0..0 Sub action

doco Documentation for this format

Constraints

Id Grade Path(s) Description Expression
ie-grp-status-1 error RequestGroup A status reason SHALL be given unless the prescription is active, completed or draft (HIQA EP 3.3.2) status = 'active' or status = 'completed' or status = 'draft' or extension('https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-prescription-group-status-reason').exists()
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. RequestGroup C 0..* RequestGroup(4.0.1) A group of related requests
Constraints: ie-grp-status-1
... 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
... text 0..1 Narrative Text summary of the resource, for human interpretation
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
... contained 0..* Resource Contained, inline Resources
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Constraints: ext-1
.... extension:statusReason S 0..1 CodeableConcept IE MPD Prescription Group Status Reason
URL: https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-prescription-group-status-reason
Constraints: ext-1
.... extension:presentedForm 0..* Attachment IE MPD Presented Form
URL: https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-presented-form
Constraints: ext-1
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
Constraints: ext-1
... identifier SΣ 1..* Identifier Prescription group identifier (HIQA EP 3.1)
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Constraints: ext-1
.... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
.... type SΣ 1..1 CodeableConcept Description of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
.... system SΣ 1..1 uri The namespace for the identifier value
Example General: http://www.acme.com/identifiers/patient
.... value SΣ 1..1 string The value that is unique
Example General: 123456
.... period Σ 0..1 Period Time period when id is/was valid for use
.... assigner Σ 0..1 Reference(Organization) Organization that issued id (may be just text)
... instantiatesCanonical Σ 0..* canonical() Instantiates FHIR protocol or definition
... instantiatesUri Σ 0..* uri Instantiates external protocol or definition
... basedOn 0..* Reference(Resource) Fulfills plan, proposal, or order
... replaces 0..* Reference(Resource) Request(s) replaced by this request
... groupIdentifier Σ 0..1 Identifier Composite request this is part of
... status ?!SΣ 1..1 code draft | active | on-hold | revoked | completed | entered-in-error | unknown
Binding: RequestStatus (required): Codes identifying the lifecycle stage of a request.
... intent ?!Σ 1..1 code proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option
Binding: RequestIntent (required): Codes indicating the degree of authority/intentionality associated with a request.
Fixed Value: order
... priority Σ 0..1 code routine | urgent | asap | stat
Binding: RequestPriority (required): Identifies the level of importance to be assigned to actioning the request.
... code Σ 0..1 CodeableConcept What's being requested/ordered
... subject S 1..1 Reference(IE MPD Patient (ePrescription/eDispensation)(0.1.0)) Who the request group is about
... encounter 0..1 Reference(Encounter) Created as part of
... authoredOn S 1..1 dateTime When the request group was authored
... author S 1..1 Reference(IE MPD PractitionerRole(0.1.0) | IE MPD Practitioner(0.1.0)) Device or practitioner that authored the request group
... reasonCode 0..* CodeableConcept Why the request group is needed
... reasonReference 0..* Reference(Condition | Observation | DiagnosticReport | DocumentReference) Why the request group is needed
... note 0..* Annotation Additional notes about the response
... action SC 1..* BackboneElement Proposed actions, if any
Constraints: rqg-1
.... 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
.... prefix 0..1 string User-visible prefix for the action (e.g. 1. or A.)
.... title 0..1 string User-visible title
.... description Σ 0..1 string Short description of the action
.... textEquivalent Σ 0..1 string Static text equivalent of the action, used if the dynamic aspects cannot be interpreted by the receiving system
.... priority 0..1 code routine | urgent | asap | stat
Binding: RequestPriority (required): Identifies the level of importance to be assigned to actioning the request.
.... code 0..* CodeableConcept Code representing the meaning of the action or sub-actions
.... documentation 0..* RelatedArtifact Supporting documentation for the intended performer of the action
.... condition 0..* BackboneElement Whether or not the action is applicable
..... 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
..... kind 1..1 code applicability | start | stop
Binding: ActionConditionKind (required): The kind of condition for the action.
..... expression 0..1 Expression Boolean-valued expression
.... relatedAction 0..* BackboneElement Relationship to another action
..... 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
..... actionId 1..1 id What action this is related to
..... relationship 1..1 code before-start | before | before-end | concurrent-with-start | concurrent | concurrent-with-end | after-start | after | after-end
Binding: ActionRelationshipType (required): Defines the types of relationships between actions.
..... offset[x] 0..1 Time offset for the relationship
...... offsetDuration Duration
...... offsetRange Range
.... timing[x] 0..1 When the action should take place
..... timingDateTime dateTime
..... timingAge Age
..... timingPeriod Period
..... timingDuration Duration
..... timingRange Range
..... timingTiming Timing
.... participant 0..* Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Device) Who should perform the action
.... type 0..1 CodeableConcept create | update | remove | fire-event
Binding: ActionType (extensible): The type of action to be performed.
.... groupingBehavior 0..1 code visual-group | logical-group | sentence-group
Binding: ActionGroupingBehavior (required): Defines organization behavior of a group.
.... selectionBehavior 0..1 code any | all | all-or-none | exactly-one | at-most-one | one-or-more
Binding: ActionSelectionBehavior (required): Defines selection behavior of a group.
.... requiredBehavior 0..1 code must | could | must-unless-documented
Binding: ActionRequiredBehavior (required): Defines expectations around whether an action or action group is required.
.... precheckBehavior 0..1 code yes | no
Binding: ActionPrecheckBehavior (required): Defines selection frequency behavior for an action or group.
.... cardinalityBehavior 0..1 code single | multiple
Binding: ActionCardinalityBehavior (required): Defines behavior for an action or a group for how many times that item may be repeated.
.... resource SC 1..1 Reference(IE MPD MedicationRequest (ePrescription)(0.1.0)) The target of the action

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
RequestGroup.language Base preferred Common Languages 📍4.0.1 FHIR Std.
RequestGroup.identifier.​use Base required IdentifierUse 📍4.0.1 FHIR Std.
RequestGroup.identifier.​type Base extensible IdentifierType 📍4.0.1 FHIR Std.
RequestGroup.status Base required RequestStatus 📍4.0.1 FHIR Std.
RequestGroup.intent Base required RequestIntent 📍4.0.1 FHIR Std.
RequestGroup.priority Base required Request priority 📍4.0.1 FHIR Std.
RequestGroup.action.​priority Base required Request priority 📍4.0.1 FHIR Std.
RequestGroup.action.​condition.kind Base required ActionConditionKind 📍4.0.1 FHIR Std.
RequestGroup.action.​relatedAction.relationship Base required ActionRelationshipType 📍4.0.1 FHIR Std.
RequestGroup.action.​type Base extensible ActionType 📍4.0.1 FHIR Std.
RequestGroup.action.​groupingBehavior Base required ActionGroupingBehavior 📍4.0.1 FHIR Std.
RequestGroup.action.​selectionBehavior Base required ActionSelectionBehavior 📍4.0.1 FHIR Std.
RequestGroup.action.​requiredBehavior Base required ActionRequiredBehavior 📍4.0.1 FHIR Std.
RequestGroup.action.​precheckBehavior Base required ActionPrecheckBehavior 📍4.0.1 FHIR Std.
RequestGroup.action.​cardinalityBehavior Base required ActionCardinalityBehavior 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error RequestGroup If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error RequestGroup If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error RequestGroup If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error RequestGroup If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice RequestGroup A resource should have narrative for robust management text.`div`.exists()
ele-1 error RequestGroup.meta, RequestGroup.implicitRules, RequestGroup.language, RequestGroup.text, RequestGroup.extension, RequestGroup.extension:statusReason, RequestGroup.extension:presentedForm, RequestGroup.modifierExtension, RequestGroup.identifier, RequestGroup.identifier.extension, RequestGroup.identifier.use, RequestGroup.identifier.type, RequestGroup.identifier.system, RequestGroup.identifier.value, RequestGroup.identifier.period, RequestGroup.identifier.assigner, RequestGroup.instantiatesCanonical, RequestGroup.instantiatesUri, RequestGroup.basedOn, RequestGroup.replaces, RequestGroup.groupIdentifier, RequestGroup.status, RequestGroup.intent, RequestGroup.priority, RequestGroup.code, RequestGroup.subject, RequestGroup.encounter, RequestGroup.authoredOn, RequestGroup.author, RequestGroup.reasonCode, RequestGroup.reasonReference, RequestGroup.note, RequestGroup.action, RequestGroup.action.extension, RequestGroup.action.modifierExtension, RequestGroup.action.prefix, RequestGroup.action.title, RequestGroup.action.description, RequestGroup.action.textEquivalent, RequestGroup.action.priority, RequestGroup.action.code, RequestGroup.action.documentation, RequestGroup.action.condition, RequestGroup.action.condition.extension, RequestGroup.action.condition.modifierExtension, RequestGroup.action.condition.kind, RequestGroup.action.condition.expression, RequestGroup.action.relatedAction, RequestGroup.action.relatedAction.extension, RequestGroup.action.relatedAction.modifierExtension, RequestGroup.action.relatedAction.actionId, RequestGroup.action.relatedAction.relationship, RequestGroup.action.relatedAction.offset[x], RequestGroup.action.timing[x], RequestGroup.action.participant, RequestGroup.action.type, RequestGroup.action.groupingBehavior, RequestGroup.action.selectionBehavior, RequestGroup.action.requiredBehavior, RequestGroup.action.precheckBehavior, RequestGroup.action.cardinalityBehavior, RequestGroup.action.resource All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error RequestGroup.extension, RequestGroup.extension:statusReason, RequestGroup.extension:presentedForm, RequestGroup.modifierExtension, RequestGroup.identifier.extension, RequestGroup.action.extension, RequestGroup.action.modifierExtension, RequestGroup.action.condition.extension, RequestGroup.action.condition.modifierExtension, RequestGroup.action.relatedAction.extension, RequestGroup.action.relatedAction.modifierExtension Must have either extensions or value[x], not both extension.exists() != value.exists()
ie-grp-status-1 error RequestGroup A status reason SHALL be given unless the prescription is active, completed or draft (HIQA EP 3.3.2) status = 'active' or status = 'completed' or status = 'draft' or extension('https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-prescription-group-status-reason').exists()
rqg-1 error RequestGroup.action Must have resource or action but not both resource.exists() != action.exists()

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. RequestGroup C 0..* RequestGroup(4.0.1) A group of related requests
Constraints: ie-grp-status-1
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Constraints: ext-1
.... extension:statusReason S 0..1 CodeableConcept IE MPD Prescription Group Status Reason
URL: https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-prescription-group-status-reason
Constraints: ext-1
.... extension:presentedForm 0..* Attachment IE MPD Presented Form
URL: https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-presented-form
Constraints: ext-1
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
Constraints: ext-1
.... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
.... type SΣ 1..1 CodeableConcept Description of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
.... system SΣ 1..1 uri The namespace for the identifier value
Example General: http://www.acme.com/identifiers/patient
.... value SΣ 1..1 string The value that is unique
Example General: 123456
... status ?!SΣ 1..1 code draft | active | on-hold | revoked | completed | entered-in-error | unknown
Binding: RequestStatus (required): Codes identifying the lifecycle stage of a request.
... intent ?!Σ 1..1 code proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option
Binding: RequestIntent (required): Codes indicating the degree of authority/intentionality associated with a request.
Fixed Value: order
... subject S 1..1 Reference(IE MPD Patient (ePrescription/eDispensation)(0.1.0)) Who the request group is about
... authoredOn S 1..1 dateTime When the request group was authored
... author S 1..1 Reference(IE MPD PractitionerRole(0.1.0) | IE MPD Practitioner(0.1.0)) Device or practitioner that authored the request group
... note 0..* Annotation Additional notes about the response
... action SC 1..* BackboneElement Proposed actions, if any
Constraints: rqg-1
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
Constraints: ext-1
.... resource SC 1..1 Reference(IE MPD MedicationRequest (ePrescription)(0.1.0)) The target of the action

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
RequestGroup.identifier.​use Base required IdentifierUse 📍4.0.1 FHIR Std.
RequestGroup.identifier.​type Base extensible IdentifierType 📍4.0.1 FHIR Std.
RequestGroup.status Base required RequestStatus 📍4.0.1 FHIR Std.
RequestGroup.intent Base required RequestIntent 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error RequestGroup If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error RequestGroup If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error RequestGroup If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error RequestGroup If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice RequestGroup A resource should have narrative for robust management text.`div`.exists()
ele-1 error RequestGroup.implicitRules, RequestGroup.extension, RequestGroup.extension:statusReason, RequestGroup.extension:presentedForm, RequestGroup.modifierExtension, RequestGroup.identifier, RequestGroup.identifier.use, RequestGroup.identifier.type, RequestGroup.identifier.system, RequestGroup.identifier.value, RequestGroup.status, RequestGroup.intent, RequestGroup.subject, RequestGroup.authoredOn, RequestGroup.author, RequestGroup.note, RequestGroup.action, RequestGroup.action.modifierExtension, RequestGroup.action.resource All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error RequestGroup.extension, RequestGroup.extension:statusReason, RequestGroup.extension:presentedForm, RequestGroup.modifierExtension, RequestGroup.action.modifierExtension Must have either extensions or value[x], not both extension.exists() != value.exists()
ie-grp-status-1 error RequestGroup A status reason SHALL be given unless the prescription is active, completed or draft (HIQA EP 3.3.2) status = 'active' or status = 'completed' or status = 'draft' or extension('https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-prescription-group-status-reason').exists()
rqg-1 error RequestGroup.action Must have resource or action but not both resource.exists() != action.exists()

Differential View

This structure is derived from RequestGroup

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. RequestGroup C 0..* RequestGroup(4.0.1) A group of related requests
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:statusReason S 0..1 CodeableConcept IE MPD Prescription Group Status Reason
URL: https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-prescription-group-status-reason
.... extension:presentedForm 0..* Attachment IE MPD Presented Form
URL: https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-presented-form
... identifier S 1..* Identifier Prescription group identifier (HIQA EP 3.1)
.... type S 1..1 CodeableConcept Description of identifier
.... system S 1..1 uri The namespace for the identifier value
.... value S 1..1 string The value that is unique
... status S 1..1 code draft | active | on-hold | revoked | completed | entered-in-error | unknown
... subject S 1..1 Reference(IE MPD Patient (ePrescription/eDispensation)(0.1.0)) Who the request group is about
... authoredOn S 1..1 dateTime When the request group was authored
... author S 1..1 Reference(IE MPD PractitionerRole(0.1.0) | IE MPD Practitioner(0.1.0)) Device or practitioner that authored the request group
... note 0..* Annotation Additional notes about the response
... action S 1..* BackboneElement Proposed actions, if any
.... resource S 1..1 Reference(IE MPD MedicationRequest (ePrescription)(0.1.0)) The target of the action
.... action 0..0 Sub action

doco Documentation for this format

Constraints

Id Grade Path(s) Description Expression
ie-grp-status-1 error RequestGroup A status reason SHALL be given unless the prescription is active, completed or draft (HIQA EP 3.3.2) status = 'active' or status = 'completed' or status = 'draft' or extension('https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-prescription-group-status-reason').exists()

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. RequestGroup C 0..* RequestGroup(4.0.1) A group of related requests
Constraints: ie-grp-status-1
... 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
... text 0..1 Narrative Text summary of the resource, for human interpretation
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
... contained 0..* Resource Contained, inline Resources
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Constraints: ext-1
.... extension:statusReason S 0..1 CodeableConcept IE MPD Prescription Group Status Reason
URL: https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-prescription-group-status-reason
Constraints: ext-1
.... extension:presentedForm 0..* Attachment IE MPD Presented Form
URL: https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-presented-form
Constraints: ext-1
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
Constraints: ext-1
... identifier SΣ 1..* Identifier Prescription group identifier (HIQA EP 3.1)
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Constraints: ext-1
.... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
.... type SΣ 1..1 CodeableConcept Description of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
.... system SΣ 1..1 uri The namespace for the identifier value
Example General: http://www.acme.com/identifiers/patient
.... value SΣ 1..1 string The value that is unique
Example General: 123456
.... period Σ 0..1 Period Time period when id is/was valid for use
.... assigner Σ 0..1 Reference(Organization) Organization that issued id (may be just text)
... instantiatesCanonical Σ 0..* canonical() Instantiates FHIR protocol or definition
... instantiatesUri Σ 0..* uri Instantiates external protocol or definition
... basedOn 0..* Reference(Resource) Fulfills plan, proposal, or order
... replaces 0..* Reference(Resource) Request(s) replaced by this request
... groupIdentifier Σ 0..1 Identifier Composite request this is part of
... status ?!SΣ 1..1 code draft | active | on-hold | revoked | completed | entered-in-error | unknown
Binding: RequestStatus (required): Codes identifying the lifecycle stage of a request.
... intent ?!Σ 1..1 code proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option
Binding: RequestIntent (required): Codes indicating the degree of authority/intentionality associated with a request.
Fixed Value: order
... priority Σ 0..1 code routine | urgent | asap | stat
Binding: RequestPriority (required): Identifies the level of importance to be assigned to actioning the request.
... code Σ 0..1 CodeableConcept What's being requested/ordered
... subject S 1..1 Reference(IE MPD Patient (ePrescription/eDispensation)(0.1.0)) Who the request group is about
... encounter 0..1 Reference(Encounter) Created as part of
... authoredOn S 1..1 dateTime When the request group was authored
... author S 1..1 Reference(IE MPD PractitionerRole(0.1.0) | IE MPD Practitioner(0.1.0)) Device or practitioner that authored the request group
... reasonCode 0..* CodeableConcept Why the request group is needed
... reasonReference 0..* Reference(Condition | Observation | DiagnosticReport | DocumentReference) Why the request group is needed
... note 0..* Annotation Additional notes about the response
... action SC 1..* BackboneElement Proposed actions, if any
Constraints: rqg-1
.... 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
.... prefix 0..1 string User-visible prefix for the action (e.g. 1. or A.)
.... title 0..1 string User-visible title
.... description Σ 0..1 string Short description of the action
.... textEquivalent Σ 0..1 string Static text equivalent of the action, used if the dynamic aspects cannot be interpreted by the receiving system
.... priority 0..1 code routine | urgent | asap | stat
Binding: RequestPriority (required): Identifies the level of importance to be assigned to actioning the request.
.... code 0..* CodeableConcept Code representing the meaning of the action or sub-actions
.... documentation 0..* RelatedArtifact Supporting documentation for the intended performer of the action
.... condition 0..* BackboneElement Whether or not the action is applicable
..... 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
..... kind 1..1 code applicability | start | stop
Binding: ActionConditionKind (required): The kind of condition for the action.
..... expression 0..1 Expression Boolean-valued expression
.... relatedAction 0..* BackboneElement Relationship to another action
..... 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
..... actionId 1..1 id What action this is related to
..... relationship 1..1 code before-start | before | before-end | concurrent-with-start | concurrent | concurrent-with-end | after-start | after | after-end
Binding: ActionRelationshipType (required): Defines the types of relationships between actions.
..... offset[x] 0..1 Time offset for the relationship
...... offsetDuration Duration
...... offsetRange Range
.... timing[x] 0..1 When the action should take place
..... timingDateTime dateTime
..... timingAge Age
..... timingPeriod Period
..... timingDuration Duration
..... timingRange Range
..... timingTiming Timing
.... participant 0..* Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Device) Who should perform the action
.... type 0..1 CodeableConcept create | update | remove | fire-event
Binding: ActionType (extensible): The type of action to be performed.
.... groupingBehavior 0..1 code visual-group | logical-group | sentence-group
Binding: ActionGroupingBehavior (required): Defines organization behavior of a group.
.... selectionBehavior 0..1 code any | all | all-or-none | exactly-one | at-most-one | one-or-more
Binding: ActionSelectionBehavior (required): Defines selection behavior of a group.
.... requiredBehavior 0..1 code must | could | must-unless-documented
Binding: ActionRequiredBehavior (required): Defines expectations around whether an action or action group is required.
.... precheckBehavior 0..1 code yes | no
Binding: ActionPrecheckBehavior (required): Defines selection frequency behavior for an action or group.
.... cardinalityBehavior 0..1 code single | multiple
Binding: ActionCardinalityBehavior (required): Defines behavior for an action or a group for how many times that item may be repeated.
.... resource SC 1..1 Reference(IE MPD MedicationRequest (ePrescription)(0.1.0)) The target of the action

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
RequestGroup.language Base preferred Common Languages 📍4.0.1 FHIR Std.
RequestGroup.identifier.​use Base required IdentifierUse 📍4.0.1 FHIR Std.
RequestGroup.identifier.​type Base extensible IdentifierType 📍4.0.1 FHIR Std.
RequestGroup.status Base required RequestStatus 📍4.0.1 FHIR Std.
RequestGroup.intent Base required RequestIntent 📍4.0.1 FHIR Std.
RequestGroup.priority Base required Request priority 📍4.0.1 FHIR Std.
RequestGroup.action.​priority Base required Request priority 📍4.0.1 FHIR Std.
RequestGroup.action.​condition.kind Base required ActionConditionKind 📍4.0.1 FHIR Std.
RequestGroup.action.​relatedAction.relationship Base required ActionRelationshipType 📍4.0.1 FHIR Std.
RequestGroup.action.​type Base extensible ActionType 📍4.0.1 FHIR Std.
RequestGroup.action.​groupingBehavior Base required ActionGroupingBehavior 📍4.0.1 FHIR Std.
RequestGroup.action.​selectionBehavior Base required ActionSelectionBehavior 📍4.0.1 FHIR Std.
RequestGroup.action.​requiredBehavior Base required ActionRequiredBehavior 📍4.0.1 FHIR Std.
RequestGroup.action.​precheckBehavior Base required ActionPrecheckBehavior 📍4.0.1 FHIR Std.
RequestGroup.action.​cardinalityBehavior Base required ActionCardinalityBehavior 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error RequestGroup If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error RequestGroup If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error RequestGroup If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error RequestGroup If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice RequestGroup A resource should have narrative for robust management text.`div`.exists()
ele-1 error RequestGroup.meta, RequestGroup.implicitRules, RequestGroup.language, RequestGroup.text, RequestGroup.extension, RequestGroup.extension:statusReason, RequestGroup.extension:presentedForm, RequestGroup.modifierExtension, RequestGroup.identifier, RequestGroup.identifier.extension, RequestGroup.identifier.use, RequestGroup.identifier.type, RequestGroup.identifier.system, RequestGroup.identifier.value, RequestGroup.identifier.period, RequestGroup.identifier.assigner, RequestGroup.instantiatesCanonical, RequestGroup.instantiatesUri, RequestGroup.basedOn, RequestGroup.replaces, RequestGroup.groupIdentifier, RequestGroup.status, RequestGroup.intent, RequestGroup.priority, RequestGroup.code, RequestGroup.subject, RequestGroup.encounter, RequestGroup.authoredOn, RequestGroup.author, RequestGroup.reasonCode, RequestGroup.reasonReference, RequestGroup.note, RequestGroup.action, RequestGroup.action.extension, RequestGroup.action.modifierExtension, RequestGroup.action.prefix, RequestGroup.action.title, RequestGroup.action.description, RequestGroup.action.textEquivalent, RequestGroup.action.priority, RequestGroup.action.code, RequestGroup.action.documentation, RequestGroup.action.condition, RequestGroup.action.condition.extension, RequestGroup.action.condition.modifierExtension, RequestGroup.action.condition.kind, RequestGroup.action.condition.expression, RequestGroup.action.relatedAction, RequestGroup.action.relatedAction.extension, RequestGroup.action.relatedAction.modifierExtension, RequestGroup.action.relatedAction.actionId, RequestGroup.action.relatedAction.relationship, RequestGroup.action.relatedAction.offset[x], RequestGroup.action.timing[x], RequestGroup.action.participant, RequestGroup.action.type, RequestGroup.action.groupingBehavior, RequestGroup.action.selectionBehavior, RequestGroup.action.requiredBehavior, RequestGroup.action.precheckBehavior, RequestGroup.action.cardinalityBehavior, RequestGroup.action.resource All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error RequestGroup.extension, RequestGroup.extension:statusReason, RequestGroup.extension:presentedForm, RequestGroup.modifierExtension, RequestGroup.identifier.extension, RequestGroup.action.extension, RequestGroup.action.modifierExtension, RequestGroup.action.condition.extension, RequestGroup.action.condition.modifierExtension, RequestGroup.action.relatedAction.extension, RequestGroup.action.relatedAction.modifierExtension Must have either extensions or value[x], not both extension.exists() != value.exists()
ie-grp-status-1 error RequestGroup A status reason SHALL be given unless the prescription is active, completed or draft (HIQA EP 3.3.2) status = 'active' or status = 'completed' or status = 'draft' or extension('https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-prescription-group-status-reason').exists()
rqg-1 error RequestGroup.action Must have resource or action but not both resource.exists() != action.exists()

 

Other representations of profile: CSV, Excel, Schematron