cz-composition-obl-lab
type: StructureDefinition
node role: treeRoot
id:
  v: cz-composition-obl-lab
language:
  v: en
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition cz-composition-obl-lab Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> Composition 0..* CZ_CompositionLabReport Laboratory Report composition This profile also imposes the profile Composition: Laboratory Report #xD; meta O 0..1 Meta Metadata about the resource Obligations Actor SHALL:able-to-populate Creator_L1 SHALL:display Consumer_L1 SHALL:able-to-populate Creator_L2 SHALL:able-to-populate Creator_L3 SHALL:display Consumer_L2 SHALL:display Consumer_L3 #xD; language O 1..1 code Language of the resource content Obligations Actor SHALL:populate-if-known Creator_L1 SHALL:able-to-populate Creator_L2 SHALL:able-to-populate Creator_L3 #xD; text O 0..1 Narrative Narrative text Obligations Actor SHALL:able-to-populate Creator_L1 SHALL:display Consumer_L1 SHALL:able-to-populate Creator_L2 SHALL:able-to-populate Creator_L3 SHALL:display Consumer_L2 SHALL:display Consumer_L3 #xD; Slices for extension Content/Rules for all slices #xD; extension:versionNumber O 0..* versionNumber(4.0.1) Version-specific identifier for composition Obligations Actor SHALL:able-to-populate Creator_L1 SHALL:display Consumer_L1 SHALL:able-to-populate Creator_L2 SHALL:able-to-populate Creator_L3 SHALL:display Consumer_L2 SHALL:display Consumer_L3 #xD; status O 1..1 code Status of the Report Obligations Actor SHALL:able-to-populate Creator_L1 SHALL:display Consumer_L1 SHALL:able-to-populate Creator_L2 SHALL:able-to-populate Creator_L3 SHALL:display Consumer_L2 SHALL:display Consumer_L3 #xD; type O 1..1 CodeableConceptIPS(2.0.0) Type of (Laboratory) Report Obligations Actor SHALL:able-to-populate Creator_L1 SHALL:display Consumer_L1 SHALL:able-to-populate Creator_L2 SHALL:able-to-populate Creator_L3 SHALL:display Consumer_L2 SHALL:display Consumer_L3 #xD; category O 0..* CodeableConceptIPS(2.0.0) Report Category Obligations Actor SHALL:able-to-populate Creator_L1 SHALL:display Consumer_L1 SHALL:a…
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-imposeProfile
    l: structuredefinition-imposeProfile
  value: Canonical
    v: http://hl7.eu/fhir/laboratory/StructureDefinition/Composition-eu-lab
    l: Composition-eu-lab
url:
  v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  l: cz-composition-obl-lab
version:
  v: 0.5.0
name:
  v: CZ_CompositionObligationsLab
title:
  v: Composition: Obligations
status:
  v: draft
date:
  v: 2026-04-17T07:16:30+00:00
publisher:
  v: HL7 Czech Republic
contact:
  name:
    v: HL7 Czech Republic
  telecom:
    system:
      v: url
    value:
      v: https://hl7.cz
description:
  v: This profile defines obligations for a composition in FHIR for the purpose of this guide.
jurisdiction:
  coding:
    system:
      v: urn:iso:std:iso:3166
      l: 3166
    code:
      v: CZ
    display:
      v: Czechia
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: workflow
  uri:
    v: http://hl7.org/fhir/workflow
    l: workflow
  name:
    v: Workflow Pattern
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
    l: v3
  name:
    v: RIM Mapping
mapping:
  identity:
    v: cda
  uri:
    v: http://hl7.org/v3/cda
    l: cda
  name:
    v: CDA (R2)
mapping:
  identity:
    v: fhirdocumentreference
  uri:
    v: http://hl7.org/fhir/documentreference
    l: documentreference
  name:
    v: FHIR DocumentReference
mapping:
  identity:
    v: w5
  uri:
    v: http://hl7.org/fhir/fivews
    l: fivews
  name:
    v: FiveWs Pattern Mapping
kind:
  v: resource
abstract:
  v: false
type:
  v: Composition
  l: Composition
base definition:
  v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-lab-report
  l: cz-composition-lab-report
derivation:
  v: constraint
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
      l: snapshot-base-version
    value: String
      v: 0.5.0
  element:
    id:
      v: Composition
    path:
      v: Composition
    short:
      v: Laboratory Report composition
    definition:
      v: Laboratory Report composition. A composition is a set of healthcare-related information that is assembled together into a single logical document that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. While a Composition defines the structure, it does not actually contain the content: rather the full content of a document is contained in a Bundle, of which the Composition is the first resource contained.
    comment:
      v: While the focus of this specification is on patient-specific clinical statements, this resource can also apply to other healthcare-related statements such as study protocol designs, healthcare invoices and other activities that are not necessarily patient-specific or clinical.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Composition
      min:
        v: 0
      max:
        v: *
    constraint:
      key:
        v: dom-2
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL NOT contain nested Resources
      expression:
        v: contained.contained.empty()
      xpath:
        v: not(parent::f:contained and f:contained)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-3
      severity:
        v: error
      human:
        v: 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
      expression:
        v: 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()
      xpath:
        v: not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-4
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
      expression:
        v: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-5
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a security label
      expression:
        v: contained.meta.security.empty()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:security))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      extension:
        value: Boolean
      extension:
        value: Markdown
      key:
        v: dom-6
      severity:
        v: warning
      human:
        v: A resource should have narrative for robust management
      expression:
        v: text.`div`.exists()

Boolean
v: true

Markdown
v: When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time.

v: exists(f:text/h:div)

v: false

v: false

identity:
  v: rim
map:
  v: Entity. Role, or Act

identity:
  v: workflow
map:
  v: Event

identity:
  v: rim
map:
  v: Document[classCode="DOC" and moodCode="EVN" and isNormalAct()]

identity:
  v: cda
map:
  v: ClinicalDocument

identity:
  v: fhirdocumentreference
map:
  v: when described by DocumentReference

id:
  v: Composition.id
path:
  v: Composition.id
short:
  v: Logical id of this artifact
definition:
  v: The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
comment:
  v: The only time that a resource does not have an id is when it is being submitted to the server using a create operation.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: id
      l: id
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: true

id:
  v: Composition.meta
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L1
      l: actor-creator-L1
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L1
      l: actor-consumer-L1
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L2
      l: actor-creator-L2
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L3
      l: actor-creator-L3
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L2
      l: actor-consumer-L2
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L3
      l: actor-consumer-L3
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Composition.meta
short:
  v: Metadata about the resource
definition:
  v: The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.meta
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Meta
    l: Meta
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: Composition.implicitRules
path:
  v: Composition.implicitRules
short:
  v: A set of rules under which this content was created
definition:
  v: A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
comment:
  v: Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.implicitRules
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: true
is modifier reason:
  v: This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation
is summary:
  v: true

id:
  v: Composition.language
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate-if-known
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L1
      l: actor-creator-L1
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L2
      l: actor-creator-L2
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L3
      l: actor-creator-L3
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Composition.language
short:
  v: Language of the resource content
definition:
  v: The base language in which the resource is written.
comment:
  v: Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Resource.language
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
      l: elementdefinition-maxValueSet
    value: Canonical
      v: http://hl7.org/fhir/ValueSet/all-languages
      l: all-languages
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: Language
  strength:
    v: preferred
  description:
    v: A human language.
  value set:
    v: http://hl7.org/fhir/ValueSet/languages|4.0.1
    l: http://hl7.org/fhir/ValueSet/languages

id:
  v: Composition.text
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L1
      l: actor-creator-L1
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L1
      l: actor-consumer-L1
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L2
      l: actor-creator-L2
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L3
      l: actor-creator-L3
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L2
      l: actor-consumer-L2
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L3
      l: actor-consumer-L3
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Composition.text
short:
  v: Narrative text
definition:
  v: A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.
comment:
  v: Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a "text blob" or where text is additionally entered raw or narrated and encoded information is added later.
alias:
  v: narrative
alias:
  v: html
alias:
  v: xhtml
alias:
  v: display
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Narrative
    l: Narrative
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: Act.text?

id:
  v: Composition.contained
path:
  v: Composition.contained
short:
  v: Contained, inline Resources
definition:
  v: These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
comment:
  v: This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.
alias:
  v: inline resources
alias:
  v: anonymous resources
alias:
  v: contained resources
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.contained
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Resource
    l: Resource
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Composition.extension
path:
  v: Composition.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: Composition.extension:versionNumber
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L1
      l: actor-creator-L1
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L1
      l: actor-consumer-L1
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L2
      l: actor-creator-L2
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L3
      l: actor-creator-L3
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L2
      l: actor-consumer-L2
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L3
      l: actor-consumer-L3
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Composition.extension
slice name:
  v: versionNumber
short:
  v: Version-specific identifier for composition
definition:
  v: Version specific identifier for the composition, assigned when each version is created/updated.
comment:
  v: While each resource, including the composition itself, has its own version identifier, this is a formal identifier for the logical version of the composition as a whole. It would remain constant if the resources were moved to a new server, and all got new individual resource versions, for example.
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/StructureDefinition/composition-clinicaldocument-versionNumber|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/composition-clinicaldocument-versionNumber
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])

v: false

id:
  v: Composition.extension:basedOn-order-or-requisition
path:
  v: Composition.extension
slice name:
  v: basedOn-order-or-requisition
short:
  v: Composition: Based On Order
definition:
  v: This extension provides a link to the order [(Reference(ServiceRequest)] or requisition [ServiceRequest.requisition (i.e., 'Request.groupIdentifier')] that this report document is based on and fulfills.
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.eu/fhir/StructureDefinition/composition-basedOn-order-or-requisition|1.2.0
    l: http://hl7.eu/fhir/StructureDefinition/composition-basedOn-order-or-requisition
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: Composition.extension:basedOn-order-or-requisition.id
path:
  v: Composition.extension.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: id
      l: id
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Composition.extension:basedOn-order-or-requisition.extension
path:
  v: Composition.extension.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: 0
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: Composition.extension:basedOn-order-or-requisition.url
path:
  v: Composition.extension.url
representation:
  v: xmlAttr
short:
  v: identifies the meaning of the extension
definition:
  v: Source of the definition for the extension code - a logical name or a URL.
comment:
  v: The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Extension.url
  min:
    v: 1
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: uri
      l: uri
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
fixed: Uri
  v: http://hl7.eu/fhir/StructureDefinition/composition-basedOn-order-or-requisition
  l: composition-basedOn-order-or-requisition
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Composition.extension:basedOn-order-or-requisition.value[x]
path:
  v: Composition.extension.value[x]
slicing:
  discriminator:
    type:
      v: type
    path:
      v: $this
  ordered:
    v: false
  rules:
    v: open
short:
  v: Value of extension
definition:
  v: Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R5/extensibility.html) for a list).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Extension.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ServiceRequest
    l: ServiceRequest
condition:
  v: ext-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Composition.extension:basedOn-order-or-requisition.value[x]:valueReference
path:
  v: Composition.extension.value[x]
slice name:
  v: valueReference
short:
  v: Value of extension
definition:
  v: Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R5/extensibility.html) for a list).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Extension.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://hl7.cz/fhir/lab/StructureDefinition/cz-service-request-lab
    l: cz-service-request-lab
condition:
  v: ext-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Composition.extension:information-recipient
path:
  v: Composition.extension
slice name:
  v: information-recipient
short:
  v: Information recipient
definition:
  v: This extension applies to the Composition resource and is used to represent an intended recipient of the composition.
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.eu/fhir/StructureDefinition/information-recipient|1.2.0
    l: http://hl7.eu/fhir/StructureDefinition/information-recipient
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: Composition.extension:information-recipient.id
path:
  v: Composition.extension.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Composition.extension:information-recipient.extension
path:
  v: Composition.extension.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: 0
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: Composition.extension:information-recipient.url
path:
  v: Composition.extension.url
representation:
  v: xmlAttr
short:
  v: identifies the meaning of the extension
definition:
  v: Source of the definition for the extension code - a logical name or a URL.
comment:
  v: The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Extension.url
  min:
    v: 1
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: uri
      l: uri
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
fixed: Uri
  v: http://hl7.eu/fhir/StructureDefinition/information-recipient
  l: information-recipient
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Composition.extension:information-recipient.value[x]
path:
  v: Composition.extension.value[x]
short:
  v: Value of extension
definition:
  v: Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Extension.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-practitioner-core
    l: cz-practitioner-core
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-device-observer
    l: cz-device-observer
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-patient-core
    l: cz-patient-core
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-relatedPerson-core
    l: cz-relatedPerson-core
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-practitionerrole-core
    l: cz-practitionerrole-core
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-organization-core
    l: cz-organization-core
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Composition.extension:diagnosticReport-reference
path:
  v: Composition.extension
slice name:
  v: diagnosticReport-reference
short:
  v: Document DiagnosticReport Reference
definition:
  v: This extension provides a reference to the DiagnosticReport instance that is associated with this Composition.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.eu/fhir/extensions/StructureDefinition/composition-diagnosticReportReference|1.2.0
    l: http://hl7.eu/fhir/extensions/StructureDefinition/composition-diagnosticReportReference
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: Composition.extension:diagnosticReport-reference.id
path:
  v: Composition.extension.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: id
      l: id
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Composition.extension:diagnosticReport-reference.extension
path:
  v: Composition.extension.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: 0
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: Composition.extension:diagnosticReport-reference.url
path:
  v: Composition.extension.url
representation:
  v: xmlAttr
short:
  v: identifies the meaning of the extension
definition:
  v: Source of the definition for the extension code - a logical name or a URL.
comment:
  v: The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Extension.url
  min:
    v: 1
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: uri
      l: uri
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
fixed: Uri
  v: http://hl7.eu/fhir/extensions/StructureDefinition/composition-diagnosticReportReference
  l: composition-diagnosticReportReference
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Composition.extension:diagnosticReport-reference.value[x]
path:
  v: Composition.extension.value[x]
short:
  v: Value of extension
definition:
  v: Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R5/extensibility.html) for a list).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Extension.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://hl7.cz/fhir/lab/StructureDefinition/cz-diagnostic-report-lab
    l: cz-diagnostic-report-lab
condition:
  v: ext-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Composition.extension:diagnosticReport-reference.value[x].id
path:
  v: Composition.extension.value[x].id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Composition.extension:diagnosticReport-reference.value[x].extension
path:
  v: Composition.extension.value[x].extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Composition.extension:diagnosticReport-reference.value[x].reference
path:
  v: Composition.extension.value[x].reference
short:
  v: Literal reference, Relative, internal or absolute URL
definition:
  v: A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.
comment:
  v: Added to the FHIR R4 guide to strictly conform with the R4 rules for document bundle resources inclusion. Using this extension implies to accept a circular reference Composition to/from DiagnosticReport
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Reference.reference
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
condition:
  v: ref-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Composition.extension:diagnosticReport-reference.value[x].type
path:
  v: Composition.extension.value[x].type
short:
  v: Type the reference refers to (e.g. "Patient")
definition:
  v: The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent. The type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. "Patient" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).
comment:
  v: This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: FHIRResourceTypeExt
  strength:
    v: extensible
  description:
    v: Aa resource (or, for logical models, the URI of the logical model).
  value set:
    v: http://hl7.org/fhir/ValueSet/resource-types|4.0.1
    l: http://hl7.org/fhir/ValueSet/resource-types
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Composition.extension:diagnosticReport-reference.value[x].identifier
path:
  v: Composition.extension.value[x].identifier
short:
  v: Logical reference, when literal reference is not known
definition:
  v: An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.
comment:
  v: When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it. Reference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .identifier

id:
  v: Composition.extension:diagnosticReport-reference.value[x].display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: Composition.extension.value[x].display
short:
  v: Text alternative for the resource
definition:
  v: Plain text narrative that identifies the resource in addition to the resource reference.
comment:
  v: This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.display
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Composition.modifierExtension
path:
  v: Composition.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Composition.identifier
path:
  v: Composition.identifier
short:
  v: Report identifier
definition:
  v: Identifiers assigned to this Laboratory Report by the performer or other systems. It shall be common to several report versions
comment:
  v: Composition.identifier SHALL be equal to one of the DiagnosticReport.identifier, if at least one exists
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.identifier
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.identifier
mapping:
  identity:
    v: rim
  map:
    v: Document.id / Document.setId
mapping:
  identity:
    v: cda
  map:
    v: .setId
mapping:
  identity:
    v: fhirdocumentreference
  map:
    v: DocumentReference.masterIdentifier

id:
  v: Composition.status
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L1
      l: actor-creator-L1
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L1
      l: actor-consumer-L1
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L2
      l: actor-creator-L2
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L3
      l: actor-creator-L3
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L2
      l: actor-consumer-L2
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L3
      l: actor-consumer-L3
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Composition.status
short:
  v: Status of the Report
definition:
  v: The workflow/clinical status of this composition. The status is a marker for the clinical standing of the document.
comment:
  v: DiagnosticReport.status and Composition.status shall be aligned, based on the http://hl7.eu/fhir/laboratory/ConceptMap/ConceptMap-eu-diagRptStatus2CompStatus mapping
requirements:
  v: Need to be able to mark interim, amended, or withdrawn compositions or documents.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Composition.status
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: true
is modifier reason:
  v: This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: CompositionStatus
  strength:
    v: required
  description:
    v: The workflow/clinical status of the composition.

identity:
  v: workflow
map:
  v: Event.status

identity:
  v: w5
map:
  v: FiveWs.status

identity:
  v: rim
map:
  v: interim: .completionCode="IN" & ./statusCode[isNormalDatatype()]="active"; final: .completionCode="AU" && ./statusCode[isNormalDatatype()]="complete" and not(./inboundRelationship[typeCode="SUBJ" and isNormalActRelationship()]/source[subsumesCode("ActClass#CACT") and moodCode="EVN" and domainMember("ReviseComposition", code) and isNormalAct()]); amended: .completionCode="AU" && ./statusCode[isNormalDatatype()]="complete" and ./inboundRelationship[typeCode="SUBJ" and isNormalActRelationship()]/source[subsumesCode("ActClass#CACT") and moodCode="EVN" and domainMember("ReviseComposition", code) and isNormalAct() and statusCode="completed"]; withdrawn : .completionCode=NI && ./statusCode[isNormalDatatype()]="obsolete"

identity:
  v: cda
map:
  v: n/a

identity:
  v: fhirdocumentreference
map:
  v: DocumentReference.status

id:
  v: Composition.type
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L1
      l: actor-creator-L1
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L1
      l: actor-consumer-L1
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L2
      l: actor-creator-L2
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L3
      l: actor-creator-L3
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L2
      l: actor-consumer-L2
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L3
      l: actor-consumer-L3
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Composition.type
short:
  v: Type of (Laboratory) Report
definition:
  v: Specifies that it refers to a Laboratory Report
comment:
  v: At least one DiagnosticReport.code.coding and Composition.type.coding SHALL be equal
requirements:
  v: Key metadata element describing the composition, used in searching/filtering.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Composition.type
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips|2.0.0
    l: http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: preferred
  value set:
    v: https://hl7.cz/fhir/lab/ValueSet/cz-lab-report-types-VS
    l: cz-lab-report-types-VS
mapping:
  identity:
    v: workflow

v: Event.code

identity:
  v: w5
map:
  v: FiveWs.class

identity:
  v: rim
map:
  v: ./code

identity:
  v: cda
map:
  v: .code

identity:
  v: fhirdocumentreference
map:
  v: DocumentReference.type

id:
  v: Composition.category
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L1
      l: actor-creator-L1
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L1
      l: actor-consumer-L1
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L2
      l: actor-creator-L2
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L3
      l: actor-creator-L3
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L2
      l: actor-consumer-L2
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L3
      l: actor-consumer-L3
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Composition.category
slicing:
  discriminator:
    type:
      v: pattern
    path:
      v: $this
  rules:
    v: open
short:
  v: Report Category
definition:
  v: A code that classifies this laboratory report. Two basic categories has been selected in this guide: laboratory specialty and Study type. Laboratory specialty is characteristic of the laboratory that produced the test result while Study type is an arbitrary classificion of the test type.
comment:
  v: DiagnosticReport.category and Composition.category shall be aligned
requirements:
  v: Helps humans to assess whether the composition is of interest when viewing an index of compositions or documents.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Composition.category
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips|2.0.0
    l: http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    l: elementdefinition-bindingName
  value: String
    v: DocumentCategory
strength:
  v: example
description:
  v: High-level kind of a clinical document at a macro level.
value set:
  v: http://hl7.org/fhir/ValueSet/document-classcodes|4.0.1
  l: http://hl7.org/fhir/ValueSet/document-classcodes

identity:
  v: workflow
map:
  v: Event.subject

identity:
  v: w5
map:
  v: FiveWs.class

identity:
  v: rim
map:
  v: .outboundRelationship[typeCode="COMP].target[classCode="LIST", moodCode="EVN"].code

identity:
  v: cda
map:
  v: n/a

identity:
  v: fhirdocumentreference
map:
  v: DocumenttReference.category

id:
  v: Composition.category:studyType
path:
  v: Composition.category
slice name:
  v: studyType
short:
  v: The way of grouping of the test results into clinically meaningful domains (e.g. hematology study, microbiology study, etc.)
definition:
  v: Laboratory services, i.e., results of tests performed, could be characterized using typology of services, commonly called study types. Study type could be seen as an attribute or grouping mechanism that assigns a common clinical sense to certain types of laboratory test results., e.g., Hemoglobin, Platelet count, etc. belongs to 'Hematology study'.
comment:
  v: In comparison to the laboratory specialty which is an attribute of laboratory, study type is a categorization of laboratory service. It needs to be mentioned that classification of test to study types in not standardized.
requirements:
  v: Helps humans to assess whether the composition is of interest when viewing an index of compositions or documents.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Composition.category
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: required
  value set:
    v: https://hl7.cz/fhir/lab/ValueSet/cz-lab-study-types-VS
    l: cz-lab-study-types-VS
mapping:
  identity:
    v: workflow
  map:
    v: Event.subject
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode="COMP].target[classCode="LIST", moodCode="EVN"].code
mapping:
  identity:
    v: cda
  map:
    v: n/a
mapping:
  identity:
    v: fhirdocumentreference
  map:
    v: DocumenttReference.category

id:
  v: Composition.category:specialty
path:
  v: Composition.category
slice name:
  v: specialty
short:
  v: The clinical domain of the laboratory performing the observation (e.g. microbiology, toxicology, chemistry)
definition:
  v: Laboratory specialty is an attribute of any laboratory setting representing professional qualification of the laboratory to execute certain kind of laboratory tests.
comment:
  v: Specialty could be used as parameter for searching/querying of laboratory test results.
requirements:
  v: Helps humans to assess whether the composition is of interest when viewing an index of compositions or documents.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Composition.category
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: required
  value set:
    v: https://hl7.cz/fhir/lab/ValueSet/cz-lab-speciality-types-VS
    l: cz-lab-speciality-types-VS
mapping:
  identity:
    v: workflow
  map:
    v: Event.subject
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode="COMP].target[classCode="LIST", moodCode="EVN"].code
mapping:
  identity:
    v: cda
  map:
    v: n/a
mapping:
  identity:
    v: fhirdocumentreference
  map:
    v: DocumenttReference.category

id:
  v: Composition.subject
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L1
      l: actor-creator-L1
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L1
      l: actor-consumer-L1
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L2
      l: actor-creator-L2
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L3
      l: actor-creator-L3
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L2
      l: actor-consumer-L2
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L3
      l: actor-consumer-L3
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Composition.subject
short:
  v: Who and/or what this report is about
definition:
  v: Who or what this report is about. The report can be about a human patient, a living subject, a device (e.g. a machine), a location or even a group of subjects (such as a document about a herd of livestock, or a set of patients that share a common exposure).
comment:
  v: DiagnosticReport and Composition SHALL have the same subject
requirements:
  v: Essential metadata for searching for the composition. Identifies who and/or what the composition/document is about.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Composition.subject
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-patient-core
    l: cz-patient-core
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-patient-animal
    l: cz-patient-animal
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Group
    l: Group
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-location-core
    l: cz-location-core
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Device
    l: Device
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-medical-device
    l: cz-medical-device
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

v: false

v: true

identity:
  v: w5
map:
  v: FiveWs.subject[x]

identity:
  v: rim
map:
  v: .participation[typeCode="SBJ"].role[typeCode="PAT"]

identity:
  v: cda
map:
  v: .recordTarget

identity:
  v: fhirdocumentreference
map:
  v: DocumentReference.subject

identity:
  v: w5
map:
  v: FiveWs.subject

id:
  v: Composition.encounter
path:
  v: Composition.encounter
short:
  v: The healthcare event which this Laboratory Report is about (when test ordered).
definition:
  v: The healthcare event (e.g. a patient and healthcare provider interaction) which this DiagnosticReport is about.
comment:
  v: This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests). DiagnosticReport and Composition SHALL have the same encounter.
requirements:
  v: Provides context for the composition and supports searching.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.encounter
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Encounter
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.context
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.context
mapping:
  identity:
    v: rim
  map:
    v: unique(highest(./outboundRelationship[typeCode="SUBJ" and isNormalActRelationship()], priorityNumber)/target[moodCode="EVN" and classCode=("ENC", "PCPR") and isNormalAct])
mapping:
  identity:
    v: cda
  map:
    v: .componentOf.encompassingEncounter
mapping:
  identity:
    v: fhirdocumentreference
  map:
    v: DocumentReference.context.encounter

id:
  v: Composition.date
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L1
      l: actor-creator-L1
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L1
      l: actor-consumer-L1
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L2
      l: actor-creator-L2
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L3
      l: actor-creator-L3
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L2
      l: actor-consumer-L2
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L3
      l: actor-consumer-L3
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Composition.date
short:
  v: Composition editing time
definition:
  v: The composition editing time, when the composition was last logically changed by the author.
comment:
  v: The Last Modified Date on the composition may be after the date of the document was attested without being changed.
requirements:
  v: dateTime is used for tracking, organizing versions and searching. Note that this is the time of *authoring*. When packaged in a document, [Bundle.timestamp](http://hl7.org/fhir/bundle-definitions.html#Bundle.timestamp) is the date of packaging.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Composition.date
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.occurrence[x]
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.done[x]
mapping:
  identity:
    v: rim

v: .effectiveTime[type="TS"]

identity:
  v: cda
map:
  v: .effectiveTime

identity:
  v: fhirdocumentreference
map:
  v: DocumentReference.content.attachment.date, DocumentReference.created

id:
  v: Composition.author
path:
  v: Composition.author
short:
  v: Who and/or what authored the Laboratory Report
definition:
  v: Identifies who is responsible for the information in the Laboratory Report, not necessarily who typed it in.
comment:
  v: If a DiagnosticReport.resultsInterpreter exists this is expected to be a Composition.author; otherwise a DiagnosticReport.performer should be an author.
requirements:
  v: Identifies who is responsible for the content.
min:
  v: 1
max:
  v: *
base:
  path:
    v: Composition.author
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-practitioner-core
    l: cz-practitioner-core
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-practitionerrole-core
    l: cz-practitionerrole-core
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-device-observer
    l: cz-device-observer
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-patient-core
    l: cz-patient-core
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-relatedPerson-core
    l: cz-relatedPerson-core
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-organization-core
    l: cz-organization-core
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.performer
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.author
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode="AUT"].role[classCode="ASSIGNED"]
mapping:
  identity:
    v: cda
  map:
    v: .author.assignedAuthor
mapping:
  identity:
    v: fhirdocumentreference
  map:
    v: DocumentReference.agent

id:
  v: Composition.title
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L1
      l: actor-creator-L1
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L1
      l: actor-consumer-L1
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L2
      l: actor-creator-L2
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L3
      l: actor-creator-L3
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L2
      l: actor-consumer-L2
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L3
      l: actor-consumer-L3
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Composition.title
short:
  v: Laboratory Report
definition:
  v: Official human-readable label for the composition. For this document should be "Laboratory Report" or any equivalent translation
comment:
  v: For many compositions, the title is the same as the text or a display name of Composition.type (e.g. a "consultation" or "progress note"). Note that CDA does not make title mandatory, but there are no known cases where it is useful for title to be omitted, so it is mandatory here. Feedback on this requirement is welcome during the trial use period.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Composition.title
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: ./title
mapping:
  identity:
    v: cda
  map:
    v: .title
mapping:
  identity:
    v: fhirdocumentreference
  map:
    v: DocumentReference.description, DocumentReference.content.attachment.title

id:
  v: Composition.confidentiality
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L1
      l: actor-creator-L1
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L1
      l: actor-consumer-L1
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L2
      l: actor-creator-L2
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L3
      l: actor-creator-L3
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L2
      l: actor-consumer-L2
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L3
      l: actor-consumer-L3
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Composition.confidentiality
short:
  v: As defined by affinity domain
definition:
  v: The code specifying the level of confidentiality of the Composition.
comment:
  v: The exact use of this element, and enforcement and issues related to highly sensitive documents are out of scope for the base specification, and delegated to implementation profiles (see security section). This element is labeled as a modifier because highly confidential documents must not be treated as if they are not.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Composition.confidentiality
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: DocumentConfidentiality
  strength:
    v: required
  description:
    v: Codes specifying the level of confidentiality of the composition.
  value set:
    v: http://terminology.hl7.org/ValueSet/v3-ConfidentialityClassification|2014-03-26
    l: http://terminology.hl7.org/ValueSet/v3-ConfidentialityClassification

identity:
  v: rim
map:
  v: .confidentialityCode

identity:
  v: cda
map:
  v: .confidentialityCode

identity:
  v: fhirdocumentreference
map:
  v: DocumentReference.securityLabel

id:
  v: Composition.attester
path:
  v: Composition.attester
short:
  v: Attests the report accuracy
definition:
  v: A participant who has attested to the accuracy of the composition/document.
comment:
  v: Only list each attester once.
requirements:
  v: Identifies responsibility for the accuracy of the composition content.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Composition.attester
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode="AUTHEN"].role[classCode="ASSIGNED"]
mapping:
  identity:
    v: cda
  map:
    v: .authenticator/.legalAuthenticator
mapping:
  identity:
    v: fhirdocumentreference
  map:
    v: DocumentReference.authenticator

id:
  v: Composition.attester.id
path:
  v: Composition.attester.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Composition.attester.extension
path:
  v: Composition.attester.extension
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Composition.attester.modifierExtension
path:
  v: Composition.attester.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Composition.attester.mode
path:
  v: Composition.attester.mode
short:
  v: The type of attestation
definition:
  v: The type of attestation the authenticator offers.
requirements:
  v: Indicates the level of authority of the attestation.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Composition.attester.mode
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: CompositionAttestationMode
  strength:
    v: required
  description:
    v: The way in which a person authenticated a composition.
  value set:
    v: http://hl7.org/fhir/ValueSet/composition-attestation-mode|4.0.1
    l: http://hl7.org/fhir/ValueSet/composition-attestation-mode
mapping:
  identity:
    v: rim
  map:
    v: unique(./modeCode)
mapping:
  identity:
    v: cda
  map:
    v: implied by .authenticator/.legalAuthenticator

id:
  v: Composition.attester.time
path:
  v: Composition.attester.time
short:
  v: When the report was attested by the party
definition:
  v: When the composition was attested by the party.
requirements:
  v: Identifies when the information in the composition was deemed accurate. (Things may have changed since then.).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.attester.time
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: ./time[type="TS" and isNormalDatatype()]
mapping:
  identity:
    v: cda
  map:
    v: .authenticator.time

id:
  v: Composition.attester.party
path:
  v: Composition.attester.party
short:
  v: Who attested the report
definition:
  v: Who attested the composition in the specified way.
comment:
  v: For a Laboratory Report it is usually non expected that the attester would be a Patient or a RealtedPerson
requirements:
  v: Identifies who has taken on the responsibility for accuracy of the composition content.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.attester.party
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-patient-core
    l: cz-patient-core
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-relatedPerson-core
    l: cz-relatedPerson-core
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-practitioner-core
    l: cz-practitioner-core
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-practitionerrole-core
    l: cz-practitionerrole-core
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-organization-core
    l: cz-organization-core
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.witness
mapping:
  identity:
    v: rim
  map:
    v: ./role[classCode="ASSIGNED" and isNormalRole]/player[determinerCode="INST" and classCode=("DEV", "PSN") and isNormalEntity()] or ./role[classCode="ASSIGNED" and isNormalRole and not(player)]/scoper[determinerCode="INST" and classCode="ORG" and isNormalEntity()]
mapping:
  identity:
    v: cda
  map:
    v: .authenticator.assignedEnttty

id:
  v: Composition.custodian
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHOULD:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L1
      l: actor-creator-L1
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHOULD:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L1
      l: actor-consumer-L1
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHOULD:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L2
      l: actor-creator-L2
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHOULD:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L3
      l: actor-creator-L3
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHOULD:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L2
      l: actor-consumer-L2
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHOULD:display
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-consumer-L3
      l: actor-consumer-L3
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Composition.custodian
short:
  v: Organization which maintains the composition
definition:
  v: Identifies the organization or group who is responsible for ongoing maintenance of and access to the composition/document information.
comment:
  v: This is useful when documents are derived from a composition - provides guidance for how to get the latest version of the document. This is optional because this is sometimes not known by the authoring system, and can be inferred by context. However, it is important that this information be known when working with a derived document, so providing a custodian is encouraged.
requirements:
  v: Identifies where to go to find the current version, where to report issues, etc.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Composition.custodian
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-organization-core
    l: cz-organization-core
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode="RCV"].role[classCode="CUST"].scoper[classCode="ORG" and determinerCode="INST"]
mapping:
  identity:
    v: cda
  map:
    v: .custodian.assignedCustodian

identity:
  v: fhirdocumentreference
map:
  v: DocumentReference.custodian

id:
  v: Composition.relatesTo
path:
  v: Composition.relatesTo
short:
  v: Relationships to other compositions/documents
definition:
  v: Relationships that this composition has with other compositions or documents that already exist.
comment:
  v: A document is a version specific composition.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Composition.relatesTo
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship
mapping:
  identity:
    v: cda
  map:
    v: .relatedDocument
mapping:
  identity:
    v: fhirdocumentreference
  map:
    v: DocumentReference.relatesTo

id:
  v: Composition.relatesTo.id
path:
  v: Composition.relatesTo.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Composition.relatesTo.extension
path:
  v: Composition.relatesTo.extension
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Composition.relatesTo.modifierExtension
path:
  v: Composition.relatesTo.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Composition.relatesTo.code
path:
  v: Composition.relatesTo.code
short:
  v: replaces | transforms | signs | appends
definition:
  v: The type of relationship that this composition has with anther composition or document.
comment:
  v: If this document appends another document, then the document cannot be fully understood without also accessing the referenced document.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Composition.relatesTo.code
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: DocumentRelationshipType
  strength:
    v: required
  description:
    v: The type of relationship between documents.
  value set:
    v: http://hl7.org/fhir/ValueSet/document-relationship-type|4.0.1
    l: http://hl7.org/fhir/ValueSet/document-relationship-type
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship.typeCode
mapping:
  identity:
    v: cda
  map:
    v: .relatedDocument.typeCode
mapping:
  identity:
    v: fhirdocumentreference
  map:
    v: DocumentReference.relatesTo.code

id:
  v: Composition.relatesTo.target[x]
path:
  v: Composition.relatesTo.target[x]
short:
  v: Target of the relationship
definition:
  v: The target composition/document of this relationship.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Composition.relatesTo.target[x]
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Composition|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Composition
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .target[classCode="DOC", moodCode="EVN"].id
mapping:
  identity:
    v: cda
  map:
    v: .relatedDocument.id
mapping:
  identity:
    v: fhirdocumentreference
  map:
    v: DocumentReference.relatesTo.target

id:
  v: Composition.event
path:
  v: Composition.event
short:
  v: The laboratory service(s) being documented
definition:
  v: The clinical service, such as a colonoscopy or an appendectomy, being documented.
comment:
  v: The event needs to be consistent with the type element, though can provide further information if desired.
requirements:
  v: Provides context for the composition and creates a linkage between a resource describing an event and the composition created describing the event.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Composition.event
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: outboundRelationship[typeCode="SUBJ"].target[classCode<'ACT']
mapping:
  identity:
    v: cda
  map:
    v: .documentationOf.serviceEvent
mapping:
  identity:
    v: fhirdocumentreference
  map:
    v: DocumentReference.event

id:
  v: Composition.event.id
path:
  v: Composition.event.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Composition.event.extension
path:
  v: Composition.event.extension
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Composition.event.modifierExtension
path:
  v: Composition.event.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Composition.event.code
path:
  v: Composition.event.code
short:
  v: Code(s) that apply to the laboratory service(s) being documented
definition:
  v: This list of codes represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the typeCode, such as a "History and Physical Report" in which the procedure being documented is necessarily a "History and Physical" act.
comment:
  v: An event can further specialize the act inherent in the typeCode, such as where it is simply "Procedure Report" and the procedure was a "colonoscopy". If one or more eventCodes are included, they SHALL NOT conflict with the values inherent in the classCode, practiceSettingCode or typeCode, as such a conflict would create an ambiguous situation. This short list of codes is provided to be used as key words for certain types of queries.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Composition.event.code
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: DocumentEventType
  strength:
    v: example
  description:
    v: This list of codes represents the main clinical acts being documented.
  value set:
    v: http://terminology.hl7.org/ValueSet/v3-ActCode|3.0.0
    l: http://terminology.hl7.org/ValueSet/v3-ActCode
mapping:
  identity:
    v: rim
  map:
    v: .code
mapping:
  identity:
    v: cda
  map:
    v: .code
mapping:
  identity:
    v: fhirdocumentreference
  map:
    v: DocumentReference.event.code

id:
  v: Composition.event.period
path:
  v: Composition.event.period
short:
  v: Period of time covered by the documentation
definition:
  v: The period of time covered by the documentation. There is no assertion that the documentation is a complete representation for this period, only that it documents events during this time.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.event.period
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period
    l: Period
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime
mapping:
  identity:
    v: cda
  map:
    v: .effectiveTime
mapping:
  identity:
    v: fhirdocumentreference
  map:
    v: DocumentReference.event.period

id:
  v: Composition.event.detail
path:
  v: Composition.event.detail
short:
  v: The laboratory service(s) being documented
definition:
  v: The description and/or reference of the event(s) being documented. For example, this could be used to document such a colonoscopy or an appendectomy.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Composition.event.detail
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Resource
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode="SUBJ"].target
mapping:
  identity:
    v: cda
  map:
    v: n/a

id:
  v: Composition.section
path:
  v: Composition.section
slicing:
  discriminator:
    type:
      v: exists
    path:
      v: $this.section
  discriminator:
    type:
      v: exists
    path:
      v: $this.entry
  ordered:
    v: false
  rules:
    v: open
short:
  v: Composition is broken into sections
definition:
  v: The \"body\" of the report is organized as a tree of up to two levels of sections: top level sections represent laboratory specialties. A top level section SHALL contain either one text block carrying all the text results produced for this specialty along with Laboratory Data Entries or a set of Laboratory Report Item Sections. In the first case the specialty section happens to also be a leaf section. In the latter case, each (second level) leaf section contained in the (top level) specialty section represents a Report Item: i.e., a battery, a specimen study (especially in microbiology), or an individual test. In addition, any leaf section SHALL contain a Laboratory Data Entries containing the observations of that section in a machine-readable format.
min:
  v: 1
max:
  v: *
base:
  path:
    v: Composition.section
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: cmp-1
  severity:
    v: error
  human:
    v: A section must contain at least one of text, entries, or sub-sections
  expression:
    v: text.exists() or entry.exists() or section.exists()
  xpath:
    v: exists(f:text) or exists(f:entry) or exists(f:section)
  source:
    v: http://hl7.org/fhir/StructureDefinition/clinicaldocument
    l: clinicaldocument
constraint:
  key:
    v: cmp-2
  severity:
    v: error
  human:
    v: A section can only have an emptyReason if it is empty
  expression:
    v: emptyReason.empty() or entry.empty()
  xpath:
    v: not(exists(f:emptyReason) and exists(f:entry))
  source:
    v: http://hl7.org/fhir/StructureDefinition/clinicaldocument
    l: clinicaldocument
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: ./outboundRelationship[typeCode="COMP" and isNormalActRelationship()]/target[moodCode="EVN" and classCode="DOCSECT" and isNormalAct]
mapping:
  identity:
    v: cda
  map:
    v: .component.structuredBody.component.section

id:
  v: Composition.section.id
path:
  v: Composition.section.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Composition.section.extension
path:
  v: Composition.section.extension
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Composition.section.modifierExtension
path:
  v: Composition.section.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Composition.section.title
path:
  v: Composition.section.title
short:
  v: Label for section (e.g. for ToC)
definition:
  v: The label for this particular section. This will be part of the rendered content for the document, and is often used to build a table of contents.
comment:
  v: The title identifies the section for a human reader. The title must be consistent with the narrative of the resource that is the target of the section.content reference. Generally, sections SHOULD have titles, but in some documents, it is unnecessary or inappropriate. Typically, this is where a section has subsections that have their own adequately distinguishing title, or documents that only have a single section. Most Implementation Guides will make section title to be a required element.
requirements:
  v: Section headings are often standardized for different types of documents. They give guidance to humans on how the document is organized.
alias:
  v: header
alias:
  v: label
alias:
  v: caption
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Composition.section.title
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: ./title
mapping:
  identity:
    v: cda
  map:
    v: .title

id:
  v: Composition.section.code
path:
  v: Composition.section.code
short:
  v: Classification of section (recommended)
definition:
  v: A code identifying the kind of content contained within the section. This must be consistent with the section title.
comment:
  v: The code identifies the section for an automated processor of the document. This is particularly relevant when using profiles to control the structure of the document. If the section has content (instead of sub-sections), the section.code does not change the meaning or interpretation of the resource that is the content of the section in the comments for the section.code.
requirements:
  v: Provides computable standardized labels to topics within the document.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Composition.section.code
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips|2.0.0
    l: http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: CompositionSectionType
  strength:
    v: example
  description:
    v: Classification of a section of a composition/document.
  value set:
    v: http://hl7.org/fhir/ValueSet/doc-section-codes|4.0.1
    l: http://hl7.org/fhir/ValueSet/doc-section-codes
mapping:
  identity:
    v: rim
  map:
    v: ./code
mapping:
  identity:
    v: cda
  map:
    v: .code

id:
  v: Composition.section.author
path:
  v: Composition.section.author
short:
  v: Who and/or what authored the section
definition:
  v: Identifies who is responsible for the information in this section, not necessarily who typed it in.
requirements:
  v: Identifies who is responsible for the content.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Composition.section.author
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-practitioner-core
    l: cz-practitioner-core
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-practitionerrole-core
    l: cz-practitionerrole-core
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-device-observer
    l: cz-device-observer
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-patient-core
    l: cz-patient-core
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-relatedPerson-core
    l: cz-relatedPerson-core
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-organization-core
    l: cz-organization-core
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.author
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode="AUT"].role[classCode="ASSIGNED"]
mapping:
  identity:
    v: cda
  map:
    v: .author.assignedAuthor

id:
  v: Composition.section.focus
path:
  v: Composition.section.focus
short:
  v: Who/what the section is about, when it is not about the subject of composition
definition:
  v: The actual focus of the section when it is not the subject of the composition, but instead represents something or someone associated with the subject such as (for a patient subject) a spouse, parent, fetus, or donor. If not focus is specified, the focus is assumed to be focus of the parent section, or, for a section in the Composition itself, the subject of the composition. Sections with a focus SHALL only include resources where the logical subject (patient, subject, focus, etc.) matches the section focus, or the resources have no logical subject (few resources).
comment:
  v: Typically, sections in a doument are about the subject of the document, whether that is a patient, or group of patients, location, or device, or whatever. For some kind of documents, some sections actually contain data about related entities. Typical examples are a section in a newborn discharge summary concerning the mother, or family history documents, with a section about each family member, though there are many other examples.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.focus
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Resource
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: cda
  map:
    v: .subject? (CDA did not differentiate between subject and focus)

id:
  v: Composition.section.text
path:
  v: Composition.section.text
short:
  v: Text summary of the section, for human interpretation
definition:
  v: A human-readable narrative that contains the attested content of the section, used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative.
comment:
  v: Document profiles may define what content should be represented in the narrative to ensure clinical safety.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Narrative
    l: Narrative
condition:
  v: cmp-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .text
mapping:
  identity:
    v: cda
  map:
    v: .text

id:
  v: Composition.section.mode
path:
  v: Composition.section.mode
short:
  v: working | snapshot | changes
definition:
  v: How the entry list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.
comment:
  v: This element is labeled as a modifier because a change list must not be misunderstood as a complete list.
requirements:
  v: Sections are used in various ways, and it must be known in what way it is safe to use the entries in them.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.mode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: SectionMode
  strength:
    v: required
  description:
    v: The processing mode that applies to this section.
  value set:
    v: http://hl7.org/fhir/ValueSet/list-mode|4.0.1
    l: http://hl7.org/fhir/ValueSet/list-mode
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class
mapping:
  identity:
    v: rim
  map:
    v: .outBoundRelationship[typeCode=COMP].target[classCode=OBS"].value
mapping:
  identity:
    v: cda
  map:
    v: n/a

id:
  v: Composition.section.orderedBy
path:
  v: Composition.section.orderedBy
short:
  v: Order of section entries
definition:
  v: Specifies the order applied to the items in the section entries.
comment:
  v: Applications SHOULD render ordered lists in the order provided, but MAY allow users to re-order based on their own preferences as well. If there is no order specified, the order is unknown, though there may still be some order.
requirements:
  v: Important for presentation and rendering. Lists may be sorted to place more important information first or to group related entries.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.orderedBy
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: SectionEntryOrder
  strength:
    v: preferred
  description:
    v: What order applies to the items in the entry.
  value set:
    v: http://hl7.org/fhir/ValueSet/list-order|4.0.1
    l: http://hl7.org/fhir/ValueSet/list-order
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=COMP].sequenceNumber > 1
mapping:
  identity:
    v: cda
  map:
    v: n/a

id:
  v: Composition.section.entry
path:
  v: Composition.section.entry
short:
  v: A reference to data that supports this section
definition:
  v: A reference to the actual resource from which the narrative in the section is derived.
comment:
  v: If there are no entries in the list, an emptyReason SHOULD be provided.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Composition.section.entry
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Resource
condition:
  v: cmp-2
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=COMP] or .participation[typeCode=SBJ]
mapping:
  identity:
    v: cda
  map:
    v: .entry

id:
  v: Composition.section.emptyReason
path:
  v: Composition.section.emptyReason
short:
  v: Why the section is empty
definition:
  v: If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.
comment:
  v: The various reasons for an empty section make a significant interpretation to its interpretation. Note that this code is for use when the entire section content has been suppressed, and not for when individual items are omitted - implementers may consider using a text note or a flag on an entry in these cases.
requirements:
  v: Allows capturing things like "none exist" or "not asked" which can be important for most lists.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.emptyReason
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
condition:
  v: cmp-2
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: SectionEmptyReason
  strength:
    v: preferred
  description:
    v: If a section is empty, why it is empty.
  value set:
    v: http://hl7.org/fhir/ValueSet/list-empty-reason|4.0.1
    l: http://hl7.org/fhir/ValueSet/list-empty-reason
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]
mapping:
  identity:
    v: cda
  map:
    v: n/a

id:
  v: Composition.section.section
path:
  v: Composition.section.section
short:
  v: Nested Section
definition:
  v: A nested sub-section within this section.
comment:
  v: Nested sections are primarily used to help human readers navigate to particular portions of the document.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Composition.section.section
  min:
    v: 0
  max:
    v: *
content reference:
  v: http://hl7.org/fhir/StructureDefinition/Composition#Composition.section
  l: Composition.section
condition:
  v: cmp-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: ./outboundRelationship[typeCode="COMP" and isNormalActRelationship()]/target[moodCode="EVN" and classCode="DOCSECT" and isNormalAct]
mapping:
  identity:
    v: cda
  map:
    v: .component.section

id:
  v: Composition.section:lab-no-subsections
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L2
      l: actor-creator-L2
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L3
      l: actor-creator-L3
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L2
      l: actor-creator-L2
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L3
      l: actor-creator-L3
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Composition.section
slice name:
  v: lab-no-subsections
short:
  v: Variant 1: CZ Laboratory Report section with entries and no sub-sections
definition:
  v: Variant 1: With this option, all laboratory report data entries are provided in the top level sections and no sub-sections are allowed.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Composition.section
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: cmp-1
  severity:
    v: error
  human:
    v: A section must contain at least one of text, entries, or sub-sections
  expression:
    v: text.exists() or entry.exists() or section.exists()
  xpath:
    v: exists(f:text) or exists(f:entry) or exists(f:section)
  source:
    v: http://hl7.org/fhir/StructureDefinition/clinicaldocument
    l: clinicaldocument
constraint:
  key:
    v: cmp-2
  severity:
    v: error
  human:
    v: A section can only have an emptyReason if it is empty
  expression:
    v: emptyReason.empty() or entry.empty()
  xpath:
    v: not(exists(f:emptyReason) and exists(f:entry))
  source:
    v: http://hl7.org/fhir/StructureDefinition/clinicaldocument
    l: clinicaldocument
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: ./outboundRelationship[typeCode="COMP" and isNormalActRelationship()]/target[moodCode="EVN" and classCode="DOCSECT" and isNormalAct]
mapping:
  identity:
    v: cda
  map:
    v: .component.structuredBody.component.section

id:
  v: Composition.section:lab-no-subsections.id
path:
  v: Composition.section.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Composition.section:lab-no-subsections.extension
path:
  v: Composition.section.extension
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Composition.section:lab-no-subsections.modifierExtension
path:
  v: Composition.section.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Composition.section:lab-no-subsections.title
path:
  v: Composition.section.title
short:
  v: Label for section (e.g. for ToC)
definition:
  v: The label for this particular section. This will be part of the rendered content for the document, and is often used to build a table of contents.
comment:
  v: The title identifies the section for a human reader. The title must be consistent with the narrative of the resource that is the target of the section.content reference. Generally, sections SHOULD have titles, but in some documents, it is unnecessary or inappropriate. Typically, this is where a section has subsections that have their own adequately distinguishing title, or documents that only have a single section. Most Implementation Guides will make section title to be a required element.
requirements:
  v: Section headings are often standardized for different types of documents. They give guidance to humans on how the document is organized.
alias:
  v: header
alias:
  v: label
alias:
  v: caption
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Composition.section.title
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: ./title
mapping:
  identity:
    v: cda
  map:
    v: .title

id:
  v: Composition.section:lab-no-subsections.code
path:
  v: Composition.section.code
short:
  v: Classification of section (recommended)
definition:
  v: A code identifying the kind of content contained within the section. This must be consistent with the section title.
comment:
  v: The code identifies the section for an automated processor of the document. This is particularly relevant when using profiles to control the structure of the document. If the section has content (instead of sub-sections), the section.code does not change the meaning or interpretation of the resource that is the content of the section in the comments for the section.code.
requirements:
  v: Provides computable standardized labels to topics within the document.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Composition.section.code
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips|2.0.0
    l: http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  strength:
    v: preferred
  value set:
    v: https://hl7.cz/fhir/lab/ValueSet/cz-lab-study-types-VS
    l: cz-lab-study-types-VS
mapping:
  identity:
    v: rim
  map:
    v: ./code
mapping:
  identity:
    v: cda
  map:
    v: .code

id:
  v: Composition.section:lab-no-subsections.author
path:
  v: Composition.section.author
short:
  v: Who and/or what authored the section
definition:
  v: Identifies who is responsible for the information in this section, not necessarily who typed it in.
requirements:
  v: Identifies who is responsible for the content.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Composition.section.author
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-practitioner-core
    l: cz-practitioner-core
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-practitionerrole-core
    l: cz-practitionerrole-core
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-device-observer
    l: cz-device-observer
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-patient-core
    l: cz-patient-core
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-relatedPerson-core
    l: cz-relatedPerson-core
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-organization-core
    l: cz-organization-core
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.author
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode="AUT"].role[classCode="ASSIGNED"]
mapping:
  identity:
    v: cda
  map:
    v: .author.assignedAuthor

id:
  v: Composition.section:lab-no-subsections.focus
path:
  v: Composition.section.focus
short:
  v: Who/what the section is about, when it is not about the subject of composition
definition:
  v: The actual focus of the section when it is not the subject of the composition, but instead represents something or someone associated with the subject such as (for a patient subject) a spouse, parent, fetus, or donor. If not focus is specified, the focus is assumed to be focus of the parent section, or, for a section in the Composition itself, the subject of the composition. Sections with a focus SHALL only include resources where the logical subject (patient, subject, focus, etc.) matches the section focus, or the resources have no logical subject (few resources).
comment:
  v: Typically, sections in a doument are about the subject of the document, whether that is a patient, or group of patients, location, or device, or whatever. For some kind of documents, some sections actually contain data about related entities. Typical examples are a section in a newborn discharge summary concerning the mother, or family history documents, with a section about each family member, though there are many other examples.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.focus
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Resource
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: cda
  map:
    v: .subject? (CDA did not differentiate between subject and focus)

id:
  v: Composition.section:lab-no-subsections.text
path:
  v: Composition.section.text
short:
  v: Text summary of the section, for human interpretation.
definition:
  v: A human-readable narrative that contains the attested content of the section, used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative.
comment:
  v: Document profiles may define what content should be represented in the narrative to ensure clinical safety.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Narrative
    l: Narrative
condition:
  v: cmp-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .text
mapping:
  identity:
    v: cda
  map:
    v: .text

id:
  v: Composition.section:lab-no-subsections.mode
path:
  v: Composition.section.mode
short:
  v: working | snapshot | changes
definition:
  v: How the entry list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.
comment:
  v: This element is labeled as a modifier because a change list must not be misunderstood as a complete list.
requirements:
  v: Sections are used in various ways, and it must be known in what way it is safe to use the entries in them.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.mode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: SectionMode
  strength:
    v: required
  description:
    v: The processing mode that applies to this section.
  value set:
    v: http://hl7.org/fhir/ValueSet/list-mode|4.0.1
    l: http://hl7.org/fhir/ValueSet/list-mode
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class
mapping:
  identity:
    v: rim
  map:
    v: .outBoundRelationship[typeCode=COMP].target[classCode=OBS"].value
mapping:
  identity:
    v: cda
  map:
    v: n/a

id:
  v: Composition.section:lab-no-subsections.orderedBy
path:
  v: Composition.section.orderedBy
short:
  v: Order of section entries
definition:
  v: Specifies the order applied to the items in the section entries.
comment:
  v: Applications SHOULD render ordered lists in the order provided, but MAY allow users to re-order based on their own preferences as well. If there is no order specified, the order is unknown, though there may still be some order.
requirements:
  v: Important for presentation and rendering. Lists may be sorted to place more important information first or to group related entries.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.orderedBy
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: SectionEntryOrder
  strength:
    v: preferred
  description:
    v: What order applies to the items in the entry.
  value set:
    v: http://hl7.org/fhir/ValueSet/list-order|4.0.1
    l: http://hl7.org/fhir/ValueSet/list-order
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=COMP].sequenceNumber > 1
mapping:
  identity:
    v: cda
  map:
    v: n/a

id:
  v: Composition.section:lab-no-subsections.entry
path:
  v: Composition.section.entry
short:
  v: A reference to data that supports this section
definition:
  v: A reference to the actual resource from which the narrative in the section is derived.
comment:
  v: If there are no entries in the list, an emptyReason SHOULD be provided.
min:
  v: 1
max:
  v: *
base:
  path:
    v: Composition.section.entry
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://hl7.cz/fhir/lab/StructureDefinition/cz-observation-result-laboratory
    l: cz-observation-result-laboratory
condition:
  v: cmp-2
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=COMP] or .participation[typeCode=SBJ]
mapping:
  identity:
    v: cda
  map:
    v: .entry

id:
  v: Composition.section:lab-no-subsections.emptyReason
path:
  v: Composition.section.emptyReason
short:
  v: Why the section is empty
definition:
  v: If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.
comment:
  v: The various reasons for an empty section make a significant interpretation to its interpretation. Note that this code is for use when the entire section content has been suppressed, and not for when individual items are omitted - implementers may consider using a text note or a flag on an entry in these cases.
requirements:
  v: Allows capturing things like "none exist" or "not asked" which can be important for most lists.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.emptyReason
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
condition:
  v: cmp-2
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: SectionEmptyReason
  strength:
    v: preferred
  description:
    v: If a section is empty, why it is empty.
  value set:
    v: http://hl7.org/fhir/ValueSet/list-empty-reason|4.0.1
    l: http://hl7.org/fhir/ValueSet/list-empty-reason
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]
mapping:
  identity:
    v: cda
  map:
    v: n/a

id:
  v: Composition.section:lab-no-subsections.section
path:
  v: Composition.section.section
short:
  v: Nested Section
definition:
  v: A nested sub-section within this section.
comment:
  v: Nested sections are primarily used to help human readers navigate to particular portions of the document.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: Composition.section.section
  min:
    v: 0
  max:
    v: *
content reference:
  v: http://hl7.org/fhir/StructureDefinition/Composition#Composition.section
  l: Composition.section
condition:
  v: cmp-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: ./outboundRelationship[typeCode="COMP" and isNormalActRelationship()]/target[moodCode="EVN" and classCode="DOCSECT" and isNormalAct]
mapping:
  identity:
    v: cda
  map:
    v: .component.section

id:
  v: Composition.section:lab-subsections
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L2
      l: actor-creator-L2
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L3
      l: actor-creator-L3
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L2
      l: actor-creator-L2
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L3
      l: actor-creator-L3
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Composition.section
slice name:
  v: lab-subsections
short:
  v: Variant 2: CZ Laboratory Report section with one to many subsections Laboratory Report Item
definition:
  v: Variant 2: With this option, this top level section doesn't include NEITHER a top level text NOR entry elements. Each Report Item is contained in a corresponding sub-sections which contains the Lab Report Data Entry.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Composition.section
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: cmp-1
  severity:
    v: error
  human:
    v: A section must contain at least one of text, entries, or sub-sections
  expression:
    v: text.exists() or entry.exists() or section.exists()
  xpath:
    v: exists(f:text) or exists(f:entry) or exists(f:section)
  source:
    v: http://hl7.org/fhir/StructureDefinition/clinicaldocument
    l: clinicaldocument
constraint:
  key:
    v: cmp-2
  severity:
    v: error
  human:
    v: A section can only have an emptyReason if it is empty
  expression:
    v: emptyReason.empty() or entry.empty()
  xpath:
    v: not(exists(f:emptyReason) and exists(f:entry))
  source:
    v: http://hl7.org/fhir/StructureDefinition/clinicaldocument
    l: clinicaldocument
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: ./outboundRelationship[typeCode="COMP" and isNormalActRelationship()]/target[moodCode="EVN" and classCode="DOCSECT" and isNormalAct]
mapping:
  identity:
    v: cda
  map:
    v: .component.structuredBody.component.section

id:
  v: Composition.section:lab-subsections.id
path:
  v: Composition.section.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Composition.section:lab-subsections.extension
path:
  v: Composition.section.extension
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Composition.section:lab-subsections.modifierExtension
path:
  v: Composition.section.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Composition.section:lab-subsections.title
path:
  v: Composition.section.title
short:
  v: Label for section (e.g. for ToC)
definition:
  v: The label for this particular section. This will be part of the rendered content for the document, and is often used to build a table of contents.
comment:
  v: The title identifies the section for a human reader. The title must be consistent with the narrative of the resource that is the target of the section.content reference. Generally, sections SHOULD have titles, but in some documents, it is unnecessary or inappropriate. Typically, this is where a section has subsections that have their own adequately distinguishing title, or documents that only have a single section. Most Implementation Guides will make section title to be a required element.
requirements:
  v: Section headings are often standardized for different types of documents. They give guidance to humans on how the document is organized.
alias:
  v: header
alias:
  v: label
alias:
  v: caption
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Composition.section.title
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: ./title
mapping:
  identity:
    v: cda
  map:
    v: .title

id:
  v: Composition.section:lab-subsections.code
path:
  v: Composition.section.code
short:
  v: Classification of section (recommended)
definition:
  v: A code identifying the kind of content contained within the section. This must be consistent with the section title.
comment:
  v: The code identifies the section for an automated processor of the document. This is particularly relevant when using profiles to control the structure of the document. If the section has content (instead of sub-sections), the section.code does not change the meaning or interpretation of the resource that is the content of the section in the comments for the section.code.
requirements:
  v: Provides computable standardized labels to topics within the document.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Composition.section.code
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips|2.0.0
    l: http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  strength:
    v: preferred
  value set:
    v: https://hl7.cz/fhir/lab/ValueSet/cz-lab-study-types-VS
    l: cz-lab-study-types-VS
mapping:
  identity:
    v: rim
  map:
    v: ./code
mapping:
  identity:
    v: cda
  map:
    v: .code

id:
  v: Composition.section:lab-subsections.author
path:
  v: Composition.section.author
short:
  v: Who and/or what authored the section
definition:
  v: Identifies who is responsible for the information in this section, not necessarily who typed it in.
requirements:
  v: Identifies who is responsible for the content.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Composition.section.author
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-practitioner-core
    l: cz-practitioner-core
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-practitionerrole-core
    l: cz-practitionerrole-core
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-device-observer
    l: cz-device-observer
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-patient-core
    l: cz-patient-core
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-relatedPerson-core
    l: cz-relatedPerson-core
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-organization-core
    l: cz-organization-core
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.author
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode="AUT"].role[classCode="ASSIGNED"]
mapping:
  identity:
    v: cda
  map:
    v: .author.assignedAuthor

id:
  v: Composition.section:lab-subsections.focus
path:
  v: Composition.section.focus
short:
  v: Who/what the section is about, when it is not about the subject of composition
definition:
  v: The actual focus of the section when it is not the subject of the composition, but instead represents something or someone associated with the subject such as (for a patient subject) a spouse, parent, fetus, or donor. If not focus is specified, the focus is assumed to be focus of the parent section, or, for a section in the Composition itself, the subject of the composition. Sections with a focus SHALL only include resources where the logical subject (patient, subject, focus, etc.) matches the section focus, or the resources have no logical subject (few resources).
comment:
  v: Typically, sections in a doument are about the subject of the document, whether that is a patient, or group of patients, location, or device, or whatever. For some kind of documents, some sections actually contain data about related entities. Typical examples are a section in a newborn discharge summary concerning the mother, or family history documents, with a section about each family member, though there are many other examples.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.focus
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Resource
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: cda
  map:
    v: .subject? (CDA did not differentiate between subject and focus)

id:
  v: Composition.section:lab-subsections.text
path:
  v: Composition.section.text
short:
  v: Text summary of the section, for human interpretation
definition:
  v: A human-readable narrative that contains the attested content of the section, used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative.
comment:
  v: Document profiles may define what content should be represented in the narrative to ensure clinical safety.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: Composition.section.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Narrative
    l: Narrative
condition:
  v: cmp-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .text
mapping:
  identity:
    v: cda
  map:
    v: .text

id:
  v: Composition.section:lab-subsections.mode
path:
  v: Composition.section.mode
short:
  v: working | snapshot | changes
definition:
  v: How the entry list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.
comment:
  v: This element is labeled as a modifier because a change list must not be misunderstood as a complete list.
requirements:
  v: Sections are used in various ways, and it must be known in what way it is safe to use the entries in them.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.mode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: SectionMode
  strength:
    v: required
  description:
    v: The processing mode that applies to this section.
  value set:
    v: http://hl7.org/fhir/ValueSet/list-mode|4.0.1
    l: http://hl7.org/fhir/ValueSet/list-mode
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class
mapping:
  identity:
    v: rim
  map:
    v: .outBoundRelationship[typeCode=COMP].target[classCode=OBS"].value
mapping:
  identity:
    v: cda
  map:
    v: n/a

id:
  v: Composition.section:lab-subsections.orderedBy
path:
  v: Composition.section.orderedBy
short:
  v: Order of section entries
definition:
  v: Specifies the order applied to the items in the section entries.
comment:
  v: Applications SHOULD render ordered lists in the order provided, but MAY allow users to re-order based on their own preferences as well. If there is no order specified, the order is unknown, though there may still be some order.
requirements:
  v: Important for presentation and rendering. Lists may be sorted to place more important information first or to group related entries.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.orderedBy
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: SectionEntryOrder
  strength:
    v: preferred
  description:
    v: What order applies to the items in the entry.
  value set:
    v: http://hl7.org/fhir/ValueSet/list-order|4.0.1
    l: http://hl7.org/fhir/ValueSet/list-order
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=COMP].sequenceNumber > 1
mapping:
  identity:
    v: cda
  map:
    v: n/a

id:
  v: Composition.section:lab-subsections.entry
path:
  v: Composition.section.entry
short:
  v: A reference to data that supports this section
definition:
  v: A reference to the actual resource from which the narrative in the section is derived.
comment:
  v: If there are no entries in the list, an emptyReason SHOULD be provided.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: Composition.section.entry
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Resource
condition:
  v: cmp-2
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=COMP] or .participation[typeCode=SBJ]
mapping:
  identity:
    v: cda
  map:
    v: .entry

id:
  v: Composition.section:lab-subsections.emptyReason
path:
  v: Composition.section.emptyReason
short:
  v: Why the section is empty
definition:
  v: If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.
comment:
  v: The various reasons for an empty section make a significant interpretation to its interpretation. Note that this code is for use when the entire section content has been suppressed, and not for when individual items are omitted - implementers may consider using a text note or a flag on an entry in these cases.
requirements:
  v: Allows capturing things like "none exist" or "not asked" which can be important for most lists.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.emptyReason
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
condition:
  v: cmp-2
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: SectionEmptyReason
  strength:
    v: preferred
  description:
    v: If a section is empty, why it is empty.
  value set:
    v: http://hl7.org/fhir/ValueSet/list-empty-reason|4.0.1
    l: http://hl7.org/fhir/ValueSet/list-empty-reason
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]
mapping:
  identity:
    v: cda
  map:
    v: n/a

id:
  v: Composition.section:lab-subsections.section
path:
  v: Composition.section.section
short:
  v: Nested Section
definition:
  v: A nested sub-section within this section.
comment:
  v: Nested sections are primarily used to help human readers navigate to particular portions of the document.
min:
  v: 1
max:
  v: *
base:
  path:
    v: Composition.section.section
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
condition:
  v: cmp-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: ./outboundRelationship[typeCode="COMP" and isNormalActRelationship()]/target[moodCode="EVN" and classCode="DOCSECT" and isNormalAct]
mapping:
  identity:
    v: cda
  map:
    v: .component.section

id:
  v: Composition.section:lab-subsections.section.id
path:
  v: Composition.section.section.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Composition.section:lab-subsections.section.extension
path:
  v: Composition.section.section.extension
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Composition.section:lab-subsections.section.modifierExtension
path:
  v: Composition.section.section.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Composition.section:lab-subsections.section.title
path:
  v: Composition.section.section.title
short:
  v: Label for section (e.g. for ToC)
definition:
  v: The label for this particular section. This will be part of the rendered content for the document, and is often used to build a table of contents.
comment:
  v: The title identifies the section for a human reader. The title must be consistent with the narrative of the resource that is the target of the section.content reference. Generally, sections SHOULD have titles, but in some documents, it is unnecessary or inappropriate. Typically, this is where a section has subsections that have their own adequately distinguishing title, or documents that only have a single section. Most Implementation Guides will make section title to be a required element.
requirements:
  v: Section headings are often standardized for different types of documents. They give guidance to humans on how the document is organized.
alias:
  v: header
alias:
  v: label
alias:
  v: caption
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Composition.section.title
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: ./title
mapping:
  identity:
    v: cda
  map:
    v: .title

id:
  v: Composition.section:lab-subsections.section.code
path:
  v: Composition.section.section.code
short:
  v: Classification of section (recommended)
definition:
  v: A code identifying the kind of content contained within the section. This must be consistent with the section title.
comment:
  v: The code identifies the section for an automated processor of the document. This is particularly relevant when using profiles to control the structure of the document. If the section has content (instead of sub-sections), the section.code does not change the meaning or interpretation of the resource that is the content of the section in the comments for the section.code.
requirements:
  v: Provides computable standardized labels to topics within the document.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Composition.section.code
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips|2.0.0
    l: http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  strength:
    v: preferred
  value set:
    v: https://hl7.cz/fhir/lab/ValueSet/cz-lab-study-types-VS
    l: cz-lab-study-types-VS
mapping:
  identity:
    v: rim
  map:
    v: ./code
mapping:
  identity:
    v: cda
  map:
    v: .code

id:
  v: Composition.section:lab-subsections.section.author
path:
  v: Composition.section.section.author
short:
  v: Who and/or what authored the section
definition:
  v: Identifies who is responsible for the information in this section, not necessarily who typed it in.
requirements:
  v: Identifies who is responsible for the content.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Composition.section.author
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-practitioner-core
    l: cz-practitioner-core
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-practitionerrole-core
    l: cz-practitionerrole-core
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-device-observer
    l: cz-device-observer
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-patient-core
    l: cz-patient-core
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-relatedPerson-core
    l: cz-relatedPerson-core
  target profile:
    v: https://hl7.cz/fhir/core/StructureDefinition/cz-organization-core
    l: cz-organization-core
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.author
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode="AUT"].role[classCode="ASSIGNED"]
mapping:
  identity:
    v: cda
  map:
    v: .author.assignedAuthor

id:
  v: Composition.section:lab-subsections.section.focus
path:
  v: Composition.section.section.focus
short:
  v: Who/what the section is about, when it is not about the subject of composition
definition:
  v: The actual focus of the section when it is not the subject of the composition, but instead represents something or someone associated with the subject such as (for a patient subject) a spouse, parent, fetus, or donor. If not focus is specified, the focus is assumed to be focus of the parent section, or, for a section in the Composition itself, the subject of the composition. Sections with a focus SHALL only include resources where the logical subject (patient, subject, focus, etc.) matches the section focus, or the resources have no logical subject (few resources).
comment:
  v: Typically, sections in a doument are about the subject of the document, whether that is a patient, or group of patients, location, or device, or whatever. For some kind of documents, some sections actually contain data about related entities. Typical examples are a section in a newborn discharge summary concerning the mother, or family history documents, with a section about each family member, though there are many other examples.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.focus
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Resource
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: cda
  map:
    v: .subject? (CDA did not differentiate between subject and focus)

id:
  v: Composition.section:lab-subsections.section.text
path:
  v: Composition.section.section.text
short:
  v: Text summary of the section, for human interpretation.
definition:
  v: A human-readable narrative that contains the attested content of the section, used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative.
comment:
  v: Document profiles may define what content should be represented in the narrative to ensure clinical safety.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Narrative
    l: Narrative
condition:
  v: cmp-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .text
mapping:
  identity:
    v: cda
  map:
    v: .text

id:
  v: Composition.section:lab-subsections.section.mode
path:
  v: Composition.section.section.mode
short:
  v: working | snapshot | changes
definition:
  v: How the entry list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.
comment:
  v: This element is labeled as a modifier because a change list must not be misunderstood as a complete list.
requirements:
  v: Sections are used in various ways, and it must be known in what way it is safe to use the entries in them.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.mode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: SectionMode
  strength:
    v: required
  description:
    v: The processing mode that applies to this section.
  value set:
    v: http://hl7.org/fhir/ValueSet/list-mode|4.0.1
    l: http://hl7.org/fhir/ValueSet/list-mode
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class
mapping:
  identity:
    v: rim
  map:
    v: .outBoundRelationship[typeCode=COMP].target[classCode=OBS"].value
mapping:
  identity:
    v: cda
  map:
    v: n/a

id:
  v: Composition.section:lab-subsections.section.orderedBy
path:
  v: Composition.section.section.orderedBy
short:
  v: Order of section entries
definition:
  v: Specifies the order applied to the items in the section entries.
comment:
  v: Applications SHOULD render ordered lists in the order provided, but MAY allow users to re-order based on their own preferences as well. If there is no order specified, the order is unknown, though there may still be some order.
requirements:
  v: Important for presentation and rendering. Lists may be sorted to place more important information first or to group related entries.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.orderedBy
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: SectionEntryOrder
  strength:
    v: preferred
  description:
    v: What order applies to the items in the entry.
  value set:
    v: http://hl7.org/fhir/ValueSet/list-order|4.0.1
    l: http://hl7.org/fhir/ValueSet/list-order
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=COMP].sequenceNumber > 1
mapping:
  identity:
    v: cda
  map:
    v: n/a

id:
  v: Composition.section:lab-subsections.section.entry
path:
  v: Composition.section.section.entry
short:
  v: A reference to data that supports this section
definition:
  v: A reference to the actual resource from which the narrative in the section is derived.
comment:
  v: If there are no entries in the list, an emptyReason SHOULD be provided.
min:
  v: 1
max:
  v: *
base:
  path:
    v: Composition.section.entry
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://hl7.cz/fhir/lab/StructureDefinition/cz-observation-result-laboratory
    l: cz-observation-result-laboratory
condition:
  v: cmp-2
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=COMP] or .participation[typeCode=SBJ]
mapping:
  identity:
    v: cda
  map:
    v: .entry

id:
  v: Composition.section:lab-subsections.section.emptyReason
path:
  v: Composition.section.section.emptyReason
short:
  v: Why the section is empty
definition:
  v: If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.
comment:
  v: The various reasons for an empty section make a significant interpretation to its interpretation. Note that this code is for use when the entire section content has been suppressed, and not for when individual items are omitted - implementers may consider using a text note or a flag on an entry in these cases.
requirements:
  v: Allows capturing things like "none exist" or "not asked" which can be important for most lists.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.emptyReason
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
condition:
  v: cmp-2
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: SectionEmptyReason
  strength:
    v: preferred
  description:
    v: If a section is empty, why it is empty.
  value set:
    v: http://hl7.org/fhir/ValueSet/list-empty-reason|4.0.1
    l: http://hl7.org/fhir/ValueSet/list-empty-reason
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]
mapping:
  identity:
    v: cda
  map:
    v: n/a

id:
  v: Composition.section:lab-subsections.section.section
path:
  v: Composition.section.section.section
short:
  v: Nested Section
definition:
  v: A nested sub-section within this section.
comment:
  v: Nested sections are primarily used to help human readers navigate to particular portions of the document.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: Composition.section.section
  min:
    v: 0
  max:
    v: *
content reference:
  v: http://hl7.org/fhir/StructureDefinition/Composition#Composition.section
  l: Composition.section
condition:
  v: cmp-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: ./outboundRelationship[typeCode="COMP" and isNormalActRelationship()]/target[moodCode="EVN" and classCode="DOCSECT" and isNormalAct]
mapping:
  identity:
    v: cda
  map:
    v: .component.section

id:
  v: Composition.section:annotations
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L2
      l: actor-creator-L2
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L3
      l: actor-creator-L3
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L2
      l: actor-creator-L2
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:able-to-populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://hl7.cz/fhir/core/ActorDefinition/actor-creator-L3
      l: actor-creator-L3
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab|0.5.0
      l: https://hl7.cz/fhir/lab/StructureDefinition/cz-composition-obl-lab
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Composition.section
slice name:
  v: annotations
short:
  v: Annotation comment
definition:
  v: Narrative expression of comments accompanying the report, such as suggestions for evaluation, technical notes from the laboratory, etc. Examples: Suggestion: This result should be evaluated in relation to the patient's medical history and clinical condition. Technical note: A list of accredited examination(s) is available at www.laboratory.com.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Composition.section
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: cmp-1
  severity:
    v: error
  human:
    v: A section must contain at least one of text, entries, or sub-sections
  expression:
    v: text.exists() or entry.exists() or section.exists()
  xpath:
    v: exists(f:text) or exists(f:entry) or exists(f:section)
  source:
    v: http://hl7.org/fhir/StructureDefinition/clinicaldocument
    l: clinicaldocument
constraint:
  key:
    v: cmp-2
  severity:
    v: error
  human:
    v: A section can only have an emptyReason if it is empty
  expression:
    v: emptyReason.empty() or entry.empty()
  xpath:
    v: not(exists(f:emptyReason) and exists(f:entry))
  source:
    v: http://hl7.org/fhir/StructureDefinition/clinicaldocument
    l: clinicaldocument
constraint:
  key:
    v: ele-1