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

Resource Profile: Composition Base Inera ( Experimental )

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:

  • Anamnes (History of Present Illness)
  • Status/Undersökningsfynd (Physical Examination)
  • Bedömning (Assessment)
  • Åtgärd/Plan (Plan)

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:

  • Transformation av DocBook emphasis[@role] till XHTML (bold, italics, information boxes, warnings)
  • Val mellan Composition.text (presentation-fokuserad) och Composition.section (data-fokuserad)
  • Hantering av specialformatering (collapsible sections, variabellistor, färgade rutor)

Källa: TKB GetCareDocumentation v2.0 (clinicalprocess:healthcond:description)

Usages:

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

You can also check for usages in the FHIR IG Statistics

Formal Views of Profile Content

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

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Composition 0..* Composition A set of resources composed into a single coherent clinical statement with clinical attestation
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... text S 0..1 Narrative Dokumenttext (Narrative)
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... identifier SΣ 0..1 Identifier Dokument-ID
... status ?!SΣ 1..1 code Status
Binding: CompositionStatus (required)
... type SΣ 1..1 CodeableConcept Dokumenttyp
Binding: FHIRDocumentTypeCodes (preferred)
... category SΣ 0..* CodeableConcept Kategori
Binding: DocumentClassValueSet (example): High-level kind of a clinical document at a macro level.
... subject SΣ 1..1 Reference(Patient Base Inera) Patient
... encounter SΣ 0..1 Reference(Encounter Base Inera) Vårdkontakt
... date SΣ 1..1 dateTime Dokumentdatum
... author SΣ 1..* Reference(PractitionerRole Base Inera | Device | Patient Base Inera | RelatedPerson | Organization Base Inera) Författare
... title SΣ 1..1 string Dokumenttitel
... confidentiality SΣ 0..1 code Sekretess
Binding: Confidentiality (required)
... attester S 0..* BackboneElement Attestering
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... mode S 1..1 code Typ av attestering
Binding: CompositionAttestationMode (required)
.... time S 0..1 dateTime Attesteringstidpunkt
.... party S 0..1 Reference(PractitionerRole Base Inera | Organization Base Inera | Patient Base Inera) Attestant
... custodian SΣ 0..1 Reference(Organization Base Inera) Vårdgivare
... relatesTo S 0..* BackboneElement Relation till annat dokument
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... code 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 SΣ 0..* BackboneElement Vårdhändelse
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... code SΣ 0..* CodeableConcept Händelsekod
Binding: v3 Code System ActCode (example): This list of codes represents the main clinical acts being documented.
.... period SΣ 0..1 Period Händelseperiod
.... detail SΣ 0..* Reference(Resource) Händelsedetaljer
... section SC 0..* BackboneElement Sektion
Constraints: cmp-1, cmp-2
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
..... extension:presentationStyle 0..1 CodeableConcept Renderingshint för visuell presentation
URL: https://inera.se/fhir/core/StructureDefinition/section-presentation-style
Binding: Section Presentation Style (required)
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... title S 0..1 string Sektionstitel
.... code S 0..1 CodeableConcept Sektionskod
Binding: DocumentSectionCodes (example)
.... author S 0..* Reference(PractitionerRole Base Inera | Device | Patient Base Inera | RelatedPerson | Organization Base Inera) Sektionsförfattare
.... text SC 0..1 Narrative Sektionstext
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
.... mode S 0..1 code Sektionsläge
Binding: ListMode (required): The processing mode that applies to this section.
.... orderedBy S 0..1 CodeableConcept Sorteringsordning
Binding: ListOrderCodes (preferred): What order applies to the items in the entry.
.... entry SC 0..* Reference(Resource) Sektionsinnehåll (referenser)
.... emptyReason SC 0..1 CodeableConcept Anledning till tom sektion
Binding: ListEmptyReasons (preferred): If a section is empty, why it is empty.
.... section SC 0..* See section (Composition) Undersektion

doco Documentation for this format

Terminology Bindings

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.

Constraints

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

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Composition 0..* Composition A set of resources composed into a single coherent clinical statement with clinical attestation
... text S 0..1 Narrative Dokumenttext (Narrative)
... identifier S 0..1 Identifier Dokument-ID
... status S 1..1 code Status
Binding: CompositionStatus (required)
... type S 1..1 CodeableConcept Dokumenttyp
Binding: FHIRDocumentTypeCodes (preferred)
... category S 0..* CodeableConcept Kategori
... subject S 1..1 Reference(Patient Base Inera) Patient
... encounter S 0..1 Reference(Encounter Base Inera) Vårdkontakt
... date S 1..1 dateTime Dokumentdatum
... author S 1..* Reference(PractitionerRole Base Inera | Device | Patient Base Inera | RelatedPerson | Organization Base Inera) Författare
... title S 1..1 string Dokumenttitel
... confidentiality S 0..1 code Sekretess
Binding: Confidentiality (required)
... attester S 0..* BackboneElement Attestering
.... mode S 1..1 code Typ av attestering
Binding: CompositionAttestationMode (required)
.... time S 0..1 dateTime Attesteringstidpunkt
.... party S 0..1 Reference(PractitionerRole Base Inera | Organization Base Inera | Patient Base Inera) Attestant
... custodian S 0..1 Reference(Organization Base Inera) Vårdgivare
... relatesTo S 0..* BackboneElement Relation till annat dokument
... event S 0..* BackboneElement Vårdhändelse
.... code S 0..* CodeableConcept Händelsekod
.... period S 0..1 Period Händelseperiod
.... detail S 0..* Reference(Resource) Händelsedetaljer
... section S 0..* BackboneElement Sektion
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
..... extension:presentationStyle 0..1 CodeableConcept Renderingshint för visuell presentation
URL: https://inera.se/fhir/core/StructureDefinition/section-presentation-style
Binding: Section Presentation Style (required)
.... title S 0..1 string Sektionstitel
.... code S 0..1 CodeableConcept Sektionskod
Binding: DocumentSectionCodes (example)
.... author S 0..* Reference(PractitionerRole Base Inera | Device | Patient Base Inera | RelatedPerson | Organization Base Inera) Sektionsförfattare
.... text S 0..1 Narrative Sektionstext
.... mode S 0..1 code Sektionsläge
.... orderedBy S 0..1 CodeableConcept Sorteringsordning
.... entry S 0..* Reference(Resource) Sektionsinnehåll (referenser)
.... emptyReason S 0..1 CodeableConcept Anledning till tom sektion
.... section S 0..* Undersektion

doco Documentation for this format

Terminology Bindings (Differential)

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.
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Composition 0..* Composition A set of resources composed into a single coherent clinical statement with clinical attestation
... 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
... language 0..1 code Language of the resource content
Binding: CommonLanguages (preferred): A human language.
Additional BindingsPurpose
AllLanguages Max Binding
... text S 0..1 Narrative Dokumenttext (Narrative)
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
... contained 0..* Resource Contained, inline Resources
... extension 0..* Extension Additional content defined by implementations
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... identifier SΣ 0..1 Identifier Dokument-ID
... status ?!SΣ 1..1 code Status
Binding: CompositionStatus (required)
... type SΣ 1..1 CodeableConcept Dokumenttyp
Binding: FHIRDocumentTypeCodes (preferred)
... category SΣ 0..* CodeableConcept Kategori
Binding: DocumentClassValueSet (example): High-level kind of a clinical document at a macro level.
... subject SΣ 1..1 Reference(Patient Base Inera) Patient
... encounter SΣ 0..1 Reference(Encounter Base Inera) Vårdkontakt
... date SΣ 1..1 dateTime Dokumentdatum
... author SΣ 1..* Reference(PractitionerRole Base Inera | Device | Patient Base Inera | RelatedPerson | Organization Base Inera) Författare
... title SΣ 1..1 string Dokumenttitel
... confidentiality SΣ 0..1 code Sekretess
Binding: Confidentiality (required)
... attester S 0..* BackboneElement Attestering
.... 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 Typ av attestering
Binding: CompositionAttestationMode (required)
.... time S 0..1 dateTime Attesteringstidpunkt
.... party S 0..1 Reference(PractitionerRole Base Inera | Organization Base Inera | Patient Base Inera) Attestant
... custodian SΣ 0..1 Reference(Organization Base Inera) Vårdgivare
... relatesTo S 0..* BackboneElement Relation till annat dokument
.... 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 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 SΣ 0..* BackboneElement Vårdhändelse
.... 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Σ 0..* CodeableConcept Händelsekod
Binding: v3 Code System ActCode (example): This list of codes represents the main clinical acts being documented.
.... period SΣ 0..1 Period Händelseperiod
.... detail SΣ 0..* Reference(Resource) Händelsedetaljer
... section SC 0..* BackboneElement Sektion
Constraints: cmp-1, cmp-2
.... id 0..1 string Unique id for inter-element referencing
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
..... extension:presentationStyle 0..1 CodeableConcept Renderingshint för visuell presentation
URL: https://inera.se/fhir/core/StructureDefinition/section-presentation-style
Binding: Section Presentation Style (required)
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... title S 0..1 string Sektionstitel
.... code S 0..1 CodeableConcept Sektionskod
Binding: DocumentSectionCodes (example)
.... author S 0..* Reference(PractitionerRole Base Inera | Device | Patient Base Inera | RelatedPerson | Organization Base Inera) Sektionsförfattare
.... focus 0..1 Reference(Resource) Who/what the section is about, when it is not about the subject of composition
.... text SC 0..1 Narrative Sektionstext
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
.... mode S 0..1 code Sektionsläge
Binding: ListMode (required): The processing mode that applies to this section.
.... orderedBy S 0..1 CodeableConcept Sorteringsordning
Binding: ListOrderCodes (preferred): What order applies to the items in the entry.
.... entry SC 0..* Reference(Resource) Sektionsinnehåll (referenser)
.... emptyReason SC 0..1 CodeableConcept Anledning till tom sektion
Binding: ListEmptyReasons (preferred): If a section is empty, why it is empty.
.... section SC 0..* See section (Composition) Undersektion

doco Documentation for this format

Terminology Bindings

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.

Constraints

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()

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Composition 0..* Composition A set of resources composed into a single coherent clinical statement with clinical attestation
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... text S 0..1 Narrative Dokumenttext (Narrative)
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... identifier SΣ 0..1 Identifier Dokument-ID
... status ?!SΣ 1..1 code Status
Binding: CompositionStatus (required)
... type SΣ 1..1 CodeableConcept Dokumenttyp
Binding: FHIRDocumentTypeCodes (preferred)
... category SΣ 0..* CodeableConcept Kategori
Binding: DocumentClassValueSet (example): High-level kind of a clinical document at a macro level.
... subject SΣ 1..1 Reference(Patient Base Inera) Patient
... encounter SΣ 0..1 Reference(Encounter Base Inera) Vårdkontakt
... date SΣ 1..1 dateTime Dokumentdatum
... author SΣ 1..* Reference(PractitionerRole Base Inera | Device | Patient Base Inera | RelatedPerson | Organization Base Inera) Författare
... title SΣ 1..1 string Dokumenttitel
... confidentiality SΣ 0..1 code Sekretess
Binding: Confidentiality (required)
... attester S 0..* BackboneElement Attestering
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... mode S 1..1 code Typ av attestering
Binding: CompositionAttestationMode (required)
.... time S 0..1 dateTime Attesteringstidpunkt
.... party S 0..1 Reference(PractitionerRole Base Inera | Organization Base Inera | Patient Base Inera) Attestant
... custodian SΣ 0..1 Reference(Organization Base Inera) Vårdgivare
... relatesTo S 0..* BackboneElement Relation till annat dokument
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... code 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 SΣ 0..* BackboneElement Vårdhändelse
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... code SΣ 0..* CodeableConcept Händelsekod
Binding: v3 Code System ActCode (example): This list of codes represents the main clinical acts being documented.
.... period SΣ 0..1 Period Händelseperiod
.... detail SΣ 0..* Reference(Resource) Händelsedetaljer
... section SC 0..* BackboneElement Sektion
Constraints: cmp-1, cmp-2
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
..... extension:presentationStyle 0..1 CodeableConcept Renderingshint för visuell presentation
URL: https://inera.se/fhir/core/StructureDefinition/section-presentation-style
Binding: Section Presentation Style (required)
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... title S 0..1 string Sektionstitel
.... code S 0..1 CodeableConcept Sektionskod
Binding: DocumentSectionCodes (example)
.... author S 0..* Reference(PractitionerRole Base Inera | Device | Patient Base Inera | RelatedPerson | Organization Base Inera) Sektionsförfattare
.... text SC 0..1 Narrative Sektionstext
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
.... mode S 0..1 code Sektionsläge
Binding: ListMode (required): The processing mode that applies to this section.
.... orderedBy S 0..1 CodeableConcept Sorteringsordning
Binding: ListOrderCodes (preferred): What order applies to the items in the entry.
.... entry SC 0..* Reference(Resource) Sektionsinnehåll (referenser)
.... emptyReason SC 0..1 CodeableConcept Anledning till tom sektion
Binding: ListEmptyReasons (preferred): If a section is empty, why it is empty.
.... section SC 0..* See section (Composition) Undersektion

doco Documentation for this format

Terminology Bindings

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.

Constraints

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

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Composition 0..* Composition A set of resources composed into a single coherent clinical statement with clinical attestation
... text S 0..1 Narrative Dokumenttext (Narrative)
... identifier S 0..1 Identifier Dokument-ID
... status S 1..1 code Status
Binding: CompositionStatus (required)
... type S 1..1 CodeableConcept Dokumenttyp
Binding: FHIRDocumentTypeCodes (preferred)
... category S 0..* CodeableConcept Kategori
... subject S 1..1 Reference(Patient Base Inera) Patient
... encounter S 0..1 Reference(Encounter Base Inera) Vårdkontakt
... date S 1..1 dateTime Dokumentdatum
... author S 1..* Reference(PractitionerRole Base Inera | Device | Patient Base Inera | RelatedPerson | Organization Base Inera) Författare
... title S 1..1 string Dokumenttitel
... confidentiality S 0..1 code Sekretess
Binding: Confidentiality (required)
... attester S 0..* BackboneElement Attestering
.... mode S 1..1 code Typ av attestering
Binding: CompositionAttestationMode (required)
.... time S 0..1 dateTime Attesteringstidpunkt
.... party S 0..1 Reference(PractitionerRole Base Inera | Organization Base Inera | Patient Base Inera) Attestant
... custodian S 0..1 Reference(Organization Base Inera) Vårdgivare
... relatesTo S 0..* BackboneElement Relation till annat dokument
... event S 0..* BackboneElement Vårdhändelse
.... code S 0..* CodeableConcept Händelsekod
.... period S 0..1 Period Händelseperiod
.... detail S 0..* Reference(Resource) Händelsedetaljer
... section S 0..* BackboneElement Sektion
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
..... extension:presentationStyle 0..1 CodeableConcept Renderingshint för visuell presentation
URL: https://inera.se/fhir/core/StructureDefinition/section-presentation-style
Binding: Section Presentation Style (required)
.... title S 0..1 string Sektionstitel
.... code S 0..1 CodeableConcept Sektionskod
Binding: DocumentSectionCodes (example)
.... author S 0..* Reference(PractitionerRole Base Inera | Device | Patient Base Inera | RelatedPerson | Organization Base Inera) Sektionsförfattare
.... text S 0..1 Narrative Sektionstext
.... mode S 0..1 code Sektionsläge
.... orderedBy S 0..1 CodeableConcept Sorteringsordning
.... entry S 0..* Reference(Resource) Sektionsinnehåll (referenser)
.... emptyReason S 0..1 CodeableConcept Anledning till tom sektion
.... section S 0..* Undersektion

doco Documentation for this format

Terminology Bindings (Differential)

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

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Composition 0..* Composition A set of resources composed into a single coherent clinical statement with clinical attestation
... 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
... language 0..1 code Language of the resource content
Binding: CommonLanguages (preferred): A human language.
Additional BindingsPurpose
AllLanguages Max Binding
... text S 0..1 Narrative Dokumenttext (Narrative)
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
... contained 0..* Resource Contained, inline Resources
... extension 0..* Extension Additional content defined by implementations
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... identifier SΣ 0..1 Identifier Dokument-ID
... status ?!SΣ 1..1 code Status
Binding: CompositionStatus (required)
... type SΣ 1..1 CodeableConcept Dokumenttyp
Binding: FHIRDocumentTypeCodes (preferred)
... category SΣ 0..* CodeableConcept Kategori
Binding: DocumentClassValueSet (example): High-level kind of a clinical document at a macro level.
... subject SΣ 1..1 Reference(Patient Base Inera) Patient
... encounter SΣ 0..1 Reference(Encounter Base Inera) Vårdkontakt
... date SΣ 1..1 dateTime Dokumentdatum
... author SΣ 1..* Reference(PractitionerRole Base Inera | Device | Patient Base Inera | RelatedPerson | Organization Base Inera) Författare
... title SΣ 1..1 string Dokumenttitel
... confidentiality SΣ 0..1 code Sekretess
Binding: Confidentiality (required)
... attester S 0..* BackboneElement Attestering
.... 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 Typ av attestering
Binding: CompositionAttestationMode (required)
.... time S 0..1 dateTime Attesteringstidpunkt
.... party S 0..1 Reference(PractitionerRole Base Inera | Organization Base Inera | Patient Base Inera) Attestant
... custodian SΣ 0..1 Reference(Organization Base Inera) Vårdgivare
... relatesTo S 0..* BackboneElement Relation till annat dokument
.... 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 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 SΣ 0..* BackboneElement Vårdhändelse
.... 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Σ 0..* CodeableConcept Händelsekod
Binding: v3 Code System ActCode (example): This list of codes represents the main clinical acts being documented.
.... period SΣ 0..1 Period Händelseperiod
.... detail SΣ 0..* Reference(Resource) Händelsedetaljer
... section SC 0..* BackboneElement Sektion
Constraints: cmp-1, cmp-2
.... id 0..1 string Unique id for inter-element referencing
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
..... extension:presentationStyle 0..1 CodeableConcept Renderingshint för visuell presentation
URL: https://inera.se/fhir/core/StructureDefinition/section-presentation-style
Binding: Section Presentation Style (required)
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... title S 0..1 string Sektionstitel
.... code S 0..1 CodeableConcept Sektionskod
Binding: DocumentSectionCodes (example)
.... author S 0..* Reference(PractitionerRole Base Inera | Device | Patient Base Inera | RelatedPerson | Organization Base Inera) Sektionsförfattare
.... focus 0..1 Reference(Resource) Who/what the section is about, when it is not about the subject of composition
.... text SC 0..1 Narrative Sektionstext
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
.... mode S 0..1 code Sektionsläge
Binding: ListMode (required): The processing mode that applies to this section.
.... orderedBy S 0..1 CodeableConcept Sorteringsordning
Binding: ListOrderCodes (preferred): What order applies to the items in the entry.
.... entry SC 0..* Reference(Resource) Sektionsinnehåll (referenser)
.... emptyReason SC 0..1 CodeableConcept Anledning till tom sektion
Binding: ListEmptyReasons (preferred): If a section is empty, why it is empty.
.... section SC 0..* See section (Composition) Undersektion

doco Documentation for this format

Terminology Bindings

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.

Constraints

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()

 

Other representations of profile: CSV, Excel, Schematron