Polska specyfikacja bazowa HL7 FHIR (HL7 FHIR PL Base)
0.1.2 - ci-build Poland flag

Polska specyfikacja bazowa HL7 FHIR (HL7 FHIR PL Base), published by HL7 Poland. This guide is not an authorized publication; it is the continuous build for version 0.1.2 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7-Poland/pl-fhir-base/ and changes regularly. See the Directory of published versions

Resource Profile: Composition: Nagłówek dokumentu medycznego

Official URL: http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/pl-base-composition Version: 0.1.2
Draft as of 2025-09-17 Computable Name: PLBaseComposition

Dane nagłówkowe dokumentu medycznego w standardzie HL7 FHIR

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
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... language 0..1 code Language of the resource content
Binding: Język dokumentu medycznego (Language) (required)
Additional BindingsPurpose
CommonLanguages Starter
... contained 0..* Resource Contained, inline Resources
.... extension:version S 1..1 string Composition: Version
URL: http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-version
.... extension:informationRecipient S 0..* Reference(PractitionerRole: Odbiorca informacji) Composition: Information Recipient
URL: http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-informationRecipient
.... extension:basedOnOrder S 0..* Reference(Service Request: Zlecenie usługi medycznej) Composition: Based On Order
URL: http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-basedOnOrder
.... extension:payorIdentifier S 0..1 (Complex) Composition: Payor Identifier
URL: http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-payorIdentifier
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
... identifier SΣ 1..1 Identifier Version-independent identifier for the Composition
.... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
.... system SΣ 1..1 uri The namespace for the identifier value
Example General: http://www.acme.com/identifiers/patient
.... value SΣC 1..1 string The value that is unique
Example General: 123456
... status ?!Σ 1..1 code registered | partial | preliminary | final | amended | corrected | appended | cancelled | entered-in-error | deprecated | unknown
Binding: CompositionStatus (required): The workflow/clinical status of the composition.
... type SΣ 1..1 CodeableConcept Kind of composition (LOINC if possible)
Binding: FHIRDocumentTypeCodes (preferred): Type of a composition.
.... Slices for coding SΣ 2..* Coding Code defined by a terminology system
Slice: Unordered, Open by value:system
..... coding:loincDocumentType SΣ 1..1 Coding Code defined by a terminology system
...... system SΣ 1..1 uri Identity of the terminology system
Required Pattern: http://loinc.com
...... code SΣC 1..1 code Symbol in syntax defined by the system
Binding: FHIRDocumentTypeCodes (required)
..... coding:p1DocumentType SΣ 1..1 Coding Code defined by a terminology system
...... system SΣ 1..1 uri Identity of the terminology system
Required Pattern: http://hl7.org.pl/fhir/CodeSystem/pl-p1DocumentType-CS
...... code SΣC 1..1 code Symbol in syntax defined by the system
Binding: Typ dokumentu medycznego wg P1 (PL) (required)
... subject SΣ 1..1 Reference(Patient: Pacjent) Who and/or what the composition is about
... encounter SΣ 1..1 Reference(Encounter: Wizyta/pobyt) Context of the Composition
... date SΣ 1..1 dateTime Composition editing time
... author SΣ 1..1 Reference(PractitionerRole: Autor dokumentu) Who and/or what authored the composition
... title SΣ 1..1 string Human Readable name/title
... Slices for attester S 1..* BackboneElement Attests to accuracy of composition
Slice: Unordered, Open by value:mode
.... attester:All Slices Content/Rules for all slices
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
..... mode 1..1 CodeableConcept personal | professional | legal | official
Binding: CompositionAttestationMode (preferred): The way in which a person authenticated a composition.
.... attester:legalAuthenticator S 1..1 BackboneElement Attests to accuracy of composition
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
..... mode S 1..1 CodeableConcept personal | professional | legal | official
Binding: CompositionAttestationMode (preferred): The way in which a person authenticated a composition.
Required Pattern: At least the following
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
...... coding 1..* Coding Code defined by a terminology system
Fixed Value: (Complex)
....... id 0..1 string Unique id for inter-element referencing
....... extension 0..* Extension Additional content defined by implementations
....... system 0..1 uri Identity of the terminology system
....... version 0..1 string Version of the system - if relevant
....... code 1..1 code Symbol in syntax defined by the system
Fixed Value: legal
....... display 0..1 string Representation defined by the system
....... userSelected 0..1 boolean If this coding was chosen directly by the user
...... text 0..1 string Plain text representation of the concept
..... time S 1..1 dateTime When the composition was attested
..... party S 1..1 Reference(Practitioner: Pracownik medyczny) Who attested the composition
.... attester:authenticator S 0..* BackboneElement Attests to accuracy of composition
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
..... mode S 1..1 CodeableConcept personal | professional | legal | official
Binding: CompositionAttestationMode (preferred): The way in which a person authenticated a composition.
Required Pattern: At least the following
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
...... coding 1..* Coding Code defined by a terminology system
Fixed Value: (Complex)
....... id 0..1 string Unique id for inter-element referencing
....... extension 0..* Extension Additional content defined by implementations
....... system 0..1 uri Identity of the terminology system
....... version 0..1 string Version of the system - if relevant
....... code 1..1 code Symbol in syntax defined by the system
Fixed Value: professional
....... display 0..1 string Representation defined by the system
....... userSelected 0..1 boolean If this coding was chosen directly by the user
...... text 0..1 string Plain text representation of the concept
... custodian SΣ 1..1 Reference(Organization) Organization which maintains the composition
... Slices for relatesTo S 0..* RelatedArtifact Relationships to other compositions/documents
Slice: Unordered, Open by value:type
.... relatesTo:documentPreviousVersion S 0..1 RelatedArtifact Relationships to other compositions/documents
..... type SΣ 1..1 code documentation | justification | citation | predecessor | successor | derived-from | depends-on | composed-of | part-of | amends | amended-with | appends | appended-with | cites | cited-by | comments-on | comment-in | contains | contained-in | corrects | correction-in | replaces | replaced-with | retracts | retracted-by | signs | similar-to | supports | supported-with | transforms | transformed-into | transformed-with | documents | specification-of | created-with | cite-as
Binding: RelatedArtifactType (required): The type of relationship to the related artifact.
Required Pattern: predecessor
..... resourceReference SΣ 1..1 Reference(Resource) What artifact, if not a conformance resource
Required Pattern: At least the following
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
...... reference 1..1 string Literal reference, Relative, internal or absolute URL
Fixed Value: StructureDefinition/pl-base-documentIdentity
...... type 0..1 uri Type the reference refers to (e.g. "Patient") - must be a resource in resources
...... identifier 0..1 Identifier Logical reference, when literal reference is not known
...... display 0..1 string Text alternative for the resource
... event SΣ 0..* BackboneElement The clinical service(s) being documented
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... detail SΣ 1..1 CodeableReference(Resource) The event(s) being documented, as code(s), reference(s), or both
Binding: v3 Code System ActCode (example): This list of codes represents the main clinical acts being documented.
..... concept SΣ 1..1 CodeableConcept Reference to a concept (by class)
...... Slices for coding SΣ 1..* Coding Code defined by a terminology system
Slice: Unordered, Open by value:system
....... coding:icd9PLCode SΣ 1..1 Coding Code defined by a terminology system
Binding: Kod usługi medycznej wg ICD-9-PL (required)

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
Composition.languagerequiredPLDocumentLanguageVS
http://hl7.org.pl/fhir/ig/pl-base/ValueSet/pl-documentLanguage-VS
From this IG
Composition.identifier.userequiredIdentifierUse
http://hl7.org/fhir/ValueSet/identifier-use|5.0.0
From the FHIR Standard
Composition.statusrequiredCompositionStatus
http://hl7.org/fhir/ValueSet/composition-status|5.0.0
From the FHIR Standard
Composition.typepreferredFHIRDocumentTypeCodes
http://hl7.org/fhir/ValueSet/doc-typecodes|5.0.0
From the FHIR Standard
Composition.type.coding:loincDocumentType.coderequiredFHIRDocumentTypeCodes
http://hl7.org/fhir/ValueSet/doc-typecodes
From the FHIR Standard
Composition.type.coding:p1DocumentType.coderequiredPLP1DocumentTypeVS(a valid code from Typ dokumentu medycznego wg P1 (PL))
http://hl7.org.pl/fhir/ig/pl-base/ValueSet/pl-p1DocumentType-VS
From this IG
Composition.attester.modepreferredCompositionAttestationMode
http://hl7.org/fhir/ValueSet/composition-attestation-mode|5.0.0
From the FHIR Standard
Composition.attester:legalAuthenticator.modepreferredPattern Value: legal
http://hl7.org/fhir/ValueSet/composition-attestation-mode|5.0.0
From the FHIR Standard
Composition.attester:authenticator.modepreferredPattern Value: professional
http://hl7.org/fhir/ValueSet/composition-attestation-mode|5.0.0
From the FHIR Standard
Composition.relatesTo:documentPreviousVersion.typerequiredPattern Value: predecessor
http://hl7.org/fhir/ValueSet/related-artifact-type|5.0.0
From the FHIR Standard
Composition.event.detailexampleActCode
http://terminology.hl7.org/ValueSet/v3-ActCode
Composition.event.detail.concept.coding:icd9PLCoderequiredPLIcd9PLServiceCodeVS(a valid code from Kod usługi medycznej wg ICD-9-PL)
http://hl7.org.pl/fhir/ig/pl-base/ValueSet/pl-icd9plServiceCode-VS
From this IG

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorCompositionIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorCompositionIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorCompositionIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorCompositionIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceCompositionA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

This structure is derived from Composition

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Composition Composition
... language 0..1 code Language of the resource content
Binding: Język dokumentu medycznego (Language) (required)
... Slices for extension 1..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:version S 1..1 string Composition: Version
URL: http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-version
.... extension:informationRecipient S 0..* Reference(PractitionerRole: Odbiorca informacji) Composition: Information Recipient
URL: http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-informationRecipient
.... extension:basedOnOrder S 0..* Reference(Service Request: Zlecenie usługi medycznej) Composition: Based On Order
URL: http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-basedOnOrder
.... extension:payorIdentifier S 0..1 (Complex) Composition: Payor Identifier
URL: http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-payorIdentifier
... identifier S 1..1 Identifier Version-independent identifier for the Composition
.... system S 1..1 uri The namespace for the identifier value
.... value S 1..1 string The value that is unique
.... Slices for coding S 2..* Coding Code defined by a terminology system
Slice: Unordered, Open by value:system
..... coding:loincDocumentType S 1..1 Coding Code defined by a terminology system
...... system S 1..1 uri Identity of the terminology system
Required Pattern: http://loinc.com
...... code S 1..1 code Symbol in syntax defined by the system
Binding: FHIRDocumentTypeCodes (required)
..... coding:p1DocumentType S 1..1 Coding Code defined by a terminology system
...... system S 1..1 uri Identity of the terminology system
Required Pattern: http://hl7.org.pl/fhir/CodeSystem/pl-p1DocumentType-CS
...... code S 1..1 code Symbol in syntax defined by the system
Binding: Typ dokumentu medycznego wg P1 (PL) (required)
... subject S 1..1 Reference(Patient: Pacjent) Who and/or what the composition is about
... encounter S 1..1 Reference(Encounter: Wizyta/pobyt) Context of the Composition
... date S 1..1 dateTime Composition editing time
... author S 1..1 Reference(PractitionerRole: Autor dokumentu) Who and/or what authored the composition
... title S 1..1 string Human Readable name/title
... Slices for attester S 1..* BackboneElement Attests to accuracy of composition
Slice: Unordered, Open by value:mode
.... attester:legalAuthenticator S 1..1 BackboneElement Attests to accuracy of composition
..... mode S 1..1 CodeableConcept personal | professional | legal | official
Required Pattern: At least the following
...... coding 1..* Coding Code defined by a terminology system
Fixed Value: (Complex)
....... code 1..1 code Symbol in syntax defined by the system
Fixed Value: legal
..... time S 1..1 dateTime When the composition was attested
..... party S 1..1 Reference(Practitioner: Pracownik medyczny) Who attested the composition
.... attester:authenticator S 0..* BackboneElement Attests to accuracy of composition
..... mode S 1..1 CodeableConcept personal | professional | legal | official
Required Pattern: At least the following
...... coding 1..* Coding Code defined by a terminology system
Fixed Value: (Complex)
....... code 1..1 code Symbol in syntax defined by the system
Fixed Value: professional
... custodian S 1..1 Reference(Organization) Organization which maintains the composition
... Slices for relatesTo S 0..* RelatedArtifact Relationships to other compositions/documents
Slice: Unordered, Open by value:type
.... relatesTo:documentPreviousVersion S 0..1 RelatedArtifact Relationships to other compositions/documents
..... type S 1..1 code documentation | justification | citation | predecessor | successor | derived-from | depends-on | composed-of | part-of | amends | amended-with | appends | appended-with | cites | cited-by | comments-on | comment-in | contains | contained-in | corrects | correction-in | replaces | replaced-with | retracts | retracted-by | signs | similar-to | supports | supported-with | transforms | transformed-into | transformed-with | documents | specification-of | created-with | cite-as
Required Pattern: predecessor
..... resource 0..0
..... resourceReference S 1..1 Reference(Resource) What artifact, if not a conformance resource
Required Pattern: At least the following
...... reference 1..1 string Literal reference, Relative, internal or absolute URL
Fixed Value: StructureDefinition/pl-base-documentIdentity
... event S 0..* BackboneElement The clinical service(s) being documented
.... period 0..0
.... detail S 1..1 CodeableReference(Resource) The event(s) being documented, as code(s), reference(s), or both
..... concept S 1..1 CodeableConcept Reference to a concept (by class)
...... Slices for coding S 1..* Coding Code defined by a terminology system
Slice: Unordered, Open by value:system
....... coding:icd9PLCode S 1..1 Coding Code defined by a terminology system
Binding: Kod usługi medycznej wg ICD-9-PL (required)
..... reference 0..0

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSetURI
Composition.languagerequiredPLDocumentLanguageVS
http://hl7.org.pl/fhir/ig/pl-base/ValueSet/pl-documentLanguage-VS
From this IG
Composition.type.coding:loincDocumentType.coderequiredFHIRDocumentTypeCodes
http://hl7.org/fhir/ValueSet/doc-typecodes
From the FHIR Standard
Composition.type.coding:p1DocumentType.coderequiredPLP1DocumentTypeVS(a valid code from Typ dokumentu medycznego wg P1 (PL))
http://hl7.org.pl/fhir/ig/pl-base/ValueSet/pl-p1DocumentType-VS
From this IG
Composition.event.detail.concept.coding:icd9PLCoderequiredPLIcd9PLServiceCodeVS(a valid code from Kod usługi medycznej wg ICD-9-PL)
http://hl7.org.pl/fhir/ig/pl-base/ValueSet/pl-icd9plServiceCode-VS
From this IG
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: Język dokumentu medycznego (Language) (required)
Additional BindingsPurpose
CommonLanguages Starter
... text 0..1 Narrative Text summary of the resource, for human interpretation
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
... contained 0..* Resource Contained, inline Resources
... Slices for extension 1..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:version S 1..1 string Composition: Version
URL: http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-version
.... extension:informationRecipient S 0..* Reference(PractitionerRole: Odbiorca informacji) Composition: Information Recipient
URL: http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-informationRecipient
.... extension:basedOnOrder S 0..* Reference(Service Request: Zlecenie usługi medycznej) Composition: Based On Order
URL: http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-basedOnOrder
.... extension:payorIdentifier S 0..1 (Complex) Composition: Payor Identifier
URL: http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-payorIdentifier
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
... url Σ 0..1 uri Canonical identifier for this Composition, represented as a URI (globally unique)
... identifier SΣ 1..1 Identifier Version-independent identifier for the Composition
.... id 0..1 id Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
.... type Σ 0..1 CodeableConcept Description of identifier
Binding: IdentifierTypeCodes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
.... system SΣ 1..1 uri The namespace for the identifier value
Example General: http://www.acme.com/identifiers/patient
.... value SΣC 1..1 string The value that is unique
Example General: 123456
.... period Σ 0..1 Period Time period when id is/was valid for use
.... assigner Σ 0..1 Reference(Organization) Organization that issued id (may be just text)
... version Σ 0..1 string An explicitly assigned identifer of a variation of the content in the Composition
... status ?!Σ 1..1 code registered | partial | preliminary | final | amended | corrected | appended | cancelled | entered-in-error | deprecated | unknown
Binding: CompositionStatus (required): The workflow/clinical status of the composition.
... type SΣ 1..1 CodeableConcept Kind of composition (LOINC if possible)
Binding: FHIRDocumentTypeCodes (preferred): Type of a composition.
.... id 0..1 id Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... Slices for coding SΣ 2..* Coding Code defined by a terminology system
Slice: Unordered, Open by value:system
..... coding:loincDocumentType SΣ 1..1 Coding Code defined by a terminology system
...... id 0..1 id Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... system SΣ 1..1 uri Identity of the terminology system
Required Pattern: http://loinc.com
...... version Σ 0..1 string Version of the system - if relevant
...... code SΣC 1..1 code Symbol in syntax defined by the system
Binding: FHIRDocumentTypeCodes (required)
...... display ΣC 0..1 string Representation defined by the system
...... userSelected Σ 0..1 boolean If this coding was chosen directly by the user
..... coding:p1DocumentType SΣ 1..1 Coding Code defined by a terminology system
...... id 0..1 id Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... system SΣ 1..1 uri Identity of the terminology system
Required Pattern: http://hl7.org.pl/fhir/CodeSystem/pl-p1DocumentType-CS
...... version Σ 0..1 string Version of the system - if relevant
...... code SΣC 1..1 code Symbol in syntax defined by the system
Binding: Typ dokumentu medycznego wg P1 (PL) (required)
...... display ΣC 0..1 string Representation defined by the system
...... userSelected Σ 0..1 boolean If this coding was chosen directly by the user
.... text Σ 0..1 string Plain text representation of the concept
... category Σ 0..* CodeableConcept Categorization of Composition
Binding: ReferencedItemCategoryValueSet (example): High-level kind of a clinical document at a macro level.
... subject SΣ 1..1 Reference(Patient: Pacjent) Who and/or what the composition is about
... encounter SΣ 1..1 Reference(Encounter: Wizyta/pobyt) Context of the Composition
... date SΣ 1..1 dateTime Composition editing time
... useContext Σ 0..* UsageContext The context that the content is intended to support
... author SΣ 1..1 Reference(PractitionerRole: Autor dokumentu) Who and/or what authored the composition
... name Σ 0..1 string Name for this Composition (computer friendly)
... title SΣ 1..1 string Human Readable name/title
... note 0..* Annotation For any additional notes
... Slices for attester S 1..* BackboneElement Attests to accuracy of composition
Slice: Unordered, Open by value:mode
.... attester:All Slices Content/Rules for all slices
..... 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 1..1 CodeableConcept personal | professional | legal | official
Binding: CompositionAttestationMode (preferred): The way in which a person authenticated a composition.
..... time 0..1 dateTime When the composition was attested
..... party 0..1 Reference(Patient | RelatedPerson | Practitioner | PractitionerRole | Organization) Who attested the composition
.... attester:legalAuthenticator S 1..1 BackboneElement Attests to accuracy of composition
..... 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 CodeableConcept personal | professional | legal | official
Binding: CompositionAttestationMode (preferred): The way in which a person authenticated a composition.
Required Pattern: At least the following
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
...... coding 1..* Coding Code defined by a terminology system
Fixed Value: (Complex)
....... id 0..1 string Unique id for inter-element referencing
....... extension 0..* Extension Additional content defined by implementations
....... system 0..1 uri Identity of the terminology system
....... version 0..1 string Version of the system - if relevant
....... code 1..1 code Symbol in syntax defined by the system
Fixed Value: legal
....... display 0..1 string Representation defined by the system
....... userSelected 0..1 boolean If this coding was chosen directly by the user
...... text 0..1 string Plain text representation of the concept
..... time S 1..1 dateTime When the composition was attested
..... party S 1..1 Reference(Practitioner: Pracownik medyczny) Who attested the composition
.... attester:authenticator S 0..* BackboneElement Attests to accuracy of composition
..... 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 CodeableConcept personal | professional | legal | official
Binding: CompositionAttestationMode (preferred): The way in which a person authenticated a composition.
Required Pattern: At least the following
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
...... coding 1..* Coding Code defined by a terminology system
Fixed Value: (Complex)
....... id 0..1 string Unique id for inter-element referencing
....... extension 0..* Extension Additional content defined by implementations
....... system 0..1 uri Identity of the terminology system
....... version 0..1 string Version of the system - if relevant
....... code 1..1 code Symbol in syntax defined by the system
Fixed Value: professional
....... display 0..1 string Representation defined by the system
....... userSelected 0..1 boolean If this coding was chosen directly by the user
...... text 0..1 string Plain text representation of the concept
..... time 0..1 dateTime When the composition was attested
..... party 0..1 Reference(Patient | RelatedPerson | Practitioner | PractitionerRole | Organization) Who attested the composition
... custodian SΣ 1..1 Reference(Organization) Organization which maintains the composition
... Slices for relatesTo S 0..* RelatedArtifact Relationships to other compositions/documents
Slice: Unordered, Open by value:type
.... relatesTo:documentPreviousVersion S 0..1 RelatedArtifact Relationships to other compositions/documents
..... id 0..1 id Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... type SΣ 1..1 code documentation | justification | citation | predecessor | successor | derived-from | depends-on | composed-of | part-of | amends | amended-with | appends | appended-with | cites | cited-by | comments-on | comment-in | contains | contained-in | corrects | correction-in | replaces | replaced-with | retracts | retracted-by | signs | similar-to | supports | supported-with | transforms | transformed-into | transformed-with | documents | specification-of | created-with | cite-as
Binding: RelatedArtifactType (required): The type of relationship to the related artifact.
Required Pattern: predecessor
..... classifier Σ 0..* CodeableConcept Additional classifiers
Binding: CitationArtifactClassifier (example): Additional classifiers for the related artifact.
..... label Σ 0..1 string Short label
..... display Σ 0..1 string Brief description of the related artifact
..... citation Σ 0..1 markdown Bibliographic citation for the artifact
..... document Σ 0..1 Attachment What document is being referenced
..... resourceReference SΣ 1..1 Reference(Resource) What artifact, if not a conformance resource
Required Pattern: At least the following
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
...... reference 1..1 string Literal reference, Relative, internal or absolute URL
Fixed Value: StructureDefinition/pl-base-documentIdentity
...... type 0..1 uri Type the reference refers to (e.g. "Patient") - must be a resource in resources
...... identifier 0..1 Identifier Logical reference, when literal reference is not known
...... display 0..1 string Text alternative for the resource
..... publicationStatus Σ 0..1 code draft | active | retired | unknown
Binding: PublicationStatus (required): Publication status of an artifact being referred to.
..... publicationDate Σ 0..1 date Date of publication of the artifact being referred to
... event SΣ 0..* BackboneElement The clinical service(s) being documented
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... detail SΣ 1..1 CodeableReference(Resource) The event(s) being documented, as code(s), reference(s), or both
Binding: v3 Code System ActCode (example): This list of codes represents the main clinical acts being documented.
..... id 0..1 id Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... concept SΣ 1..1 CodeableConcept Reference to a concept (by class)
...... id 0..1 id Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... Slices for coding SΣ 1..* Coding Code defined by a terminology system
Slice: Unordered, Open by value:system
....... coding:icd9PLCode SΣ 1..1 Coding Code defined by a terminology system
Binding: Kod usługi medycznej wg ICD-9-PL (required)
...... text Σ 0..1 string Plain text representation of the concept
... section C 0..* BackboneElement Composition is broken into sections
Constraints: cmp-1, cmp-2
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... title 0..1 string Label for section (e.g. for ToC)
.... code 0..1 CodeableConcept Classification of section (recommended)
Binding: DocumentSectionCodes (example): Classification of a section of a composition/document.
.... author 0..* Reference(Practitioner | PractitionerRole | Device | Patient | RelatedPerson | Organization) Who and/or what authored the section
.... focus 0..1 Reference(Resource) Who/what the section is about, when it is not about the subject of composition
.... text C 0..1 Narrative Text summary of the section, for human interpretation
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
.... orderedBy 0..1 CodeableConcept Order of section entries
Binding: ListOrderCodes (preferred): What order applies to the items in the entry.
.... entry C 0..* Reference(Resource) A reference to data that supports this section
.... emptyReason C 0..1 CodeableConcept Why the section is empty
Binding: ListEmptyReasons (preferred): If a section is empty, why it is empty.
.... section 0..* See section (Composition) Nested Section

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
Composition.languagerequiredPLDocumentLanguageVS
http://hl7.org.pl/fhir/ig/pl-base/ValueSet/pl-documentLanguage-VS
From this IG
Composition.identifier.userequiredIdentifierUse
http://hl7.org/fhir/ValueSet/identifier-use|5.0.0
From the FHIR Standard
Composition.identifier.typeextensibleIdentifierTypeCodes
http://hl7.org/fhir/ValueSet/identifier-type|5.0.0
From the FHIR Standard
Composition.statusrequiredCompositionStatus
http://hl7.org/fhir/ValueSet/composition-status|5.0.0
From the FHIR Standard
Composition.typepreferredFHIRDocumentTypeCodes
http://hl7.org/fhir/ValueSet/doc-typecodes|5.0.0
From the FHIR Standard
Composition.type.coding:loincDocumentType.coderequiredFHIRDocumentTypeCodes
http://hl7.org/fhir/ValueSet/doc-typecodes
From the FHIR Standard
Composition.type.coding:p1DocumentType.coderequiredPLP1DocumentTypeVS(a valid code from Typ dokumentu medycznego wg P1 (PL))
http://hl7.org.pl/fhir/ig/pl-base/ValueSet/pl-p1DocumentType-VS
From this IG
Composition.categoryexampleReferencedItemCategoryValueSet
http://hl7.org/fhir/ValueSet/referenced-item-category|5.0.0
From the FHIR Standard
Composition.attester.modepreferredCompositionAttestationMode
http://hl7.org/fhir/ValueSet/composition-attestation-mode|5.0.0
From the FHIR Standard
Composition.attester:legalAuthenticator.modepreferredPattern Value: legal
http://hl7.org/fhir/ValueSet/composition-attestation-mode|5.0.0
From the FHIR Standard
Composition.attester:authenticator.modepreferredPattern Value: professional
http://hl7.org/fhir/ValueSet/composition-attestation-mode|5.0.0
From the FHIR Standard
Composition.relatesTo:documentPreviousVersion.typerequiredPattern Value: predecessor
http://hl7.org/fhir/ValueSet/related-artifact-type|5.0.0
From the FHIR Standard
Composition.relatesTo:documentPreviousVersion.classifierexampleCitationArtifactClassifier
http://hl7.org/fhir/ValueSet/citation-artifact-classifier|5.0.0
From the FHIR Standard
Composition.relatesTo:documentPreviousVersion.publicationStatusrequiredPublicationStatus
http://hl7.org/fhir/ValueSet/publication-status|5.0.0
From the FHIR Standard
Composition.event.detailexampleActCode
http://terminology.hl7.org/ValueSet/v3-ActCode
Composition.event.detail.concept.coding:icd9PLCoderequiredPLIcd9PLServiceCodeVS(a valid code from Kod usługi medycznej wg ICD-9-PL)
http://hl7.org.pl/fhir/ig/pl-base/ValueSet/pl-icd9plServiceCode-VS
From this IG
Composition.section.codeexampleDocumentSectionCodes
http://hl7.org/fhir/ValueSet/doc-section-codes|5.0.0
From the FHIR Standard
Composition.section.orderedBypreferredListOrderCodes
http://hl7.org/fhir/ValueSet/list-order|5.0.0
From the FHIR Standard
Composition.section.emptyReasonpreferredListEmptyReasons
http://hl7.org/fhir/ValueSet/list-empty-reason|5.0.0
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
cmp-1errorComposition.sectionA section must contain at least one of text, entries, or sub-sections
: text.exists() or entry.exists() or section.exists()
cmp-2errorComposition.sectionA section can only have an emptyReason if it is empty
: emptyReason.empty() or entry.empty()
dom-2errorCompositionIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorCompositionIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorCompositionIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorCompositionIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceCompositionA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

This structure is derived from Composition

Summary

Mandatory: 18 elements(5 nested mandatory elements)
Must-Support: 37 elements
Prohibited: 3 elements

Structures

This structure refers to these other structures:

Extensions

This structure refers to these extensions:

Slices

This structure defines the following Slices:

  • The element 1 is sliced based on the value of Composition.type.coding
  • The element 1 is sliced based on the value of Composition.attester
  • The element 1 is sliced based on the value of Composition.relatesTo
  • The element 1 is sliced based on the value of Composition.event.detail.concept.coding

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
... language 0..1 code Language of the resource content
Binding: Język dokumentu medycznego (Language) (required)
Additional BindingsPurpose
CommonLanguages Starter
... contained 0..* Resource Contained, inline Resources
.... extension:version S 1..1 string Composition: Version
URL: http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-version
.... extension:informationRecipient S 0..* Reference(PractitionerRole: Odbiorca informacji) Composition: Information Recipient
URL: http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-informationRecipient
.... extension:basedOnOrder S 0..* Reference(Service Request: Zlecenie usługi medycznej) Composition: Based On Order
URL: http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-basedOnOrder
.... extension:payorIdentifier S 0..1 (Complex) Composition: Payor Identifier
URL: http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-payorIdentifier
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
... identifier SΣ 1..1 Identifier Version-independent identifier for the Composition
.... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
.... system SΣ 1..1 uri The namespace for the identifier value
Example General: http://www.acme.com/identifiers/patient
.... value SΣC 1..1 string The value that is unique
Example General: 123456
... status ?!Σ 1..1 code registered | partial | preliminary | final | amended | corrected | appended | cancelled | entered-in-error | deprecated | unknown
Binding: CompositionStatus (required): The workflow/clinical status of the composition.
... type SΣ 1..1 CodeableConcept Kind of composition (LOINC if possible)
Binding: FHIRDocumentTypeCodes (preferred): Type of a composition.
.... Slices for coding SΣ 2..* Coding Code defined by a terminology system
Slice: Unordered, Open by value:system
..... coding:loincDocumentType SΣ 1..1 Coding Code defined by a terminology system
...... system SΣ 1..1 uri Identity of the terminology system
Required Pattern: http://loinc.com
...... code SΣC 1..1 code Symbol in syntax defined by the system
Binding: FHIRDocumentTypeCodes (required)
..... coding:p1DocumentType SΣ 1..1 Coding Code defined by a terminology system
...... system SΣ 1..1 uri Identity of the terminology system
Required Pattern: http://hl7.org.pl/fhir/CodeSystem/pl-p1DocumentType-CS
...... code SΣC 1..1 code Symbol in syntax defined by the system
Binding: Typ dokumentu medycznego wg P1 (PL) (required)
... subject SΣ 1..1 Reference(Patient: Pacjent) Who and/or what the composition is about
... encounter SΣ 1..1 Reference(Encounter: Wizyta/pobyt) Context of the Composition
... date SΣ 1..1 dateTime Composition editing time
... author SΣ 1..1 Reference(PractitionerRole: Autor dokumentu) Who and/or what authored the composition
... title SΣ 1..1 string Human Readable name/title
... Slices for attester S 1..* BackboneElement Attests to accuracy of composition
Slice: Unordered, Open by value:mode
.... attester:All Slices Content/Rules for all slices
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
..... mode 1..1 CodeableConcept personal | professional | legal | official
Binding: CompositionAttestationMode (preferred): The way in which a person authenticated a composition.
.... attester:legalAuthenticator S 1..1 BackboneElement Attests to accuracy of composition
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
..... mode S 1..1 CodeableConcept personal | professional | legal | official
Binding: CompositionAttestationMode (preferred): The way in which a person authenticated a composition.
Required Pattern: At least the following
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
...... coding 1..* Coding Code defined by a terminology system
Fixed Value: (Complex)
....... id 0..1 string Unique id for inter-element referencing
....... extension 0..* Extension Additional content defined by implementations
....... system 0..1 uri Identity of the terminology system
....... version 0..1 string Version of the system - if relevant
....... code 1..1 code Symbol in syntax defined by the system
Fixed Value: legal
....... display 0..1 string Representation defined by the system
....... userSelected 0..1 boolean If this coding was chosen directly by the user
...... text 0..1 string Plain text representation of the concept
..... time S 1..1 dateTime When the composition was attested
..... party S 1..1 Reference(Practitioner: Pracownik medyczny) Who attested the composition
.... attester:authenticator S 0..* BackboneElement Attests to accuracy of composition
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
..... mode S 1..1 CodeableConcept personal | professional | legal | official
Binding: CompositionAttestationMode (preferred): The way in which a person authenticated a composition.
Required Pattern: At least the following
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
...... coding 1..* Coding Code defined by a terminology system
Fixed Value: (Complex)
....... id 0..1 string Unique id for inter-element referencing
....... extension 0..* Extension Additional content defined by implementations
....... system 0..1 uri Identity of the terminology system
....... version 0..1 string Version of the system - if relevant
....... code 1..1 code Symbol in syntax defined by the system
Fixed Value: professional
....... display 0..1 string Representation defined by the system
....... userSelected 0..1 boolean If this coding was chosen directly by the user
...... text 0..1 string Plain text representation of the concept
... custodian SΣ 1..1 Reference(Organization) Organization which maintains the composition
... Slices for relatesTo S 0..* RelatedArtifact Relationships to other compositions/documents
Slice: Unordered, Open by value:type
.... relatesTo:documentPreviousVersion S 0..1 RelatedArtifact Relationships to other compositions/documents
..... type SΣ 1..1 code documentation | justification | citation | predecessor | successor | derived-from | depends-on | composed-of | part-of | amends | amended-with | appends | appended-with | cites | cited-by | comments-on | comment-in | contains | contained-in | corrects | correction-in | replaces | replaced-with | retracts | retracted-by | signs | similar-to | supports | supported-with | transforms | transformed-into | transformed-with | documents | specification-of | created-with | cite-as
Binding: RelatedArtifactType (required): The type of relationship to the related artifact.
Required Pattern: predecessor
..... resourceReference SΣ 1..1 Reference(Resource) What artifact, if not a conformance resource
Required Pattern: At least the following
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
...... reference 1..1 string Literal reference, Relative, internal or absolute URL
Fixed Value: StructureDefinition/pl-base-documentIdentity
...... type 0..1 uri Type the reference refers to (e.g. "Patient") - must be a resource in resources
...... identifier 0..1 Identifier Logical reference, when literal reference is not known
...... display 0..1 string Text alternative for the resource
... event SΣ 0..* BackboneElement The clinical service(s) being documented
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... detail SΣ 1..1 CodeableReference(Resource) The event(s) being documented, as code(s), reference(s), or both
Binding: v3 Code System ActCode (example): This list of codes represents the main clinical acts being documented.
..... concept SΣ 1..1 CodeableConcept Reference to a concept (by class)
...... Slices for coding SΣ 1..* Coding Code defined by a terminology system
Slice: Unordered, Open by value:system
....... coding:icd9PLCode SΣ 1..1 Coding Code defined by a terminology system
Binding: Kod usługi medycznej wg ICD-9-PL (required)

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
Composition.languagerequiredPLDocumentLanguageVS
http://hl7.org.pl/fhir/ig/pl-base/ValueSet/pl-documentLanguage-VS
From this IG
Composition.identifier.userequiredIdentifierUse
http://hl7.org/fhir/ValueSet/identifier-use|5.0.0
From the FHIR Standard
Composition.statusrequiredCompositionStatus
http://hl7.org/fhir/ValueSet/composition-status|5.0.0
From the FHIR Standard
Composition.typepreferredFHIRDocumentTypeCodes
http://hl7.org/fhir/ValueSet/doc-typecodes|5.0.0
From the FHIR Standard
Composition.type.coding:loincDocumentType.coderequiredFHIRDocumentTypeCodes
http://hl7.org/fhir/ValueSet/doc-typecodes
From the FHIR Standard
Composition.type.coding:p1DocumentType.coderequiredPLP1DocumentTypeVS(a valid code from Typ dokumentu medycznego wg P1 (PL))
http://hl7.org.pl/fhir/ig/pl-base/ValueSet/pl-p1DocumentType-VS
From this IG
Composition.attester.modepreferredCompositionAttestationMode
http://hl7.org/fhir/ValueSet/composition-attestation-mode|5.0.0
From the FHIR Standard
Composition.attester:legalAuthenticator.modepreferredPattern Value: legal
http://hl7.org/fhir/ValueSet/composition-attestation-mode|5.0.0
From the FHIR Standard
Composition.attester:authenticator.modepreferredPattern Value: professional
http://hl7.org/fhir/ValueSet/composition-attestation-mode|5.0.0
From the FHIR Standard
Composition.relatesTo:documentPreviousVersion.typerequiredPattern Value: predecessor
http://hl7.org/fhir/ValueSet/related-artifact-type|5.0.0
From the FHIR Standard
Composition.event.detailexampleActCode
http://terminology.hl7.org/ValueSet/v3-ActCode
Composition.event.detail.concept.coding:icd9PLCoderequiredPLIcd9PLServiceCodeVS(a valid code from Kod usługi medycznej wg ICD-9-PL)
http://hl7.org.pl/fhir/ig/pl-base/ValueSet/pl-icd9plServiceCode-VS
From this IG

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorCompositionIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorCompositionIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorCompositionIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorCompositionIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceCompositionA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

Differential View

This structure is derived from Composition

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Composition Composition
... language 0..1 code Language of the resource content
Binding: Język dokumentu medycznego (Language) (required)
... Slices for extension 1..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:version S 1..1 string Composition: Version
URL: http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-version
.... extension:informationRecipient S 0..* Reference(PractitionerRole: Odbiorca informacji) Composition: Information Recipient
URL: http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-informationRecipient
.... extension:basedOnOrder S 0..* Reference(Service Request: Zlecenie usługi medycznej) Composition: Based On Order
URL: http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-basedOnOrder
.... extension:payorIdentifier S 0..1 (Complex) Composition: Payor Identifier
URL: http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-payorIdentifier
... identifier S 1..1 Identifier Version-independent identifier for the Composition
.... system S 1..1 uri The namespace for the identifier value
.... value S 1..1 string The value that is unique
.... Slices for coding S 2..* Coding Code defined by a terminology system
Slice: Unordered, Open by value:system
..... coding:loincDocumentType S 1..1 Coding Code defined by a terminology system
...... system S 1..1 uri Identity of the terminology system
Required Pattern: http://loinc.com
...... code S 1..1 code Symbol in syntax defined by the system
Binding: FHIRDocumentTypeCodes (required)
..... coding:p1DocumentType S 1..1 Coding Code defined by a terminology system
...... system S 1..1 uri Identity of the terminology system
Required Pattern: http://hl7.org.pl/fhir/CodeSystem/pl-p1DocumentType-CS
...... code S 1..1 code Symbol in syntax defined by the system
Binding: Typ dokumentu medycznego wg P1 (PL) (required)
... subject S 1..1 Reference(Patient: Pacjent) Who and/or what the composition is about
... encounter S 1..1 Reference(Encounter: Wizyta/pobyt) Context of the Composition
... date S 1..1 dateTime Composition editing time
... author S 1..1 Reference(PractitionerRole: Autor dokumentu) Who and/or what authored the composition
... title S 1..1 string Human Readable name/title
... Slices for attester S 1..* BackboneElement Attests to accuracy of composition
Slice: Unordered, Open by value:mode
.... attester:legalAuthenticator S 1..1 BackboneElement Attests to accuracy of composition
..... mode S 1..1 CodeableConcept personal | professional | legal | official
Required Pattern: At least the following
...... coding 1..* Coding Code defined by a terminology system
Fixed Value: (Complex)
....... code 1..1 code Symbol in syntax defined by the system
Fixed Value: legal
..... time S 1..1 dateTime When the composition was attested
..... party S 1..1 Reference(Practitioner: Pracownik medyczny) Who attested the composition
.... attester:authenticator S 0..* BackboneElement Attests to accuracy of composition
..... mode S 1..1 CodeableConcept personal | professional | legal | official
Required Pattern: At least the following
...... coding 1..* Coding Code defined by a terminology system
Fixed Value: (Complex)
....... code 1..1 code Symbol in syntax defined by the system
Fixed Value: professional
... custodian S 1..1 Reference(Organization) Organization which maintains the composition
... Slices for relatesTo S 0..* RelatedArtifact Relationships to other compositions/documents
Slice: Unordered, Open by value:type
.... relatesTo:documentPreviousVersion S 0..1 RelatedArtifact Relationships to other compositions/documents
..... type S 1..1 code documentation | justification | citation | predecessor | successor | derived-from | depends-on | composed-of | part-of | amends | amended-with | appends | appended-with | cites | cited-by | comments-on | comment-in | contains | contained-in | corrects | correction-in | replaces | replaced-with | retracts | retracted-by | signs | similar-to | supports | supported-with | transforms | transformed-into | transformed-with | documents | specification-of | created-with | cite-as
Required Pattern: predecessor
..... resource 0..0
..... resourceReference S 1..1 Reference(Resource) What artifact, if not a conformance resource
Required Pattern: At least the following
...... reference 1..1 string Literal reference, Relative, internal or absolute URL
Fixed Value: StructureDefinition/pl-base-documentIdentity
... event S 0..* BackboneElement The clinical service(s) being documented
.... period 0..0
.... detail S 1..1 CodeableReference(Resource) The event(s) being documented, as code(s), reference(s), or both
..... concept S 1..1 CodeableConcept Reference to a concept (by class)
...... Slices for coding S 1..* Coding Code defined by a terminology system
Slice: Unordered, Open by value:system
....... coding:icd9PLCode S 1..1 Coding Code defined by a terminology system
Binding: Kod usługi medycznej wg ICD-9-PL (required)
..... reference 0..0

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSetURI
Composition.languagerequiredPLDocumentLanguageVS
http://hl7.org.pl/fhir/ig/pl-base/ValueSet/pl-documentLanguage-VS
From this IG
Composition.type.coding:loincDocumentType.coderequiredFHIRDocumentTypeCodes
http://hl7.org/fhir/ValueSet/doc-typecodes
From the FHIR Standard
Composition.type.coding:p1DocumentType.coderequiredPLP1DocumentTypeVS(a valid code from Typ dokumentu medycznego wg P1 (PL))
http://hl7.org.pl/fhir/ig/pl-base/ValueSet/pl-p1DocumentType-VS
From this IG
Composition.event.detail.concept.coding:icd9PLCoderequiredPLIcd9PLServiceCodeVS(a valid code from Kod usługi medycznej wg ICD-9-PL)
http://hl7.org.pl/fhir/ig/pl-base/ValueSet/pl-icd9plServiceCode-VS
From this IG

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: Język dokumentu medycznego (Language) (required)
Additional BindingsPurpose
CommonLanguages Starter
... text 0..1 Narrative Text summary of the resource, for human interpretation
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
... contained 0..* Resource Contained, inline Resources
... Slices for extension 1..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:version S 1..1 string Composition: Version
URL: http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-version
.... extension:informationRecipient S 0..* Reference(PractitionerRole: Odbiorca informacji) Composition: Information Recipient
URL: http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-informationRecipient
.... extension:basedOnOrder S 0..* Reference(Service Request: Zlecenie usługi medycznej) Composition: Based On Order
URL: http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-basedOnOrder
.... extension:payorIdentifier S 0..1 (Complex) Composition: Payor Identifier
URL: http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-payorIdentifier
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
... url Σ 0..1 uri Canonical identifier for this Composition, represented as a URI (globally unique)
... identifier SΣ 1..1 Identifier Version-independent identifier for the Composition
.... id 0..1 id Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
.... type Σ 0..1 CodeableConcept Description of identifier
Binding: IdentifierTypeCodes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
.... system SΣ 1..1 uri The namespace for the identifier value
Example General: http://www.acme.com/identifiers/patient
.... value SΣC 1..1 string The value that is unique
Example General: 123456
.... period Σ 0..1 Period Time period when id is/was valid for use
.... assigner Σ 0..1 Reference(Organization) Organization that issued id (may be just text)
... version Σ 0..1 string An explicitly assigned identifer of a variation of the content in the Composition
... status ?!Σ 1..1 code registered | partial | preliminary | final | amended | corrected | appended | cancelled | entered-in-error | deprecated | unknown
Binding: CompositionStatus (required): The workflow/clinical status of the composition.
... type SΣ 1..1 CodeableConcept Kind of composition (LOINC if possible)
Binding: FHIRDocumentTypeCodes (preferred): Type of a composition.
.... id 0..1 id Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... Slices for coding SΣ 2..* Coding Code defined by a terminology system
Slice: Unordered, Open by value:system
..... coding:loincDocumentType SΣ 1..1 Coding Code defined by a terminology system
...... id 0..1 id Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... system SΣ 1..1 uri Identity of the terminology system
Required Pattern: http://loinc.com
...... version Σ 0..1 string Version of the system - if relevant
...... code SΣC 1..1 code Symbol in syntax defined by the system
Binding: FHIRDocumentTypeCodes (required)
...... display ΣC 0..1 string Representation defined by the system
...... userSelected Σ 0..1 boolean If this coding was chosen directly by the user
..... coding:p1DocumentType SΣ 1..1 Coding Code defined by a terminology system
...... id 0..1 id Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... system SΣ 1..1 uri Identity of the terminology system
Required Pattern: http://hl7.org.pl/fhir/CodeSystem/pl-p1DocumentType-CS
...... version Σ 0..1 string Version of the system - if relevant
...... code SΣC 1..1 code Symbol in syntax defined by the system
Binding: Typ dokumentu medycznego wg P1 (PL) (required)
...... display ΣC 0..1 string Representation defined by the system
...... userSelected Σ 0..1 boolean If this coding was chosen directly by the user
.... text Σ 0..1 string Plain text representation of the concept
... category Σ 0..* CodeableConcept Categorization of Composition
Binding: ReferencedItemCategoryValueSet (example): High-level kind of a clinical document at a macro level.
... subject SΣ 1..1 Reference(Patient: Pacjent) Who and/or what the composition is about
... encounter SΣ 1..1 Reference(Encounter: Wizyta/pobyt) Context of the Composition
... date SΣ 1..1 dateTime Composition editing time
... useContext Σ 0..* UsageContext The context that the content is intended to support
... author SΣ 1..1 Reference(PractitionerRole: Autor dokumentu) Who and/or what authored the composition
... name Σ 0..1 string Name for this Composition (computer friendly)
... title SΣ 1..1 string Human Readable name/title
... note 0..* Annotation For any additional notes
... Slices for attester S 1..* BackboneElement Attests to accuracy of composition
Slice: Unordered, Open by value:mode
.... attester:All Slices Content/Rules for all slices
..... 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 1..1 CodeableConcept personal | professional | legal | official
Binding: CompositionAttestationMode (preferred): The way in which a person authenticated a composition.
..... time 0..1 dateTime When the composition was attested
..... party 0..1 Reference(Patient | RelatedPerson | Practitioner | PractitionerRole | Organization) Who attested the composition
.... attester:legalAuthenticator S 1..1 BackboneElement Attests to accuracy of composition
..... 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 CodeableConcept personal | professional | legal | official
Binding: CompositionAttestationMode (preferred): The way in which a person authenticated a composition.
Required Pattern: At least the following
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
...... coding 1..* Coding Code defined by a terminology system
Fixed Value: (Complex)
....... id 0..1 string Unique id for inter-element referencing
....... extension 0..* Extension Additional content defined by implementations
....... system 0..1 uri Identity of the terminology system
....... version 0..1 string Version of the system - if relevant
....... code 1..1 code Symbol in syntax defined by the system
Fixed Value: legal
....... display 0..1 string Representation defined by the system
....... userSelected 0..1 boolean If this coding was chosen directly by the user
...... text 0..1 string Plain text representation of the concept
..... time S 1..1 dateTime When the composition was attested
..... party S 1..1 Reference(Practitioner: Pracownik medyczny) Who attested the composition
.... attester:authenticator S 0..* BackboneElement Attests to accuracy of composition
..... 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 CodeableConcept personal | professional | legal | official
Binding: CompositionAttestationMode (preferred): The way in which a person authenticated a composition.
Required Pattern: At least the following
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
...... coding 1..* Coding Code defined by a terminology system
Fixed Value: (Complex)
....... id 0..1 string Unique id for inter-element referencing
....... extension 0..* Extension Additional content defined by implementations
....... system 0..1 uri Identity of the terminology system
....... version 0..1 string Version of the system - if relevant
....... code 1..1 code Symbol in syntax defined by the system
Fixed Value: professional
....... display 0..1 string Representation defined by the system
....... userSelected 0..1 boolean If this coding was chosen directly by the user
...... text 0..1 string Plain text representation of the concept
..... time 0..1 dateTime When the composition was attested
..... party 0..1 Reference(Patient | RelatedPerson | Practitioner | PractitionerRole | Organization) Who attested the composition
... custodian SΣ 1..1 Reference(Organization) Organization which maintains the composition
... Slices for relatesTo S 0..* RelatedArtifact Relationships to other compositions/documents
Slice: Unordered, Open by value:type
.... relatesTo:documentPreviousVersion S 0..1 RelatedArtifact Relationships to other compositions/documents
..... id 0..1 id Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... type SΣ 1..1 code documentation | justification | citation | predecessor | successor | derived-from | depends-on | composed-of | part-of | amends | amended-with | appends | appended-with | cites | cited-by | comments-on | comment-in | contains | contained-in | corrects | correction-in | replaces | replaced-with | retracts | retracted-by | signs | similar-to | supports | supported-with | transforms | transformed-into | transformed-with | documents | specification-of | created-with | cite-as
Binding: RelatedArtifactType (required): The type of relationship to the related artifact.
Required Pattern: predecessor
..... classifier Σ 0..* CodeableConcept Additional classifiers
Binding: CitationArtifactClassifier (example): Additional classifiers for the related artifact.
..... label Σ 0..1 string Short label
..... display Σ 0..1 string Brief description of the related artifact
..... citation Σ 0..1 markdown Bibliographic citation for the artifact
..... document Σ 0..1 Attachment What document is being referenced
..... resourceReference SΣ 1..1 Reference(Resource) What artifact, if not a conformance resource
Required Pattern: At least the following
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
...... reference 1..1 string Literal reference, Relative, internal or absolute URL
Fixed Value: StructureDefinition/pl-base-documentIdentity
...... type 0..1 uri Type the reference refers to (e.g. "Patient") - must be a resource in resources
...... identifier 0..1 Identifier Logical reference, when literal reference is not known
...... display 0..1 string Text alternative for the resource
..... publicationStatus Σ 0..1 code draft | active | retired | unknown
Binding: PublicationStatus (required): Publication status of an artifact being referred to.
..... publicationDate Σ 0..1 date Date of publication of the artifact being referred to
... event SΣ 0..* BackboneElement The clinical service(s) being documented
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... detail SΣ 1..1 CodeableReference(Resource) The event(s) being documented, as code(s), reference(s), or both
Binding: v3 Code System ActCode (example): This list of codes represents the main clinical acts being documented.
..... id 0..1 id Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... concept SΣ 1..1 CodeableConcept Reference to a concept (by class)
...... id 0..1 id Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... Slices for coding SΣ 1..* Coding Code defined by a terminology system
Slice: Unordered, Open by value:system
....... coding:icd9PLCode SΣ 1..1 Coding Code defined by a terminology system
Binding: Kod usługi medycznej wg ICD-9-PL (required)
...... text Σ 0..1 string Plain text representation of the concept
... section C 0..* BackboneElement Composition is broken into sections
Constraints: cmp-1, cmp-2
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... title 0..1 string Label for section (e.g. for ToC)
.... code 0..1 CodeableConcept Classification of section (recommended)
Binding: DocumentSectionCodes (example): Classification of a section of a composition/document.
.... author 0..* Reference(Practitioner | PractitionerRole | Device | Patient | RelatedPerson | Organization) Who and/or what authored the section
.... focus 0..1 Reference(Resource) Who/what the section is about, when it is not about the subject of composition
.... text C 0..1 Narrative Text summary of the section, for human interpretation
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
.... orderedBy 0..1 CodeableConcept Order of section entries
Binding: ListOrderCodes (preferred): What order applies to the items in the entry.
.... entry C 0..* Reference(Resource) A reference to data that supports this section
.... emptyReason C 0..1 CodeableConcept Why the section is empty
Binding: ListEmptyReasons (preferred): If a section is empty, why it is empty.
.... section 0..* See section (Composition) Nested Section

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
Composition.languagerequiredPLDocumentLanguageVS
http://hl7.org.pl/fhir/ig/pl-base/ValueSet/pl-documentLanguage-VS
From this IG
Composition.identifier.userequiredIdentifierUse
http://hl7.org/fhir/ValueSet/identifier-use|5.0.0
From the FHIR Standard
Composition.identifier.typeextensibleIdentifierTypeCodes
http://hl7.org/fhir/ValueSet/identifier-type|5.0.0
From the FHIR Standard
Composition.statusrequiredCompositionStatus
http://hl7.org/fhir/ValueSet/composition-status|5.0.0
From the FHIR Standard
Composition.typepreferredFHIRDocumentTypeCodes
http://hl7.org/fhir/ValueSet/doc-typecodes|5.0.0
From the FHIR Standard
Composition.type.coding:loincDocumentType.coderequiredFHIRDocumentTypeCodes
http://hl7.org/fhir/ValueSet/doc-typecodes
From the FHIR Standard
Composition.type.coding:p1DocumentType.coderequiredPLP1DocumentTypeVS(a valid code from Typ dokumentu medycznego wg P1 (PL))
http://hl7.org.pl/fhir/ig/pl-base/ValueSet/pl-p1DocumentType-VS
From this IG
Composition.categoryexampleReferencedItemCategoryValueSet
http://hl7.org/fhir/ValueSet/referenced-item-category|5.0.0
From the FHIR Standard
Composition.attester.modepreferredCompositionAttestationMode
http://hl7.org/fhir/ValueSet/composition-attestation-mode|5.0.0
From the FHIR Standard
Composition.attester:legalAuthenticator.modepreferredPattern Value: legal
http://hl7.org/fhir/ValueSet/composition-attestation-mode|5.0.0
From the FHIR Standard
Composition.attester:authenticator.modepreferredPattern Value: professional
http://hl7.org/fhir/ValueSet/composition-attestation-mode|5.0.0
From the FHIR Standard
Composition.relatesTo:documentPreviousVersion.typerequiredPattern Value: predecessor
http://hl7.org/fhir/ValueSet/related-artifact-type|5.0.0
From the FHIR Standard
Composition.relatesTo:documentPreviousVersion.classifierexampleCitationArtifactClassifier
http://hl7.org/fhir/ValueSet/citation-artifact-classifier|5.0.0
From the FHIR Standard
Composition.relatesTo:documentPreviousVersion.publicationStatusrequiredPublicationStatus
http://hl7.org/fhir/ValueSet/publication-status|5.0.0
From the FHIR Standard
Composition.event.detailexampleActCode
http://terminology.hl7.org/ValueSet/v3-ActCode
Composition.event.detail.concept.coding:icd9PLCoderequiredPLIcd9PLServiceCodeVS(a valid code from Kod usługi medycznej wg ICD-9-PL)
http://hl7.org.pl/fhir/ig/pl-base/ValueSet/pl-icd9plServiceCode-VS
From this IG
Composition.section.codeexampleDocumentSectionCodes
http://hl7.org/fhir/ValueSet/doc-section-codes|5.0.0
From the FHIR Standard
Composition.section.orderedBypreferredListOrderCodes
http://hl7.org/fhir/ValueSet/list-order|5.0.0
From the FHIR Standard
Composition.section.emptyReasonpreferredListEmptyReasons
http://hl7.org/fhir/ValueSet/list-empty-reason|5.0.0
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
cmp-1errorComposition.sectionA section must contain at least one of text, entries, or sub-sections
: text.exists() or entry.exists() or section.exists()
cmp-2errorComposition.sectionA section can only have an emptyReason if it is empty
: emptyReason.empty() or entry.empty()
dom-2errorCompositionIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorCompositionIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorCompositionIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorCompositionIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceCompositionA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

This structure is derived from Composition

Summary

Mandatory: 18 elements(5 nested mandatory elements)
Must-Support: 37 elements
Prohibited: 3 elements

Structures

This structure refers to these other structures:

Extensions

This structure refers to these extensions:

Slices

This structure defines the following Slices:

  • The element 1 is sliced based on the value of Composition.type.coding
  • The element 1 is sliced based on the value of Composition.attester
  • The element 1 is sliced based on the value of Composition.relatesTo
  • The element 1 is sliced based on the value of Composition.event.detail.concept.coding

 

Other representations of profile: CSV, Excel, Schematron