Polska specyfikacja bazowa HL7 FHIR (HL7 FHIR PL Base)
0.1.3 - 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.3 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.3
Active as of 2025-10-10 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

Path Status Usage ValueSet Version Source
Composition.language Base required Język dokumentu medycznego (Language) 📦0.1.3 This IG
Composition.identifier.​use Base required IdentifierUse 📍5.0.0 FHIR Std.
Composition.status Base required Composition Status 📍5.0.0 FHIR Std.
Composition.type Base preferred FHIR Document Type Codes 📍5.0.0 FHIR Std.
Composition.type.coding:loincDocumentType.​code Base required FHIR Document Type Codes 📦5.0.0 FHIR Std.
Composition.type.coding:p1DocumentType.​code Base required Typ dokumentu medycznego wg P1 (PL) 📦0.1.3 This IG
Composition.attester.​mode Base preferred Composition Attestation Mode 📍5.0.0 FHIR Std.
Composition.attester:legalAuthenticator.​mode Base preferred Composition Attestation Mode 📍5.0.0 FHIR Std.
Composition.attester:authenticator.​mode Base preferred Composition Attestation Mode 📍5.0.0 FHIR Std.
Composition.relatesTo:documentPreviousVersion.​type Base required RelatedArtifactType 📍5.0.0 FHIR Std.
Composition.event.detail Base example v3 Code System ActCode 📦3.0.0 THO v6.5
Composition.event.detail.​concept.coding:icd9PLCode Base required Kod usługi medycznej wg ICD-9-PL 📦0.1.3 This IG

Constraints

Id Grade Path(s) Description Expression
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().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-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 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)

Path Status Usage ValueSet Version Source
Composition.language Base required Język dokumentu medycznego (Language) 📦0.1.3 This IG
Composition.type.coding:loincDocumentType.​code Base required FHIR Document Type Codes 📦5.0.0 FHIR Std.
Composition.type.coding:p1DocumentType.​code Base required Typ dokumentu medycznego wg P1 (PL) 📦0.1.3 This IG
Composition.event.detail.​concept.coding:icd9PLCode Base required Kod usługi medycznej wg ICD-9-PL 📦0.1.3 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

Path Status Usage ValueSet Version Source
Composition.language Base required Język dokumentu medycznego (Language) 📦0.1.3 This IG
Composition.identifier.​use Base required IdentifierUse 📍5.0.0 FHIR Std.
Composition.identifier.​type Base extensible Identifier Type Codes 📍5.0.0 FHIR Std.
Composition.status Base required Composition Status 📍5.0.0 FHIR Std.
Composition.type Base preferred FHIR Document Type Codes 📍5.0.0 FHIR Std.
Composition.type.coding:loincDocumentType.​code Base required FHIR Document Type Codes 📦5.0.0 FHIR Std.
Composition.type.coding:p1DocumentType.​code Base required Typ dokumentu medycznego wg P1 (PL) 📦0.1.3 This IG
Composition.category Base example Referenced Item Category Value Set 📍5.0.0 FHIR Std.
Composition.attester.​mode Base preferred Composition Attestation Mode 📍5.0.0 FHIR Std.
Composition.attester:legalAuthenticator.​mode Base preferred Composition Attestation Mode 📍5.0.0 FHIR Std.
Composition.attester:authenticator.​mode Base preferred Composition Attestation Mode 📍5.0.0 FHIR Std.
Composition.relatesTo:documentPreviousVersion.​type Base required RelatedArtifactType 📍5.0.0 FHIR Std.
Composition.relatesTo:documentPreviousVersion.​classifier Base example Citation Artifact Classifier 📍5.0.0 FHIR Std.
Composition.relatesTo:documentPreviousVersion.​publicationStatus Base required PublicationStatus 📍5.0.0 FHIR Std.
Composition.event.detail Base example v3 Code System ActCode 📦3.0.0 THO v6.5
Composition.event.detail.​concept.coding:icd9PLCode Base required Kod usługi medycznej wg ICD-9-PL 📦0.1.3 This IG
Composition.section.​code Base example Document Section Codes 📍5.0.0 FHIR Std.
Composition.section.​orderedBy Base preferred List Order Codes 📍5.0.0 FHIR Std.
Composition.section.​emptyReason Base preferred List Empty Reasons 📍5.0.0 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().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-4 error Composition If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error Composition If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Composition A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

This structure is derived from Composition

Summary

Mandatory: 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

Path Status Usage ValueSet Version Source
Composition.language Base required Język dokumentu medycznego (Language) 📦0.1.3 This IG
Composition.identifier.​use Base required IdentifierUse 📍5.0.0 FHIR Std.
Composition.status Base required Composition Status 📍5.0.0 FHIR Std.
Composition.type Base preferred FHIR Document Type Codes 📍5.0.0 FHIR Std.
Composition.type.coding:loincDocumentType.​code Base required FHIR Document Type Codes 📦5.0.0 FHIR Std.
Composition.type.coding:p1DocumentType.​code Base required Typ dokumentu medycznego wg P1 (PL) 📦0.1.3 This IG
Composition.attester.​mode Base preferred Composition Attestation Mode 📍5.0.0 FHIR Std.
Composition.attester:legalAuthenticator.​mode Base preferred Composition Attestation Mode 📍5.0.0 FHIR Std.
Composition.attester:authenticator.​mode Base preferred Composition Attestation Mode 📍5.0.0 FHIR Std.
Composition.relatesTo:documentPreviousVersion.​type Base required RelatedArtifactType 📍5.0.0 FHIR Std.
Composition.event.detail Base example v3 Code System ActCode 📦3.0.0 THO v6.5
Composition.event.detail.​concept.coding:icd9PLCode Base required Kod usługi medycznej wg ICD-9-PL 📦0.1.3 This IG

Constraints

Id Grade Path(s) Description Expression
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().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-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 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)

Path Status Usage ValueSet Version Source
Composition.language Base required Język dokumentu medycznego (Language) 📦0.1.3 This IG
Composition.type.coding:loincDocumentType.​code Base required FHIR Document Type Codes 📦5.0.0 FHIR Std.
Composition.type.coding:p1DocumentType.​code Base required Typ dokumentu medycznego wg P1 (PL) 📦0.1.3 This IG
Composition.event.detail.​concept.coding:icd9PLCode Base required Kod usługi medycznej wg ICD-9-PL 📦0.1.3 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

Path Status Usage ValueSet Version Source
Composition.language Base required Język dokumentu medycznego (Language) 📦0.1.3 This IG
Composition.identifier.​use Base required IdentifierUse 📍5.0.0 FHIR Std.
Composition.identifier.​type Base extensible Identifier Type Codes 📍5.0.0 FHIR Std.
Composition.status Base required Composition Status 📍5.0.0 FHIR Std.
Composition.type Base preferred FHIR Document Type Codes 📍5.0.0 FHIR Std.
Composition.type.coding:loincDocumentType.​code Base required FHIR Document Type Codes 📦5.0.0 FHIR Std.
Composition.type.coding:p1DocumentType.​code Base required Typ dokumentu medycznego wg P1 (PL) 📦0.1.3 This IG
Composition.category Base example Referenced Item Category Value Set 📍5.0.0 FHIR Std.
Composition.attester.​mode Base preferred Composition Attestation Mode 📍5.0.0 FHIR Std.
Composition.attester:legalAuthenticator.​mode Base preferred Composition Attestation Mode 📍5.0.0 FHIR Std.
Composition.attester:authenticator.​mode Base preferred Composition Attestation Mode 📍5.0.0 FHIR Std.
Composition.relatesTo:documentPreviousVersion.​type Base required RelatedArtifactType 📍5.0.0 FHIR Std.
Composition.relatesTo:documentPreviousVersion.​classifier Base example Citation Artifact Classifier 📍5.0.0 FHIR Std.
Composition.relatesTo:documentPreviousVersion.​publicationStatus Base required PublicationStatus 📍5.0.0 FHIR Std.
Composition.event.detail Base example v3 Code System ActCode 📦3.0.0 THO v6.5
Composition.event.detail.​concept.coding:icd9PLCode Base required Kod usługi medycznej wg ICD-9-PL 📦0.1.3 This IG
Composition.section.​code Base example Document Section Codes 📍5.0.0 FHIR Std.
Composition.section.​orderedBy Base preferred List Order Codes 📍5.0.0 FHIR Std.
Composition.section.​emptyReason Base preferred List Empty Reasons 📍5.0.0 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().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-4 error Composition If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error Composition If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Composition A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

This structure is derived from Composition

Summary

Mandatory: 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