Composition-jurisdiction-live-birth-report
type: StructureDefinition
node role: treeRoot
id:
  v: Composition-jurisdiction-live-birth-report
meta:
  version id:
    v: 127
  last updated:
    v: 2023-08-10T19:22:46.828Z
text:
  status:
    v: extensions
  div: Generated Narrative: StructureDefinition Composition-jurisdiction-live-birth-report version: versionId: id (PrimitiveType/StructureDefinition.meta.versionId): native = id -> 127; Last updated: 2023-08-10 19:22:46+0000 Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> Composition 0..* Composition Jurisdiction Live Birth Report Slices for extension S 2..* Extension Extension Slice: Unordered, Open by value:url liveBirthCertificateNumber S 1..1 Identifier Birth Number URL: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Extension-live-birth-certificate-number liveBirthLocalFileNumber S 0..1 Identifier Local File No. URL: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Extension-live-birth-local-file-number dateFiledByRegistrar S 1..1 dateTime Date filed by registrar URL: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Extension-date-filed-by-registrar replacementStatus S 0..1 CodeableConcept Extension URL: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Extension-replacement-status Binding: ValueSet - Replacement Status (required) status S 1..1 code In the case of a live birth sent in error, a status of 'entered-in-error' must be set. type S 1..1 CodeableConcept Jurisdiction live birth report Document Required Pattern: At least the following coding 1..* Coding Code defined by a terminology system Fixed Value: (complex) system 1..1 uri Identity of the terminology system Fixed Value: http://loinc.org code 1..1 code Symbol in syntax defined by the system Fixed Value: 92011-6 subject S 1..1 Reference(Patient - Child - Vital Records) The subject of the composition is the newborn baby encounter S 0..1 Reference(Encounter - Birth) The Encounter for the Composition is the newborn's birth encounter. Extension-encounter-maternity-reference 0..1 Reference(Encounter - Maternity) Extension URL: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Extension-encounter-maternity-reference dat…
url:
  v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Composition-jurisdiction-live-birth-report
version:
  v: 1.1.0
name:
  v: CompositionJurisdictionLiveBirthReport
title:
  v: Composition - Jurisdiction Live Birth Report
status:
  v: active
experimental:
  v: false
date:
  v: 2024-07-09T14:11:31+00:00
publisher:
  v: IHE International
contact:
  name:
    v: IHE Quality, Research and Public Health Committee
  telecom:
    system:
      v: url
    value:
      v: https://www.ihe.net/ihe_domains/quality_research_and_public_health
description:
  v: This Composition profile contains information of a live birth and the issuance of a Birth Certificate to be recorded and communicated to the national statistics agency.
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
    code:
      v: 001
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: workflow
  uri:
    v: http://hl7.org/fhir/workflow
  name:
    v: Workflow Pattern
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
  name:
    v: RIM Mapping
mapping:
  identity:
    v: cda
  uri:
    v: http://hl7.org/v3/cda
  name:
    v: CDA (R2)
mapping:
  identity:
    v: fhirdocumentreference
  uri:
    v: http://hl7.org/fhir/documentreference
  name:
    v: FHIR DocumentReference
mapping:
  identity:
    v: w5
  uri:
    v: http://hl7.org/fhir/fivews
  name:
    v: FiveWs Pattern Mapping
kind:
  v: resource
abstract:
  v: false
type:
  v: Composition
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Composition
  link: http://hl7.org/fhir/StructureDefinition/Composition
derivation:
  v: constraint
snapshot:
  element:
    id:
      v: Composition
    path:
      v: Composition
    short:
      v: Jurisdiction Live Birth Report
    definition:
      v: A set of healthcare-related information that is assembled together into a single logical package 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. A Composition defines the structure and narrative content necessary for a document. However, a Composition alone does not constitute a document. Rather, the Composition must be the first entry in a Bundle where Bundle.type=document, and any other resources referenced from Composition must be included as subsequent entries in the Bundle (for example Patient, Practitioner, Encounter, etc.).
    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
        link: http://hl7.org/fhir/StructureDefinition/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
        link: http://hl7.org/fhir/StructureDefinition/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
        link: http://hl7.org/fhir/StructureDefinition/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
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-6
      severity:
        v: warning
      human:
        v: A resource should have narrative for robust management
      expression:
        v: text.`div`.exists()
      xpath:
        v: exists(f:text/h:div)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    is modifier:
      v: false
    is summary:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: Entity. Role, or Act
    mapping:
      identity:
        v: workflow
      map:
        v: Event
    mapping:
      identity:
        v: rim

v: true

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: 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
    value:
      v: id
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: true

id:
  v: Composition.meta
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
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
    link: http://hl7.org/fhir/StructureDefinition/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
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
    link: http://hl7.org/fhir/StructureDefinition/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
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: 0
max:
  v: 1
base:
  path:
    v: Resource.language
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: 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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
    value:
      v: http://hl7.org/fhir/ValueSet/all-languages
      link: http://hl7.org/fhir/ValueSet/all-languages
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: Language
  strength:
    v: preferred
  description:
    v: A human language.
  value set:
    v: http://hl7.org/fhir/ValueSet/languages
    link: http://hl7.org/fhir/ValueSet/languages

id:
  v: Composition.text
path:
  v: Composition.text
short:
  v: Text summary of the resource, for human interpretation
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
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
    link: http://hl7.org/fhir/StructureDefinition/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
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
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 2
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: 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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/Extension
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false

id:
  v: Composition.extension:liveBirthCertificateNumber
path:
  v: Composition.extension
slice name:
  v: liveBirthCertificateNumber
short:
  v: Birth Number
definition:
  v: An Extension
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Extension-live-birth-certificate-number
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Extension-live-birth-certificate-number
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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/Extension
must support:
  v: true
is modifier:
  v: false

id:
  v: Composition.extension:liveBirthLocalFileNumber
path:
  v: Composition.extension
slice name:
  v: liveBirthLocalFileNumber
short:
  v: Local File No.
definition:
  v: An Extension
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Extension-live-birth-local-file-number
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Extension-live-birth-local-file-number
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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/Extension
must support:
  v: true
is modifier:
  v: false

id:
  v: Composition.extension:dateFiledByRegistrar
path:
  v: Composition.extension
slice name:
  v: dateFiledByRegistrar
short:
  v: Date filed by registrar
definition:
  v: An Extension
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Extension-date-filed-by-registrar
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Extension-date-filed-by-registrar
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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/Extension
must support:
  v: true
is modifier:
  v: false

id:
  v: Composition.extension:replacementStatus
path:
  v: Composition.extension
slice name:
  v: replacementStatus
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Extension-replacement-status
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Extension-replacement-status
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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/Extension
must support:
  v: true
is modifier:
  v: false

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/R4/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
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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/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: Version-independent identifier for the Composition
definition:
  v: A version-independent identifier for the Composition. This identifier stays constant as the composition is changed over time.
comment:
  v: Similar to ClinicalDocument/setId in CDA. See discussion in resource definition for how these relate.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: 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
    link: http://hl7.org/fhir/StructureDefinition/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
path:
  v: Composition.status
short:
  v: In the case of a live birth sent in error, a status of 'entered-in-error' must be set.
definition:
  v: In the case of a live birth sent in error, a status of 'entered-in-error' must be set.
comment:
  v: If a composition is marked as withdrawn, the compositions/documents in the series, or data from the composition or document series, should never be displayed to a user without being clearly marked as untrustworthy. The flag "entered-in-error" is why this element is labeled as a modifier of other elements. Some reporting work flows require that the original narrative of a final document never be altered; instead, only new narrative can be added. The composition resource has no explicit status for explicitly noting whether this business rule is in effect. This would be handled by an extension if required.
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
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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
    value:
      v: CompositionStatus
  strength:
    v: required
  description:
    v: The workflow/clinical status of the composition.
  value set:
    v: http://hl7.org/fhir/ValueSet/composition-status|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: workflow
  map:
    v: Event.status
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.status
mapping:
  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"
mapping:
  identity:
    v: cda
  map:
    v: n/a
mapping:
  identity:
    v: fhirdocumentreference
  map:
    v: DocumentReference.status

id:
  v: Composition.type
path:
  v: Composition.type
short:
  v: Jurisdiction live birth report Document
definition:
  v: Jurisdiction live birth report Document
comment:
  v: For Composition type, LOINC is ubiquitous and strongly endorsed by HL7. Most implementation guides will require a specific LOINC code, or use LOINC as an extensible binding.
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
pattern: CodeableConcept
  coding: https://loinc.org/rdf/92011-6
    system:
      v: http://loinc.org
    code:
      v: 92011-6
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: DocumentType
  strength:
    v: preferred
  description:
    v: Type of a composition.
  value set:
    v: http://hl7.org/fhir/ValueSet/doc-typecodes
    link: http://hl7.org/fhir/ValueSet/doc-typecodes
mapping:
  identity:
    v: workflow
  map:
    v: Event.code
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class
mapping:
  identity:
    v: rim
  map:
    v: ./code
mapping:
  identity:
    v: cda
  map:
    v: .code
mapping:
  identity:
    v: fhirdocumentreference
  map:
    v: DocumentReference.type

id:
  v: Composition.category
path:
  v: Composition.category
short:
  v: Categorization of Composition
definition:
  v: A categorization for the type of the composition - helps for indexing and searching. This may be implied by or derived from the code specified in the Composition Type.
comment:
  v: This is a metadata field from [XDS/MHD](http://wiki.ihe.net/index.php?title=Mobile_access_to_Health_Documents_(MHD)).
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
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      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
    link: http://hl7.org/fhir/ValueSet/document-classcodes
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
path:
  v: Composition.subject
short:
  v: The subject of the composition is the newborn baby
definition:
  v: The subject of the composition as a whole is the newborn baby. Different sections in the composition have different focus (e.g.: the mother).
comment:
  v: For clinical documents, this is usually the patient.
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
  target profile:
    v: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Patient-child-vr
    link: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Patient-child-vr
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.subject[x]
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode="SBJ"].role[typeCode="PAT"]
mapping:
  identity:
    v: cda
  map:
    v: .recordTarget
mapping:
  identity:
    v: fhirdocumentreference
  map:
    v: DocumentReference.subject
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.subject

id:
  v: Composition.encounter
path:
  v: Composition.encounter
short:
  v: The Encounter for the Composition is the newborn's birth encounter.
definition:
  v: The Encounter for the Composition is the newborn's birth encounter. This Encounter links to the mother's encounter by the Encounter.partOf data element.
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
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Encounter-birth
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Encounter-birth
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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.encounter.id
path:
  v: Composition.encounter.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
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Composition.encounter.extension
path:
  v: Composition.encounter.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: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Extension-encounter-maternity-reference
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Extension-encounter-maternity-reference
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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: Composition.encounter.reference
path:
  v: Composition.encounter.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: Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.reference
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: 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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Composition.encounter.type
path:
  v: Composition.encounter.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
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      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
    link: http://hl7.org/fhir/ValueSet/resource-types
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Composition.encounter.identifier
path:
  v: Composition.encounter.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
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .identifier

id:
  v: Composition.encounter.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value:
    v: true
path:
  v: Composition.encounter.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
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Composition.date
path:
  v: Composition.date
short:
  v: Date report completed
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](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
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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
  map:
    v: .effectiveTime[type="TS"]
mapping:
  identity:
    v: cda
  map:
    v: .effectiveTime
mapping:
  identity:
    v: fhirdocumentreference
  map:
    v: DocumentReference.content.attachment.date, DocumentReference.created

id:
  v: Composition.author
path:
  v: Composition.author
short:
  v: The author is the jurisdictional Vital Records Office.
definition:
  v: The author is the jurisdictional Vital Records Office.
requirements:
  v: Identifies who is responsible for the content.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Composition.author
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization
    link: http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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
path:
  v: Composition.title
short:
  v: Human Readable name/title
definition:
  v: Official human-readable label for the composition.
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
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
    link: http://hl7.org/fhir/StructureDefinition/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
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: 0
max:
  v: 1
base:
  path:
    v: Composition.confidentiality
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: 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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      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
    link: 2014
    link: -03
    link: -26
mapping:
  identity:
    v: rim
  map:
    v: .confidentialityCode
mapping:
  identity:
    v: cda
  map:
    v: .confidentialityCode
mapping:
  identity:
    v: fhirdocumentreference
  map:
    v: DocumentReference.securityLabel

id:
  v: Composition.attester
path:
  v: Composition.attester
short:
  v: Attests to accuracy of composition
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
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
    link: http://hl7.org/fhir/StructureDefinition/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
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/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
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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/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/R4/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
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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/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: personal | professional | legal | official
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
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      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
    link: 4.0
    link: .1
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 composition was attested
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
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
    link: http://hl7.org/fhir/StructureDefinition/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 composition
definition:
  v: Who attested the composition in the specified way.
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
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    link: http://hl7.org/fhir/StructureDefinition/Patient
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    link: http://hl7.org/fhir/StructureDefinition/RelatedPerson
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PractitionerRole
    link: http://hl7.org/fhir/StructureDefinition/PractitionerRole
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    link: http://hl7.org/fhir/StructureDefinition/Organization
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
    link: http://hl7.org/fhir/StructureDefinition/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
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: 0
max:
  v: 1
base:
  path:
    v: Composition.custodian
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    link: http://hl7.org/fhir/StructureDefinition/Organization
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
    link: http://hl7.org/fhir/StructureDefinition/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
mapping:
  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
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
    link: http://hl7.org/fhir/StructureDefinition/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
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/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
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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/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/R4/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
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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/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
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      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
    link: 4.0
    link: .1
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
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Composition
    link: 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
    link: http://hl7.org/fhir/StructureDefinition/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 clinical 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
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
    link: http://hl7.org/fhir/StructureDefinition/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
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/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
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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/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/R4/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
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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/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 event 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
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      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
    link: 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: The period 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
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
    link: http://hl7.org/fhir/StructureDefinition/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 event(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
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource
    link: 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
    link: http://hl7.org/fhir/StructureDefinition/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: pattern
    path:
      v: code
  rules:
    v: open
short:
  v: The Composition is broken into sections that, where possible, align with the sections in the Live Birth Certificate.
definition:
  v: The Composition is broken into sections that, where possible, align with the sections in the Live Birth Certificate. Various administrative and demographic data in the Birth Certificate are contained in other locations in the Composition, such as the Patient and Encounter profiles.
min:
  v: 1
max:
  v: *
base:
  path:
    v: Composition.section
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: 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/Composition
    link: http://hl7.org/fhir/StructureDefinition/Composition
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/Composition
    link: 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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/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
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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/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/R4/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
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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/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: 0
max:
  v: 1
base:
  path:
    v: Composition.section.title
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: 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
    link: http://hl7.org/fhir/StructureDefinition/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: 0
max:
  v: 1
base:
  path:
    v: Composition.section.code
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: 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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      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
    link: 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
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PractitionerRole
    link: http://hl7.org/fhir/StructureDefinition/PractitionerRole
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Device
    link: http://hl7.org/fhir/StructureDefinition/Device
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    link: http://hl7.org/fhir/StructureDefinition/Patient
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    link: http://hl7.org/fhir/StructureDefinition/RelatedPerson
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    link: http://hl7.org/fhir/StructureDefinition/Organization
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
    link: http://hl7.org/fhir/StructureDefinition/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
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource
    link: 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
    link: http://hl7.org/fhir/StructureDefinition/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
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
    link: http://hl7.org/fhir/StructureDefinition/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
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      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
    link: 4.0
    link: .1
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
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      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
    link: 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
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource
    link: 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
    link: http://hl7.org/fhir/StructureDefinition/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
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      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
    link: 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
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
    link: http://hl7.org/fhir/StructureDefinition/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:motherPrenatal
path:
  v: Composition.section
slice name:
  v: motherPrenatal
short:
  v: Mother (prenatal) section on the Live Birth Certificate
definition:
  v: This section contains items from the Mother (prenatal) on theLive Birth Certificate.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: 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/Composition
    link: http://hl7.org/fhir/StructureDefinition/Composition
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/Composition
    link: 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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:motherPrenatal.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
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Composition.section:motherPrenatal.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
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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Composition.section:motherPrenatal.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/R4/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
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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/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:motherPrenatal.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: 0
max:
  v: 1
base:
  path:
    v: Composition.section.title
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: 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
    link: http://hl7.org/fhir/StructureDefinition/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:motherPrenatal.code
path:
  v: Composition.section.code
short:
  v: Prenatal records
definition:
  v: Prenatal records
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
pattern: CodeableConcept
  coding: https://loinc.org/rdf/57073-9
    system:
      v: http://loinc.org
    code:
      v: 57073-9
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      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
    link: 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:motherPrenatal.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
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PractitionerRole
    link: http://hl7.org/fhir/StructureDefinition/PractitionerRole
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Device
    link: http://hl7.org/fhir/StructureDefinition/Device
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    link: http://hl7.org/fhir/StructureDefinition/Patient
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    link: http://hl7.org/fhir/StructureDefinition/RelatedPerson
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    link: http://hl7.org/fhir/StructureDefinition/Organization
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
    link: http://hl7.org/fhir/StructureDefinition/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:motherPrenatal.focus
path:
  v: Composition.section.focus
short:
  v: The focus of this section is the mother
definition:
  v: The subject of the composition as a whole is the newborn baby. The focus of this section in the composition is the mother.
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: 1
max:
  v: 1
base:
  path:
    v: Composition.section.focus
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Patient-mother-vr
    link: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Patient-mother-vr
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:motherPrenatal.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
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
    link: http://hl7.org/fhir/StructureDefinition/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:motherPrenatal.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
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      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
    link: 4.0
    link: .1
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:motherPrenatal.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
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      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
    link: 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:motherPrenatal.entry
path:
  v: Composition.section.entry
slicing:
  discriminator:
    type:
      v: profile
    path:
      v: $this.resolve()
  ordered:
    v: false
  rules:
    v: open
short:
  v: Entries that are contained in the Mother Prenatal section
definition:
  v: Entries that are contained in the Mother Prenatal section
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
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource
    link: 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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:motherPrenatal.entry:plannedToDeliverAtHome
path:
  v: Composition.section.entry
slice name:
  v: plannedToDeliverAtHome
short:
  v: Planned to deliver at home
definition:
  v: Planned to deliver at home
comment:
  v: If there are no entries in the list, an emptyReason SHOULD be provided.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.entry
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Observation-planned-to-deliver-at-home
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Observation-planned-to-deliver-at-home
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:motherPrenatal.entry:firstPrenatalCareVisit
path:
  v: Composition.section.entry
slice name:
  v: firstPrenatalCareVisit
short:
  v: First prenatal care visit
definition:
  v: Date that mother had her first prenatal care visit.
comment:
  v: If there are no entries in the list, an emptyReason SHOULD be provided.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.entry
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Observation-date-of-first-prenatal-care-visit
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Observation-date-of-first-prenatal-care-visit
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:motherPrenatal.entry:numberPrenatalCareVisits
path:
  v: Composition.section.entry
slice name:
  v: numberPrenatalCareVisits
short:
  v: Number of prenatal care visits
definition:
  v: Those visits which are listed in the mother's prenatal care and/or facility records.
comment:
  v: If there are no entries in the list, an emptyReason SHOULD be provided.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.entry
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-number-prenatal-visits-vr
    link: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-number-prenatal-visits-vr
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:motherPrenatal.entry:dateLastNormalMenses
path:
  v: Composition.section.entry
slice name:
  v: dateLastNormalMenses
short:
  v: Date last normal menses began
definition:
  v: Date that the mother's last normal menses began. This item is used to compute the gestational age of the infant.
comment:
  v: If there are no entries in the list, an emptyReason SHOULD be provided.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.entry
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-last-menstrual-period-vr
    link: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-last-menstrual-period-vr
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:motherPrenatal.entry:numberNowLiving
path:
  v: Composition.section.entry
slice name:
  v: numberNowLiving
short:
  v: Number of previous live births now living
definition:
  v: The pregnancy history of the mother with respect to previous children born alive
comment:
  v: If there are no entries in the list, an emptyReason SHOULD be provided.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.entry
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-number-births-now-living-vr
    link: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-number-births-now-living-vr
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:motherPrenatal.entry:numberNowDead
path:
  v: Composition.section.entry
slice name:
  v: numberNowDead
short:
  v: Number of previous live births now dead
definition:
  v: The pregnancy history of the mother with respect to previous children born alive
comment:
  v: If there are no entries in the list, an emptyReason SHOULD be provided.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.entry
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-number-births-now-dead-vr
    link: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-number-births-now-dead-vr
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:motherPrenatal.entry:dateLastLiveBirth
path:
  v: Composition.section.entry
slice name:
  v: dateLastLiveBirth
short:
  v: Date of last live birth
definition:
  v: The pregnancy history of the mother with respect to previous children born alive
comment:
  v: If there are no entries in the list, an emptyReason SHOULD be provided.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.entry
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Observation-date-of-last-live-birth
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Observation-date-of-last-live-birth
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:motherPrenatal.entry:numberOtherOutcomes
path:
  v: Composition.section.entry
slice name:
  v: numberOtherOutcomes
short:
  v: Number of other pregnancy outcomes
definition:
  v: The pregnancy history of the mother with respect to other pregnancy outcomes (included pregnancy losses of any gestational age, e.g., spontaneous or induced losses or ectopic pregnancies).
comment:
  v: If there are no entries in the list, an emptyReason SHOULD be provided.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.entry
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-number-other-pregnancy-outcomes-vr
    link: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-number-other-pregnancy-outcomes-vr
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:motherPrenatal.entry:dateLastOtherOutcome
path:
  v: Composition.section.entry
slice name:
  v: dateLastOtherOutcome
short:
  v: Date of last other pregnancy outcome
definition:
  v: The pregnancy history of the mother with respect to other pregnancy outcomes (included pregnancy losses of any gestational age, e.g., spontaneous or induced losses or ectopic pregnancies).
comment:
  v: If there are no entries in the list, an emptyReason SHOULD be provided.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.entry
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Observation-date-of-last-other-pregnancy-outcome
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Observation-date-of-last-other-pregnancy-outcome
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:motherPrenatal.entry:principalSourceOfPayment
path:
  v: Composition.section.entry
slice name:
  v: principalSourceOfPayment
short:
  v: Principal source of payment for this delivery
definition:
  v: The principal payer for this delivery
comment:
  v: If there are no entries in the list, an emptyReason SHOULD be provided.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.entry
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Coverage-principal-payer-for-delivery
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Coverage-principal-payer-for-delivery
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:motherPrenatal.entry:mothersWeightAtDelivery
path:
  v: Composition.section.entry
slice name:
  v: mothersWeightAtDelivery
short:
  v: Mother's weight at delivery
definition:
  v: The mother's weight at the time of delivery
comment:
  v: If there are no entries in the list, an emptyReason SHOULD be provided.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.entry
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-mother-delivery-weight-vr
    link: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-mother-delivery-weight-vr
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:motherPrenatal.entry:mothersHeight
path:
  v: Composition.section.entry
slice name:
  v: mothersHeight
short:
  v: Mother's height
definition:
  v: The mother's height
comment:
  v: If there are no entries in the list, an emptyReason SHOULD be provided.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.entry
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-mother-height-vr
    link: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-mother-height-vr
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:motherPrenatal.entry:mothersPrepregnancyWeight
path:
  v: Composition.section.entry
slice name:
  v: mothersPrepregnancyWeight
short:
  v: Mother's prepregnancy weight
definition:
  v: The mother's prepregnancy weight
comment:
  v: If there are no entries in the list, an emptyReason SHOULD be provided.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.entry
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-mother-prepregnancy-weight-vr
    link: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-mother-prepregnancy-weight-vr
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:motherPrenatal.entry:motherReceivedWICFood
path:
  v: Composition.section.entry
slice name:
  v: motherReceivedWICFood
short:
  v: Use of the WIC nutritional program by the mother
definition:
  v: Use of the Women, Infant's, and Children (WIC) nutritional program by the mother during the pregnancy.
comment:
  v: If there are no entries in the list, an emptyReason SHOULD be provided.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.entry
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Observation-mother-received-wic-food
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Observation-mother-received-wic-food
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:motherPrenatal.entry:cigaretteSmokingBeforeDuringPregnancy
path:
  v: Composition.section.entry
slice name:
  v: cigaretteSmokingBeforeDuringPregnancy
short:
  v: Cigarettes smoked by the mother before and during the pregnancy
definition:
  v: The number of cigarettes or packs of cigarettes the mother smoked 3 months before and at various intervals during the pregnancy
comment:
  v: If there are no entries in the list, an emptyReason SHOULD be provided.
min:
  v: 0
max:
  v: 4
base:
  path:
    v: Composition.section.entry
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Observation-cigarette-smoking-before-during-pregnancy
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Observation-cigarette-smoking-before-during-pregnancy
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:motherPrenatal.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
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      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
    link: 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:motherPrenatal.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
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
    link: http://hl7.org/fhir/StructureDefinition/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:medicalHealthInformation
path:
  v: Composition.section
slice name:
  v: medicalHealthInformation
short:
  v: Medical and Health Information section on the Live Birth Certificate
definition:
  v: This section contains items from the Medical and Health Information section on the Live Birth Certificate.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: 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/Composition
    link: http://hl7.org/fhir/StructureDefinition/Composition
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/Composition
    link: 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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:medicalHealthInformation.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
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Composition.section:medicalHealthInformation.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
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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Composition.section:medicalHealthInformation.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/R4/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
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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/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:medicalHealthInformation.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: 0
max:
  v: 1
base:
  path:
    v: Composition.section.title
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: 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
    link: http://hl7.org/fhir/StructureDefinition/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:medicalHealthInformation.code
path:
  v: Composition.section.code
short:
  v: Clinical information
definition:
  v: Clinical information
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
pattern: CodeableConcept
  coding: https://loinc.org/rdf/55752-0
    system:
      v: http://loinc.org
    code:
      v: 55752-0
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      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
    link: 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:medicalHealthInformation.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
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PractitionerRole
    link: http://hl7.org/fhir/StructureDefinition/PractitionerRole
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Device
    link: http://hl7.org/fhir/StructureDefinition/Device
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    link: http://hl7.org/fhir/StructureDefinition/Patient
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    link: http://hl7.org/fhir/StructureDefinition/RelatedPerson
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    link: http://hl7.org/fhir/StructureDefinition/Organization
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
    link: http://hl7.org/fhir/StructureDefinition/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:medicalHealthInformation.focus
path:
  v: Composition.section.focus
short:
  v: The focus of this section is the mother
definition:
  v: The subject of the composition as a whole is the newborn baby. The focus of this section in the composition is the mother.
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: 1
max:
  v: 1
base:
  path:
    v: Composition.section.focus
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Patient-mother-vr
    link: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Patient-mother-vr
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:medicalHealthInformation.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
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
    link: http://hl7.org/fhir/StructureDefinition/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:medicalHealthInformation.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
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      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
    link: 4.0
    link: .1
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:medicalHealthInformation.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
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      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
    link: 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:medicalHealthInformation.entry
path:
  v: Composition.section.entry
slicing:
  discriminator:
    type:
      v: profile
    path:
      v: $this.resolve()
  ordered:
    v: false
  rules:
    v: open
short:
  v: Entries that are contained in the medical and health information section
definition:
  v: Entries that are contained in the medical and health information section
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
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource
    link: 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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:medicalHealthInformation.entry:pregnancyRiskFactors
path:
  v: Composition.section.entry
slice name:
  v: pregnancyRiskFactors
short:
  v: Risk factors in this pregnancy
definition:
  v: Selected medical risk factors of the mother during this pregnancy
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
  target profile:
    v: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Condition-prepregnancy-diabetes-vr
    link: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Condition-prepregnancy-diabetes-vr
  target profile:
    v: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Condition-gestational-diabetes-vr
    link: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Condition-gestational-diabetes-vr
  target profile:
    v: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Condition-prepregnancy-hypertension-vr
    link: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Condition-prepregnancy-hypertension-vr
  target profile:
    v: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Condition-gestational-hypertension-vr
    link: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Condition-gestational-hypertension-vr
  target profile:
    v: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Condition-eclampsia-hypertension-vr
    link: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Condition-eclampsia-hypertension-vr
  target profile:
    v: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-previous-preterm-birth-vr
    link: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-previous-preterm-birth-vr
  target profile:
    v: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Procedure-infertility-treatment-vr
    link: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Procedure-infertility-treatment-vr
  target profile:
    v: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Procedure-artificial-insemination-vr
    link: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Procedure-artificial-insemination-vr
  target profile:
    v: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Procedure-assisted-fertilization-vr
    link: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Procedure-assisted-fertilization-vr
  target profile:
    v: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-previous-cesarean-vr
    link: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-previous-cesarean-vr
  target profile:
    v: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-none-of-specified-pregnancy-risk-factors-vr
    link: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-none-of-specified-pregnancy-risk-factors-vr
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:medicalHealthInformation.entry:numberPreviousCesareans
path:
  v: Composition.section.entry
slice name:
  v: numberPreviousCesareans
short:
  v: If mother had a previous cesarean delivery, how many
definition:
  v: Number of previous cesarean deliveries.
comment:
  v: If there are no entries in the list, an emptyReason SHOULD be provided.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.entry
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-number-previous-cesareans-vr
    link: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-number-previous-cesareans-vr
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:medicalHealthInformation.entry:infectionsDuringPregnancy
path:
  v: Composition.section.entry
slice name:
  v: infectionsDuringPregnancy
short:
  v: Infections present and/or treated during this pregnancy
definition:
  v: Selected infections that the mother had or was treated for during the course of this pregnancy
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
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Condition-infection-present-during-pregnancy
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Condition-infection-present-during-pregnancy
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:medicalHealthInformation.entry:obstetricProcedures
path:
  v: Composition.section.entry
slice name:
  v: obstetricProcedures
short:
  v: Obstetric procedures
definition:
  v: Selected medical treatments or invasive/manipulative procedures performed during this pregnancy specifically for management of labor and delivery
comment:
  v: If there are no entries in the list, an emptyReason SHOULD be provided.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Composition.section.entry
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Procedure-obstetric
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Procedure-obstetric
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:medicalHealthInformation.entry:characteristicsLaborDelivery
path:
  v: Composition.section.entry
slice name:
  v: characteristicsLaborDelivery
short:
  v: Characteristics of labor and delivery
definition:
  v: Information about the course of labor and delivery
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
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Procedure-induction-of-labor
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Procedure-induction-of-labor
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Procedure-augmentation-of-labor
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Procedure-augmentation-of-labor
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Observation-steroids-fetal-lung-maturation
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Observation-steroids-fetal-lung-maturation
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Observation-antibiotics-during-labor
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Observation-antibiotics-during-labor
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Condition-chorioamnionitis
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Condition-chorioamnionitis
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Procedure-epidural-or-spinal-anesthesia
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Procedure-epidural-or-spinal-anesthesia
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Observation-none-of-specified-characteristics-labor-delivery
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Observation-none-of-specified-characteristics-labor-delivery
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:medicalHealthInformation.entry:fetalPresentation
path:
  v: Composition.section.entry
slice name:
  v: fetalPresentation
short:
  v: Fetal presentation at birth
definition:
  v: Fetal presentation at birth
comment:
  v: If there are no entries in the list, an emptyReason SHOULD be provided.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.entry
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Observation-fetal-presentation
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Observation-fetal-presentation
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:medicalHealthInformation.entry:finalRouteMethodDelivery
path:
  v: Composition.section.entry
slice name:
  v: finalRouteMethodDelivery
short:
  v: Final route and method of delivery
definition:
  v: Final route and method of delivery
comment:
  v: If there are no entries in the list, an emptyReason SHOULD be provided.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.entry
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Procedure-final-route-method-delivery
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Procedure-final-route-method-delivery
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:medicalHealthInformation.entry:maternalMorbidity
path:
  v: Composition.section.entry
slice name:
  v: maternalMorbidity
short:
  v: Maternal morbidity (complications associated with labor and delivery)
definition:
  v: Serious complications experienced by the mother associated with labor and delivery
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
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Procedure-blood-transfusion
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Procedure-blood-transfusion
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Condition-perineal-laceration
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Condition-perineal-laceration
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Condition-ruptured-uterus
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Condition-ruptured-uterus
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Procedure-unplanned-hysterectomy
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Procedure-unplanned-hysterectomy
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Observation-icu-admission
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Observation-icu-admission
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Observation-none-of-specified-maternal-morbidities
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Observation-none-of-specified-maternal-morbidities
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:medicalHealthInformation.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
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      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
    link: 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:medicalHealthInformation.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
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
    link: http://hl7.org/fhir/StructureDefinition/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:newbornInformation
path:
  v: Composition.section
slice name:
  v: newbornInformation
short:
  v: Newborn section on the Live Birth Certificate
definition:
  v: This section contains items from the newborn section on the Live Birth Certificate.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: 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/Composition
    link: http://hl7.org/fhir/StructureDefinition/Composition
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/Composition
    link: 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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:newbornInformation.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
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Composition.section:newbornInformation.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
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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Composition.section:newbornInformation.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/R4/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
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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/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:newbornInformation.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: 0
max:
  v: 1
base:
  path:
    v: Composition.section.title
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: 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
    link: http://hl7.org/fhir/StructureDefinition/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:newbornInformation.code
path:
  v: Composition.section.code
short:
  v: Newborn delivery information
definition:
  v: Newborn delivery information
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
pattern: CodeableConcept
  coding: https://loinc.org/rdf/57075-4
    system:
      v: http://loinc.org
    code:
      v: 57075-4
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      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
    link: 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:newbornInformation.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
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PractitionerRole
    link: http://hl7.org/fhir/StructureDefinition/PractitionerRole
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Device
    link: http://hl7.org/fhir/StructureDefinition/Device
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    link: http://hl7.org/fhir/StructureDefinition/Patient
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    link: http://hl7.org/fhir/StructureDefinition/RelatedPerson
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    link: http://hl7.org/fhir/StructureDefinition/Organization
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
    link: http://hl7.org/fhir/StructureDefinition/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:newbornInformation.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
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource
    link: 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
    link: http://hl7.org/fhir/StructureDefinition/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:newbornInformation.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
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
    link: http://hl7.org/fhir/StructureDefinition/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:newbornInformation.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
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      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
    link: 4.0
    link: .1
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:newbornInformation.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
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      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
    link: 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:newbornInformation.entry
path:
  v: Composition.section.entry
slicing:
  discriminator:
    type:
      v: profile
    path:
      v: $this.resolve()
  ordered:
    v: false
  rules:
    v: open
short:
  v: Entries that are contained in the newborn section
definition:
  v: Entries that are contained in the newborn section
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
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource
    link: 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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:newbornInformation.entry:birthWeight
path:
  v: Composition.section.entry
slice name:
  v: birthWeight
short:
  v: Birthweight
definition:
  v: The weight of the infant/fetus at birth/delivery
comment:
  v: If there are no entries in the list, an emptyReason SHOULD be provided.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.entry
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-birth-weight-vr
    link: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-birth-weight-vr
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:newbornInformation.entry:gestationalAgeAtDelivery
path:
  v: Composition.section.entry
slice name:
  v: gestationalAgeAtDelivery
short:
  v: Obstetric estimate of gestation
definition:
  v: The obstetric estimate of the infant’s gestation in completed weeks based on the birth/delivery attendant’s final estimate of gestation which should be determined by all perinatal factors and assessments such as ultrasound, but not the neonatal exam
comment:
  v: If there are no entries in the list, an emptyReason SHOULD be provided.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.entry
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-gestational-age-at-delivery-vr
    link: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-gestational-age-at-delivery-vr
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:newbornInformation.entry:ApgarScore
path:
  v: Composition.section.entry
slice name:
  v: ApgarScore
short:
  v: Apgar Score - while the Apgar timing value set contains 3 possible values, 5 and 10 are the only scores used.
definition:
  v: The Apgar Score for the child.
comment:
  v: If there are no entries in the list, an emptyReason SHOULD be provided.
min:
  v: 0
max:
  v: 2
base:
  path:
    v: Composition.section.entry
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-apgar-score-vr
    link: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-apgar-score-vr
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:newbornInformation.entry:numberLiveBirthsThisDelivery
path:
  v: Composition.section.entry
slice name:
  v: numberLiveBirthsThisDelivery
short:
  v: Number of live births this delivery
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: 1
base:
  path:
    v: Composition.section.entry
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-number-live-births-this-delivery-vr
    link: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-number-live-births-this-delivery-vr
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:newbornInformation.entry:abnormalConditionsNewborn
path:
  v: Composition.section.entry
slice name:
  v: abnormalConditionsNewborn
short:
  v: Abnormal conditions of the newborn
definition:
  v: Disorders or significant morbidity experienced by the newborn infant
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
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Procedure-assisted-ventilation-following-delivery
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Procedure-assisted-ventilation-following-delivery
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Procedure-assisted-ventilation-more-than-six-hours
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Procedure-assisted-ventilation-more-than-six-hours
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Observation-nicu-admission
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Observation-nicu-admission
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Procedure-surfactant-replacement-therapy
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Procedure-surfactant-replacement-therapy
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Procedure-antibiotic-suspected-neonatal-sepsis
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Procedure-antibiotic-suspected-neonatal-sepsis
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Condition-seizure
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Condition-seizure
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Observation-none-of-specified-abnormal-conditions-of-newborn
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Observation-none-of-specified-abnormal-conditions-of-newborn
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:newbornInformation.entry:congenitalAnomaliesNewborn
path:
  v: Composition.section.entry
slice name:
  v: congenitalAnomaliesNewborn
short:
  v: Congenital anomolies of the newborn
definition:
  v: Malformations of the newborn diagnosed prenatally or after delivery
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
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Condition-congenital-anomaly-of-newborn
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Condition-congenital-anomaly-of-newborn
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:newbornInformation.entry:infantLiving
path:
  v: Composition.section.entry
slice name:
  v: infantLiving
short:
  v: Is infant living at time of report?
definition:
  v: Information on the infant's survival
comment:
  v: If there are no entries in the list, an emptyReason SHOULD be provided.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.entry
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-infant-living-vr
    link: http://hl7.org/fhir/us/vr-common-library/StructureDefinition/Observation-infant-living-vr
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:newbornInformation.entry:infantBreastfedAtDischarge
path:
  v: Composition.section.entry
slice name:
  v: infantBreastfedAtDischarge
short:
  v: Is infant being breastfed at discharge?
definition:
  v: Information on whether the infant is being breastfed at discharge from the hospital
comment:
  v: If there are no entries in the list, an emptyReason SHOULD be provided.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section.entry
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Observation-infant-breastfed-at-discharge
    link: https://profiles.ihe.net/QRPH/bfdr/StructureDefinition/Observation-infant-breastfed-at-discharge
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:newbornInformation.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
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      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
    link: 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:newbornInformation.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
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
    link: http://hl7.org/fhir/StructureDefinition/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:motherInformation
path:
  v: Composition.section
slice name:
  v: motherInformation
short:
  v: Mother administrative section on the Live Birth Certificate
definition:
  v: This section contains items from the Mother administrative section on the Live Birth Certificate.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Composition.section
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: 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/Composition
    link: http://hl7.org/fhir/StructureDefinition/Composition
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/Composition
    link: 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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
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:motherInformation.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
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Composition.section:motherInformation.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
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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Composition.section:motherInformation.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/R4/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
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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/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:motherInformation.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: 0
max:
  v: 1
base:
  path:
    v: Composition.section.title
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: 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
    link: http://hl7.org/fhir/StructureDefinition/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:motherInformation.code
path:
  v: Composition.section.code
short:
  v: Mother's administrative information
definition:
  v: Mother's administrative information
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
pattern: CodeableConcept
  coding: https://loinc.org/rdf/92014-0
    system:
      v: http://loinc.org
    code:
      v: 92014-0
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      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
    link: 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:motherInformation.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
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PractitionerRole
    link: http://hl7.org/fhir/StructureDefinition/PractitionerRole
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Device
    link: http://hl7.org/fhir/StructureDefinition/Device
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    link: http://hl7.org/fhir/StructureDefinition/Patient
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    link: http://hl7.org/fhir/StructureDefinition/RelatedPerson
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    link: http://hl7.org/fhir/StructureDefinition/Organization
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
    link: http://hl7.org/fhir/StructureDefinition/Element