Inera Core Implementation Guide
0.2.0 - ci-build
Sweden
Inera Core Implementation Guide - Local Development build (v0.2.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
| Official URL: https://inera.se/fhir/core/StructureDefinition/composition-base-inera | Version: 0.2.0 | |||
| Draft as of 2025-11-24 | Computable Name: CompositionBaseInera | |||
Svensk profil för strukturerade kliniska dokument baserad på TKB GetCareDocumentation v2.0.
Används för strukturerade dokument med väldefinierade sektioner:
Narrative Text (text-element): Composition.text kan användas för att tillhandahålla en helhetsbild av dokumentet i XHTML-format. För patient-administrativa meddelanden från 1177 Inkorg (kallelser, bokningar, brev) kan DocBook-formaterat innehåll transformeras till FHIR Narrative XHTML enligt ConceptMap DocBook-to-Narrative.
Se DocBook to FHIR Narrative Guide för detaljer om:
Källa: TKB GetCareDocumentation v2.0 (clinicalprocess:healthcond:description)
Usages:
You can also check for usages in the FHIR IG Statistics
Description of Profiles, Differentials, Snapshots and how the different presentations work.
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | Composition | A set of resources composed into a single coherent clinical statement with clinical attestation | |
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() |
S | 0..1 | Narrative | Dokumenttext (Narrative) This profile does not constrain the narrative in regard to content, language, or traceability to data elements |
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored |
![]() ![]() |
SΣ | 0..1 | Identifier | Dokument-ID |
![]() ![]() |
?!SΣ | 1..1 | code | Status Binding: CompositionStatus (required) |
![]() ![]() |
SΣ | 1..1 | CodeableConcept | Dokumenttyp Binding: FHIRDocumentTypeCodes (preferred) |
![]() ![]() |
SΣ | 0..* | CodeableConcept | Kategori Binding: DocumentClassValueSet (example): High-level kind of a clinical document at a macro level. |
![]() ![]() |
SΣ | 1..1 | Reference(Patient Base Inera) | Patient |
![]() ![]() |
SΣ | 0..1 | Reference(Encounter Base Inera) | Vårdkontakt |
![]() ![]() |
SΣ | 1..1 | dateTime | Dokumentdatum |
![]() ![]() |
SΣ | 1..* | Reference(PractitionerRole Base Inera | Device | Patient Base Inera | RelatedPerson | Organization Base Inera) | Författare |
![]() ![]() |
SΣ | 1..1 | string | Dokumenttitel |
![]() ![]() |
SΣ | 0..1 | code | Sekretess Binding: Confidentiality (required) |
![]() ![]() |
S | 0..* | BackboneElement | Attestering |
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() |
S | 1..1 | code | Typ av attestering Binding: CompositionAttestationMode (required) |
![]() ![]() ![]() |
S | 0..1 | dateTime | Attesteringstidpunkt |
![]() ![]() ![]() |
S | 0..1 | Reference(PractitionerRole Base Inera | Organization Base Inera | Patient Base Inera) | Attestant |
![]() ![]() |
SΣ | 0..1 | Reference(Organization Base Inera) | Vårdgivare |
![]() ![]() |
S | 0..* | BackboneElement | Relation till annat dokument |
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() |
1..1 | code | replaces | transforms | signs | appends Binding: DocumentRelationshipType (required): The type of relationship between documents. | |
![]() ![]() ![]() |
1..1 | Target of the relationship | ||
![]() ![]() ![]() ![]() |
Identifier | |||
![]() ![]() ![]() ![]() |
Reference(Composition) | |||
![]() ![]() |
SΣ | 0..* | BackboneElement | Vårdhändelse |
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() |
SΣ | 0..* | CodeableConcept | Händelsekod Binding: v3 Code System ActCode (example): This list of codes represents the main clinical acts being documented. |
![]() ![]() ![]() |
SΣ | 0..1 | Period | Händelseperiod |
![]() ![]() ![]() |
SΣ | 0..* | Reference(Resource) | Händelsedetaljer |
![]() ![]() |
SC | 0..* | BackboneElement | Sektion Constraints: cmp-1, cmp-2 |
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | Renderingshint för visuell presentation URL: https://inera.se/fhir/core/StructureDefinition/section-presentation-style Binding: Section Presentation Style (required) | |
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() |
S | 0..1 | string | Sektionstitel |
![]() ![]() ![]() |
S | 0..1 | CodeableConcept | Sektionskod Binding: DocumentSectionCodes (example) |
![]() ![]() ![]() |
S | 0..* | Reference(PractitionerRole Base Inera | Device | Patient Base Inera | RelatedPerson | Organization Base Inera) | Sektionsförfattare |
![]() ![]() ![]() |
SC | 0..1 | Narrative | Sektionstext This profile does not constrain the narrative in regard to content, language, or traceability to data elements |
![]() ![]() ![]() |
S | 0..1 | code | Sektionsläge Binding: ListMode (required): The processing mode that applies to this section. |
![]() ![]() ![]() |
S | 0..1 | CodeableConcept | Sorteringsordning Binding: ListOrderCodes (preferred): What order applies to the items in the entry. |
![]() ![]() ![]() |
SC | 0..* | Reference(Resource) | Sektionsinnehåll (referenser) |
![]() ![]() ![]() |
SC | 0..1 | CodeableConcept | Anledning till tom sektion Binding: ListEmptyReasons (preferred): If a section is empty, why it is empty. |
![]() ![]() ![]() |
SC | 0..* | See section (Composition) | Undersektion |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| Composition.status | Base | required | CompositionStatus | 📦4.0.1 | FHIR Std. |
| Composition.type | Base | preferred | FHIR Document Type Codes | 📦4.0.1 | FHIR Std. |
| Composition.category | Base | example | Document Class Value Set | 📍4.0.1 | FHIR Std. |
| Composition.confidentiality | Base | required | http://hl7.org/fhir/ValueSet/v3-Confidentiality | Not State | Unknown |
| Composition.attester.mode | Base | required | CompositionAttestationMode | 📦4.0.1 | FHIR Std. |
| Composition.relatesTo.code | Base | required | DocumentRelationshipType | 📍4.0.1 | FHIR Std. |
| Composition.event.code | Base | example | v3 Code System ActCode | 📦3.0.0 | THO v7.0 |
| Composition.section.code | Base | example | Document Section Codes | 📦4.0.1 | FHIR Std. |
| Composition.section.mode | Base | required | ListMode | 📍4.0.1 | FHIR Std. |
| Composition.section.orderedBy | Base | preferred | List Order Codes | 📍4.0.1 | FHIR Std. |
| Composition.section.emptyReason | Base | preferred | List Empty Reasons | 📍4.0.1 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| cmp-1 | error | Composition.section | A section must contain at least one of text, entries, or sub-sections |
text.exists() or entry.exists() or section.exists()
|
| cmp-2 | error | Composition.section | A section can only have an emptyReason if it is empty |
emptyReason.empty() or entry.empty()
|
| dom-2 | error | Composition | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Composition | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | Composition | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | Composition | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Composition | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
This structure is derived from Composition
| Path | Status | Usage | ValueSet | Version | Source |
| Composition.status | Base | required | CompositionStatus | 📦4.0.1 | FHIR Std. |
| Composition.type | Base | preferred | FHIR Document Type Codes | 📦4.0.1 | FHIR Std. |
| Composition.confidentiality | Base | required | http://hl7.org/fhir/ValueSet/v3-Confidentiality | Not State | Unknown |
| Composition.attester.mode | Base | required | CompositionAttestationMode | 📦4.0.1 | FHIR Std. |
| Composition.section.code | Base | example | Document Section Codes | 📦4.0.1 | FHIR Std. |
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
0..* | Composition | A set of resources composed into a single coherent clinical statement with clinical attestation | |||||
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
| |||||
![]() ![]() |
S | 0..1 | Narrative | Dokumenttext (Narrative) This profile does not constrain the narrative in regard to content, language, or traceability to data elements | ||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() |
SΣ | 0..1 | Identifier | Dokument-ID | ||||
![]() ![]() |
?!SΣ | 1..1 | code | Status Binding: CompositionStatus (required) | ||||
![]() ![]() |
SΣ | 1..1 | CodeableConcept | Dokumenttyp Binding: FHIRDocumentTypeCodes (preferred) | ||||
![]() ![]() |
SΣ | 0..* | CodeableConcept | Kategori Binding: DocumentClassValueSet (example): High-level kind of a clinical document at a macro level. | ||||
![]() ![]() |
SΣ | 1..1 | Reference(Patient Base Inera) | Patient | ||||
![]() ![]() |
SΣ | 0..1 | Reference(Encounter Base Inera) | Vårdkontakt | ||||
![]() ![]() |
SΣ | 1..1 | dateTime | Dokumentdatum | ||||
![]() ![]() |
SΣ | 1..* | Reference(PractitionerRole Base Inera | Device | Patient Base Inera | RelatedPerson | Organization Base Inera) | Författare | ||||
![]() ![]() |
SΣ | 1..1 | string | Dokumenttitel | ||||
![]() ![]() |
SΣ | 0..1 | code | Sekretess Binding: Confidentiality (required) | ||||
![]() ![]() |
S | 0..* | BackboneElement | Attestering | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() |
S | 1..1 | code | Typ av attestering Binding: CompositionAttestationMode (required) | ||||
![]() ![]() ![]() |
S | 0..1 | dateTime | Attesteringstidpunkt | ||||
![]() ![]() ![]() |
S | 0..1 | Reference(PractitionerRole Base Inera | Organization Base Inera | Patient Base Inera) | Attestant | ||||
![]() ![]() |
SΣ | 0..1 | Reference(Organization Base Inera) | Vårdgivare | ||||
![]() ![]() |
S | 0..* | BackboneElement | Relation till annat dokument | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() |
1..1 | code | replaces | transforms | signs | appends Binding: DocumentRelationshipType (required): The type of relationship between documents. | |||||
![]() ![]() ![]() |
1..1 | Target of the relationship | ||||||
![]() ![]() ![]() ![]() |
Identifier | |||||||
![]() ![]() ![]() ![]() |
Reference(Composition) | |||||||
![]() ![]() |
SΣ | 0..* | BackboneElement | Vårdhändelse | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() |
SΣ | 0..* | CodeableConcept | Händelsekod Binding: v3 Code System ActCode (example): This list of codes represents the main clinical acts being documented. | ||||
![]() ![]() ![]() |
SΣ | 0..1 | Period | Händelseperiod | ||||
![]() ![]() ![]() |
SΣ | 0..* | Reference(Resource) | Händelsedetaljer | ||||
![]() ![]() |
SC | 0..* | BackboneElement | Sektion Constraints: cmp-1, cmp-2 | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | Renderingshint för visuell presentation URL: https://inera.se/fhir/core/StructureDefinition/section-presentation-style Binding: Section Presentation Style (required) | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() |
S | 0..1 | string | Sektionstitel | ||||
![]() ![]() ![]() |
S | 0..1 | CodeableConcept | Sektionskod Binding: DocumentSectionCodes (example) | ||||
![]() ![]() ![]() |
S | 0..* | Reference(PractitionerRole Base Inera | Device | Patient Base Inera | RelatedPerson | Organization Base Inera) | Sektionsförfattare | ||||
![]() ![]() ![]() |
0..1 | Reference(Resource) | Who/what the section is about, when it is not about the subject of composition | |||||
![]() ![]() ![]() |
SC | 0..1 | Narrative | Sektionstext This profile does not constrain the narrative in regard to content, language, or traceability to data elements | ||||
![]() ![]() ![]() |
S | 0..1 | code | Sektionsläge Binding: ListMode (required): The processing mode that applies to this section. | ||||
![]() ![]() ![]() |
S | 0..1 | CodeableConcept | Sorteringsordning Binding: ListOrderCodes (preferred): What order applies to the items in the entry. | ||||
![]() ![]() ![]() |
SC | 0..* | Reference(Resource) | Sektionsinnehåll (referenser) | ||||
![]() ![]() ![]() |
SC | 0..1 | CodeableConcept | Anledning till tom sektion Binding: ListEmptyReasons (preferred): If a section is empty, why it is empty. | ||||
![]() ![]() ![]() |
SC | 0..* | See section (Composition) | Undersektion | ||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| Composition.language | Base | preferred | Common Languages | 📍4.0.1 | FHIR Std. |
| Composition.status | Base | required | CompositionStatus | 📦4.0.1 | FHIR Std. |
| Composition.type | Base | preferred | FHIR Document Type Codes | 📦4.0.1 | FHIR Std. |
| Composition.category | Base | example | Document Class Value Set | 📍4.0.1 | FHIR Std. |
| Composition.confidentiality | Base | required | http://hl7.org/fhir/ValueSet/v3-Confidentiality | Not State | Unknown |
| Composition.attester.mode | Base | required | CompositionAttestationMode | 📦4.0.1 | FHIR Std. |
| Composition.relatesTo.code | Base | required | DocumentRelationshipType | 📍4.0.1 | FHIR Std. |
| Composition.event.code | Base | example | v3 Code System ActCode | 📦3.0.0 | THO v7.0 |
| Composition.section.code | Base | example | Document Section Codes | 📦4.0.1 | FHIR Std. |
| Composition.section.mode | Base | required | ListMode | 📍4.0.1 | FHIR Std. |
| Composition.section.orderedBy | Base | preferred | List Order Codes | 📍4.0.1 | FHIR Std. |
| Composition.section.emptyReason | Base | preferred | List Empty Reasons | 📍4.0.1 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| cmp-1 | error | Composition.section | A section must contain at least one of text, entries, or sub-sections |
text.exists() or entry.exists() or section.exists()
|
| cmp-2 | error | Composition.section | A section can only have an emptyReason if it is empty |
emptyReason.empty() or entry.empty()
|
| dom-2 | error | Composition | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Composition | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | Composition | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | Composition | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Composition | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
This structure is derived from Composition
Summary
Mandatory: 1 element
Must-Support: 31 elements
Structures
This structure refers to these other structures:
Extensions
This structure refers to these extensions:
Key Elements View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | Composition | A set of resources composed into a single coherent clinical statement with clinical attestation | |
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() |
S | 0..1 | Narrative | Dokumenttext (Narrative) This profile does not constrain the narrative in regard to content, language, or traceability to data elements |
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored |
![]() ![]() |
SΣ | 0..1 | Identifier | Dokument-ID |
![]() ![]() |
?!SΣ | 1..1 | code | Status Binding: CompositionStatus (required) |
![]() ![]() |
SΣ | 1..1 | CodeableConcept | Dokumenttyp Binding: FHIRDocumentTypeCodes (preferred) |
![]() ![]() |
SΣ | 0..* | CodeableConcept | Kategori Binding: DocumentClassValueSet (example): High-level kind of a clinical document at a macro level. |
![]() ![]() |
SΣ | 1..1 | Reference(Patient Base Inera) | Patient |
![]() ![]() |
SΣ | 0..1 | Reference(Encounter Base Inera) | Vårdkontakt |
![]() ![]() |
SΣ | 1..1 | dateTime | Dokumentdatum |
![]() ![]() |
SΣ | 1..* | Reference(PractitionerRole Base Inera | Device | Patient Base Inera | RelatedPerson | Organization Base Inera) | Författare |
![]() ![]() |
SΣ | 1..1 | string | Dokumenttitel |
![]() ![]() |
SΣ | 0..1 | code | Sekretess Binding: Confidentiality (required) |
![]() ![]() |
S | 0..* | BackboneElement | Attestering |
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() |
S | 1..1 | code | Typ av attestering Binding: CompositionAttestationMode (required) |
![]() ![]() ![]() |
S | 0..1 | dateTime | Attesteringstidpunkt |
![]() ![]() ![]() |
S | 0..1 | Reference(PractitionerRole Base Inera | Organization Base Inera | Patient Base Inera) | Attestant |
![]() ![]() |
SΣ | 0..1 | Reference(Organization Base Inera) | Vårdgivare |
![]() ![]() |
S | 0..* | BackboneElement | Relation till annat dokument |
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() |
1..1 | code | replaces | transforms | signs | appends Binding: DocumentRelationshipType (required): The type of relationship between documents. | |
![]() ![]() ![]() |
1..1 | Target of the relationship | ||
![]() ![]() ![]() ![]() |
Identifier | |||
![]() ![]() ![]() ![]() |
Reference(Composition) | |||
![]() ![]() |
SΣ | 0..* | BackboneElement | Vårdhändelse |
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() |
SΣ | 0..* | CodeableConcept | Händelsekod Binding: v3 Code System ActCode (example): This list of codes represents the main clinical acts being documented. |
![]() ![]() ![]() |
SΣ | 0..1 | Period | Händelseperiod |
![]() ![]() ![]() |
SΣ | 0..* | Reference(Resource) | Händelsedetaljer |
![]() ![]() |
SC | 0..* | BackboneElement | Sektion Constraints: cmp-1, cmp-2 |
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | Renderingshint för visuell presentation URL: https://inera.se/fhir/core/StructureDefinition/section-presentation-style Binding: Section Presentation Style (required) | |
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() |
S | 0..1 | string | Sektionstitel |
![]() ![]() ![]() |
S | 0..1 | CodeableConcept | Sektionskod Binding: DocumentSectionCodes (example) |
![]() ![]() ![]() |
S | 0..* | Reference(PractitionerRole Base Inera | Device | Patient Base Inera | RelatedPerson | Organization Base Inera) | Sektionsförfattare |
![]() ![]() ![]() |
SC | 0..1 | Narrative | Sektionstext This profile does not constrain the narrative in regard to content, language, or traceability to data elements |
![]() ![]() ![]() |
S | 0..1 | code | Sektionsläge Binding: ListMode (required): The processing mode that applies to this section. |
![]() ![]() ![]() |
S | 0..1 | CodeableConcept | Sorteringsordning Binding: ListOrderCodes (preferred): What order applies to the items in the entry. |
![]() ![]() ![]() |
SC | 0..* | Reference(Resource) | Sektionsinnehåll (referenser) |
![]() ![]() ![]() |
SC | 0..1 | CodeableConcept | Anledning till tom sektion Binding: ListEmptyReasons (preferred): If a section is empty, why it is empty. |
![]() ![]() ![]() |
SC | 0..* | See section (Composition) | Undersektion |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| Composition.status | Base | required | CompositionStatus | 📦4.0.1 | FHIR Std. |
| Composition.type | Base | preferred | FHIR Document Type Codes | 📦4.0.1 | FHIR Std. |
| Composition.category | Base | example | Document Class Value Set | 📍4.0.1 | FHIR Std. |
| Composition.confidentiality | Base | required | http://hl7.org/fhir/ValueSet/v3-Confidentiality | Not State | Unknown |
| Composition.attester.mode | Base | required | CompositionAttestationMode | 📦4.0.1 | FHIR Std. |
| Composition.relatesTo.code | Base | required | DocumentRelationshipType | 📍4.0.1 | FHIR Std. |
| Composition.event.code | Base | example | v3 Code System ActCode | 📦3.0.0 | THO v7.0 |
| Composition.section.code | Base | example | Document Section Codes | 📦4.0.1 | FHIR Std. |
| Composition.section.mode | Base | required | ListMode | 📍4.0.1 | FHIR Std. |
| Composition.section.orderedBy | Base | preferred | List Order Codes | 📍4.0.1 | FHIR Std. |
| Composition.section.emptyReason | Base | preferred | List Empty Reasons | 📍4.0.1 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| cmp-1 | error | Composition.section | A section must contain at least one of text, entries, or sub-sections |
text.exists() or entry.exists() or section.exists()
|
| cmp-2 | error | Composition.section | A section can only have an emptyReason if it is empty |
emptyReason.empty() or entry.empty()
|
| dom-2 | error | Composition | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Composition | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | Composition | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | Composition | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Composition | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
Differential View
This structure is derived from Composition
| Path | Status | Usage | ValueSet | Version | Source |
| Composition.status | Base | required | CompositionStatus | 📦4.0.1 | FHIR Std. |
| Composition.type | Base | preferred | FHIR Document Type Codes | 📦4.0.1 | FHIR Std. |
| Composition.confidentiality | Base | required | http://hl7.org/fhir/ValueSet/v3-Confidentiality | Not State | Unknown |
| Composition.attester.mode | Base | required | CompositionAttestationMode | 📦4.0.1 | FHIR Std. |
| Composition.section.code | Base | example | Document Section Codes | 📦4.0.1 | FHIR Std. |
Snapshot View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
0..* | Composition | A set of resources composed into a single coherent clinical statement with clinical attestation | |||||
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
| |||||
![]() ![]() |
S | 0..1 | Narrative | Dokumenttext (Narrative) This profile does not constrain the narrative in regard to content, language, or traceability to data elements | ||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() |
SΣ | 0..1 | Identifier | Dokument-ID | ||||
![]() ![]() |
?!SΣ | 1..1 | code | Status Binding: CompositionStatus (required) | ||||
![]() ![]() |
SΣ | 1..1 | CodeableConcept | Dokumenttyp Binding: FHIRDocumentTypeCodes (preferred) | ||||
![]() ![]() |
SΣ | 0..* | CodeableConcept | Kategori Binding: DocumentClassValueSet (example): High-level kind of a clinical document at a macro level. | ||||
![]() ![]() |
SΣ | 1..1 | Reference(Patient Base Inera) | Patient | ||||
![]() ![]() |
SΣ | 0..1 | Reference(Encounter Base Inera) | Vårdkontakt | ||||
![]() ![]() |
SΣ | 1..1 | dateTime | Dokumentdatum | ||||
![]() ![]() |
SΣ | 1..* | Reference(PractitionerRole Base Inera | Device | Patient Base Inera | RelatedPerson | Organization Base Inera) | Författare | ||||
![]() ![]() |
SΣ | 1..1 | string | Dokumenttitel | ||||
![]() ![]() |
SΣ | 0..1 | code | Sekretess Binding: Confidentiality (required) | ||||
![]() ![]() |
S | 0..* | BackboneElement | Attestering | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() |
S | 1..1 | code | Typ av attestering Binding: CompositionAttestationMode (required) | ||||
![]() ![]() ![]() |
S | 0..1 | dateTime | Attesteringstidpunkt | ||||
![]() ![]() ![]() |
S | 0..1 | Reference(PractitionerRole Base Inera | Organization Base Inera | Patient Base Inera) | Attestant | ||||
![]() ![]() |
SΣ | 0..1 | Reference(Organization Base Inera) | Vårdgivare | ||||
![]() ![]() |
S | 0..* | BackboneElement | Relation till annat dokument | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() |
1..1 | code | replaces | transforms | signs | appends Binding: DocumentRelationshipType (required): The type of relationship between documents. | |||||
![]() ![]() ![]() |
1..1 | Target of the relationship | ||||||
![]() ![]() ![]() ![]() |
Identifier | |||||||
![]() ![]() ![]() ![]() |
Reference(Composition) | |||||||
![]() ![]() |
SΣ | 0..* | BackboneElement | Vårdhändelse | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() |
SΣ | 0..* | CodeableConcept | Händelsekod Binding: v3 Code System ActCode (example): This list of codes represents the main clinical acts being documented. | ||||
![]() ![]() ![]() |
SΣ | 0..1 | Period | Händelseperiod | ||||
![]() ![]() ![]() |
SΣ | 0..* | Reference(Resource) | Händelsedetaljer | ||||
![]() ![]() |
SC | 0..* | BackboneElement | Sektion Constraints: cmp-1, cmp-2 | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | Renderingshint för visuell presentation URL: https://inera.se/fhir/core/StructureDefinition/section-presentation-style Binding: Section Presentation Style (required) | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() |
S | 0..1 | string | Sektionstitel | ||||
![]() ![]() ![]() |
S | 0..1 | CodeableConcept | Sektionskod Binding: DocumentSectionCodes (example) | ||||
![]() ![]() ![]() |
S | 0..* | Reference(PractitionerRole Base Inera | Device | Patient Base Inera | RelatedPerson | Organization Base Inera) | Sektionsförfattare | ||||
![]() ![]() ![]() |
0..1 | Reference(Resource) | Who/what the section is about, when it is not about the subject of composition | |||||
![]() ![]() ![]() |
SC | 0..1 | Narrative | Sektionstext This profile does not constrain the narrative in regard to content, language, or traceability to data elements | ||||
![]() ![]() ![]() |
S | 0..1 | code | Sektionsläge Binding: ListMode (required): The processing mode that applies to this section. | ||||
![]() ![]() ![]() |
S | 0..1 | CodeableConcept | Sorteringsordning Binding: ListOrderCodes (preferred): What order applies to the items in the entry. | ||||
![]() ![]() ![]() |
SC | 0..* | Reference(Resource) | Sektionsinnehåll (referenser) | ||||
![]() ![]() ![]() |
SC | 0..1 | CodeableConcept | Anledning till tom sektion Binding: ListEmptyReasons (preferred): If a section is empty, why it is empty. | ||||
![]() ![]() ![]() |
SC | 0..* | See section (Composition) | Undersektion | ||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| Composition.language | Base | preferred | Common Languages | 📍4.0.1 | FHIR Std. |
| Composition.status | Base | required | CompositionStatus | 📦4.0.1 | FHIR Std. |
| Composition.type | Base | preferred | FHIR Document Type Codes | 📦4.0.1 | FHIR Std. |
| Composition.category | Base | example | Document Class Value Set | 📍4.0.1 | FHIR Std. |
| Composition.confidentiality | Base | required | http://hl7.org/fhir/ValueSet/v3-Confidentiality | Not State | Unknown |
| Composition.attester.mode | Base | required | CompositionAttestationMode | 📦4.0.1 | FHIR Std. |
| Composition.relatesTo.code | Base | required | DocumentRelationshipType | 📍4.0.1 | FHIR Std. |
| Composition.event.code | Base | example | v3 Code System ActCode | 📦3.0.0 | THO v7.0 |
| Composition.section.code | Base | example | Document Section Codes | 📦4.0.1 | FHIR Std. |
| Composition.section.mode | Base | required | ListMode | 📍4.0.1 | FHIR Std. |
| Composition.section.orderedBy | Base | preferred | List Order Codes | 📍4.0.1 | FHIR Std. |
| Composition.section.emptyReason | Base | preferred | List Empty Reasons | 📍4.0.1 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| cmp-1 | error | Composition.section | A section must contain at least one of text, entries, or sub-sections |
text.exists() or entry.exists() or section.exists()
|
| cmp-2 | error | Composition.section | A section can only have an emptyReason if it is empty |
emptyReason.empty() or entry.empty()
|
| dom-2 | error | Composition | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Composition | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | Composition | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | Composition | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Composition | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
This structure is derived from Composition
Summary
Mandatory: 1 element
Must-Support: 31 elements
Structures
This structure refers to these other structures:
Extensions
This structure refers to these extensions:
Other representations of profile: CSV, Excel, Schematron