CH EMED EPR
3.0.0-ci-build - ci-build Switzerland flag

CH EMED EPR, published by CARA. This guide is not an authorized publication; it is the continuous build for version 3.0.0-ci-build built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/CARA-ch/ch-emed-epr/ and changes regularly. See the Directory of published versions

Resource Profile: PRE Document

Official URL: http://fhir.ch/ig/ch-emed-epr/StructureDefinition/ch-emed-epr-document-medicationprescription Version: 3.0.0-ci-build
Draft as of 2025-12-04 Computable Name: CHEMEDEPRDocumentMedicationPrescription

Copyright/Legal: CC0-1.0

Definition of the bundle for the medication prescription document

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..* CHEMEDDocumentMedicationPrescription CH EMED Medication Prescription Document
Constraints: bdl-1, bdl-2, bdl-3, bdl-4, bdl-7, bdl-9, bdl-10, bdl-11, bdl-12, bundle-composition-same-id
... id ΣD 0..1 id ✕ This element is not supported
... language D 0..1 code ✕ This element is not supported
Binding: CommonLanguages (preferred): A human language.
Additional BindingsPurpose
AllLanguages Max Binding
... identifier Σ 1..1 Identifier Persistent identifier for the bundle
.... extension D 0..* Extension ✕ This element is not supported
Slice: Unordered, Open by value:url
.... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
Required Pattern: official
.... type ΣD 0..1 CodeableConcept ✕ This element is not supported
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 Σ 1..1 uri The namespace for the identifier value
Fixed Value: urn:ietf:rfc:3986
.... value ΣC 1..1 string The value that is unique
Constraints: ch-core-doc-2, urn-uuid-invariant
Example General: 123456
Example CH Core: urn:uuid:daa8cd41-34a1-4a9c-9a6d-cd3f850142e9
Example CH EMED: urn:uuid:daa8cd41-34a1-4a9c-9a6d-cd3f850142e9
.... period ΣD 0..1 Period ✕ This element is not supported
.... assigner ΣD 0..1 Reference(CH EMED EPR Organization) ✕ This element is not supported
... timestamp Σ 1..1 instant The document's creation date and time
... link ΣD 0..* BackboneElement ✕ This element is not supported
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... 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 ΣC 3..* BackboneElement Entry in the bundle - will have a resource or information
Slice: Unordered, Open by profile: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 D 0..1 string ✕ This element is not supported
..... fullUrl ΣC 1..1 uri URN-encoded UUID for resource
Constraints: ch-core-doc-1
.... entry:Composition ΣC 1..1 BackboneElement Medication prescription composition
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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHEMEDEPRCompositionMedicationPrescription CH EMED Medication Prescription Composition
.... entry:Patient ΣC 1..* BackboneElement The patient targeted by this medication treatment plan
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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHEMEDEPRPatient CH Core Patient EPR (to include the patient in an EPR document)
.... entry:Practitioner Σ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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHEMEDEPRPractitioner CH EMED Practitioner
.... entry:PractitionerRole Σ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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHEMEDEPRPractitionerRole CH EMED PractitionerRole
.... entry:Organization Σ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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHEMEDEPROrganization CH EMED Organization
.... entry:RelatedPerson Σ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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHCoreRelatedPerson CH Core RelatedPerson
.... entry:Device Σ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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 Device Item used in healthcare
.... entry:Encounter ΣCD 0..* BackboneElement ✕ This element is not supported
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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHCoreEncounter CH Core Encounter
.... entry:Location ΣCD 0..* BackboneElement ✕ This element is not supported
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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHCoreLocation CH Core Location
.... entry:Binary Σ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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 Binary Pure binary content defined by a format other than FHIR
.... entry:MedicationRequest Σ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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHEMEDEPRMedicationRequest CH EMED MedicationRequest (PRE)
.... entry:ObsBodyWeight ΣC 0..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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHEMEDEPRObservationBodyWeight Measurements and simple assertions
... signature ΣD 0..1 Signature ✕ This element is not supported

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.identifier.use Base required IdentifierUse 📍4.0.1 FHIR Std.
Bundle.identifier.type Base extensible IdentifierType 📦4.0.1 FHIR Std.
Bundle.type Base required BundleType 📍4.0.1 FHIR Std.
Bundle.entry.request.​method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:Composition.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:Patient.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:Practitioner.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:PractitionerRole.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:Organization.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:RelatedPerson.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:Device.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:Encounter.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:Location.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:Binary.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:MedicationRequest.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:ObsBodyWeight.​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:Composition, Bundle.entry:Patient, Bundle.entry:Practitioner, Bundle.entry:PractitionerRole, Bundle.entry:Organization, Bundle.entry:RelatedPerson, Bundle.entry:Device, Bundle.entry:Encounter, Bundle.entry:Location, Bundle.entry:Binary, Bundle.entry:MedicationRequest, Bundle.entry:ObsBodyWeight 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:Composition, Bundle.entry:Patient, Bundle.entry:Practitioner, Bundle.entry:PractitionerRole, Bundle.entry:Organization, Bundle.entry:RelatedPerson, Bundle.entry:Device, Bundle.entry:Encounter, Bundle.entry:Location, Bundle.entry:Binary, Bundle.entry:MedicationRequest, Bundle.entry:ObsBodyWeight 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)
bundle-composition-same-id error Bundle The bundle and the composition resources must have the same identifier. identifier.single() = entry[0].resource.identifier.single()
ch-core-doc-1 error Bundle.entry.fullUrl, Bundle.entry:Composition.fullUrl, Bundle.entry:Patient.fullUrl, Bundle.entry:Practitioner.fullUrl, Bundle.entry:PractitionerRole.fullUrl, Bundle.entry:Organization.fullUrl, Bundle.entry:RelatedPerson.fullUrl, Bundle.entry:Device.fullUrl, Bundle.entry:Encounter.fullUrl, Bundle.entry:Location.fullUrl, Bundle.entry:Binary.fullUrl, Bundle.entry:MedicationRequest.fullUrl, Bundle.entry:ObsBodyWeight.fullUrl The fullUrl must be an absolute URL server address or an UUID startsWith('http') or startsWith('urn:uuid:') = true
ch-core-doc-2 error Bundle.identifier.value The identifier must be an UUID startsWith('urn:uuid:')
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()
urn-uuid-invariant error Bundle.identifier.value The value shall be an URN-encoded UUID ('urn:uuid:00000000-0000-0000-0000-000000000000') $this.matches('^urn:uuid:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$')

This structure is derived from CHEMEDDocumentMedicationPrescription

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Bundle C 0..* CHEMEDDocumentMedicationPrescription CH EMED Medication Prescription Document
Constraints: bundle-composition-same-id
... id D 0..1 id ✕ This element is not supported
... meta
.... extension D 0..* Extension ✕ This element is not supported
.... versionId D 0..1 id ✕ This element is not supported
.... lastUpdated D 0..1 instant ✕ This element is not supported
.... source D 0..1 uri ✕ This element is not supported
.... security D 0..* Coding ✕ This element is not supported
.... tag D 0..* Coding ✕ This element is not supported
... implicitRules 0..0 A set of rules under which this content was created
... identifier
.... extension D 0..* Extension ✕ This element is not supported
.... use 0..1 code usual | official | temp | secondary | old (If known)
Required Pattern: official
.... type D 0..1 CodeableConcept ✕ This element is not supported
.... value C 1..1 string The value that is unique
Constraints: urn-uuid-invariant
.... period D 0..1 Period ✕ This element is not supported
.... assigner D 0..1 Reference(CH EMED EPR Organization) ✕ This element is not supported
... total 0..0 If search, the total number of matches
... link D 0..* BackboneElement ✕ This element is not supported
... entry 3..* BackboneElement Entry in the bundle - will have a resource or information
.... id D 0..1 string ✕ This element is not supported
.... modifierExtension 0..0 Extension
.... link 0..0 Links related to this entry
.... fullUrl 1..1 uri URN-encoded UUID for resource
.... search 0..0 Search related information
.... request 0..0 Additional execution information (transaction/batch/history)
.... response 0..0 Results of execution (transaction/batch/history)
... Slices for entry Content/Rules for all slices
.... entry:Composition 1..1 BackboneElement Medication prescription composition
..... modifierExtension 0..0 Extension
..... link 0..0 Links related to this entry
..... resource 1..1 CHEMEDEPRCompositionMedicationPrescription CH EMED Medication Prescription Composition
..... search 0..0 Search related information
..... request 0..0 Additional execution information (transaction/batch/history)
..... response 0..0 Results of execution (transaction/batch/history)
.... entry:Patient 1..* BackboneElement The patient targeted by this medication treatment plan
..... modifierExtension 0..0 Extension
..... link 0..0 Links related to this entry
..... resource 1..1 CHEMEDEPRPatient CH Core Patient EPR (to include the patient in an EPR document)
..... search 0..0 Search related information
..... request 0..0 Additional execution information (transaction/batch/history)
..... response 0..0 Results of execution (transaction/batch/history)
.... entry:Practitioner 0..* BackboneElement Entry in the bundle - will have a resource or information
..... modifierExtension 0..0 Extension
..... link 0..0 Links related to this entry
..... resource 1..1 CHEMEDEPRPractitioner CH EMED Practitioner
..... search 0..0 Search related information
..... request 0..0 Additional execution information (transaction/batch/history)
..... response 0..0 Results of execution (transaction/batch/history)
.... entry:PractitionerRole 0..* BackboneElement Entry in the bundle - will have a resource or information
..... modifierExtension 0..0 Extension
..... link 0..0 Links related to this entry
..... resource 1..1 CHEMEDEPRPractitionerRole CH EMED PractitionerRole
..... search 0..0 Search related information
..... request 0..0 Additional execution information (transaction/batch/history)
..... response 0..0 Results of execution (transaction/batch/history)
.... entry:Organization 0..* BackboneElement Entry in the bundle - will have a resource or information
..... modifierExtension 0..0 Extension
..... link 0..0 Links related to this entry
..... resource 1..1 CHEMEDEPROrganization CH EMED Organization
..... search 0..0 Search related information
..... request 0..0 Additional execution information (transaction/batch/history)
..... response 0..0 Results of execution (transaction/batch/history)
.... entry:RelatedPerson 0..* BackboneElement Entry in the bundle - will have a resource or information
..... modifierExtension 0..0 Extension
..... link 0..0 Links related to this entry
..... search 0..0 Search related information
..... request 0..0 Additional execution information (transaction/batch/history)
..... response 0..0 Results of execution (transaction/batch/history)
.... entry:Device 0..* BackboneElement Entry in the bundle - will have a resource or information
..... modifierExtension 0..0 Extension
..... link 0..0 Links related to this entry
..... search 0..0 Search related information
..... request 0..0 Additional execution information (transaction/batch/history)
..... response 0..0 Results of execution (transaction/batch/history)
.... entry:Encounter D 0..* BackboneElement ✕ This element is not supported
..... modifierExtension 0..0 Extension
..... link 0..0 Links related to this entry
..... search 0..0 Search related information
..... request 0..0 Additional execution information (transaction/batch/history)
..... response 0..0 Results of execution (transaction/batch/history)
.... entry:Location D 0..* BackboneElement ✕ This element is not supported
..... modifierExtension 0..0 Extension
..... link 0..0 Links related to this entry
..... search 0..0 Search related information
..... request 0..0 Additional execution information (transaction/batch/history)
..... response 0..0 Results of execution (transaction/batch/history)
.... entry:Binary 1..* BackboneElement Entry in the bundle - will have a resource or information
..... modifierExtension 0..0 Extension
..... link 0..0 Links related to this entry
..... search 0..0 Search related information
..... request 0..0 Additional execution information (transaction/batch/history)
..... response 0..0 Results of execution (transaction/batch/history)
.... entry:MedicationRequest 0..* BackboneElement Entry in the bundle - will have a resource or information
..... modifierExtension 0..0 Extension
..... link 0..0 Links related to this entry
..... resource 1..1 CHEMEDEPRMedicationRequest CH EMED MedicationRequest (PRE)
..... search 0..0 Search related information
..... request 0..0 Additional execution information (transaction/batch/history)
..... response 0..0 Results of execution (transaction/batch/history)
.... entry:ObsBodyWeight 0..1 BackboneElement Entry in the bundle - will have a resource or information
..... modifierExtension 0..0 Extension
..... link 0..0 Links related to this entry
..... resource 1..1 CHEMEDEPRObservationBodyWeight Measurements and simple assertions
..... search 0..0 Search related information
..... request 0..0 Additional execution information (transaction/batch/history)
..... response 0..0 Results of execution (transaction/batch/history)
... signature D 0..1 Signature ✕ This element is not supported

doco Documentation for this format

Constraints

Id Grade Path(s) Description Expression
bundle-composition-same-id error Bundle The bundle and the composition resources must have the same identifier. identifier.single() = entry[0].resource.identifier.single()
urn-uuid-invariant error Bundle.identifier.value The value shall be an URN-encoded UUID ('urn:uuid:00000000-0000-0000-0000-000000000000') $this.matches('^urn:uuid:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$')
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Bundle C 0..* CHEMEDDocumentMedicationPrescription CH EMED Medication Prescription Document
Constraints: bdl-1, bdl-2, bdl-3, bdl-4, bdl-7, bdl-9, bdl-10, bdl-11, bdl-12, bundle-composition-same-id
... id ΣD 0..1 id ✕ This element is not supported
... meta Σ 0..1 Meta Metadata about the resource
.... id 0..1 string Unique id for inter-element referencing
.... extension D 0..* Extension ✕ This element is not supported
Slice: Unordered, Open by value:url
.... versionId ΣD 0..1 id ✕ This element is not supported
.... lastUpdated ΣD 0..1 instant ✕ This element is not supported
.... source ΣD 0..1 uri ✕ This element is not supported
.... profile Σ 0..* canonical(StructureDefinition) Profiles this resource claims to conform to
.... security ΣD 0..* Coding ✕ This element is not supported
Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
.... tag ΣD 0..* Coding ✕ This element is not supported
Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".
... language D 0..1 code ✕ This element is not supported
Binding: CommonLanguages (preferred): A human language.
Additional BindingsPurpose
AllLanguages Max Binding
.... id 0..1 string Unique id for inter-element referencing
.... extension D 0..* Extension ✕ This element is not supported
Slice: Unordered, Open by value:url
.... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
Required Pattern: official
.... type ΣD 0..1 CodeableConcept ✕ This element is not supported
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 Σ 1..1 uri The namespace for the identifier value
Fixed Value: urn:ietf:rfc:3986
.... value ΣC 1..1 string The value that is unique
Constraints: ch-core-doc-2, urn-uuid-invariant
Example General: 123456
Example CH Core: urn:uuid:daa8cd41-34a1-4a9c-9a6d-cd3f850142e9
Example CH EMED: urn:uuid:daa8cd41-34a1-4a9c-9a6d-cd3f850142e9
.... period ΣD 0..1 Period ✕ This element is not supported
.... assigner ΣD 0..1 Reference(CH EMED EPR Organization) ✕ This element is not supported
... type Σ 1..1 code document
Binding: BundleType (required): Indicates the purpose of a bundle - how it is intended to be used.
Fixed Value: document
... timestamp Σ 1..1 instant The document's creation date and time
... link ΣD 0..* BackboneElement ✕ This element is not supported
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... 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 ΣC 3..* BackboneElement Entry in the bundle - will have a resource or information
Slice: Unordered, Open by profile: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 D 0..1 string ✕ This element is not supported
..... extension 0..* Extension Additional content defined by implementations
..... fullUrl ΣC 1..1 uri URN-encoded UUID for resource
Constraints: ch-core-doc-1
..... resource Σ 0..1 Resource A resource in the bundle
.... entry:Composition ΣC 1..1 BackboneElement Medication prescription composition
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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHEMEDEPRCompositionMedicationPrescription CH EMED Medication Prescription Composition
.... entry:Patient ΣC 1..* BackboneElement The patient targeted by this medication treatment plan
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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHEMEDEPRPatient CH Core Patient EPR (to include the patient in an EPR document)
.... entry:Practitioner Σ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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHEMEDEPRPractitioner CH EMED Practitioner
.... entry:PractitionerRole Σ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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHEMEDEPRPractitionerRole CH EMED PractitionerRole
.... entry:Organization Σ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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHEMEDEPROrganization CH EMED Organization
.... entry:RelatedPerson Σ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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHCoreRelatedPerson CH Core RelatedPerson
.... entry:Device Σ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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 Device Item used in healthcare
.... entry:Encounter ΣCD 0..* BackboneElement ✕ This element is not supported
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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHCoreEncounter CH Core Encounter
.... entry:Location ΣCD 0..* BackboneElement ✕ This element is not supported
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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHCoreLocation CH Core Location
.... entry:Binary Σ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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 Binary Pure binary content defined by a format other than FHIR
.... entry:MedicationRequest Σ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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHEMEDEPRMedicationRequest CH EMED MedicationRequest (PRE)
.... entry:ObsBodyWeight ΣC 0..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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHEMEDEPRObservationBodyWeight Measurements and simple assertions
... signature ΣD 0..1 Signature ✕ This element is not supported

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Bundle.meta.security Base extensible SecurityLabels 📍4.0.1 FHIR Std.
Bundle.meta.tag Base example Common Tags 📍4.0.1 FHIR Std.
Bundle.language Base preferred Common Languages 📦4.0.1 FHIR Std.
Bundle.identifier.use Base required IdentifierUse 📍4.0.1 FHIR Std.
Bundle.identifier.type Base extensible IdentifierType 📦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:Composition.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:Composition.​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: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:RelatedPerson.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:RelatedPerson.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:Device.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:Device.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:Encounter.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:Encounter.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:Location.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:Location.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:Binary.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:Binary.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:MedicationRequest.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:MedicationRequest.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:ObsBodyWeight.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:ObsBodyWeight.​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:Composition, Bundle.entry:Patient, Bundle.entry:Practitioner, Bundle.entry:PractitionerRole, Bundle.entry:Organization, Bundle.entry:RelatedPerson, Bundle.entry:Device, Bundle.entry:Encounter, Bundle.entry:Location, Bundle.entry:Binary, Bundle.entry:MedicationRequest, Bundle.entry:ObsBodyWeight 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:Composition, Bundle.entry:Patient, Bundle.entry:Practitioner, Bundle.entry:PractitionerRole, Bundle.entry:Organization, Bundle.entry:RelatedPerson, Bundle.entry:Device, Bundle.entry:Encounter, Bundle.entry:Location, Bundle.entry:Binary, Bundle.entry:MedicationRequest, Bundle.entry:ObsBodyWeight 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)
bundle-composition-same-id error Bundle The bundle and the composition resources must have the same identifier. identifier.single() = entry[0].resource.identifier.single()
ch-core-doc-1 error Bundle.entry.fullUrl, Bundle.entry:Composition.fullUrl, Bundle.entry:Patient.fullUrl, Bundle.entry:Practitioner.fullUrl, Bundle.entry:PractitionerRole.fullUrl, Bundle.entry:Organization.fullUrl, Bundle.entry:RelatedPerson.fullUrl, Bundle.entry:Device.fullUrl, Bundle.entry:Encounter.fullUrl, Bundle.entry:Location.fullUrl, Bundle.entry:Binary.fullUrl, Bundle.entry:MedicationRequest.fullUrl, Bundle.entry:ObsBodyWeight.fullUrl The fullUrl must be an absolute URL server address or an UUID startsWith('http') or startsWith('urn:uuid:') = true
ch-core-doc-2 error Bundle.identifier.value The identifier must be an UUID startsWith('urn:uuid:')
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()
urn-uuid-invariant error Bundle.identifier.value The value shall be an URN-encoded UUID ('urn:uuid:00000000-0000-0000-0000-000000000000') $this.matches('^urn:uuid:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$')

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Bundle C 0..* CHEMEDDocumentMedicationPrescription CH EMED Medication Prescription Document
Constraints: bdl-1, bdl-2, bdl-3, bdl-4, bdl-7, bdl-9, bdl-10, bdl-11, bdl-12, bundle-composition-same-id
... id ΣD 0..1 id ✕ This element is not supported
... language D 0..1 code ✕ This element is not supported
Binding: CommonLanguages (preferred): A human language.
Additional BindingsPurpose
AllLanguages Max Binding
... identifier Σ 1..1 Identifier Persistent identifier for the bundle
.... extension D 0..* Extension ✕ This element is not supported
Slice: Unordered, Open by value:url
.... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
Required Pattern: official
.... type ΣD 0..1 CodeableConcept ✕ This element is not supported
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 Σ 1..1 uri The namespace for the identifier value
Fixed Value: urn:ietf:rfc:3986
.... value ΣC 1..1 string The value that is unique
Constraints: ch-core-doc-2, urn-uuid-invariant
Example General: 123456
Example CH Core: urn:uuid:daa8cd41-34a1-4a9c-9a6d-cd3f850142e9
Example CH EMED: urn:uuid:daa8cd41-34a1-4a9c-9a6d-cd3f850142e9
.... period ΣD 0..1 Period ✕ This element is not supported
.... assigner ΣD 0..1 Reference(CH EMED EPR Organization) ✕ This element is not supported
... timestamp Σ 1..1 instant The document's creation date and time
... link ΣD 0..* BackboneElement ✕ This element is not supported
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... 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 ΣC 3..* BackboneElement Entry in the bundle - will have a resource or information
Slice: Unordered, Open by profile: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 D 0..1 string ✕ This element is not supported
..... fullUrl ΣC 1..1 uri URN-encoded UUID for resource
Constraints: ch-core-doc-1
.... entry:Composition ΣC 1..1 BackboneElement Medication prescription composition
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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHEMEDEPRCompositionMedicationPrescription CH EMED Medication Prescription Composition
.... entry:Patient ΣC 1..* BackboneElement The patient targeted by this medication treatment plan
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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHEMEDEPRPatient CH Core Patient EPR (to include the patient in an EPR document)
.... entry:Practitioner Σ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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHEMEDEPRPractitioner CH EMED Practitioner
.... entry:PractitionerRole Σ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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHEMEDEPRPractitionerRole CH EMED PractitionerRole
.... entry:Organization Σ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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHEMEDEPROrganization CH EMED Organization
.... entry:RelatedPerson Σ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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHCoreRelatedPerson CH Core RelatedPerson
.... entry:Device Σ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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 Device Item used in healthcare
.... entry:Encounter ΣCD 0..* BackboneElement ✕ This element is not supported
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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHCoreEncounter CH Core Encounter
.... entry:Location ΣCD 0..* BackboneElement ✕ This element is not supported
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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHCoreLocation CH Core Location
.... entry:Binary Σ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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 Binary Pure binary content defined by a format other than FHIR
.... entry:MedicationRequest Σ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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHEMEDEPRMedicationRequest CH EMED MedicationRequest (PRE)
.... entry:ObsBodyWeight ΣC 0..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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHEMEDEPRObservationBodyWeight Measurements and simple assertions
... signature ΣD 0..1 Signature ✕ This element is not supported

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.identifier.use Base required IdentifierUse 📍4.0.1 FHIR Std.
Bundle.identifier.type Base extensible IdentifierType 📦4.0.1 FHIR Std.
Bundle.type Base required BundleType 📍4.0.1 FHIR Std.
Bundle.entry.request.​method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:Composition.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:Patient.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:Practitioner.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:PractitionerRole.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:Organization.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:RelatedPerson.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:Device.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:Encounter.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:Location.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:Binary.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:MedicationRequest.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:ObsBodyWeight.​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:Composition, Bundle.entry:Patient, Bundle.entry:Practitioner, Bundle.entry:PractitionerRole, Bundle.entry:Organization, Bundle.entry:RelatedPerson, Bundle.entry:Device, Bundle.entry:Encounter, Bundle.entry:Location, Bundle.entry:Binary, Bundle.entry:MedicationRequest, Bundle.entry:ObsBodyWeight 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:Composition, Bundle.entry:Patient, Bundle.entry:Practitioner, Bundle.entry:PractitionerRole, Bundle.entry:Organization, Bundle.entry:RelatedPerson, Bundle.entry:Device, Bundle.entry:Encounter, Bundle.entry:Location, Bundle.entry:Binary, Bundle.entry:MedicationRequest, Bundle.entry:ObsBodyWeight 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)
bundle-composition-same-id error Bundle The bundle and the composition resources must have the same identifier. identifier.single() = entry[0].resource.identifier.single()
ch-core-doc-1 error Bundle.entry.fullUrl, Bundle.entry:Composition.fullUrl, Bundle.entry:Patient.fullUrl, Bundle.entry:Practitioner.fullUrl, Bundle.entry:PractitionerRole.fullUrl, Bundle.entry:Organization.fullUrl, Bundle.entry:RelatedPerson.fullUrl, Bundle.entry:Device.fullUrl, Bundle.entry:Encounter.fullUrl, Bundle.entry:Location.fullUrl, Bundle.entry:Binary.fullUrl, Bundle.entry:MedicationRequest.fullUrl, Bundle.entry:ObsBodyWeight.fullUrl The fullUrl must be an absolute URL server address or an UUID startsWith('http') or startsWith('urn:uuid:') = true
ch-core-doc-2 error Bundle.identifier.value The identifier must be an UUID startsWith('urn:uuid:')
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()
urn-uuid-invariant error Bundle.identifier.value The value shall be an URN-encoded UUID ('urn:uuid:00000000-0000-0000-0000-000000000000') $this.matches('^urn:uuid:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$')

Differential View

This structure is derived from CHEMEDDocumentMedicationPrescription

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Bundle C 0..* CHEMEDDocumentMedicationPrescription CH EMED Medication Prescription Document
Constraints: bundle-composition-same-id
... id D 0..1 id ✕ This element is not supported
... meta
.... extension D 0..* Extension ✕ This element is not supported
.... versionId D 0..1 id ✕ This element is not supported
.... lastUpdated D 0..1 instant ✕ This element is not supported
.... source D 0..1 uri ✕ This element is not supported
.... security D 0..* Coding ✕ This element is not supported
.... tag D 0..* Coding ✕ This element is not supported
... implicitRules 0..0 A set of rules under which this content was created
... identifier
.... extension D 0..* Extension ✕ This element is not supported
.... use 0..1 code usual | official | temp | secondary | old (If known)
Required Pattern: official
.... type D 0..1 CodeableConcept ✕ This element is not supported
.... value C 1..1 string The value that is unique
Constraints: urn-uuid-invariant
.... period D 0..1 Period ✕ This element is not supported
.... assigner D 0..1 Reference(CH EMED EPR Organization) ✕ This element is not supported
... total 0..0 If search, the total number of matches
... link D 0..* BackboneElement ✕ This element is not supported
... entry 3..* BackboneElement Entry in the bundle - will have a resource or information
.... id D 0..1 string ✕ This element is not supported
.... modifierExtension 0..0 Extension
.... link 0..0 Links related to this entry
.... fullUrl 1..1 uri URN-encoded UUID for resource
.... search 0..0 Search related information
.... request 0..0 Additional execution information (transaction/batch/history)
.... response 0..0 Results of execution (transaction/batch/history)
... Slices for entry Content/Rules for all slices
.... entry:Composition 1..1 BackboneElement Medication prescription composition
..... modifierExtension 0..0 Extension
..... link 0..0 Links related to this entry
..... resource 1..1 CHEMEDEPRCompositionMedicationPrescription CH EMED Medication Prescription Composition
..... search 0..0 Search related information
..... request 0..0 Additional execution information (transaction/batch/history)
..... response 0..0 Results of execution (transaction/batch/history)
.... entry:Patient 1..* BackboneElement The patient targeted by this medication treatment plan
..... modifierExtension 0..0 Extension
..... link 0..0 Links related to this entry
..... resource 1..1 CHEMEDEPRPatient CH Core Patient EPR (to include the patient in an EPR document)
..... search 0..0 Search related information
..... request 0..0 Additional execution information (transaction/batch/history)
..... response 0..0 Results of execution (transaction/batch/history)
.... entry:Practitioner 0..* BackboneElement Entry in the bundle - will have a resource or information
..... modifierExtension 0..0 Extension
..... link 0..0 Links related to this entry
..... resource 1..1 CHEMEDEPRPractitioner CH EMED Practitioner
..... search 0..0 Search related information
..... request 0..0 Additional execution information (transaction/batch/history)
..... response 0..0 Results of execution (transaction/batch/history)
.... entry:PractitionerRole 0..* BackboneElement Entry in the bundle - will have a resource or information
..... modifierExtension 0..0 Extension
..... link 0..0 Links related to this entry
..... resource 1..1 CHEMEDEPRPractitionerRole CH EMED PractitionerRole
..... search 0..0 Search related information
..... request 0..0 Additional execution information (transaction/batch/history)
..... response 0..0 Results of execution (transaction/batch/history)
.... entry:Organization 0..* BackboneElement Entry in the bundle - will have a resource or information
..... modifierExtension 0..0 Extension
..... link 0..0 Links related to this entry
..... resource 1..1 CHEMEDEPROrganization CH EMED Organization
..... search 0..0 Search related information
..... request 0..0 Additional execution information (transaction/batch/history)
..... response 0..0 Results of execution (transaction/batch/history)
.... entry:RelatedPerson 0..* BackboneElement Entry in the bundle - will have a resource or information
..... modifierExtension 0..0 Extension
..... link 0..0 Links related to this entry
..... search 0..0 Search related information
..... request 0..0 Additional execution information (transaction/batch/history)
..... response 0..0 Results of execution (transaction/batch/history)
.... entry:Device 0..* BackboneElement Entry in the bundle - will have a resource or information
..... modifierExtension 0..0 Extension
..... link 0..0 Links related to this entry
..... search 0..0 Search related information
..... request 0..0 Additional execution information (transaction/batch/history)
..... response 0..0 Results of execution (transaction/batch/history)
.... entry:Encounter D 0..* BackboneElement ✕ This element is not supported
..... modifierExtension 0..0 Extension
..... link 0..0 Links related to this entry
..... search 0..0 Search related information
..... request 0..0 Additional execution information (transaction/batch/history)
..... response 0..0 Results of execution (transaction/batch/history)
.... entry:Location D 0..* BackboneElement ✕ This element is not supported
..... modifierExtension 0..0 Extension
..... link 0..0 Links related to this entry
..... search 0..0 Search related information
..... request 0..0 Additional execution information (transaction/batch/history)
..... response 0..0 Results of execution (transaction/batch/history)
.... entry:Binary 1..* BackboneElement Entry in the bundle - will have a resource or information
..... modifierExtension 0..0 Extension
..... link 0..0 Links related to this entry
..... search 0..0 Search related information
..... request 0..0 Additional execution information (transaction/batch/history)
..... response 0..0 Results of execution (transaction/batch/history)
.... entry:MedicationRequest 0..* BackboneElement Entry in the bundle - will have a resource or information
..... modifierExtension 0..0 Extension
..... link 0..0 Links related to this entry
..... resource 1..1 CHEMEDEPRMedicationRequest CH EMED MedicationRequest (PRE)
..... search 0..0 Search related information
..... request 0..0 Additional execution information (transaction/batch/history)
..... response 0..0 Results of execution (transaction/batch/history)
.... entry:ObsBodyWeight 0..1 BackboneElement Entry in the bundle - will have a resource or information
..... modifierExtension 0..0 Extension
..... link 0..0 Links related to this entry
..... resource 1..1 CHEMEDEPRObservationBodyWeight Measurements and simple assertions
..... search 0..0 Search related information
..... request 0..0 Additional execution information (transaction/batch/history)
..... response 0..0 Results of execution (transaction/batch/history)
... signature D 0..1 Signature ✕ This element is not supported

doco Documentation for this format

Constraints

Id Grade Path(s) Description Expression
bundle-composition-same-id error Bundle The bundle and the composition resources must have the same identifier. identifier.single() = entry[0].resource.identifier.single()
urn-uuid-invariant error Bundle.identifier.value The value shall be an URN-encoded UUID ('urn:uuid:00000000-0000-0000-0000-000000000000') $this.matches('^urn:uuid:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$')

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Bundle C 0..* CHEMEDDocumentMedicationPrescription CH EMED Medication Prescription Document
Constraints: bdl-1, bdl-2, bdl-3, bdl-4, bdl-7, bdl-9, bdl-10, bdl-11, bdl-12, bundle-composition-same-id
... id ΣD 0..1 id ✕ This element is not supported
... meta Σ 0..1 Meta Metadata about the resource
.... id 0..1 string Unique id for inter-element referencing
.... extension D 0..* Extension ✕ This element is not supported
Slice: Unordered, Open by value:url
.... versionId ΣD 0..1 id ✕ This element is not supported
.... lastUpdated ΣD 0..1 instant ✕ This element is not supported
.... source ΣD 0..1 uri ✕ This element is not supported
.... profile Σ 0..* canonical(StructureDefinition) Profiles this resource claims to conform to
.... security ΣD 0..* Coding ✕ This element is not supported
Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
.... tag ΣD 0..* Coding ✕ This element is not supported
Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".
... language D 0..1 code ✕ This element is not supported
Binding: CommonLanguages (preferred): A human language.
Additional BindingsPurpose
AllLanguages Max Binding
.... id 0..1 string Unique id for inter-element referencing
.... extension D 0..* Extension ✕ This element is not supported
Slice: Unordered, Open by value:url
.... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
Required Pattern: official
.... type ΣD 0..1 CodeableConcept ✕ This element is not supported
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 Σ 1..1 uri The namespace for the identifier value
Fixed Value: urn:ietf:rfc:3986
.... value ΣC 1..1 string The value that is unique
Constraints: ch-core-doc-2, urn-uuid-invariant
Example General: 123456
Example CH Core: urn:uuid:daa8cd41-34a1-4a9c-9a6d-cd3f850142e9
Example CH EMED: urn:uuid:daa8cd41-34a1-4a9c-9a6d-cd3f850142e9
.... period ΣD 0..1 Period ✕ This element is not supported
.... assigner ΣD 0..1 Reference(CH EMED EPR Organization) ✕ This element is not supported
... type Σ 1..1 code document
Binding: BundleType (required): Indicates the purpose of a bundle - how it is intended to be used.
Fixed Value: document
... timestamp Σ 1..1 instant The document's creation date and time
... link ΣD 0..* BackboneElement ✕ This element is not supported
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... 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 ΣC 3..* BackboneElement Entry in the bundle - will have a resource or information
Slice: Unordered, Open by profile: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 D 0..1 string ✕ This element is not supported
..... extension 0..* Extension Additional content defined by implementations
..... fullUrl ΣC 1..1 uri URN-encoded UUID for resource
Constraints: ch-core-doc-1
..... resource Σ 0..1 Resource A resource in the bundle
.... entry:Composition ΣC 1..1 BackboneElement Medication prescription composition
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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHEMEDEPRCompositionMedicationPrescription CH EMED Medication Prescription Composition
.... entry:Patient ΣC 1..* BackboneElement The patient targeted by this medication treatment plan
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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHEMEDEPRPatient CH Core Patient EPR (to include the patient in an EPR document)
.... entry:Practitioner Σ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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHEMEDEPRPractitioner CH EMED Practitioner
.... entry:PractitionerRole Σ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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHEMEDEPRPractitionerRole CH EMED PractitionerRole
.... entry:Organization Σ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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHEMEDEPROrganization CH EMED Organization
.... entry:RelatedPerson Σ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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHCoreRelatedPerson CH Core RelatedPerson
.... entry:Device Σ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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 Device Item used in healthcare
.... entry:Encounter ΣCD 0..* BackboneElement ✕ This element is not supported
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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHCoreEncounter CH Core Encounter
.... entry:Location ΣCD 0..* BackboneElement ✕ This element is not supported
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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHCoreLocation CH Core Location
.... entry:Binary Σ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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 Binary Pure binary content defined by a format other than FHIR
.... entry:MedicationRequest Σ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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHEMEDEPRMedicationRequest CH EMED MedicationRequest (PRE)
.... entry:ObsBodyWeight ΣC 0..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
..... fullUrl ΣC 1..1 uri URI for resource (Absolute URL server address or URI for UUID/OID)
Constraints: ch-core-doc-1
..... resource 1..1 CHEMEDEPRObservationBodyWeight Measurements and simple assertions
... signature ΣD 0..1 Signature ✕ This element is not supported

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Bundle.meta.security Base extensible SecurityLabels 📍4.0.1 FHIR Std.
Bundle.meta.tag Base example Common Tags 📍4.0.1 FHIR Std.
Bundle.language Base preferred Common Languages 📦4.0.1 FHIR Std.
Bundle.identifier.use Base required IdentifierUse 📍4.0.1 FHIR Std.
Bundle.identifier.type Base extensible IdentifierType 📦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:Composition.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:Composition.​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: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:RelatedPerson.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:RelatedPerson.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:Device.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:Device.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:Encounter.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:Encounter.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:Location.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:Location.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:Binary.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:Binary.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:MedicationRequest.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:MedicationRequest.​request.method Base required HTTPVerb 📍4.0.1 FHIR Std.
Bundle.entry:ObsBodyWeight.​search.mode Base required SearchEntryMode 📍4.0.1 FHIR Std.
Bundle.entry:ObsBodyWeight.​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:Composition, Bundle.entry:Patient, Bundle.entry:Practitioner, Bundle.entry:PractitionerRole, Bundle.entry:Organization, Bundle.entry:RelatedPerson, Bundle.entry:Device, Bundle.entry:Encounter, Bundle.entry:Location, Bundle.entry:Binary, Bundle.entry:MedicationRequest, Bundle.entry:ObsBodyWeight 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:Composition, Bundle.entry:Patient, Bundle.entry:Practitioner, Bundle.entry:PractitionerRole, Bundle.entry:Organization, Bundle.entry:RelatedPerson, Bundle.entry:Device, Bundle.entry:Encounter, Bundle.entry:Location, Bundle.entry:Binary, Bundle.entry:MedicationRequest, Bundle.entry:ObsBodyWeight 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)
bundle-composition-same-id error Bundle The bundle and the composition resources must have the same identifier. identifier.single() = entry[0].resource.identifier.single()
ch-core-doc-1 error Bundle.entry.fullUrl, Bundle.entry:Composition.fullUrl, Bundle.entry:Patient.fullUrl, Bundle.entry:Practitioner.fullUrl, Bundle.entry:PractitionerRole.fullUrl, Bundle.entry:Organization.fullUrl, Bundle.entry:RelatedPerson.fullUrl, Bundle.entry:Device.fullUrl, Bundle.entry:Encounter.fullUrl, Bundle.entry:Location.fullUrl, Bundle.entry:Binary.fullUrl, Bundle.entry:MedicationRequest.fullUrl, Bundle.entry:ObsBodyWeight.fullUrl The fullUrl must be an absolute URL server address or an UUID startsWith('http') or startsWith('urn:uuid:') = true
ch-core-doc-2 error Bundle.identifier.value The identifier must be an UUID startsWith('urn:uuid:')
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()
urn-uuid-invariant error Bundle.identifier.value The value shall be an URN-encoded UUID ('urn:uuid:00000000-0000-0000-0000-000000000000') $this.matches('^urn:uuid:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$')

 

Other representations of profile: CSV, Excel, Schematron