New Zealand ICP Implementation Guide
1.1.0 - draft

New Zealand ICP Implementation Guide, published by Accident Compensation Corporation. This guide is not an authorized publication; it is the continuous build for version 1.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/acc-fhir-publisher/icp/ and changes regularly. See the Directory of published versions

Resource Profile: ACC ICP Episode of Care Exit Resource

Official URL: http://hl7.org.nz/fhir/StructureDefinition/acc-icp-case-exit Version: 1.1.0
Active as of 2022-11-20 Computable Name: IcpCaseExit

Copyright/Legal: ACC New Zealand© 2023+; Licensed Under Creative Commons No Rights Reserved.

This profile supports suppliers needing to inform ACC of a patient being exited from their ICP service.

Usages:

Formal Views of Profile Content

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

This structure is derived from IcpCase

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. EpisodeOfCare C 0..* IcpCase An association of a Patient with an Organization and Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility
Constraints: finished-status-invariant
... contained 1..* Resource Contained, inline Resources
... Slices for contained Content/Rules for all slices
.... contained:patient 1..1 IcpPatient Information about an individual or animal receiving health care services
... extension 2..2 Extension Extension
.... extension:exit-reason 1..1 (Complex) Exit Reason
URL: http://hl7.org.nz/fhir/StructureDefinition/acc-icp-exit-reason
... status 1..1 code active | finished
... type 0..0

doco Documentation for this format

Constraints

IdGradePath(s)DetailsRequirements
finished-status-invarianterrorEpisodeOfCareThe status attribute must be set to 'finished'.
: status = 'finished'
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. EpisodeOfCare C 0..* IcpCase An association of a Patient with an Organization and Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility
Constraints: end-date-when-active-invariant, end-date-when-finished-invariant, finished-status-invariant
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... Slices for contained 1..* Resource Contained, inline Resources
Slice: Unordered, Open by profile:$this
.... contained:patient 1..1 IcpPatient Information about an individual or animal receiving health care services
... Slices for extension 2..2 Extension Extension
Slice: Unordered, Open by value:url
.... extension:acc-providerid 1..1 string The ACC provider ID associated with the ICP case
URL: http://hl7.org.nz/fhir/StructureDefinition/acc-providerid
.... extension:exit-reason 1..1 (Complex) Exit Reason
URL: http://hl7.org.nz/fhir/StructureDefinition/acc-icp-exit-reason
... Slices for identifier 1..1 Identifier Business Identifier(s) relevant for this EpisodeOfCare
Slice: Unordered, Open by value:system
.... identifier:icpclaimnumber 1..1 Identifier The ACC 45 number to be used in combination with the contained patient's date of birth, as the ICP case idenfitier.
..... extension 0..0
..... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
..... system Σ 1..1 uri The namespace for the identifier value
Fixed Value: https://standards.digital.health.nz/ns/acc-45-number
..... value ΣC 1..1 string The ACC 45 number.
Constraints: acc-claim-number
Example General: 123456
... status ?!Σ 1..1 code active | finished
Binding: Status (required)
... patient Σ 1..1 Reference(ACC ICP Patient) The patient who is the focus of this episode of care
... managingOrganization Σ 1..1 Reference(Organization) This is the ACC Vendor ID, in most cases this is the organisation's HPI ID.

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
EpisodeOfCare.identifier:icpclaimnumber.userequiredIdentifierUse
http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
From the FHIR Standard
EpisodeOfCare.statusrequiredICPStatusVS
http://hl7.org.nz/fhir/ValueSet/acc-icp-episodeofcare-status
From this IG
EpisodeOfCare.statusHistory.statusrequiredEpisodeOfCareStatus
http://hl7.org/fhir/ValueSet/episode-of-care-status|4.0.1
From the FHIR Standard
EpisodeOfCare.type.coding.coderequiredICPServiceType(a valid code from Service Type)
http://hl7.org.nz/fhir/ValueSet/acc-icp-service-type
From this IG

Constraints

IdGradePath(s)DetailsRequirements
acc-claim-numbererrorEpisodeOfCare.identifier:icpclaimnumber.valueThe claim number format is invalid; it must be in the form A999999, AA99999, 9999AAA or 99999AA, where A is any capital letter, 9 is any single digit, and there are 7 characters altogether.
: $this.toString().matches('^[A-Z][0-9]{6}$|^[A-Z]{2}[0-9]{5}$|^[0-9]{4}[A-Z]{3}$|^[0-9]{5}[A-Z]{2}$')
dom-2errorEpisodeOfCareIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorEpisodeOfCareIf 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-4errorEpisodeOfCareIf 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-5errorEpisodeOfCareIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceEpisodeOfCareA 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())
end-date-when-active-invarianterrorEpisodeOfCareEnd date is not allowed when status is active
: status = 'active' implies period.end.empty()
end-date-when-finished-invarianterrorEpisodeOfCareEnd date is required when status is finished
: status = 'finished' implies period.end.exists()
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
finished-status-invarianterrorEpisodeOfCareThe status attribute must be set to 'finished'.
: status = 'finished'
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. EpisodeOfCare C 0..* IcpCase An association of a Patient with an Organization and Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility
Constraints: end-date-when-active-invariant, end-date-when-finished-invariant, finished-status-invariant
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... text 0..1 Narrative Text summary of the resource, for human interpretation
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
... Slices for contained 1..* Resource Contained, inline Resources
Slice: Unordered, Open by profile:$this
.... contained:patient 1..1 IcpPatient Information about an individual or animal receiving health care services
... Slices for extension 2..2 Extension Extension
Slice: Unordered, Open by value:url
.... extension:acc-providerid 1..1 string The ACC provider ID associated with the ICP case
URL: http://hl7.org.nz/fhir/StructureDefinition/acc-providerid
.... extension:exit-reason 1..1 (Complex) Exit Reason
URL: http://hl7.org.nz/fhir/StructureDefinition/acc-icp-exit-reason
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... Slices for identifier 1..1 Identifier Business Identifier(s) relevant for this EpisodeOfCare
Slice: Unordered, Open by value:system
.... identifier:icpclaimnumber 1..1 Identifier The ACC 45 number to be used in combination with the contained patient's date of birth, as the ICP case idenfitier.
..... extension 0..0
..... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
..... type Σ 0..1 CodeableConcept Description of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
..... system Σ 1..1 uri The namespace for the identifier value
Fixed Value: https://standards.digital.health.nz/ns/acc-45-number
..... value ΣC 1..1 string The ACC 45 number.
Constraints: acc-claim-number
Example General: 123456
... status ?!Σ 1..1 code active | finished
Binding: Status (required)
... patient Σ 1..1 Reference(ACC ICP Patient) The patient who is the focus of this episode of care
... managingOrganization Σ 1..1 Reference(Organization) This is the ACC Vendor ID, in most cases this is the organisation's HPI ID.
... period Σ 0..1 Period Interval during responsibility is assumed
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... start ΣC 0..1 dateTime Starting time with inclusive boundary
Constraints: date-invariant, date-not-in-future-invariant
.... end ΣC 0..1 dateTime End time with inclusive boundary, if not ongoing
Constraints: date-invariant, date-not-in-future-invariant

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
EpisodeOfCare.languagepreferredCommonLanguages
http://hl7.org/fhir/ValueSet/languages
From the FHIR Standard
Additional Bindings Purpose
AllLanguages Max Binding
EpisodeOfCare.identifier:icpclaimnumber.userequiredIdentifierUse
http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
From the FHIR Standard
EpisodeOfCare.identifier:icpclaimnumber.typeextensibleIdentifier Type Codes
http://hl7.org/fhir/ValueSet/identifier-type
From the FHIR Standard
EpisodeOfCare.statusrequiredICPStatusVS
http://hl7.org.nz/fhir/ValueSet/acc-icp-episodeofcare-status
From this IG
EpisodeOfCare.statusHistory.statusrequiredEpisodeOfCareStatus
http://hl7.org/fhir/ValueSet/episode-of-care-status|4.0.1
From the FHIR Standard
EpisodeOfCare.type.coding.coderequiredICPServiceType(a valid code from Service Type)
http://hl7.org.nz/fhir/ValueSet/acc-icp-service-type
From this IG
EpisodeOfCare.diagnosis.rolepreferredDiagnosisRole
http://hl7.org/fhir/ValueSet/diagnosis-role
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
acc-claim-numbererrorEpisodeOfCare.identifier:icpclaimnumber.valueThe claim number format is invalid; it must be in the form A999999, AA99999, 9999AAA or 99999AA, where A is any capital letter, 9 is any single digit, and there are 7 characters altogether.
: $this.toString().matches('^[A-Z][0-9]{6}$|^[A-Z]{2}[0-9]{5}$|^[0-9]{4}[A-Z]{3}$|^[0-9]{5}[A-Z]{2}$')
date-invarianterrorEpisodeOfCare.period.start, EpisodeOfCare.period.endAll timestamps SHOULD be represented as Dates (YYYY-MM-DD only).
: $this.toString().matches('^[0-9]{4}-[0-9]{2}-[0-9]{2}$')
date-not-in-future-invarianterrorEpisodeOfCare.period.start, EpisodeOfCare.period.endThe date value cannot be in the future
: $this <= today()
dom-2errorEpisodeOfCareIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorEpisodeOfCareIf 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-4errorEpisodeOfCareIf 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-5errorEpisodeOfCareIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceEpisodeOfCareA 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())
end-date-when-active-invarianterrorEpisodeOfCareEnd date is not allowed when status is active
: status = 'active' implies period.end.empty()
end-date-when-finished-invarianterrorEpisodeOfCareEnd date is required when status is finished
: status = 'finished' implies period.end.exists()
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
finished-status-invarianterrorEpisodeOfCareThe status attribute must be set to 'finished'.
: status = 'finished'

This structure is derived from IcpCase

Summary

Mandatory: 3 elements
Prohibited: 1 element

Structures

This structure refers to these other structures:

Extensions

This structure refers to these extensions:

Differential View

This structure is derived from IcpCase

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. EpisodeOfCare C 0..* IcpCase An association of a Patient with an Organization and Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility
Constraints: finished-status-invariant
... contained 1..* Resource Contained, inline Resources
... Slices for contained Content/Rules for all slices
.... contained:patient 1..1 IcpPatient Information about an individual or animal receiving health care services
... extension 2..2 Extension Extension
.... extension:exit-reason 1..1 (Complex) Exit Reason
URL: http://hl7.org.nz/fhir/StructureDefinition/acc-icp-exit-reason
... status 1..1 code active | finished
... type 0..0

doco Documentation for this format

Constraints

IdGradePath(s)DetailsRequirements
finished-status-invarianterrorEpisodeOfCareThe status attribute must be set to 'finished'.
: status = 'finished'

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. EpisodeOfCare C 0..* IcpCase An association of a Patient with an Organization and Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility
Constraints: end-date-when-active-invariant, end-date-when-finished-invariant, finished-status-invariant
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... Slices for contained 1..* Resource Contained, inline Resources
Slice: Unordered, Open by profile:$this
.... contained:patient 1..1 IcpPatient Information about an individual or animal receiving health care services
... Slices for extension 2..2 Extension Extension
Slice: Unordered, Open by value:url
.... extension:acc-providerid 1..1 string The ACC provider ID associated with the ICP case
URL: http://hl7.org.nz/fhir/StructureDefinition/acc-providerid
.... extension:exit-reason 1..1 (Complex) Exit Reason
URL: http://hl7.org.nz/fhir/StructureDefinition/acc-icp-exit-reason
... Slices for identifier 1..1 Identifier Business Identifier(s) relevant for this EpisodeOfCare
Slice: Unordered, Open by value:system
.... identifier:icpclaimnumber 1..1 Identifier The ACC 45 number to be used in combination with the contained patient's date of birth, as the ICP case idenfitier.
..... extension 0..0
..... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
..... system Σ 1..1 uri The namespace for the identifier value
Fixed Value: https://standards.digital.health.nz/ns/acc-45-number
..... value ΣC 1..1 string The ACC 45 number.
Constraints: acc-claim-number
Example General: 123456
... status ?!Σ 1..1 code active | finished
Binding: Status (required)
... patient Σ 1..1 Reference(ACC ICP Patient) The patient who is the focus of this episode of care
... managingOrganization Σ 1..1 Reference(Organization) This is the ACC Vendor ID, in most cases this is the organisation's HPI ID.

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
EpisodeOfCare.identifier:icpclaimnumber.userequiredIdentifierUse
http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
From the FHIR Standard
EpisodeOfCare.statusrequiredICPStatusVS
http://hl7.org.nz/fhir/ValueSet/acc-icp-episodeofcare-status
From this IG
EpisodeOfCare.statusHistory.statusrequiredEpisodeOfCareStatus
http://hl7.org/fhir/ValueSet/episode-of-care-status|4.0.1
From the FHIR Standard
EpisodeOfCare.type.coding.coderequiredICPServiceType(a valid code from Service Type)
http://hl7.org.nz/fhir/ValueSet/acc-icp-service-type
From this IG

Constraints

IdGradePath(s)DetailsRequirements
acc-claim-numbererrorEpisodeOfCare.identifier:icpclaimnumber.valueThe claim number format is invalid; it must be in the form A999999, AA99999, 9999AAA or 99999AA, where A is any capital letter, 9 is any single digit, and there are 7 characters altogether.
: $this.toString().matches('^[A-Z][0-9]{6}$|^[A-Z]{2}[0-9]{5}$|^[0-9]{4}[A-Z]{3}$|^[0-9]{5}[A-Z]{2}$')
dom-2errorEpisodeOfCareIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorEpisodeOfCareIf 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-4errorEpisodeOfCareIf 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-5errorEpisodeOfCareIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceEpisodeOfCareA 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())
end-date-when-active-invarianterrorEpisodeOfCareEnd date is not allowed when status is active
: status = 'active' implies period.end.empty()
end-date-when-finished-invarianterrorEpisodeOfCareEnd date is required when status is finished
: status = 'finished' implies period.end.exists()
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
finished-status-invarianterrorEpisodeOfCareThe status attribute must be set to 'finished'.
: status = 'finished'

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. EpisodeOfCare C 0..* IcpCase An association of a Patient with an Organization and Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility
Constraints: end-date-when-active-invariant, end-date-when-finished-invariant, finished-status-invariant
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... text 0..1 Narrative Text summary of the resource, for human interpretation
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
... Slices for contained 1..* Resource Contained, inline Resources
Slice: Unordered, Open by profile:$this
.... contained:patient 1..1 IcpPatient Information about an individual or animal receiving health care services
... Slices for extension 2..2 Extension Extension
Slice: Unordered, Open by value:url
.... extension:acc-providerid 1..1 string The ACC provider ID associated with the ICP case
URL: http://hl7.org.nz/fhir/StructureDefinition/acc-providerid
.... extension:exit-reason 1..1 (Complex) Exit Reason
URL: http://hl7.org.nz/fhir/StructureDefinition/acc-icp-exit-reason
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... Slices for identifier 1..1 Identifier Business Identifier(s) relevant for this EpisodeOfCare
Slice: Unordered, Open by value:system
.... identifier:icpclaimnumber 1..1 Identifier The ACC 45 number to be used in combination with the contained patient's date of birth, as the ICP case idenfitier.
..... extension 0..0
..... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
..... type Σ 0..1 CodeableConcept Description of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
..... system Σ 1..1 uri The namespace for the identifier value
Fixed Value: https://standards.digital.health.nz/ns/acc-45-number
..... value ΣC 1..1 string The ACC 45 number.
Constraints: acc-claim-number
Example General: 123456
... status ?!Σ 1..1 code active | finished
Binding: Status (required)
... patient Σ 1..1 Reference(ACC ICP Patient) The patient who is the focus of this episode of care
... managingOrganization Σ 1..1 Reference(Organization) This is the ACC Vendor ID, in most cases this is the organisation's HPI ID.
... period Σ 0..1 Period Interval during responsibility is assumed
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... start ΣC 0..1 dateTime Starting time with inclusive boundary
Constraints: date-invariant, date-not-in-future-invariant
.... end ΣC 0..1 dateTime End time with inclusive boundary, if not ongoing
Constraints: date-invariant, date-not-in-future-invariant

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
EpisodeOfCare.languagepreferredCommonLanguages
http://hl7.org/fhir/ValueSet/languages
From the FHIR Standard
Additional Bindings Purpose
AllLanguages Max Binding
EpisodeOfCare.identifier:icpclaimnumber.userequiredIdentifierUse
http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
From the FHIR Standard
EpisodeOfCare.identifier:icpclaimnumber.typeextensibleIdentifier Type Codes
http://hl7.org/fhir/ValueSet/identifier-type
From the FHIR Standard
EpisodeOfCare.statusrequiredICPStatusVS
http://hl7.org.nz/fhir/ValueSet/acc-icp-episodeofcare-status
From this IG
EpisodeOfCare.statusHistory.statusrequiredEpisodeOfCareStatus
http://hl7.org/fhir/ValueSet/episode-of-care-status|4.0.1
From the FHIR Standard
EpisodeOfCare.type.coding.coderequiredICPServiceType(a valid code from Service Type)
http://hl7.org.nz/fhir/ValueSet/acc-icp-service-type
From this IG
EpisodeOfCare.diagnosis.rolepreferredDiagnosisRole
http://hl7.org/fhir/ValueSet/diagnosis-role
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
acc-claim-numbererrorEpisodeOfCare.identifier:icpclaimnumber.valueThe claim number format is invalid; it must be in the form A999999, AA99999, 9999AAA or 99999AA, where A is any capital letter, 9 is any single digit, and there are 7 characters altogether.
: $this.toString().matches('^[A-Z][0-9]{6}$|^[A-Z]{2}[0-9]{5}$|^[0-9]{4}[A-Z]{3}$|^[0-9]{5}[A-Z]{2}$')
date-invarianterrorEpisodeOfCare.period.start, EpisodeOfCare.period.endAll timestamps SHOULD be represented as Dates (YYYY-MM-DD only).
: $this.toString().matches('^[0-9]{4}-[0-9]{2}-[0-9]{2}$')
date-not-in-future-invarianterrorEpisodeOfCare.period.start, EpisodeOfCare.period.endThe date value cannot be in the future
: $this <= today()
dom-2errorEpisodeOfCareIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorEpisodeOfCareIf 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-4errorEpisodeOfCareIf 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-5errorEpisodeOfCareIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceEpisodeOfCareA 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())
end-date-when-active-invarianterrorEpisodeOfCareEnd date is not allowed when status is active
: status = 'active' implies period.end.empty()
end-date-when-finished-invarianterrorEpisodeOfCareEnd date is required when status is finished
: status = 'finished' implies period.end.exists()
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
finished-status-invarianterrorEpisodeOfCareThe status attribute must be set to 'finished'.
: status = 'finished'

This structure is derived from IcpCase

Summary

Mandatory: 3 elements
Prohibited: 1 element

Structures

This structure refers to these other structures:

Extensions

This structure refers to these extensions:

 

Other representations of profile: CSV, Excel, Schematron