eMediplan CHMED16AF Implementation Guide:

StructureDefinition: chmed16af-pmc-composition

Formal Views of Profile Content

The official URL for this profile is:

http://chmed16af.emediplan.ch/fhir/StructureDefinition/chmed16af-pmc-composition

Profile for the Composition Resource of the Poly Medication Check.

This profile builds on Composition.

This profile was published on Tue Jun 11 11:36:31 CEST 2019 as a draft by IG eMediplan.

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

This structure is derived from Composition

Summary

Mandatory: 11 elements (5 nested mandatory elements)
Fixed Value: 8 elements
Prohibited: 5 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 Composition.section is sliced based on the value of value:code.coding.code (ordered, Closed)
  • The element Composition.section.entry is sliced based on the value of profile:resolve()

This structure is derived from Composition

NameFlagsCard.TypeDescription & Constraintsdoco
.. Composition 1..1
... extension 0..*ExtensionSlice: Unordered, Open by value:url
... chmed16af-privatefield 0..*(Complex)Private fields for patient
URL: http://chmed16af.emediplan.ch/fhir/StructureDefinition/chmed16af-privatefield
... identifier 1..1IdentifierLogical identifier for document (GUID)
... type 1..1CodeableConcept
.... coding 0..*Coding
..... system 0..1uriFixed Value: http://emediplan.ch/chmed16af/doc
..... code 0..1codeFixed Value: PMC
... subject 1..1Reference(Patient PolyMedicationCheck or Prescription)Reference to the Patient
... encounter 0..0
... date 1..1dateTimeComposition editing time
... author 1..1Reference(Practitioner)Author (Gln if available, otherwise name)
... title 1..1stringHuman Readable name/title
... confidentiality ?!0..0
... attester 0..1BackboneElementAttests to accuracy of composition
.... time 0..1dateTimevalidate date: Date of validation
.... party 0..1Reference(Practitioner)Who attested the composition
... custodian 0..0
... relatesTo I0..0
... event I0..0
... section BackboneElementSlice: Ordered, Closed by value:code.coding.code
... section 1..1BackboneElement
.... code 1..1CodeableConcept
..... coding 1..1Coding
...... system 1..1uriFixed Value: http://loinc.org
...... code 1..1codeFixed Value: 77604-7
...... display 1..1stringFixed Value: History of medication use
.... entry 0..*Reference()A reference to data that supports this section
... section 0..1BackboneElement
.... code 1..1CodeableConcept
..... coding 1..1Coding
...... system 1..1uriFixed Value: http://loinc.org
...... code 1..1codeFixed Value: 61357-0
...... display 1..1stringFixed Value: MEDICATION PHARMACEUTICAL ADVICE.BRIEF
.... entry Reference(Resource)Slice: Unordered, Open by profile:resolve()
.... entry 0..1Reference(QuestionnaireResponse PolyMedicationCheck)Questionnaireresponse

doco Documentation for this format

This structure is derived from Composition

NameFlagsCard.TypeDescription & Constraintsdoco
.. Composition I1..1A set of resources composed into a single coherent clinical statement with clinical attestation
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: CommonLanguages (preferred)
Max Binding: AllLanguages
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
... chmed16af-privatefield 0..*(Complex)Private fields for patient
URL: http://chmed16af.emediplan.ch/fhir/StructureDefinition/chmed16af-privatefield
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier Σ1..1IdentifierLogical identifier for document (GUID)
... status ?!Σ1..1codepreliminary | final | amended | entered-in-error
Binding: CompositionStatus (required)
... type Σ1..1CodeableConceptKind of composition (LOINC if possible)
Binding: FHIRDocumentTypeCodes (preferred)
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... coding Σ0..*CodingCode defined by a terminology system
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
..... system Σ0..1uriIdentity of the terminology system
Fixed Value: http://emediplan.ch/chmed16af/doc
..... version Σ0..1stringVersion of the system - if relevant
..... code Σ0..1codeSymbol in syntax defined by the system
Fixed Value: PMC
..... display Σ0..1stringRepresentation defined by the system
..... userSelected Σ0..1booleanIf this coding was chosen directly by the user
.... text Σ0..1stringPlain text representation of the concept
... category Σ0..*CodeableConceptCategorization of Composition
Binding: DocumentClassValueSet (example)
... subject Σ1..1Reference(Patient PolyMedicationCheck or Prescription)Reference to the Patient
... date Σ1..1dateTimeComposition editing time
... author Σ1..1Reference(Practitioner)Author (Gln if available, otherwise name)
... title Σ1..1stringHuman Readable name/title
... attester I0..1BackboneElementAttests to accuracy of composition
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... mode 1..1codepersonal | professional | legal | official
Binding: CompositionAttestationMode (required)
.... time 0..1dateTimevalidate date: Date of validation
.... party 0..1Reference(Practitioner)Who attested the composition
... section IBackboneElementComposition is broken into sections
Slice: Ordered, Closed by value:code.coding.code
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... title 0..1stringLabel for section (e.g. for ToC)
.... code 0..1CodeableConceptClassification of section (recommended)
Binding: DocumentSectionCodes (example)
.... author 0..*Reference(Practitioner | PractitionerRole | Device | Patient | RelatedPerson | Organization)Who and/or what authored the section
.... focus 0..1Reference(Resource)Who/what the section is about, when it is not about the subject of composition
.... text I0..1NarrativeText summary of the section, for human interpretation
.... mode 0..1codeworking | snapshot | changes
Binding: ListMode (required)
.... orderedBy 0..1CodeableConceptOrder of section entries
Binding: ListOrderCodes (preferred)
.... entry I0..*Reference(Resource)A reference to data that supports this section
.... emptyReason I0..1CodeableConceptWhy the section is empty
Binding: ListEmptyReasons (preferred)
.... section I0..*Unknown reference to #Composition.section
Nested Section
... section I1..1BackboneElementComposition is broken into sections
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... title 0..1stringLabel for section (e.g. for ToC)
.... code 1..1CodeableConceptClassification of section (recommended)
Binding: DocumentSectionCodes (example)
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
..... coding Σ1..1CodingCode defined by a terminology system
...... id 0..1stringUnique id for inter-element referencing
...... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
...... system Σ1..1uriIdentity of the terminology system
Fixed Value: http://loinc.org
...... version Σ0..1stringVersion of the system - if relevant
...... code Σ1..1codeSymbol in syntax defined by the system
Fixed Value: 77604-7
...... display Σ1..1stringRepresentation defined by the system
Fixed Value: History of medication use
...... userSelected Σ0..1booleanIf this coding was chosen directly by the user
..... text Σ0..1stringPlain text representation of the concept
.... author 0..*Reference(Practitioner | PractitionerRole | Device | Patient | RelatedPerson | Organization)Who and/or what authored the section
.... focus 0..1Reference(Resource)Who/what the section is about, when it is not about the subject of composition
.... text I0..1NarrativeText summary of the section, for human interpretation
.... mode 0..1codeworking | snapshot | changes
Binding: ListMode (required)
.... orderedBy 0..1CodeableConceptOrder of section entries
Binding: ListOrderCodes (preferred)
.... entry I0..*Reference()A reference to data that supports this section
.... emptyReason I0..1CodeableConceptWhy the section is empty
Binding: ListEmptyReasons (preferred)
.... section I0..*Unknown reference to #Composition.section:sectionmed
Nested Section
... section I0..1BackboneElementComposition is broken into sections
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... title 0..1stringLabel for section (e.g. for ToC)
.... code 1..1CodeableConceptClassification of section (recommended)
Binding: DocumentSectionCodes (example)
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
..... coding Σ1..1CodingCode defined by a terminology system
...... id 0..1stringUnique id for inter-element referencing
...... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
...... system Σ1..1uriIdentity of the terminology system
Fixed Value: http://loinc.org
...... version Σ0..1stringVersion of the system - if relevant
...... code Σ1..1codeSymbol in syntax defined by the system
Fixed Value: 61357-0
...... display Σ1..1stringRepresentation defined by the system
Fixed Value: MEDICATION PHARMACEUTICAL ADVICE.BRIEF
...... userSelected Σ0..1booleanIf this coding was chosen directly by the user
..... text Σ0..1stringPlain text representation of the concept
.... author 0..*Reference(Practitioner | PractitionerRole | Device | Patient | RelatedPerson | Organization)Who and/or what authored the section
.... focus 0..1Reference(Resource)Who/what the section is about, when it is not about the subject of composition
.... text I0..1NarrativeText summary of the section, for human interpretation
.... mode 0..1codeworking | snapshot | changes
Binding: ListMode (required)
.... orderedBy 0..1CodeableConceptOrder of section entries
Binding: ListOrderCodes (preferred)
.... entry IReference(Resource)A reference to data that supports this section
Slice: Unordered, Open by profile:resolve()
.... entry I0..1Reference(QuestionnaireResponse PolyMedicationCheck)Questionnaireresponse
.... emptyReason I0..1CodeableConceptWhy the section is empty
Binding: ListEmptyReasons (preferred)
.... section I0..*Unknown reference to #Composition.section:recommendation
Nested Section

doco Documentation for this format

This structure is derived from Composition

Summary

Mandatory: 11 elements (5 nested mandatory elements)
Fixed Value: 8 elements
Prohibited: 5 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 Composition.section is sliced based on the value of value:code.coding.code (ordered, Closed)
  • The element Composition.section.entry is sliced based on the value of profile:resolve()

Differential View

This structure is derived from Composition

NameFlagsCard.TypeDescription & Constraintsdoco
.. Composition 1..1
... extension 0..*ExtensionSlice: Unordered, Open by value:url
... chmed16af-privatefield 0..*(Complex)Private fields for patient
URL: http://chmed16af.emediplan.ch/fhir/StructureDefinition/chmed16af-privatefield
... identifier 1..1IdentifierLogical identifier for document (GUID)
... type 1..1CodeableConcept
.... coding 0..*Coding
..... system 0..1uriFixed Value: http://emediplan.ch/chmed16af/doc
..... code 0..1codeFixed Value: PMC
... subject 1..1Reference(Patient PolyMedicationCheck or Prescription)Reference to the Patient
... encounter 0..0
... date 1..1dateTimeComposition editing time
... author 1..1Reference(Practitioner)Author (Gln if available, otherwise name)
... title 1..1stringHuman Readable name/title
... confidentiality ?!0..0
... attester 0..1BackboneElementAttests to accuracy of composition
.... time 0..1dateTimevalidate date: Date of validation
.... party 0..1Reference(Practitioner)Who attested the composition
... custodian 0..0
... relatesTo I0..0
... event I0..0
... section BackboneElementSlice: Ordered, Closed by value:code.coding.code
... section 1..1BackboneElement
.... code 1..1CodeableConcept
..... coding 1..1Coding
...... system 1..1uriFixed Value: http://loinc.org
...... code 1..1codeFixed Value: 77604-7
...... display 1..1stringFixed Value: History of medication use
.... entry 0..*Reference()A reference to data that supports this section
... section 0..1BackboneElement
.... code 1..1CodeableConcept
..... coding 1..1Coding
...... system 1..1uriFixed Value: http://loinc.org
...... code 1..1codeFixed Value: 61357-0
...... display 1..1stringFixed Value: MEDICATION PHARMACEUTICAL ADVICE.BRIEF
.... entry Reference(Resource)Slice: Unordered, Open by profile:resolve()
.... entry 0..1Reference(QuestionnaireResponse PolyMedicationCheck)Questionnaireresponse

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Composition I1..1A set of resources composed into a single coherent clinical statement with clinical attestation
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: CommonLanguages (preferred)
Max Binding: AllLanguages
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
... chmed16af-privatefield 0..*(Complex)Private fields for patient
URL: http://chmed16af.emediplan.ch/fhir/StructureDefinition/chmed16af-privatefield
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier Σ1..1IdentifierLogical identifier for document (GUID)
... status ?!Σ1..1codepreliminary | final | amended | entered-in-error
Binding: CompositionStatus (required)
... type Σ1..1CodeableConceptKind of composition (LOINC if possible)
Binding: FHIRDocumentTypeCodes (preferred)
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... coding Σ0..*CodingCode defined by a terminology system
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
..... system Σ0..1uriIdentity of the terminology system
Fixed Value: http://emediplan.ch/chmed16af/doc
..... version Σ0..1stringVersion of the system - if relevant
..... code Σ0..1codeSymbol in syntax defined by the system
Fixed Value: PMC
..... display Σ0..1stringRepresentation defined by the system
..... userSelected Σ0..1booleanIf this coding was chosen directly by the user
.... text Σ0..1stringPlain text representation of the concept
... category Σ0..*CodeableConceptCategorization of Composition
Binding: DocumentClassValueSet (example)
... subject Σ1..1Reference(Patient PolyMedicationCheck or Prescription)Reference to the Patient
... date Σ1..1dateTimeComposition editing time
... author Σ1..1Reference(Practitioner)Author (Gln if available, otherwise name)
... title Σ1..1stringHuman Readable name/title
... attester I0..1BackboneElementAttests to accuracy of composition
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... mode 1..1codepersonal | professional | legal | official
Binding: CompositionAttestationMode (required)
.... time 0..1dateTimevalidate date: Date of validation
.... party 0..1Reference(Practitioner)Who attested the composition
... section IBackboneElementComposition is broken into sections
Slice: Ordered, Closed by value:code.coding.code
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... title 0..1stringLabel for section (e.g. for ToC)
.... code 0..1CodeableConceptClassification of section (recommended)
Binding: DocumentSectionCodes (example)
.... author 0..*Reference(Practitioner | PractitionerRole | Device | Patient | RelatedPerson | Organization)Who and/or what authored the section
.... focus 0..1Reference(Resource)Who/what the section is about, when it is not about the subject of composition
.... text I0..1NarrativeText summary of the section, for human interpretation
.... mode 0..1codeworking | snapshot | changes
Binding: ListMode (required)
.... orderedBy 0..1CodeableConceptOrder of section entries
Binding: ListOrderCodes (preferred)
.... entry I0..*Reference(Resource)A reference to data that supports this section
.... emptyReason I0..1CodeableConceptWhy the section is empty
Binding: ListEmptyReasons (preferred)
.... section I0..*Unknown reference to #Composition.section
Nested Section
... section I1..1BackboneElementComposition is broken into sections
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... title 0..1stringLabel for section (e.g. for ToC)
.... code 1..1CodeableConceptClassification of section (recommended)
Binding: DocumentSectionCodes (example)
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
..... coding Σ1..1CodingCode defined by a terminology system
...... id 0..1stringUnique id for inter-element referencing
...... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
...... system Σ1..1uriIdentity of the terminology system
Fixed Value: http://loinc.org
...... version Σ0..1stringVersion of the system - if relevant
...... code Σ1..1codeSymbol in syntax defined by the system
Fixed Value: 77604-7
...... display Σ1..1stringRepresentation defined by the system
Fixed Value: History of medication use
...... userSelected Σ0..1booleanIf this coding was chosen directly by the user
..... text Σ0..1stringPlain text representation of the concept
.... author 0..*Reference(Practitioner | PractitionerRole | Device | Patient | RelatedPerson | Organization)Who and/or what authored the section
.... focus 0..1Reference(Resource)Who/what the section is about, when it is not about the subject of composition
.... text I0..1NarrativeText summary of the section, for human interpretation
.... mode 0..1codeworking | snapshot | changes
Binding: ListMode (required)
.... orderedBy 0..1CodeableConceptOrder of section entries
Binding: ListOrderCodes (preferred)
.... entry I0..*Reference()A reference to data that supports this section
.... emptyReason I0..1CodeableConceptWhy the section is empty
Binding: ListEmptyReasons (preferred)
.... section I0..*Unknown reference to #Composition.section:sectionmed
Nested Section
... section I0..1BackboneElementComposition is broken into sections
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... title 0..1stringLabel for section (e.g. for ToC)
.... code 1..1CodeableConceptClassification of section (recommended)
Binding: DocumentSectionCodes (example)
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
..... coding Σ1..1CodingCode defined by a terminology system
...... id 0..1stringUnique id for inter-element referencing
...... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
...... system Σ1..1uriIdentity of the terminology system
Fixed Value: http://loinc.org
...... version Σ0..1stringVersion of the system - if relevant
...... code Σ1..1codeSymbol in syntax defined by the system
Fixed Value: 61357-0
...... display Σ1..1stringRepresentation defined by the system
Fixed Value: MEDICATION PHARMACEUTICAL ADVICE.BRIEF
...... userSelected Σ0..1booleanIf this coding was chosen directly by the user
..... text Σ0..1stringPlain text representation of the concept
.... author 0..*Reference(Practitioner | PractitionerRole | Device | Patient | RelatedPerson | Organization)Who and/or what authored the section
.... focus 0..1Reference(Resource)Who/what the section is about, when it is not about the subject of composition
.... text I0..1NarrativeText summary of the section, for human interpretation
.... mode 0..1codeworking | snapshot | changes
Binding: ListMode (required)
.... orderedBy 0..1CodeableConceptOrder of section entries
Binding: ListOrderCodes (preferred)
.... entry IReference(Resource)A reference to data that supports this section
Slice: Unordered, Open by profile:resolve()
.... entry I0..1Reference(QuestionnaireResponse PolyMedicationCheck)Questionnaireresponse
.... emptyReason I0..1CodeableConceptWhy the section is empty
Binding: ListEmptyReasons (preferred)
.... section I0..*Unknown reference to #Composition.section:recommendation
Nested Section

doco Documentation for this format

 

Constraints

IdPathDetailsRequirements
dom-2CompositionIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-4CompositionIf 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-3CompositionIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-6CompositionA resource should have narrative for robust management
: text.div.exists()
dom-5CompositionIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
ele-1Composition.attesterAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Composition.sectionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
cmp-1Composition.sectionA section must contain at least one of text, entries, or sub-sections
: text.exists() or entry.exists() or section.exists()
cmp-2Composition.sectionA section can only have an emptyReason if it is empty
: emptyReason.empty() or entry.empty()
ele-1Composition.sectionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
cmp-1Composition.sectionA section must contain at least one of text, entries, or sub-sections
: text.exists() or entry.exists() or section.exists()
cmp-2Composition.sectionA section can only have an emptyReason if it is empty
: emptyReason.empty() or entry.empty()
ele-1Composition.sectionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
cmp-1Composition.sectionA section must contain at least one of text, entries, or sub-sections
: text.exists() or entry.exists() or section.exists()
cmp-2Composition.sectionA section can only have an emptyReason if it is empty
: emptyReason.empty() or entry.empty()
.