My Health Record FHIR IG - Local Development build (v1.4.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Resource Profile: Advance Care Planning Document Composition

Official URL: http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-composition-acp-1 Version: 1.4.0
Computable Name: MHRCompositionACP

Copyright/Legal: Copyright © 2022 Australian Digital Health Agency - All rights reserved. This content is licensed under a Creative Commons Attribution 4.0 International License. See https://creativecommons.org/licenses/by/4.0/.

The purpose of this profile is to define a representation of an Advance Care Planning document that includes an attached Advance Care Plan for a patient for the electronic exchange of health information between individuals, healthcare providers, and the My Health Record system infrastructure in Australia. A composition is a set of resources composed into a single coherent clinical statement that may have clinical attestation.

Usages:

  • This Profile is not used by any profiles in this Implementation Guide

Formal Views of Profile Content

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

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Composition C 0..* AUBaseComposition Advance Care Planning Document
Constraints: inv-dh-doc-01, inv-dh-doc-02
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:informationRecipient SC 0..* Reference(Practitioner | Device | Patient | RelatedPerson | PractitionerRole | Organization) Information recipient
URL: http://hl7.org.au/fhir/StructureDefinition/information-recipient
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... status ?!SΣ 1..1 code preliminary | final | amended | entered-in-error
Binding: CompositionStatus (required): The workflow/clinical status of the composition.
Required Pattern: final
... type SΣ 1..1 CodeableConcept Sub type of advance care planning document
Binding: Advance Care Planning Document Type . (required)
... Slices for category Σ 1..* CodeableConcept Categorization of Composition
Slice: Unordered, Open by value:coding.code
Binding: DocumentClassValueSet (example): High-level kind of a clinical document at a macro level.
.... category:aci Σ 1..1 CodeableConcept Advance Care Information
Binding: DocumentClassValueSet (example): High-level kind of a clinical document at a macro level.

Required Pattern: At least the following
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
..... coding 1..* Coding Code defined by a terminology system
Fixed Value: (complex)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
...... system 1..1 uri Identity of the terminology system
Fixed Value: https://healthterminologies.gov.au/fhir/CodeSystem/nctis-data-components-1
...... version 0..1 string Version of the system - if relevant
...... code 1..1 code Symbol in syntax defined by the system
Fixed Value: 100.16975
...... display 0..1 string Representation defined by the system
...... userSelected 0..1 boolean If this coding was chosen directly by the user
..... text 0..1 string Plain text representation of the concept
..... coding Σ 1..* Coding Code defined by a terminology system
...... system Σ 1..1 uri Identity of the terminology system
Fixed Value: https://healthterminologies.gov.au/fhir/CodeSystem/nctis-data-components-1
...... code Σ 1..1 code Symbol in syntax defined by the system
Fixed Value: 100.16975
... subject SΣC 1..1 Reference(MHR Patient) Who and/or what the composition is about
Constraints: inv-dh-doc-03
... encounter SΣ 0..1 Reference(MHR Encounter) Context of the Composition
... date SΣC 1..1 dateTime Composition editing time
Constraints: inv-dh-doc-07
... author SΣC 1..1 Reference(MHR Authoring PractitionerRole | MHR Patient | MHR Authoring RelatedPerson) Author of the composition, may not be the author of the attached advance care planning document
Constraints: inv-dh-doc-04
... title SΣ 1..1 string Human Readable name/title
... attester SC 0..* BackboneElement Attests to accuracy of composition
Constraints: inv-dh-doc-05
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... mode S 1..1 code personal | professional | legal | official
Binding: CompositionAttestationMode (required): The way in which a person authenticated a composition.
.... time S 1..1 dateTime When the composition was attested
.... party SC 0..1 Reference(MHR Authoring PractitionerRole | MHR Patient | MHR Authoring RelatedPerson) Who attested the composition
... custodian SΣC 1..1 Reference(AU Core Organization) Organization which maintains the composition
Constraints: inv-dh-doc-06
... relatesTo S 0..* BackboneElement Relationships to other compositions/documents
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... code S 1..1 code replaces | transforms | signs | appends
Binding: DocumentRelationshipType (required): The type of relationship between documents.
.... target[x] 1..1 Target of the relationship
..... targetIdentifier Identifier
..... targetReference Reference(Composition)
... section C 0..1 BackboneElement Advance Care Information
Constraints: cmp-1, cmp-2
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... code 1..1 CodeableConcept Classification of section (recommended)
Binding: DocumentSectionCodes (example): Classification of a section of a composition/document.
Required Pattern: At least the following
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
..... coding 1..* Coding Code defined by a terminology system
Fixed Value: (complex)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
...... system 1..1 uri Identity of the terminology system
Fixed Value: https://healthterminologies.gov.au/fhir/CodeSystem/nctis-data-components-1
...... version 0..1 string Version of the system - if relevant
...... code 1..1 code Symbol in syntax defined by the system
Fixed Value: 100.16975
...... display 0..1 string Representation defined by the system
...... userSelected 0..1 boolean If this coding was chosen directly by the user
..... text 0..1 string Plain text representation of the concept
.... entry C 1..1 Reference(MHR Advance Care Planning Document DocumentReference) Advance care planning document reference

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
Composition.statusrequiredPattern Value: final
http://hl7.org/fhir/ValueSet/composition-status|4.0.1
From the FHIR Standard
Composition.typerequiredAdvanceCarePlanningDocumentType .
https://healthterminologies.gov.au/fhir/ValueSet/advance-care-planning-document-type-1
Composition.categoryexampleDocumentClassValueSet
http://hl7.org/fhir/ValueSet/document-classcodes
From the FHIR Standard
Composition.category:aciexamplePattern Value: 100.16975
http://hl7.org/fhir/ValueSet/document-classcodes
From the FHIR Standard
Composition.attester.moderequiredCompositionAttestationMode
http://hl7.org/fhir/ValueSet/composition-attestation-mode|4.0.1
From the FHIR Standard
Composition.relatesTo.coderequiredDocumentRelationshipType
http://hl7.org/fhir/ValueSet/document-relationship-type|4.0.1
From the FHIR Standard
Composition.section.codeexamplePattern Value: 100.16975
http://hl7.org/fhir/ValueSet/doc-section-codes
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
cmp-1errorComposition.sectionA section must contain at least one of text, entries, or sub-sections
: text.exists() or entry.exists() or section.exists()
cmp-2errorComposition.sectionA section can only have an emptyReason if it is empty
: emptyReason.empty() or entry.empty()
dom-2errorCompositionIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorCompositionIf 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-4errorCompositionIf 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-5errorCompositionIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceCompositionA 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()
inv-dh-doc-01errorCompositionIf present, an information recipient shall at least have a reference, an identifier or a display
: extension.where(url='http://hl7.org.au/fhir/StructureDefinition/information-recipient').exists() implies extension.where(url='http://hl7.org.au/fhir/StructureDefinition/information-recipient').all(value.reference.exists() or value.identifier.exists() or value.display.exists())
inv-dh-doc-02errorCompositionSections shall be unique by code
: section.select(code.coding.code).isDistinct()
inv-dh-doc-03errorComposition.subjectAt least reference or a valid identifier shall be present
: reference.exists() or identifier.where(system.count() + value.count() >1).exists()
inv-dh-doc-04errorComposition.authorAt least reference or a valid identifier shall be present
: reference.exists() or identifier.where(system.count() + value.count() >1).exists()
inv-dh-doc-05errorComposition.attesterThe party shall at least have a reference or a valid identifier
: party.reference.exists() or party.identifier.where(system.count() + value.count() >1).exists()
inv-dh-doc-06errorComposition.custodianAt least reference or a valid identifier shall be present
: reference.exists() or identifier.where(system.count() + value.count() >1).exists()
inv-dh-doc-07errorComposition.dateDate shall be at least to day
: toString().length() >= 10

This structure is derived from AUBaseComposition

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Composition C 0..* AUBaseComposition Advance Care Planning Document
Constraints: inv-dh-doc-01, inv-dh-doc-02
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:informationRecipient SC 0..* Reference(Practitioner | Device | Patient | RelatedPerson | PractitionerRole | Organization) Information recipient
URL: http://hl7.org.au/fhir/StructureDefinition/information-recipient
... identifier S 1..1 Identifier Version-independent identifier for the Composition
... status S 1..1 code preliminary | final | amended | entered-in-error
Required Pattern: final
... Slices for category 1..* CodeableConcept Categorization of Composition
Slice: Unordered, Open by value:coding.code
.... category:aci 1..1 CodeableConcept Advance Care Information
Required Pattern: At least the following
..... coding 1..* Coding Code defined by a terminology system
Fixed Value: (complex)
...... system 1..1 uri Identity of the terminology system
Fixed Value: https://healthterminologies.gov.au/fhir/CodeSystem/nctis-data-components-1
...... code 1..1 code Symbol in syntax defined by the system
Fixed Value: 100.16975
..... coding 1..* Coding Code defined by a terminology system
...... system 1..1 uri Identity of the terminology system
Fixed Value: https://healthterminologies.gov.au/fhir/CodeSystem/nctis-data-components-1
...... code 1..1 code Symbol in syntax defined by the system
Fixed Value: 100.16975
... subject SC 1..1 Reference(MHR Patient) Who and/or what the composition is about
Constraints: inv-dh-doc-03
... encounter S 0..1 Reference(MHR Encounter) Context of the Composition
... date SC 1..1 dateTime Composition editing time
Constraints: inv-dh-doc-07
... author SC 1..1 Reference(MHR Authoring PractitionerRole | MHR Patient | MHR Authoring RelatedPerson) Author of the composition, may not be the author of the attached advance care planning document
Constraints: inv-dh-doc-04
... title S 1..1 string Human Readable name/title
... confidentiality 0..0
... attester SC 0..* BackboneElement Attests to accuracy of composition
Constraints: inv-dh-doc-05
.... mode S 1..1 code personal | professional | legal | official
.... time S 1..1 dateTime When the composition was attested
.... party SC 0..1 Reference(MHR Authoring PractitionerRole | MHR Patient | MHR Authoring RelatedPerson) Who attested the composition
... custodian SC 1..1 Reference(AU Core Organization) Organization which maintains the composition
Constraints: inv-dh-doc-06
... relatesTo S 0..* BackboneElement Relationships to other compositions/documents
.... code S 1..1 code replaces | transforms | signs | appends
... section 0..1 BackboneElement Advance Care Information
.... code 1..1 CodeableConcept Classification of section (recommended)
Required Pattern: At least the following
..... coding 1..* Coding Code defined by a terminology system
Fixed Value: (complex)
...... system 1..1 uri Identity of the terminology system
Fixed Value: https://healthterminologies.gov.au/fhir/CodeSystem/nctis-data-components-1
...... code 1..1 code Symbol in syntax defined by the system
Fixed Value: 100.16975
.... entry 1..1 Reference(MHR Advance Care Planning Document DocumentReference) Advance care planning document reference

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSetURI
Composition.typerequiredAdvanceCarePlanningDocumentType .
https://healthterminologies.gov.au/fhir/ValueSet/advance-care-planning-document-type-1

Constraints

IdGradePath(s)DetailsRequirements
inv-dh-doc-01errorCompositionIf present, an information recipient shall at least have a reference, an identifier or a display
: extension.where(url='http://hl7.org.au/fhir/StructureDefinition/information-recipient').exists() implies extension.where(url='http://hl7.org.au/fhir/StructureDefinition/information-recipient').all(value.reference.exists() or value.identifier.exists() or value.display.exists())
inv-dh-doc-02errorCompositionSections shall be unique by code
: section.select(code.coding.code).isDistinct()
inv-dh-doc-03errorComposition.subjectAt least reference or a valid identifier shall be present
: reference.exists() or identifier.where(system.count() + value.count() >1).exists()
inv-dh-doc-04errorComposition.authorAt least reference or a valid identifier shall be present
: reference.exists() or identifier.where(system.count() + value.count() >1).exists()
inv-dh-doc-05errorComposition.attesterThe party shall at least have a reference or a valid identifier
: party.reference.exists() or party.identifier.where(system.count() + value.count() >1).exists()
inv-dh-doc-06errorComposition.custodianAt least reference or a valid identifier shall be present
: reference.exists() or identifier.where(system.count() + value.count() >1).exists()
inv-dh-doc-07errorComposition.dateDate shall be at least to day
: toString().length() >= 10
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Composition C 0..* AUBaseComposition Advance Care Planning Document
Constraints: inv-dh-doc-01, inv-dh-doc-02
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... text 0..1 Narrative Text summary of the resource, for human interpretation
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
... contained 0..* Resource Contained, inline Resources
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:informationRecipient SC 0..* Reference(Practitioner | Device | Patient | RelatedPerson | PractitionerRole | Organization) Information recipient
URL: http://hl7.org.au/fhir/StructureDefinition/information-recipient
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... identifier SΣ 1..1 Identifier Version-independent identifier for the Composition
... status ?!SΣ 1..1 code preliminary | final | amended | entered-in-error
Binding: CompositionStatus (required): The workflow/clinical status of the composition.
Required Pattern: final
... type SΣ 1..1 CodeableConcept Sub type of advance care planning document
Binding: Advance Care Planning Document Type . (required)
... Slices for category Σ 1..* CodeableConcept Categorization of Composition
Slice: Unordered, Open by value:coding.code
Binding: DocumentClassValueSet (example): High-level kind of a clinical document at a macro level.
.... category:aci Σ 1..1 CodeableConcept Advance Care Information
Binding: DocumentClassValueSet (example): High-level kind of a clinical document at a macro level.

Required Pattern: At least the following
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
..... coding 1..* Coding Code defined by a terminology system
Fixed Value: (complex)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
...... system 1..1 uri Identity of the terminology system
Fixed Value: https://healthterminologies.gov.au/fhir/CodeSystem/nctis-data-components-1
...... version 0..1 string Version of the system - if relevant
...... code 1..1 code Symbol in syntax defined by the system
Fixed Value: 100.16975
...... display 0..1 string Representation defined by the system
...... userSelected 0..1 boolean If this coding was chosen directly by the user
..... text 0..1 string Plain text representation of the concept
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... coding Σ 1..* Coding Code defined by a terminology system
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... system Σ 1..1 uri Identity of the terminology system
Fixed Value: https://healthterminologies.gov.au/fhir/CodeSystem/nctis-data-components-1
...... version Σ 0..1 string Version of the system - if relevant
...... code Σ 1..1 code Symbol in syntax defined by the system
Fixed Value: 100.16975
...... display Σ 0..1 string Representation defined by the system
...... userSelected Σ 0..1 boolean If this coding was chosen directly by the user
..... text Σ 0..1 string Plain text representation of the concept
... subject SΣC 1..1 Reference(MHR Patient) Who and/or what the composition is about
Constraints: inv-dh-doc-03
... encounter SΣ 0..1 Reference(MHR Encounter) Context of the Composition
... date SΣC 1..1 dateTime Composition editing time
Constraints: inv-dh-doc-07
... author SΣC 1..1 Reference(MHR Authoring PractitionerRole | MHR Patient | MHR Authoring RelatedPerson) Author of the composition, may not be the author of the attached advance care planning document
Constraints: inv-dh-doc-04
... title SΣ 1..1 string Human Readable name/title
... attester SC 0..* BackboneElement Attests to accuracy of composition
Constraints: inv-dh-doc-05
.... 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
.... mode S 1..1 code personal | professional | legal | official
Binding: CompositionAttestationMode (required): The way in which a person authenticated a composition.
.... time S 1..1 dateTime When the composition was attested
.... party SC 0..1 Reference(MHR Authoring PractitionerRole | MHR Patient | MHR Authoring RelatedPerson) Who attested the composition
... custodian SΣC 1..1 Reference(AU Core Organization) Organization which maintains the composition
Constraints: inv-dh-doc-06
... relatesTo S 0..* BackboneElement Relationships to other compositions/documents
.... 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
.... code S 1..1 code replaces | transforms | signs | appends
Binding: DocumentRelationshipType (required): The type of relationship between documents.
.... target[x] 1..1 Target of the relationship
..... targetIdentifier Identifier
..... targetReference Reference(Composition)
... event Σ 0..* BackboneElement The clinical service(s) being documented
.... 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
.... code Σ 0..* CodeableConcept Code(s) that apply to the event being documented
Binding: v3 Code System ActCode (example): This list of codes represents the main clinical acts being documented.
.... period Σ 0..1 Period The period covered by the documentation
.... detail Σ 0..* Reference(Resource) The event(s) being documented
... section C 0..1 BackboneElement Advance Care Information
Constraints: cmp-1, cmp-2
.... 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
.... title 0..1 string Label for section (e.g. for ToC)
.... code 1..1 CodeableConcept Classification of section (recommended)
Binding: DocumentSectionCodes (example): Classification of a section of a composition/document.
Required Pattern: At least the following
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
..... coding 1..* Coding Code defined by a terminology system
Fixed Value: (complex)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
...... system 1..1 uri Identity of the terminology system
Fixed Value: https://healthterminologies.gov.au/fhir/CodeSystem/nctis-data-components-1
...... version 0..1 string Version of the system - if relevant
...... code 1..1 code Symbol in syntax defined by the system
Fixed Value: 100.16975
...... display 0..1 string Representation defined by the system
...... userSelected 0..1 boolean If this coding was chosen directly by the user
..... text 0..1 string Plain text representation of the concept
.... author 0..* Reference(Practitioner | PractitionerRole | Device | Patient | RelatedPerson | Organization) Who and/or what authored the section
.... focus 0..1 Reference(Resource) Who/what the section is about, when it is not about the subject of composition
.... text C 0..1 Narrative Text summary of the section, for human interpretation
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
.... mode 0..1 code working | snapshot | changes
Binding: ListMode (required): The processing mode that applies to this section.
.... orderedBy 0..1 CodeableConcept Order of section entries
Binding: ListOrderCodes (preferred): What order applies to the items in the entry.
.... entry C 1..1 Reference(MHR Advance Care Planning Document DocumentReference) Advance care planning document reference
.... emptyReason C 0..1 CodeableConcept Why the section is empty
Binding: ListEmptyReasons (preferred): If a section is empty, why it is empty.
.... section C 0..* See section (Composition) Nested Section

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
Composition.languagepreferredCommonLanguages
http://hl7.org/fhir/ValueSet/languages
From the FHIR Standard
Additional Bindings Purpose
AllLanguages Max Binding
Composition.statusrequiredPattern Value: final
http://hl7.org/fhir/ValueSet/composition-status|4.0.1
From the FHIR Standard
Composition.typerequiredAdvanceCarePlanningDocumentType .
https://healthterminologies.gov.au/fhir/ValueSet/advance-care-planning-document-type-1
Composition.categoryexampleDocumentClassValueSet
http://hl7.org/fhir/ValueSet/document-classcodes
From the FHIR Standard
Composition.category:aciexamplePattern Value: 100.16975
http://hl7.org/fhir/ValueSet/document-classcodes
From the FHIR Standard
Composition.attester.moderequiredCompositionAttestationMode
http://hl7.org/fhir/ValueSet/composition-attestation-mode|4.0.1
From the FHIR Standard
Composition.relatesTo.coderequiredDocumentRelationshipType
http://hl7.org/fhir/ValueSet/document-relationship-type|4.0.1
From the FHIR Standard
Composition.event.codeexampleActCode
http://terminology.hl7.org/ValueSet/v3-ActCode
Composition.section.codeexamplePattern Value: 100.16975
http://hl7.org/fhir/ValueSet/doc-section-codes
From the FHIR Standard
Composition.section.moderequiredListMode
http://hl7.org/fhir/ValueSet/list-mode|4.0.1
From the FHIR Standard
Composition.section.orderedBypreferredListOrderCodes
http://hl7.org/fhir/ValueSet/list-order
From the FHIR Standard
Composition.section.emptyReasonpreferredListEmptyReasons
http://hl7.org/fhir/ValueSet/list-empty-reason
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
cmp-1errorComposition.sectionA section must contain at least one of text, entries, or sub-sections
: text.exists() or entry.exists() or section.exists()
cmp-2errorComposition.sectionA section can only have an emptyReason if it is empty
: emptyReason.empty() or entry.empty()
dom-2errorCompositionIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorCompositionIf 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-4errorCompositionIf 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-5errorCompositionIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceCompositionA 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()
inv-dh-doc-01errorCompositionIf present, an information recipient shall at least have a reference, an identifier or a display
: extension.where(url='http://hl7.org.au/fhir/StructureDefinition/information-recipient').exists() implies extension.where(url='http://hl7.org.au/fhir/StructureDefinition/information-recipient').all(value.reference.exists() or value.identifier.exists() or value.display.exists())
inv-dh-doc-02errorCompositionSections shall be unique by code
: section.select(code.coding.code).isDistinct()
inv-dh-doc-03errorComposition.subjectAt least reference or a valid identifier shall be present
: reference.exists() or identifier.where(system.count() + value.count() >1).exists()
inv-dh-doc-04errorComposition.authorAt least reference or a valid identifier shall be present
: reference.exists() or identifier.where(system.count() + value.count() >1).exists()
inv-dh-doc-05errorComposition.attesterThe party shall at least have a reference or a valid identifier
: party.reference.exists() or party.identifier.where(system.count() + value.count() >1).exists()
inv-dh-doc-06errorComposition.custodianAt least reference or a valid identifier shall be present
: reference.exists() or identifier.where(system.count() + value.count() >1).exists()
inv-dh-doc-07errorComposition.dateDate shall be at least to day
: toString().length() >= 10

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Composition C 0..* AUBaseComposition Advance Care Planning Document
Constraints: inv-dh-doc-01, inv-dh-doc-02
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:informationRecipient SC 0..* Reference(Practitioner | Device | Patient | RelatedPerson | PractitionerRole | Organization) Information recipient
URL: http://hl7.org.au/fhir/StructureDefinition/information-recipient
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... status ?!SΣ 1..1 code preliminary | final | amended | entered-in-error
Binding: CompositionStatus (required): The workflow/clinical status of the composition.
Required Pattern: final
... type SΣ 1..1 CodeableConcept Sub type of advance care planning document
Binding: Advance Care Planning Document Type . (required)
... Slices for category Σ 1..* CodeableConcept Categorization of Composition
Slice: Unordered, Open by value:coding.code
Binding: DocumentClassValueSet (example): High-level kind of a clinical document at a macro level.
.... category:aci Σ 1..1 CodeableConcept Advance Care Information
Binding: DocumentClassValueSet (example): High-level kind of a clinical document at a macro level.

Required Pattern: At least the following
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
..... coding 1..* Coding Code defined by a terminology system
Fixed Value: (complex)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
...... system 1..1 uri Identity of the terminology system
Fixed Value: https://healthterminologies.gov.au/fhir/CodeSystem/nctis-data-components-1
...... version 0..1 string Version of the system - if relevant
...... code 1..1 code Symbol in syntax defined by the system
Fixed Value: 100.16975
...... display 0..1 string Representation defined by the system
...... userSelected 0..1 boolean If this coding was chosen directly by the user
..... text 0..1 string Plain text representation of the concept
..... coding Σ 1..* Coding Code defined by a terminology system
...... system Σ 1..1 uri Identity of the terminology system
Fixed Value: https://healthterminologies.gov.au/fhir/CodeSystem/nctis-data-components-1
...... code Σ 1..1 code Symbol in syntax defined by the system
Fixed Value: 100.16975
... subject SΣC 1..1 Reference(MHR Patient) Who and/or what the composition is about
Constraints: inv-dh-doc-03
... encounter SΣ 0..1 Reference(MHR Encounter) Context of the Composition
... date SΣC 1..1 dateTime Composition editing time
Constraints: inv-dh-doc-07
... author SΣC 1..1 Reference(MHR Authoring PractitionerRole | MHR Patient | MHR Authoring RelatedPerson) Author of the composition, may not be the author of the attached advance care planning document
Constraints: inv-dh-doc-04
... title SΣ 1..1 string Human Readable name/title
... attester SC 0..* BackboneElement Attests to accuracy of composition
Constraints: inv-dh-doc-05
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... mode S 1..1 code personal | professional | legal | official
Binding: CompositionAttestationMode (required): The way in which a person authenticated a composition.
.... time S 1..1 dateTime When the composition was attested
.... party SC 0..1 Reference(MHR Authoring PractitionerRole | MHR Patient | MHR Authoring RelatedPerson) Who attested the composition
... custodian SΣC 1..1 Reference(AU Core Organization) Organization which maintains the composition
Constraints: inv-dh-doc-06
... relatesTo S 0..* BackboneElement Relationships to other compositions/documents
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... code S 1..1 code replaces | transforms | signs | appends
Binding: DocumentRelationshipType (required): The type of relationship between documents.
.... target[x] 1..1 Target of the relationship
..... targetIdentifier Identifier
..... targetReference Reference(Composition)
... section C 0..1 BackboneElement Advance Care Information
Constraints: cmp-1, cmp-2
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... code 1..1 CodeableConcept Classification of section (recommended)
Binding: DocumentSectionCodes (example): Classification of a section of a composition/document.
Required Pattern: At least the following
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
..... coding 1..* Coding Code defined by a terminology system
Fixed Value: (complex)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
...... system 1..1 uri Identity of the terminology system
Fixed Value: https://healthterminologies.gov.au/fhir/CodeSystem/nctis-data-components-1
...... version 0..1 string Version of the system - if relevant
...... code 1..1 code Symbol in syntax defined by the system
Fixed Value: 100.16975
...... display 0..1 string Representation defined by the system
...... userSelected 0..1 boolean If this coding was chosen directly by the user
..... text 0..1 string Plain text representation of the concept
.... entry C 1..1 Reference(MHR Advance Care Planning Document DocumentReference) Advance care planning document reference

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
Composition.statusrequiredPattern Value: final
http://hl7.org/fhir/ValueSet/composition-status|4.0.1
From the FHIR Standard
Composition.typerequiredAdvanceCarePlanningDocumentType .
https://healthterminologies.gov.au/fhir/ValueSet/advance-care-planning-document-type-1
Composition.categoryexampleDocumentClassValueSet
http://hl7.org/fhir/ValueSet/document-classcodes
From the FHIR Standard
Composition.category:aciexamplePattern Value: 100.16975
http://hl7.org/fhir/ValueSet/document-classcodes
From the FHIR Standard
Composition.attester.moderequiredCompositionAttestationMode
http://hl7.org/fhir/ValueSet/composition-attestation-mode|4.0.1
From the FHIR Standard
Composition.relatesTo.coderequiredDocumentRelationshipType
http://hl7.org/fhir/ValueSet/document-relationship-type|4.0.1
From the FHIR Standard
Composition.section.codeexamplePattern Value: 100.16975
http://hl7.org/fhir/ValueSet/doc-section-codes
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
cmp-1errorComposition.sectionA section must contain at least one of text, entries, or sub-sections
: text.exists() or entry.exists() or section.exists()
cmp-2errorComposition.sectionA section can only have an emptyReason if it is empty
: emptyReason.empty() or entry.empty()
dom-2errorCompositionIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorCompositionIf 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-4errorCompositionIf 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-5errorCompositionIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceCompositionA 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()
inv-dh-doc-01errorCompositionIf present, an information recipient shall at least have a reference, an identifier or a display
: extension.where(url='http://hl7.org.au/fhir/StructureDefinition/information-recipient').exists() implies extension.where(url='http://hl7.org.au/fhir/StructureDefinition/information-recipient').all(value.reference.exists() or value.identifier.exists() or value.display.exists())
inv-dh-doc-02errorCompositionSections shall be unique by code
: section.select(code.coding.code).isDistinct()
inv-dh-doc-03errorComposition.subjectAt least reference or a valid identifier shall be present
: reference.exists() or identifier.where(system.count() + value.count() >1).exists()
inv-dh-doc-04errorComposition.authorAt least reference or a valid identifier shall be present
: reference.exists() or identifier.where(system.count() + value.count() >1).exists()
inv-dh-doc-05errorComposition.attesterThe party shall at least have a reference or a valid identifier
: party.reference.exists() or party.identifier.where(system.count() + value.count() >1).exists()
inv-dh-doc-06errorComposition.custodianAt least reference or a valid identifier shall be present
: reference.exists() or identifier.where(system.count() + value.count() >1).exists()
inv-dh-doc-07errorComposition.dateDate shall be at least to day
: toString().length() >= 10

Differential View

This structure is derived from AUBaseComposition

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Composition C 0..* AUBaseComposition Advance Care Planning Document
Constraints: inv-dh-doc-01, inv-dh-doc-02
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:informationRecipient SC 0..* Reference(Practitioner | Device | Patient | RelatedPerson | PractitionerRole | Organization) Information recipient
URL: http://hl7.org.au/fhir/StructureDefinition/information-recipient
... identifier S 1..1 Identifier Version-independent identifier for the Composition
... status S 1..1 code preliminary | final | amended | entered-in-error
Required Pattern: final
... Slices for category 1..* CodeableConcept Categorization of Composition
Slice: Unordered, Open by value:coding.code
.... category:aci 1..1 CodeableConcept Advance Care Information
Required Pattern: At least the following
..... coding 1..* Coding Code defined by a terminology system
Fixed Value: (complex)
...... system 1..1 uri Identity of the terminology system
Fixed Value: https://healthterminologies.gov.au/fhir/CodeSystem/nctis-data-components-1
...... code 1..1 code Symbol in syntax defined by the system
Fixed Value: 100.16975
..... coding 1..* Coding Code defined by a terminology system
...... system 1..1 uri Identity of the terminology system
Fixed Value: https://healthterminologies.gov.au/fhir/CodeSystem/nctis-data-components-1
...... code 1..1 code Symbol in syntax defined by the system
Fixed Value: 100.16975
... subject SC 1..1 Reference(MHR Patient) Who and/or what the composition is about
Constraints: inv-dh-doc-03
... encounter S 0..1 Reference(MHR Encounter) Context of the Composition
... date SC 1..1 dateTime Composition editing time
Constraints: inv-dh-doc-07
... author SC 1..1 Reference(MHR Authoring PractitionerRole | MHR Patient | MHR Authoring RelatedPerson) Author of the composition, may not be the author of the attached advance care planning document
Constraints: inv-dh-doc-04
... title S 1..1 string Human Readable name/title
... confidentiality 0..0
... attester SC 0..* BackboneElement Attests to accuracy of composition
Constraints: inv-dh-doc-05
.... mode S 1..1 code personal | professional | legal | official
.... time S 1..1 dateTime When the composition was attested
.... party SC 0..1 Reference(MHR Authoring PractitionerRole | MHR Patient | MHR Authoring RelatedPerson) Who attested the composition
... custodian SC 1..1 Reference(AU Core Organization) Organization which maintains the composition
Constraints: inv-dh-doc-06
... relatesTo S 0..* BackboneElement Relationships to other compositions/documents
.... code S 1..1 code replaces | transforms | signs | appends
... section 0..1 BackboneElement Advance Care Information
.... code 1..1 CodeableConcept Classification of section (recommended)
Required Pattern: At least the following
..... coding 1..* Coding Code defined by a terminology system
Fixed Value: (complex)
...... system 1..1 uri Identity of the terminology system
Fixed Value: https://healthterminologies.gov.au/fhir/CodeSystem/nctis-data-components-1
...... code 1..1 code Symbol in syntax defined by the system
Fixed Value: 100.16975
.... entry 1..1 Reference(MHR Advance Care Planning Document DocumentReference) Advance care planning document reference

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSetURI
Composition.typerequiredAdvanceCarePlanningDocumentType .
https://healthterminologies.gov.au/fhir/ValueSet/advance-care-planning-document-type-1

Constraints

IdGradePath(s)DetailsRequirements
inv-dh-doc-01errorCompositionIf present, an information recipient shall at least have a reference, an identifier or a display
: extension.where(url='http://hl7.org.au/fhir/StructureDefinition/information-recipient').exists() implies extension.where(url='http://hl7.org.au/fhir/StructureDefinition/information-recipient').all(value.reference.exists() or value.identifier.exists() or value.display.exists())
inv-dh-doc-02errorCompositionSections shall be unique by code
: section.select(code.coding.code).isDistinct()
inv-dh-doc-03errorComposition.subjectAt least reference or a valid identifier shall be present
: reference.exists() or identifier.where(system.count() + value.count() >1).exists()
inv-dh-doc-04errorComposition.authorAt least reference or a valid identifier shall be present
: reference.exists() or identifier.where(system.count() + value.count() >1).exists()
inv-dh-doc-05errorComposition.attesterThe party shall at least have a reference or a valid identifier
: party.reference.exists() or party.identifier.where(system.count() + value.count() >1).exists()
inv-dh-doc-06errorComposition.custodianAt least reference or a valid identifier shall be present
: reference.exists() or identifier.where(system.count() + value.count() >1).exists()
inv-dh-doc-07errorComposition.dateDate shall be at least to day
: toString().length() >= 10

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Composition C 0..* AUBaseComposition Advance Care Planning Document
Constraints: inv-dh-doc-01, inv-dh-doc-02
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... text 0..1 Narrative Text summary of the resource, for human interpretation
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
... contained 0..* Resource Contained, inline Resources
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:informationRecipient SC 0..* Reference(Practitioner | Device | Patient | RelatedPerson | PractitionerRole | Organization) Information recipient
URL: http://hl7.org.au/fhir/StructureDefinition/information-recipient
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... identifier SΣ 1..1 Identifier Version-independent identifier for the Composition
... status ?!SΣ 1..1 code preliminary | final | amended | entered-in-error
Binding: CompositionStatus (required): The workflow/clinical status of the composition.
Required Pattern: final
... type SΣ 1..1 CodeableConcept Sub type of advance care planning document
Binding: Advance Care Planning Document Type . (required)
... Slices for category Σ 1..* CodeableConcept Categorization of Composition
Slice: Unordered, Open by value:coding.code
Binding: DocumentClassValueSet (example): High-level kind of a clinical document at a macro level.
.... category:aci Σ 1..1 CodeableConcept Advance Care Information
Binding: DocumentClassValueSet (example): High-level kind of a clinical document at a macro level.

Required Pattern: At least the following
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
..... coding 1..* Coding Code defined by a terminology system
Fixed Value: (complex)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
...... system 1..1 uri Identity of the terminology system
Fixed Value: https://healthterminologies.gov.au/fhir/CodeSystem/nctis-data-components-1
...... version 0..1 string Version of the system - if relevant
...... code 1..1 code Symbol in syntax defined by the system
Fixed Value: 100.16975
...... display 0..1 string Representation defined by the system
...... userSelected 0..1 boolean If this coding was chosen directly by the user
..... text 0..1 string Plain text representation of the concept
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... coding Σ 1..* Coding Code defined by a terminology system
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... system Σ 1..1 uri Identity of the terminology system
Fixed Value: https://healthterminologies.gov.au/fhir/CodeSystem/nctis-data-components-1
...... version Σ 0..1 string Version of the system - if relevant
...... code Σ 1..1 code Symbol in syntax defined by the system
Fixed Value: 100.16975
...... display Σ 0..1 string Representation defined by the system
...... userSelected Σ 0..1 boolean If this coding was chosen directly by the user
..... text Σ 0..1 string Plain text representation of the concept
... subject SΣC 1..1 Reference(MHR Patient) Who and/or what the composition is about
Constraints: inv-dh-doc-03
... encounter SΣ 0..1 Reference(MHR Encounter) Context of the Composition
... date SΣC 1..1 dateTime Composition editing time
Constraints: inv-dh-doc-07
... author SΣC 1..1 Reference(MHR Authoring PractitionerRole | MHR Patient | MHR Authoring RelatedPerson) Author of the composition, may not be the author of the attached advance care planning document
Constraints: inv-dh-doc-04
... title SΣ 1..1 string Human Readable name/title
... attester SC 0..* BackboneElement Attests to accuracy of composition
Constraints: inv-dh-doc-05
.... 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
.... mode S 1..1 code personal | professional | legal | official
Binding: CompositionAttestationMode (required): The way in which a person authenticated a composition.
.... time S 1..1 dateTime When the composition was attested
.... party SC 0..1 Reference(MHR Authoring PractitionerRole | MHR Patient | MHR Authoring RelatedPerson) Who attested the composition
... custodian SΣC 1..1 Reference(AU Core Organization) Organization which maintains the composition
Constraints: inv-dh-doc-06
... relatesTo S 0..* BackboneElement Relationships to other compositions/documents
.... 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
.... code S 1..1 code replaces | transforms | signs | appends
Binding: DocumentRelationshipType (required): The type of relationship between documents.
.... target[x] 1..1 Target of the relationship
..... targetIdentifier Identifier
..... targetReference Reference(Composition)
... event Σ 0..* BackboneElement The clinical service(s) being documented
.... 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
.... code Σ 0..* CodeableConcept Code(s) that apply to the event being documented
Binding: v3 Code System ActCode (example): This list of codes represents the main clinical acts being documented.
.... period Σ 0..1 Period The period covered by the documentation
.... detail Σ 0..* Reference(Resource) The event(s) being documented
... section C 0..1 BackboneElement Advance Care Information
Constraints: cmp-1, cmp-2
.... 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
.... title 0..1 string Label for section (e.g. for ToC)
.... code 1..1 CodeableConcept Classification of section (recommended)
Binding: DocumentSectionCodes (example): Classification of a section of a composition/document.
Required Pattern: At least the following
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
..... coding 1..* Coding Code defined by a terminology system
Fixed Value: (complex)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
...... system 1..1 uri Identity of the terminology system
Fixed Value: https://healthterminologies.gov.au/fhir/CodeSystem/nctis-data-components-1
...... version 0..1 string Version of the system - if relevant
...... code 1..1 code Symbol in syntax defined by the system
Fixed Value: 100.16975
...... display 0..1 string Representation defined by the system
...... userSelected 0..1 boolean If this coding was chosen directly by the user
..... text 0..1 string Plain text representation of the concept
.... author 0..* Reference(Practitioner | PractitionerRole | Device | Patient | RelatedPerson | Organization) Who and/or what authored the section
.... focus 0..1 Reference(Resource) Who/what the section is about, when it is not about the subject of composition
.... text C 0..1 Narrative Text summary of the section, for human interpretation
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
.... mode 0..1 code working | snapshot | changes
Binding: ListMode (required): The processing mode that applies to this section.
.... orderedBy 0..1 CodeableConcept Order of section entries
Binding: ListOrderCodes (preferred): What order applies to the items in the entry.
.... entry C 1..1 Reference(MHR Advance Care Planning Document DocumentReference) Advance care planning document reference
.... emptyReason C 0..1 CodeableConcept Why the section is empty
Binding: ListEmptyReasons (preferred): If a section is empty, why it is empty.
.... section C 0..* See section (Composition) Nested Section

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
Composition.languagepreferredCommonLanguages
http://hl7.org/fhir/ValueSet/languages
From the FHIR Standard
Additional Bindings Purpose
AllLanguages Max Binding
Composition.statusrequiredPattern Value: final
http://hl7.org/fhir/ValueSet/composition-status|4.0.1
From the FHIR Standard
Composition.typerequiredAdvanceCarePlanningDocumentType .
https://healthterminologies.gov.au/fhir/ValueSet/advance-care-planning-document-type-1
Composition.categoryexampleDocumentClassValueSet
http://hl7.org/fhir/ValueSet/document-classcodes
From the FHIR Standard
Composition.category:aciexamplePattern Value: 100.16975
http://hl7.org/fhir/ValueSet/document-classcodes
From the FHIR Standard
Composition.attester.moderequiredCompositionAttestationMode
http://hl7.org/fhir/ValueSet/composition-attestation-mode|4.0.1
From the FHIR Standard
Composition.relatesTo.coderequiredDocumentRelationshipType
http://hl7.org/fhir/ValueSet/document-relationship-type|4.0.1
From the FHIR Standard
Composition.event.codeexampleActCode
http://terminology.hl7.org/ValueSet/v3-ActCode
Composition.section.codeexamplePattern Value: 100.16975
http://hl7.org/fhir/ValueSet/doc-section-codes
From the FHIR Standard
Composition.section.moderequiredListMode
http://hl7.org/fhir/ValueSet/list-mode|4.0.1
From the FHIR Standard
Composition.section.orderedBypreferredListOrderCodes
http://hl7.org/fhir/ValueSet/list-order
From the FHIR Standard
Composition.section.emptyReasonpreferredListEmptyReasons
http://hl7.org/fhir/ValueSet/list-empty-reason
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
cmp-1errorComposition.sectionA section must contain at least one of text, entries, or sub-sections
: text.exists() or entry.exists() or section.exists()
cmp-2errorComposition.sectionA section can only have an emptyReason if it is empty
: emptyReason.empty() or entry.empty()
dom-2errorCompositionIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorCompositionIf 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-4errorCompositionIf 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-5errorCompositionIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceCompositionA 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()
inv-dh-doc-01errorCompositionIf present, an information recipient shall at least have a reference, an identifier or a display
: extension.where(url='http://hl7.org.au/fhir/StructureDefinition/information-recipient').exists() implies extension.where(url='http://hl7.org.au/fhir/StructureDefinition/information-recipient').all(value.reference.exists() or value.identifier.exists() or value.display.exists())
inv-dh-doc-02errorCompositionSections shall be unique by code
: section.select(code.coding.code).isDistinct()
inv-dh-doc-03errorComposition.subjectAt least reference or a valid identifier shall be present
: reference.exists() or identifier.where(system.count() + value.count() >1).exists()
inv-dh-doc-04errorComposition.authorAt least reference or a valid identifier shall be present
: reference.exists() or identifier.where(system.count() + value.count() >1).exists()
inv-dh-doc-05errorComposition.attesterThe party shall at least have a reference or a valid identifier
: party.reference.exists() or party.identifier.where(system.count() + value.count() >1).exists()
inv-dh-doc-06errorComposition.custodianAt least reference or a valid identifier shall be present
: reference.exists() or identifier.where(system.count() + value.count() >1).exists()
inv-dh-doc-07errorComposition.dateDate shall be at least to day
: toString().length() >= 10

 

Other representations of profile: CSV, Excel, Schematron