1.0.0 - Release

This page is part of the KLGatewayRehab (v1.0.0: Release) based on FHIR R4. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions

Resource Profile: KLGateway140DeliveryReport

Official URL: http://fhir.kl.dk/rehab/StructureDefinition/klgateway-140-delivery-report Version: 1.0.0
Active as of 2023-09-28 Computable Name: KLGateway140DeliveryReport

Delivery report to deliver data for each citizen.

Scope and usage

This model is used to represent the reporting of rehabilitation deliverd by the municipalities according to §140 in the health act.

The report is a FHIR Bundle that allows different ressources to be grouped and handled as a unit. The ressources that are grouped in this bundle is one, and only one klgateway-140-citizen, together with the content that have changed since the last reporting. The content can be of all the types that are present as profiles in this implementation guide.

The citizen is included in the report in Bundle.entry[citizen]. The entry should include a Bundle.entry.link, which have two fixed values. The citizen resssource should be included in the bundle, together with its url.

The content is included in the report in Bundle.entry[content]. Each entry includes a Bundle.entry.link, with two fixed values. Each entry also includes a ressource and its url.

Conversions between Danish information model and FHIR-profile

Nedenstående tabel oversætter mellem de attributter der er defineret i den fælleskommunale informationsmodel (FKI), definerer kort den enkelte attribut på dansk og specificere hvilke af FHIR-profilens atributter der skal bruges til specifikation af indholdet

FKI-attribut Definition FHIR
indberetningsrapportBorger Indberetningsrapportens borger Bundle.entry[citizen]
indberetningsrappprtIndhold Hver af indberetningsrapportens indholds-ressourcer entry[content]

Usage:

Formal Views of Profile Content

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

This structure is derived from Bundle

NameFlagsCard.TypeDescription & Constraintsdoco
.. Bundle C0..*BundleContains a collection of resources
gateway-140-report-1: All condition resources shall conform to either klgateway-140-condition profile, or klgateway-119--focus-condition profile
gateway-140-report-2: All condition resources shall conform to either klgateway-140-condition profile, or klgateway-119--focus-condition profile
... identifier 0..0
... type 1..1codedocument | message | transaction | transaction-response | batch | batch-response | history | searchset | collection
Required Pattern: collection
... timestamp 1..1instantWhen the bundle was assembled
... link 0..0
... Slices for entry 1..*BackboneElement[DK] indberetningsrapportIndhold
Slice: Unordered, Open by profile:resource
.... entry:All Slices Content/Rules for all slices
..... link 0..0
..... resource 1..1Citizen and content constrained to known profiles
...... resourceCondition
...... resourceCarePlan
...... resourceEncounter(KLGateway140Encounter)
...... resourceOrganization(KLGateway140Organization)
...... resourcePatient(KLGateway140Citizen)
...... resourceServiceRequest(KLGateway140ServiceRequest)
..... search 0..0
..... request 0..0
..... response 0..0
.... entry:citizen 1..1BackboneElement[DK] indberetningsrapportBorger
..... resource 0..1KLGateway140CitizenInformation about an individual or animal receiving health care services
..... search 0..0
..... request 0..0
..... response 0..0
... signature 0..0

doco Documentation for this format

Constraints

IdGradePath(s)DetailsRequirements
gateway-140-report-1errorBundleAll condition resources shall conform to either klgateway-140-condition profile, or klgateway-119--focus-condition profile
: entry.select(resource as Condition).all( $this.conformsTo('http://fhir.kl.dk/rehab/StructureDefinition/klgateway-140-condition') or $this.conformsTo('http://fhir.kl.dk/rehab/StructureDefinition/klgateway-140-focus-condition'))
gateway-140-report-2errorBundleAll condition resources shall conform to either klgateway-140-condition profile, or klgateway-119--focus-condition profile
: entry.select(resource as CarePlan).all( $this.conformsTo('http://fhir.kl.dk/rehab/StructureDefinition/klgateway-140-care-plan') or $this.conformsTo('http://fhir.kl.dk/rehab/StructureDefinition/klgateway-140-planned-intervention'))
NameFlagsCard.TypeDescription & Constraintsdoco
.. Bundle C0..*BundleContains a collection of resources
gateway-140-report-1: All condition resources shall conform to either klgateway-140-condition profile, or klgateway-119--focus-condition profile
gateway-140-report-2: All condition resources shall conform to either klgateway-140-condition profile, or klgateway-119--focus-condition profile
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... type Σ1..1codedocument | message | transaction | transaction-response | batch | batch-response | history | searchset | collection
Binding: BundleType (required): Indicates the purpose of a bundle - how it is intended to be used.


Required Pattern: collection
... timestamp Σ1..1instantWhen the bundle was assembled
.... entry:All Slices Content/Rules for all slices
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... resource Σ1..1Citizen and content constrained to known profiles
...... resourceCondition
...... resourceCarePlan
...... resourceEncounter(KLGateway140Encounter)
...... resourceOrganization(KLGateway140Organization)
...... resourcePatient(KLGateway140Citizen)
...... resourceServiceRequest(KLGateway140ServiceRequest)
.... entry:citizen ΣC1..1BackboneElement[DK] indberetningsrapportBorger
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... resource C0..1KLGateway140CitizenInformation about an individual or animal receiving health care services

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / Code
Bundle.typerequiredPattern: collection
Bundle.entry.request.methodrequiredHTTPVerb
Bundle.entry:citizen.request.methodrequiredHTTPVerb

Constraints

IdGradePath(s)DetailsRequirements
bdl-1errorBundletotal only when a search or history
: total.empty() or (type = 'searchset') or (type = 'history')
bdl-2errorBundleentry.search only when a search
: entry.search.empty() or (type = 'searchset')
bdl-3errorBundleentry.request mandatory for batch/transaction/history, otherwise prohibited
: entry.all(request.exists() = (%resource.type = 'batch' or %resource.type = 'transaction' or %resource.type = 'history'))
bdl-4errorBundleentry.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-5errorBundle.entry, Bundle.entry:citizenmust be a resource unless there's a request or response
: resource.exists() or request.exists() or response.exists()
bdl-7errorBundleFullUrl 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-8errorBundle.entry, Bundle.entry:citizenfullUrl cannot be a version specific reference
: fullUrl.contains('/_history/').not()
bdl-9errorBundleA document must have an identifier with a system and a value
: type = 'document' implies (identifier.system.exists() and identifier.value.exists())
bdl-10errorBundleA document must have a date
: type = 'document' implies (timestamp.hasValue())
bdl-11errorBundleA document must have a Composition as the first resource
: type = 'document' implies entry.first().resource.is(Composition)
bdl-12errorBundleA message must have a MessageHeader as the first resource
: type = 'message' implies entry.first().resource.is(MessageHeader)
dom-2errorBundle.entry:citizen.resourceIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorBundle.entry:citizen.resourceIf 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-4errorBundle.entry:citizen.resourceIf 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-5errorBundle.entry:citizen.resourceIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceBundle.entry:citizen.resourceA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
gateway-140-report-1errorBundleAll condition resources shall conform to either klgateway-140-condition profile, or klgateway-119--focus-condition profile
: entry.select(resource as Condition).all( $this.conformsTo('http://fhir.kl.dk/rehab/StructureDefinition/klgateway-140-condition') or $this.conformsTo('http://fhir.kl.dk/rehab/StructureDefinition/klgateway-140-focus-condition'))
gateway-140-report-2errorBundleAll condition resources shall conform to either klgateway-140-condition profile, or klgateway-119--focus-condition profile
: entry.select(resource as CarePlan).all( $this.conformsTo('http://fhir.kl.dk/rehab/StructureDefinition/klgateway-140-care-plan') or $this.conformsTo('http://fhir.kl.dk/rehab/StructureDefinition/klgateway-140-planned-intervention'))
marital-status-unknown-usagewarningBundle.entry:citizen.resourceStatus in maritalStatus is unknown in a danish context. Consider mapping the value to UNK
: maritalStatus.coding.where(code = 'P' and system = 'http://terminology.hl7.org/CodeSystem/v3-MaritalStatus').empty() or maritalStatus.coding.where(code = 'A' and system = 'http://terminology.hl7.org/CodeSystem/v3-MaritalStatus').empty()
NameFlagsCard.TypeDescription & Constraintsdoco
.. Bundle C0..*BundleContains a collection of resources
gateway-140-report-1: All condition resources shall conform to either klgateway-140-condition profile, or klgateway-119--focus-condition profile
gateway-140-report-2: All condition resources shall conform to either klgateway-140-condition profile, or klgateway-119--focus-condition profile
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... type Σ1..1codedocument | message | transaction | transaction-response | batch | batch-response | history | searchset | collection
Binding: BundleType (required): Indicates the purpose of a bundle - how it is intended to be used.


Required Pattern: collection
... timestamp Σ1..1instantWhen the bundle was assembled
... Slices for entry ΣC1..*BackboneElement[DK] indberetningsrapportIndhold
Slice: Unordered, Open by profile:resource
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
.... entry:All Slices Content/Rules for all slices
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... fullUrl Σ0..1uriURI for resource (Absolute URL server address or URI for UUID/OID)
..... resource Σ1..1Citizen and content constrained to known profiles
...... resourceCondition
...... resourceCarePlan
...... resourceEncounter(KLGateway140Encounter)
...... resourceOrganization(KLGateway140Organization)
...... resourcePatient(KLGateway140Citizen)
...... resourceServiceRequest(KLGateway140ServiceRequest)
.... entry:citizen ΣC1..1BackboneElement[DK] indberetningsrapportBorger
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..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... link Σ0..*See link (Bundle)Links related to this entry
..... fullUrl Σ0..1uriURI for resource (Absolute URL server address or URI for UUID/OID)
..... resource C0..1KLGateway140CitizenInformation about an individual or animal receiving health care services

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / Code
Bundle.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
Bundle.typerequiredPattern: collection
Bundle.entry.search.moderequiredSearchEntryMode
Bundle.entry.request.methodrequiredHTTPVerb
Bundle.entry:citizen.search.moderequiredSearchEntryMode
Bundle.entry:citizen.request.methodrequiredHTTPVerb

Constraints

IdGradePath(s)DetailsRequirements
bdl-1errorBundletotal only when a search or history
: total.empty() or (type = 'searchset') or (type = 'history')
bdl-2errorBundleentry.search only when a search
: entry.search.empty() or (type = 'searchset')
bdl-3errorBundleentry.request mandatory for batch/transaction/history, otherwise prohibited
: entry.all(request.exists() = (%resource.type = 'batch' or %resource.type = 'transaction' or %resource.type = 'history'))
bdl-4errorBundleentry.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-5errorBundle.entry, Bundle.entry:citizenmust be a resource unless there's a request or response
: resource.exists() or request.exists() or response.exists()
bdl-7errorBundleFullUrl 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-8errorBundle.entry, Bundle.entry:citizenfullUrl cannot be a version specific reference
: fullUrl.contains('/_history/').not()
bdl-9errorBundleA document must have an identifier with a system and a value
: type = 'document' implies (identifier.system.exists() and identifier.value.exists())
bdl-10errorBundleA document must have a date
: type = 'document' implies (timestamp.hasValue())
bdl-11errorBundleA document must have a Composition as the first resource
: type = 'document' implies entry.first().resource.is(Composition)
bdl-12errorBundleA message must have a MessageHeader as the first resource
: type = 'message' implies entry.first().resource.is(MessageHeader)
dom-2errorBundle.entry:citizen.resourceIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorBundle.entry:citizen.resourceIf 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-4errorBundle.entry:citizen.resourceIf 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-5errorBundle.entry:citizen.resourceIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceBundle.entry:citizen.resourceA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
gateway-140-report-1errorBundleAll condition resources shall conform to either klgateway-140-condition profile, or klgateway-119--focus-condition profile
: entry.select(resource as Condition).all( $this.conformsTo('http://fhir.kl.dk/rehab/StructureDefinition/klgateway-140-condition') or $this.conformsTo('http://fhir.kl.dk/rehab/StructureDefinition/klgateway-140-focus-condition'))
gateway-140-report-2errorBundleAll condition resources shall conform to either klgateway-140-condition profile, or klgateway-119--focus-condition profile
: entry.select(resource as CarePlan).all( $this.conformsTo('http://fhir.kl.dk/rehab/StructureDefinition/klgateway-140-care-plan') or $this.conformsTo('http://fhir.kl.dk/rehab/StructureDefinition/klgateway-140-planned-intervention'))
marital-status-unknown-usagewarningBundle.entry:citizen.resourceStatus in maritalStatus is unknown in a danish context. Consider mapping the value to UNK
: maritalStatus.coding.where(code = 'P' and system = 'http://terminology.hl7.org/CodeSystem/v3-MaritalStatus').empty() or maritalStatus.coding.where(code = 'A' and system = 'http://terminology.hl7.org/CodeSystem/v3-MaritalStatus').empty()

This structure is derived from Bundle

Differential View

This structure is derived from Bundle

NameFlagsCard.TypeDescription & Constraintsdoco
.. Bundle C0..*BundleContains a collection of resources
gateway-140-report-1: All condition resources shall conform to either klgateway-140-condition profile, or klgateway-119--focus-condition profile
gateway-140-report-2: All condition resources shall conform to either klgateway-140-condition profile, or klgateway-119--focus-condition profile
... identifier 0..0
... type 1..1codedocument | message | transaction | transaction-response | batch | batch-response | history | searchset | collection
Required Pattern: collection
... timestamp 1..1instantWhen the bundle was assembled
... link 0..0
... Slices for entry 1..*BackboneElement[DK] indberetningsrapportIndhold
Slice: Unordered, Open by profile:resource
.... entry:All Slices Content/Rules for all slices
..... link 0..0
..... resource 1..1Citizen and content constrained to known profiles
...... resourceCondition
...... resourceCarePlan
...... resourceEncounter(KLGateway140Encounter)
...... resourceOrganization(KLGateway140Organization)
...... resourcePatient(KLGateway140Citizen)
...... resourceServiceRequest(KLGateway140ServiceRequest)
..... search 0..0
..... request 0..0
..... response 0..0
.... entry:citizen 1..1BackboneElement[DK] indberetningsrapportBorger
..... resource 0..1KLGateway140CitizenInformation about an individual or animal receiving health care services
..... search 0..0
..... request 0..0
..... response 0..0
... signature 0..0

doco Documentation for this format

Constraints

IdGradePath(s)DetailsRequirements
gateway-140-report-1errorBundleAll condition resources shall conform to either klgateway-140-condition profile, or klgateway-119--focus-condition profile
: entry.select(resource as Condition).all( $this.conformsTo('http://fhir.kl.dk/rehab/StructureDefinition/klgateway-140-condition') or $this.conformsTo('http://fhir.kl.dk/rehab/StructureDefinition/klgateway-140-focus-condition'))
gateway-140-report-2errorBundleAll condition resources shall conform to either klgateway-140-condition profile, or klgateway-119--focus-condition profile
: entry.select(resource as CarePlan).all( $this.conformsTo('http://fhir.kl.dk/rehab/StructureDefinition/klgateway-140-care-plan') or $this.conformsTo('http://fhir.kl.dk/rehab/StructureDefinition/klgateway-140-planned-intervention'))

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Bundle C0..*BundleContains a collection of resources
gateway-140-report-1: All condition resources shall conform to either klgateway-140-condition profile, or klgateway-119--focus-condition profile
gateway-140-report-2: All condition resources shall conform to either klgateway-140-condition profile, or klgateway-119--focus-condition profile
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... type Σ1..1codedocument | message | transaction | transaction-response | batch | batch-response | history | searchset | collection
Binding: BundleType (required): Indicates the purpose of a bundle - how it is intended to be used.


Required Pattern: collection
... timestamp Σ1..1instantWhen the bundle was assembled
.... entry:All Slices Content/Rules for all slices
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... resource Σ1..1Citizen and content constrained to known profiles
...... resourceCondition
...... resourceCarePlan
...... resourceEncounter(KLGateway140Encounter)
...... resourceOrganization(KLGateway140Organization)
...... resourcePatient(KLGateway140Citizen)
...... resourceServiceRequest(KLGateway140ServiceRequest)
.... entry:citizen ΣC1..1BackboneElement[DK] indberetningsrapportBorger
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... resource C0..1KLGateway140CitizenInformation about an individual or animal receiving health care services

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / Code
Bundle.typerequiredPattern: collection
Bundle.entry.request.methodrequiredHTTPVerb
Bundle.entry:citizen.request.methodrequiredHTTPVerb

Constraints

IdGradePath(s)DetailsRequirements
bdl-1errorBundletotal only when a search or history
: total.empty() or (type = 'searchset') or (type = 'history')
bdl-2errorBundleentry.search only when a search
: entry.search.empty() or (type = 'searchset')
bdl-3errorBundleentry.request mandatory for batch/transaction/history, otherwise prohibited
: entry.all(request.exists() = (%resource.type = 'batch' or %resource.type = 'transaction' or %resource.type = 'history'))
bdl-4errorBundleentry.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-5errorBundle.entry, Bundle.entry:citizenmust be a resource unless there's a request or response
: resource.exists() or request.exists() or response.exists()
bdl-7errorBundleFullUrl 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-8errorBundle.entry, Bundle.entry:citizenfullUrl cannot be a version specific reference
: fullUrl.contains('/_history/').not()
bdl-9errorBundleA document must have an identifier with a system and a value
: type = 'document' implies (identifier.system.exists() and identifier.value.exists())
bdl-10errorBundleA document must have a date
: type = 'document' implies (timestamp.hasValue())
bdl-11errorBundleA document must have a Composition as the first resource
: type = 'document' implies entry.first().resource.is(Composition)
bdl-12errorBundleA message must have a MessageHeader as the first resource
: type = 'message' implies entry.first().resource.is(MessageHeader)
dom-2errorBundle.entry:citizen.resourceIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorBundle.entry:citizen.resourceIf 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-4errorBundle.entry:citizen.resourceIf 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-5errorBundle.entry:citizen.resourceIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceBundle.entry:citizen.resourceA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
gateway-140-report-1errorBundleAll condition resources shall conform to either klgateway-140-condition profile, or klgateway-119--focus-condition profile
: entry.select(resource as Condition).all( $this.conformsTo('http://fhir.kl.dk/rehab/StructureDefinition/klgateway-140-condition') or $this.conformsTo('http://fhir.kl.dk/rehab/StructureDefinition/klgateway-140-focus-condition'))
gateway-140-report-2errorBundleAll condition resources shall conform to either klgateway-140-condition profile, or klgateway-119--focus-condition profile
: entry.select(resource as CarePlan).all( $this.conformsTo('http://fhir.kl.dk/rehab/StructureDefinition/klgateway-140-care-plan') or $this.conformsTo('http://fhir.kl.dk/rehab/StructureDefinition/klgateway-140-planned-intervention'))
marital-status-unknown-usagewarningBundle.entry:citizen.resourceStatus in maritalStatus is unknown in a danish context. Consider mapping the value to UNK
: maritalStatus.coding.where(code = 'P' and system = 'http://terminology.hl7.org/CodeSystem/v3-MaritalStatus').empty() or maritalStatus.coding.where(code = 'A' and system = 'http://terminology.hl7.org/CodeSystem/v3-MaritalStatus').empty()

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Bundle C0..*BundleContains a collection of resources
gateway-140-report-1: All condition resources shall conform to either klgateway-140-condition profile, or klgateway-119--focus-condition profile
gateway-140-report-2: All condition resources shall conform to either klgateway-140-condition profile, or klgateway-119--focus-condition profile
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... type Σ1..1codedocument | message | transaction | transaction-response | batch | batch-response | history | searchset | collection
Binding: BundleType (required): Indicates the purpose of a bundle - how it is intended to be used.


Required Pattern: collection
... timestamp Σ1..1instantWhen the bundle was assembled
... Slices for entry ΣC1..*BackboneElement[DK] indberetningsrapportIndhold
Slice: Unordered, Open by profile:resource
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
.... entry:All Slices Content/Rules for all slices
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... fullUrl Σ0..1uriURI for resource (Absolute URL server address or URI for UUID/OID)
..... resource Σ1..1Citizen and content constrained to known profiles
...... resourceCondition
...... resourceCarePlan
...... resourceEncounter(KLGateway140Encounter)
...... resourceOrganization(KLGateway140Organization)
...... resourcePatient(KLGateway140Citizen)
...... resourceServiceRequest(KLGateway140ServiceRequest)
.... entry:citizen ΣC1..1BackboneElement[DK] indberetningsrapportBorger
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..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... link Σ0..*See link (Bundle)Links related to this entry
..... fullUrl Σ0..1uriURI for resource (Absolute URL server address or URI for UUID/OID)
..... resource C0..1KLGateway140CitizenInformation about an individual or animal receiving health care services

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / Code
Bundle.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
Bundle.typerequiredPattern: collection
Bundle.entry.search.moderequiredSearchEntryMode
Bundle.entry.request.methodrequiredHTTPVerb
Bundle.entry:citizen.search.moderequiredSearchEntryMode
Bundle.entry:citizen.request.methodrequiredHTTPVerb

Constraints

IdGradePath(s)DetailsRequirements
bdl-1errorBundletotal only when a search or history
: total.empty() or (type = 'searchset') or (type = 'history')
bdl-2errorBundleentry.search only when a search
: entry.search.empty() or (type = 'searchset')
bdl-3errorBundleentry.request mandatory for batch/transaction/history, otherwise prohibited
: entry.all(request.exists() = (%resource.type = 'batch' or %resource.type = 'transaction' or %resource.type = 'history'))
bdl-4errorBundleentry.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-5errorBundle.entry, Bundle.entry:citizenmust be a resource unless there's a request or response
: resource.exists() or request.exists() or response.exists()
bdl-7errorBundleFullUrl 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-8errorBundle.entry, Bundle.entry:citizenfullUrl cannot be a version specific reference
: fullUrl.contains('/_history/').not()
bdl-9errorBundleA document must have an identifier with a system and a value
: type = 'document' implies (identifier.system.exists() and identifier.value.exists())
bdl-10errorBundleA document must have a date
: type = 'document' implies (timestamp.hasValue())
bdl-11errorBundleA document must have a Composition as the first resource
: type = 'document' implies entry.first().resource.is(Composition)
bdl-12errorBundleA message must have a MessageHeader as the first resource
: type = 'message' implies entry.first().resource.is(MessageHeader)
dom-2errorBundle.entry:citizen.resourceIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorBundle.entry:citizen.resourceIf 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-4errorBundle.entry:citizen.resourceIf 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-5errorBundle.entry:citizen.resourceIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceBundle.entry:citizen.resourceA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
gateway-140-report-1errorBundleAll condition resources shall conform to either klgateway-140-condition profile, or klgateway-119--focus-condition profile
: entry.select(resource as Condition).all( $this.conformsTo('http://fhir.kl.dk/rehab/StructureDefinition/klgateway-140-condition') or $this.conformsTo('http://fhir.kl.dk/rehab/StructureDefinition/klgateway-140-focus-condition'))
gateway-140-report-2errorBundleAll condition resources shall conform to either klgateway-140-condition profile, or klgateway-119--focus-condition profile
: entry.select(resource as CarePlan).all( $this.conformsTo('http://fhir.kl.dk/rehab/StructureDefinition/klgateway-140-care-plan') or $this.conformsTo('http://fhir.kl.dk/rehab/StructureDefinition/klgateway-140-planned-intervention'))
marital-status-unknown-usagewarningBundle.entry:citizen.resourceStatus in maritalStatus is unknown in a danish context. Consider mapping the value to UNK
: maritalStatus.coding.where(code = 'P' and system = 'http://terminology.hl7.org/CodeSystem/v3-MaritalStatus').empty() or maritalStatus.coding.where(code = 'A' and system = 'http://terminology.hl7.org/CodeSystem/v3-MaritalStatus').empty()

This structure is derived from Bundle

 

Other representations of profile: CSV, Excel, Schematron