Graviditetsmappen FHIR model
0.2.0 - ci-build Denmark

Graviditetsmappen FHIR model, published by Example Publisher. This guide is not an authorized publication; it is the continuous build for version 0.2.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/trifork/gm-fhir-ig/ and changes regularly. See the Directory of published versions

Resource Profile: GMDocumentComposition

Official URL: http://sundhedsdatastyrelsen.dk/StructureDefinition/GMDocumentComposition Version: 0.2.0
Draft as of 2025-10-14 Computable Name: GMDocumentComposition

Usages:

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
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:GMGraditetsforloebReference 0..1 Identifier Pregnancy identifier
URL: http://sundhedsdatastyrelsen.dk/StructureDefinition/GMGraditetsforloebReference
.... extension:GMEksternGraditetsforloebReference 0..* Identifier External pregnancy identifier
URL: http://sundhedsdatastyrelsen.dk/StructureDefinition/GMEksternGraditetsforloebReference
.... extension:GMUdfoertTidspunkt 0..1 dateTime Clinically relevant time
URL: http://sundhedsdatastyrelsen.dk/StructureDefinition/GMUdfoertTidspunkt
... status ?!Σ 1..1 code preliminary | final | amended | entered-in-error
Binding: CompositionStatus (required): The workflow/clinical status of the composition.
Required Pattern: final
... type Σ 1..1 CodeableConcept Kind of composition (LOINC if possible)
Binding: FHIRDocumentTypeCodes (preferred): Type of a composition.
.... extension 0..0
.... coding Σ 1..1 Coding Code defined by a terminology system
..... extension 0..0
..... system Σ 1..1 uri Identity of the terminology system
Required Pattern: urn:oid:1.2.208.184.100.1
..... code Σ 1..1 code Symbol in syntax defined by the system
... date Σ 1..1 dateTime Composition editing time
... author Σ 1..1 Reference(GMBaseOrganization) Who and/or what authored the composition
... title Σ 1..1 string Human Readable name/title
... section C 1..1 BackboneElement Composition is broken into sections
Constraints: cmp-1, cmp-2

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.attester.​mode Base required CompositionAttestationMode 📍4.0.1 FHIR Std.
Composition.relatesTo.​code Base required DocumentRelationshipType 📍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
... implicitRules 0..0
... language 0..0
... text 0..0
.... extension:GMGraditetsforloebReference 0..1 Identifier Pregnancy identifier
URL: http://sundhedsdatastyrelsen.dk/StructureDefinition/GMGraditetsforloebReference
.... extension:GMEksternGraditetsforloebReference 0..* Identifier External pregnancy identifier
URL: http://sundhedsdatastyrelsen.dk/StructureDefinition/GMEksternGraditetsforloebReference
.... extension:GMUdfoertTidspunkt 0..1 dateTime Clinically relevant time
URL: http://sundhedsdatastyrelsen.dk/StructureDefinition/GMUdfoertTidspunkt
... modifierExtension 0..0
... identifier 0..0
... status 1..1 code preliminary | final | amended | entered-in-error
Required Pattern: final
... type
.... id 0..0
.... extension 0..0
.... coding 1..1 Coding Code defined by a terminology system
..... id 0..0
..... extension 0..0
..... system 1..1 uri Identity of the terminology system
Required Pattern: urn:oid:1.2.208.184.100.1
..... version 0..0
..... code 1..1 code Symbol in syntax defined by the system
..... userSelected 0..0
.... text 0..0
... category 0..0
... subject 1..1 Reference(Danish Core Patient Profile) Who and/or what the composition is about
... encounter 0..0
... author 1..1 Reference(GMBaseOrganization) Who and/or what authored the composition
... confidentiality 0..0
... attester 0..0
... custodian 0..0
... relatesTo 0..0
... event 0..0
... section 1..1 BackboneElement Composition is broken into sections
.... id 0..0
.... extension 0..0
.... modifierExtension 0..0
.... title 0..0
.... code 0..0
.... author 0..0
.... focus 0..0
.... text 0..0
.... mode 0..0
.... orderedBy 0..0
.... emptyReason 0..0
.... section 0..0

doco Documentation for this format
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
... contained 0..* Resource Contained, inline Resources
.... extension:GMGraditetsforloebReference 0..1 Identifier Pregnancy identifier
URL: http://sundhedsdatastyrelsen.dk/StructureDefinition/GMGraditetsforloebReference
.... extension:GMEksternGraditetsforloebReference 0..* Identifier External pregnancy identifier
URL: http://sundhedsdatastyrelsen.dk/StructureDefinition/GMEksternGraditetsforloebReference
.... extension:GMUdfoertTidspunkt 0..1 dateTime Clinically relevant time
URL: http://sundhedsdatastyrelsen.dk/StructureDefinition/GMUdfoertTidspunkt
... status ?!Σ 1..1 code preliminary | final | amended | entered-in-error
Binding: CompositionStatus (required): The workflow/clinical status of the composition.
Required Pattern: final
... type Σ 1..1 CodeableConcept Kind of composition (LOINC if possible)
Binding: FHIRDocumentTypeCodes (preferred): Type of a composition.
.... extension 0..0
.... coding Σ 1..1 Coding Code defined by a terminology system
..... extension 0..0
..... system Σ 1..1 uri Identity of the terminology system
Required Pattern: urn:oid:1.2.208.184.100.1
..... code Σ 1..1 code Symbol in syntax defined by the system
..... display Σ 0..1 string Representation defined by the system
... subject Σ 1..1 Reference(Danish Core Patient Profile) Who and/or what the composition is about
... date Σ 1..1 dateTime Composition editing time
... author Σ 1..1 Reference(GMBaseOrganization) Who and/or what authored the composition
... title Σ 1..1 string Human Readable name/title
... section C 1..1 BackboneElement Composition is broken into sections
Constraints: cmp-1, cmp-2
.... entry C 0..* Reference(Resource) A reference to data that supports this section

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.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 v6.5

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
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:GMGraditetsforloebReference 0..1 Identifier Pregnancy identifier
URL: http://sundhedsdatastyrelsen.dk/StructureDefinition/GMGraditetsforloebReference
.... extension:GMEksternGraditetsforloebReference 0..* Identifier External pregnancy identifier
URL: http://sundhedsdatastyrelsen.dk/StructureDefinition/GMEksternGraditetsforloebReference
.... extension:GMUdfoertTidspunkt 0..1 dateTime Clinically relevant time
URL: http://sundhedsdatastyrelsen.dk/StructureDefinition/GMUdfoertTidspunkt
... status ?!Σ 1..1 code preliminary | final | amended | entered-in-error
Binding: CompositionStatus (required): The workflow/clinical status of the composition.
Required Pattern: final
... type Σ 1..1 CodeableConcept Kind of composition (LOINC if possible)
Binding: FHIRDocumentTypeCodes (preferred): Type of a composition.
.... extension 0..0
.... coding Σ 1..1 Coding Code defined by a terminology system
..... extension 0..0
..... system Σ 1..1 uri Identity of the terminology system
Required Pattern: urn:oid:1.2.208.184.100.1
..... code Σ 1..1 code Symbol in syntax defined by the system
... date Σ 1..1 dateTime Composition editing time
... author Σ 1..1 Reference(GMBaseOrganization) Who and/or what authored the composition
... title Σ 1..1 string Human Readable name/title
... section C 1..1 BackboneElement Composition is broken into sections
Constraints: cmp-1, cmp-2

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.attester.​mode Base required CompositionAttestationMode 📍4.0.1 FHIR Std.
Composition.relatesTo.​code Base required DocumentRelationshipType 📍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
... implicitRules 0..0
... language 0..0
... text 0..0
.... extension:GMGraditetsforloebReference 0..1 Identifier Pregnancy identifier
URL: http://sundhedsdatastyrelsen.dk/StructureDefinition/GMGraditetsforloebReference
.... extension:GMEksternGraditetsforloebReference 0..* Identifier External pregnancy identifier
URL: http://sundhedsdatastyrelsen.dk/StructureDefinition/GMEksternGraditetsforloebReference
.... extension:GMUdfoertTidspunkt 0..1 dateTime Clinically relevant time
URL: http://sundhedsdatastyrelsen.dk/StructureDefinition/GMUdfoertTidspunkt
... modifierExtension 0..0
... identifier 0..0
... status 1..1 code preliminary | final | amended | entered-in-error
Required Pattern: final
... type
.... id 0..0
.... extension 0..0
.... coding 1..1 Coding Code defined by a terminology system
..... id 0..0
..... extension 0..0
..... system 1..1 uri Identity of the terminology system
Required Pattern: urn:oid:1.2.208.184.100.1
..... version 0..0
..... code 1..1 code Symbol in syntax defined by the system
..... userSelected 0..0
.... text 0..0
... category 0..0
... subject 1..1 Reference(Danish Core Patient Profile) Who and/or what the composition is about
... encounter 0..0
... author 1..1 Reference(GMBaseOrganization) Who and/or what authored the composition
... confidentiality 0..0
... attester 0..0
... custodian 0..0
... relatesTo 0..0
... event 0..0
... section 1..1 BackboneElement Composition is broken into sections
.... id 0..0
.... extension 0..0
.... modifierExtension 0..0
.... title 0..0
.... code 0..0
.... author 0..0
.... focus 0..0
.... text 0..0
.... mode 0..0
.... orderedBy 0..0
.... emptyReason 0..0
.... section 0..0

doco Documentation for this format

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
... contained 0..* Resource Contained, inline Resources
.... extension:GMGraditetsforloebReference 0..1 Identifier Pregnancy identifier
URL: http://sundhedsdatastyrelsen.dk/StructureDefinition/GMGraditetsforloebReference
.... extension:GMEksternGraditetsforloebReference 0..* Identifier External pregnancy identifier
URL: http://sundhedsdatastyrelsen.dk/StructureDefinition/GMEksternGraditetsforloebReference
.... extension:GMUdfoertTidspunkt 0..1 dateTime Clinically relevant time
URL: http://sundhedsdatastyrelsen.dk/StructureDefinition/GMUdfoertTidspunkt
... status ?!Σ 1..1 code preliminary | final | amended | entered-in-error
Binding: CompositionStatus (required): The workflow/clinical status of the composition.
Required Pattern: final
... type Σ 1..1 CodeableConcept Kind of composition (LOINC if possible)
Binding: FHIRDocumentTypeCodes (preferred): Type of a composition.
.... extension 0..0
.... coding Σ 1..1 Coding Code defined by a terminology system
..... extension 0..0
..... system Σ 1..1 uri Identity of the terminology system
Required Pattern: urn:oid:1.2.208.184.100.1
..... code Σ 1..1 code Symbol in syntax defined by the system
..... display Σ 0..1 string Representation defined by the system
... subject Σ 1..1 Reference(Danish Core Patient Profile) Who and/or what the composition is about
... date Σ 1..1 dateTime Composition editing time
... author Σ 1..1 Reference(GMBaseOrganization) Who and/or what authored the composition
... title Σ 1..1 string Human Readable name/title
... section C 1..1 BackboneElement Composition is broken into sections
Constraints: cmp-1, cmp-2
.... entry C 0..* Reference(Resource) A reference to data that supports this section

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.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 v6.5

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