mccod-frame-b-model
type: StructureDefinition
node role: treeRoot
id:
  v: mccod-frame-b-model
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition mccod-frame-b-model Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> <a href="StructureDefinition-mccod-frame-b-model-definitions.html#mccod-frame-b-model" title="Logical model representing the data elements of Frame B (Other Medical#xA;Data) of the WHO Medical Certificate of Cause of Death (MCCoD).#xA;#xA;Frame B is OPTIONAL at the section level. However, certain sub-sections#xA;SHOULD be populated based on the clinical context of the death:#xA;- The Fetal or Infant Death sub-section SHOULD be populated when the#xA; deceased was an infant or newborn (age at death less than 28 days),#xA; or when the death was a stillbirth.#xA;- The Women of Reproductive Age sub-section SHOULD be populated when#xA; the deceased was female and aged 15–49 years at time of death.#xA;- External cause elements SHOULD be populated when manner of death#xA; is Assault, Accident, Legal Intervention, Intentional Self Harm,#xA; or War.#xA;#xA;These conditional requirements are enforced as warning-level invariants#xA;in the MCCoDComposition profile, not as hard errors, consistent with#xA;the optional nature of Frame B.#xA;#xA;This model is derived from:#xA;- WHO International Form of Medical Certificate of Cause of Death#xA;- openEHR-EHR-EVALUATION.death_summary.v0 (CKM archetype)#xA;- WHO SMART Guidelines L2 DAK data dictionary pattern">mccod-frame-b-model 0..* Base MCCoD Frame B Logical Model — Other Medical Data #xD; generalMedicalData 0..1 BackboneElement General Medical Data #xD; surgeryPerformed 0..1 BackboneElement Surgery within last 4 weeks #xD; wasPerformed 1..1 code Surgery performed (Yes/No/Unknown) #xD; dateOfSurgery 0..1 date Date of surgery #xD; reasonForSurgery 0..1 string Reason for surgery #xD; autopsy 0..1 BackboneElement Autopsy #xD; wasRequested 1..1 code Autopsy requested (Yes/No/Unknown) #xD; findingsUsedInCertification 0..1 code Autopsy findings used in certification …
url:
  v: http://mccod.w3datanet.com/fhir/StructureDefinition/mccod-frame-b-model
  l: mccod-frame-b-model
version:
  v: 0.1.0
name:
  v: MCCoDFrameBModel
title:
  v: MCCoD Frame B Logical Model — Other Medical Data
status:
  v: draft
experimental:
  v: true
date:
  v: 2026-05-21
publisher:
  v: Asia eHealth Information Network (AeHIN)
contact:
  name:
    v: Asia eHealth Information Network (AeHIN)
  telecom:
    system:
      v: url
    value:
      v: https://www.asiaehealthinformationnetwork.org
contact:
  name:
    v: AeHIN Secretariat
  telecom:
    system:
      v: url
    value:
      v: https://www.asiaehealthinformationnetwork.org
description:
  v: Logical model representing the data elements of Frame B (Other Medical Data) of the WHO Medical Certificate of Cause of Death (MCCoD). Frame B is OPTIONAL at the section level. However, certain sub-sections SHOULD be populated based on the clinical context of the death: - The Fetal or Infant Death sub-section SHOULD be populated when the deceased was an infant or newborn (age at death less than 28 days), or when the death was a stillbirth. - The Women of Reproductive Age sub-section SHOULD be populated when the deceased was female and aged 15–49 years at time of death. - External cause elements SHOULD be populated when manner of death is Assault, Accident, Legal Intervention, Intentional Self Harm, or War. These conditional requirements are enforced as warning-level invariants in the MCCoDComposition profile, not as hard errors, consistent with the optional nature of Frame B. This model is derived from: - WHO International Form of Medical Certificate of Cause of Death - openEHR-EHR-EVALUATION.death_summary.v0 (CKM archetype) - WHO SMART Guidelines L2 DAK data dictionary pattern
jurisdiction:
  coding:
    system:
      v: http://un.org
      l: un.org
    code:
      v: 142
    display:
      v: Asia
  coding:
    system:
      v: http://hl7.org
      l: hl7.org
    code:
      v: X1
    display:
      v: Asia
copyright:
  v: Copyright 2026 AeHIN. Licensed under CC0-1.0.
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: WHO-MCCoD
  uri:
    v: https://www.who.int/standards/classifications/classification-of-diseases/mccod
    l: mccod
  name:
    v: WHO Medical Certificate of Cause of Death
mapping:
  identity:
    v: openEHR
  uri:
    v: https://ckm.openehr.org/ckm/archetypes/1013.1.5605
    l: https://ckm.openehr.org/ckm/archetypes/1013.1.5605
  name:
    v: openEHR death_summary archetype (v0)
mapping:
  identity:
    v: FHIR-MCCoD
  uri:
    v: http://mccod.w3datanet.com/fhir
    l: fhir
  name:
    v: AeHIN MCCoD FHIR IG Profiles
kind:
  v: logical
abstract:
  v: false
type:
  v: http://mccod.w3datanet.com/fhir/StructureDefinition/mccod-frame-b-model
  l: mccod-frame-b-model
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Base
  l: Base
derivation:
  v: specialization
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
      l: snapshot-base-version
    value: String
      v: 4.0.1
  element:
    id:
      v: mccod-frame-b-model
    path:
      v: mccod-frame-b-model
    short:
      v: MCCoD Frame B Logical Model — Other Medical Data
    definition:
      v: Logical model representing the data elements of Frame B (Other Medical Data) of the WHO Medical Certificate of Cause of Death (MCCoD). Frame B is OPTIONAL at the section level. However, certain sub-sections SHOULD be populated based on the clinical context of the death: - The Fetal or Infant Death sub-section SHOULD be populated when the deceased was an infant or newborn (age at death less than 28 days), or when the death was a stillbirth. - The Women of Reproductive Age sub-section SHOULD be populated when the deceased was female and aged 15–49 years at time of death. - External cause elements SHOULD be populated when manner of death is Assault, Accident, Legal Intervention, Intentional Self Harm, or War. These conditional requirements are enforced as warning-level invariants in the MCCoDComposition profile, not as hard errors, consistent with the optional nature of Frame B. This model is derived from: - WHO International Form of Medical Certificate of Cause of Death - openEHR-EHR-EVALUATION.death_summary.v0 (CKM archetype) - WHO SMART Guidelines L2 DAK data dictionary pattern
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Base
      min:
        v: 0
      max:
        v: *
    is modifier:
      v: false
  element:
    id:
      v: mccod-frame-b-model.generalMedicalData
    path:
      v: mccod-frame-b-model.generalMedicalData
    short:
      v: General Medical Data
    definition:
      v: General medical data about the circumstances of death including surgery, autopsy, manner of death, and external cause details. This sub-section is optional but SHOULD be populated when any of its elements are known.
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: mccod-frame-b-model.generalMedicalData
      min:
        v: 0
      max:
        v: 1
    type:
      code:
        v: BackboneElement
        l: BackboneElement
    constraint:
      key:
        v: ele-1
      severity:
        v: error
      human:
        v: All FHIR elements must have a @value or children
      expression:
        v: hasValue() or (children().count() > id.count())
      xpath:
        v: @value|f:*|h:div
      source:
        v: http://hl7.org/fhir/StructureDefinition/Element
        l: Element
    mapping:
      identity:
        v: WHO-MCCoD
      map:
        v: Frame B — Other medical data (surgery, autopsy, manner, external cause)
    mapping:
      identity:
        v: openEHR
      map:
        v: death_summary/other_medical_data
    mapping:
      identity:
        v: FHIR-MCCoD
      map:
        v: Composition.section[frameBGeneral]
  element:
    id:
      v: mccod-frame-b-model.generalMedicalData.id
    path:
      v: mccod-frame-b-model.generalMedicalData.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

v: 1

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    l: structuredefinition-fhir-type
  value: Url
    v: string
    l: string
code:
  v: http://hl7.org/fhirpath/System.String
  l: System.String

v: false

v: false

identity:
  v: rim
map:
  v: n/a

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

id:
  v: mccod-frame-b-model.generalMedicalData.modifierExtension
path:
  v: mccod-frame-b-model.generalMedicalData.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
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: mccod-frame-b-model.generalMedicalData.surgeryPerformed
path:
  v: mccod-frame-b-model.generalMedicalData.surgeryPerformed
short:
  v: Surgery within last 4 weeks
definition:
  v: Documents whether surgery was performed within the 4 weeks preceding death. Relevant for determining whether surgery may have contributed to the cause of death.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-b-model.generalMedicalData.surgeryPerformed
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Was surgery performed within the last 4 weeks?
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/surgical_history
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDSurgeryPerformed

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

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

id:
  v: mccod-frame-b-model.generalMedicalData.surgeryPerformed.modifierExtension
path:
  v: mccod-frame-b-model.generalMedicalData.surgeryPerformed.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
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: mccod-frame-b-model.generalMedicalData.surgeryPerformed.wasPerformed
path:
  v: mccod-frame-b-model.generalMedicalData.surgeryPerformed.wasPerformed
short:
  v: Surgery performed (Yes/No/Unknown)
definition:
  v: Whether surgery was performed within the last 4 weeks before death. Coded as: yes | no | unknown
min:
  v: 1
max:
  v: 1
base:
  path:
    v: mccod-frame-b-model.generalMedicalData.surgeryPerformed.wasPerformed
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Surgery: Yes / No / Unknown
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/surgical_history/performed
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDSurgeryPerformed.valueCodeableConcept

id:
  v: mccod-frame-b-model.generalMedicalData.surgeryPerformed.dateOfSurgery
path:
  v: mccod-frame-b-model.generalMedicalData.surgeryPerformed.dateOfSurgery
short:
  v: Date of surgery
definition:
  v: Date surgery was performed. Required when wasPerformed is 'yes'.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-b-model.generalMedicalData.surgeryPerformed.dateOfSurgery
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: date
    l: date
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — If yes please specify date of surgery
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/surgical_history/date
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDSurgeryPerformed.effectiveDateTime

id:
  v: mccod-frame-b-model.generalMedicalData.surgeryPerformed.reasonForSurgery
path:
  v: mccod-frame-b-model.generalMedicalData.surgeryPerformed.reasonForSurgery
short:
  v: Reason for surgery
definition:
  v: Disease or condition for which surgery was performed. Required when wasPerformed is 'yes'. Free text as written by certifying practitioner.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-b-model.generalMedicalData.surgeryPerformed.reasonForSurgery
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — If yes please specify reason for surgery (disease or condition)
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/surgical_history/reason
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDSurgeryPerformed.component[reason].valueString

id:
  v: mccod-frame-b-model.generalMedicalData.autopsy
path:
  v: mccod-frame-b-model.generalMedicalData.autopsy
short:
  v: Autopsy
definition:
  v: Documents whether an autopsy was requested and whether findings were used in the certification of cause of death.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-b-model.generalMedicalData.autopsy
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Was an autopsy requested?
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/autopsy
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDAutopsyPerformed

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

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

id:
  v: mccod-frame-b-model.generalMedicalData.autopsy.modifierExtension
path:
  v: mccod-frame-b-model.generalMedicalData.autopsy.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
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: mccod-frame-b-model.generalMedicalData.autopsy.wasRequested
path:
  v: mccod-frame-b-model.generalMedicalData.autopsy.wasRequested
short:
  v: Autopsy requested (Yes/No/Unknown)
definition:
  v: Whether an autopsy was requested. Coded as: yes | no | unknown
min:
  v: 1
max:
  v: 1
base:
  path:
    v: mccod-frame-b-model.generalMedicalData.autopsy.wasRequested
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Autopsy: Yes / No / Unknown
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/autopsy/requested
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDAutopsyPerformed.valueCodeableConcept

id:
  v: mccod-frame-b-model.generalMedicalData.autopsy.findingsUsedInCertification
path:
  v: mccod-frame-b-model.generalMedicalData.autopsy.findingsUsedInCertification
short:
  v: Autopsy findings used in certification (Yes/No/Unknown)
definition:
  v: Whether autopsy findings were used in the certification of the cause of death. Applicable only when wasRequested is 'yes'. Coded as: yes | no | unknown
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-b-model.generalMedicalData.autopsy.findingsUsedInCertification
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — If yes were the findings used in the certification?
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/autopsy/findings_used
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDAutopsyPerformed.component[findingsUsed].valueCodeableConcept

id:
  v: mccod-frame-b-model.generalMedicalData.mannerOfDeath
path:
  v: mccod-frame-b-model.generalMedicalData.mannerOfDeath
short:
  v: Manner of Death
definition:
  v: The manner in which the death occurred. Drawn from the mccod-manner-of-death-codes ValueSet.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-b-model.generalMedicalData.mannerOfDeath
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Manner of death
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/manner_of_death
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDMannerOfDeath

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

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

id:
  v: mccod-frame-b-model.generalMedicalData.mannerOfDeath.modifierExtension
path:
  v: mccod-frame-b-model.generalMedicalData.mannerOfDeath.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
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: mccod-frame-b-model.generalMedicalData.mannerOfDeath.manner
path:
  v: mccod-frame-b-model.generalMedicalData.mannerOfDeath.manner
short:
  v: Manner of death code
definition:
  v: Coded manner of death from mccod-manner-of-death-codes ValueSet. Required binding: Disease | Assault | Accident | Legal Intervention | Could Not Be Determined | Pending Investigation | Intentional Self Harm | War | Unknown
min:
  v: 1
max:
  v: 1
base:
  path:
    v: mccod-frame-b-model.generalMedicalData.mannerOfDeath.manner
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Manner of death checkbox
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/manner_of_death/DV_CODED_TEXT
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDMannerOfDeath.valueCodeableConcept

id:
  v: mccod-frame-b-model.generalMedicalData.externalCause
path:
  v: mccod-frame-b-model.generalMedicalData.externalCause
short:
  v: External Cause or Poisoning
definition:
  v: Details of the external cause of death or poisoning. SHOULD be populated when manner of death is one of: Assault, Accident, Legal Intervention, Intentional Self Harm, War. This conditional requirement is enforced as a warning-level invariant in MCCoDComposition.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-b-model.generalMedicalData.externalCause
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — If external cause or poisoning
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/external_cause
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDInjuryIncident

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

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

id:
  v: mccod-frame-b-model.generalMedicalData.externalCause.modifierExtension
path:
  v: mccod-frame-b-model.generalMedicalData.externalCause.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
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: mccod-frame-b-model.generalMedicalData.externalCause.description
path:
  v: mccod-frame-b-model.generalMedicalData.externalCause.description
short:
  v: Description of external cause
definition:
  v: Free-text description of how the external cause occurred. If poisoning, the poisoning agent SHALL be specified here.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-b-model.generalMedicalData.externalCause.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Please describe how external cause occurred (if poisoning please specify poisoning agent)
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/external_cause/description
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDInjuryIncident.component[description].valueString

id:
  v: mccod-frame-b-model.generalMedicalData.externalCause.dateOfInjury
path:
  v: mccod-frame-b-model.generalMedicalData.externalCause.dateOfInjury
short:
  v: Date of injury
definition:
  v: Date on which the external cause (injury or poisoning) occurred.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-b-model.generalMedicalData.externalCause.dateOfInjury
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: date
    l: date
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Date of injury
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/external_cause/date_of_injury
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDInjuryIncident.effectiveDateTime

id:
  v: mccod-frame-b-model.generalMedicalData.externalCause.placeOfOccurrence
path:
  v: mccod-frame-b-model.generalMedicalData.externalCause.placeOfOccurrence
short:
  v: Place of occurrence
definition:
  v: Place where the external cause occurred. Required binding to mccod-place-of-injury-codes ValueSet. When coded as 'other', a text description SHALL be provided.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-b-model.generalMedicalData.externalCause.placeOfOccurrence
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Place of Occurrence of the external cause
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/external_cause/place_of_occurrence
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDInjuryIncident.component[placeOfOccurrence].valueCodeableConcept

id:
  v: mccod-frame-b-model.fetalOrInfantDeath
path:
  v: mccod-frame-b-model.fetalOrInfantDeath
short:
  v: Fetal or Infant Death
definition:
  v: Data elements specific to fetal or infant deaths. CONDITIONAL GUIDANCE: This sub-section SHOULD be populated when: - The deceased was an infant aged less than 28 days at death, OR - The death was recorded as a stillbirth This is enforced as a warning-level invariant in MCCoDComposition using Patient.birthDate compared to Composition.date. When this section is intentionally omitted for a non-infant death, the Composition.section[frameBFetalInfant].emptyReason SHALL be provided.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-b-model.fetalOrInfantDeath
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Fetal or infant Death
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/fetal_or_infant_death
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: Composition.section[frameBFetalInfant]

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

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

id:
  v: mccod-frame-b-model.fetalOrInfantDeath.modifierExtension
path:
  v: mccod-frame-b-model.fetalOrInfantDeath.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
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: mccod-frame-b-model.fetalOrInfantDeath.multiplePregnancy
path:
  v: mccod-frame-b-model.fetalOrInfantDeath.multiplePregnancy
short:
  v: Multiple pregnancy (Yes/No/Unknown)
definition:
  v: Whether the death occurred in the context of a multiple pregnancy. Coded as: yes | no | unknown
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-b-model.fetalOrInfantDeath.multiplePregnancy
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Multiple pregnancy: Yes / No / Unknown
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/fetal_or_infant_death/multiple_pregnancy
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDFetalOrInfantDeath.component[multiplePregnancy].valueCodeableConcept

id:
  v: mccod-frame-b-model.fetalOrInfantDeath.stillborn
path:
  v: mccod-frame-b-model.fetalOrInfantDeath.stillborn
short:
  v: Stillborn (Yes/No/Unknown)
definition:
  v: Whether the death was a stillbirth (fetal death after 28 weeks of gestation with no signs of life after delivery). Coded as: yes | no | unknown
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-b-model.fetalOrInfantDeath.stillborn
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Stillborn?: Yes / No / Unknown
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/fetal_or_infant_death/stillborn
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDFetalOrInfantDeath.component[stillborn].valueCodeableConcept

id:
  v: mccod-frame-b-model.fetalOrInfantDeath.hoursSurvived
path:
  v: mccod-frame-b-model.fetalOrInfantDeath.hoursSurvived
short:
  v: Hours survived if death within 24 hours
definition:
  v: Number of hours the infant survived if death occurred within 24 hours of birth. Applicable only when stillborn is 'no'.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-b-model.fetalOrInfantDeath.hoursSurvived
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: integer
    l: integer
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — If death within 24h specify number of hours survived
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/fetal_or_infant_death/hours_survived
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDFetalOrInfantDeath.component[hoursSurvived].valueInteger

id:
  v: mccod-frame-b-model.fetalOrInfantDeath.birthWeightGrams
path:
  v: mccod-frame-b-model.fetalOrInfantDeath.birthWeightGrams
short:
  v: Birth weight in grams
definition:
  v: Birth weight of the infant or fetus in grams.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-b-model.fetalOrInfantDeath.birthWeightGrams
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: integer
    l: integer
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Birth weight (in grams)
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/fetal_or_infant_death/birth_weight
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDFetalOrInfantDeath.component[birthWeight].valueInteger

id:
  v: mccod-frame-b-model.fetalOrInfantDeath.completedWeeksOfPregnancy
path:
  v: mccod-frame-b-model.fetalOrInfantDeath.completedWeeksOfPregnancy
short:
  v: Number of completed weeks of pregnancy
definition:
  v: Gestational age at birth expressed as completed weeks of pregnancy.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-b-model.fetalOrInfantDeath.completedWeeksOfPregnancy
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: integer
    l: integer
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Number of completed weeks of pregnancy
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/fetal_or_infant_death/gestational_age
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDFetalOrInfantDeath.component[gestationalAge].valueInteger

id:
  v: mccod-frame-b-model.fetalOrInfantDeath.ageOfMotherYears
path:
  v: mccod-frame-b-model.fetalOrInfantDeath.ageOfMotherYears
short:
  v: Age of mother in years
definition:
  v: Age of the mother at the time of birth/delivery, in years.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-b-model.fetalOrInfantDeath.ageOfMotherYears
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: integer
    l: integer
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Age of mother (years)
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/fetal_or_infant_death/mother_age
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDFetalOrInfantDeath.component[motherAge].valueInteger

id:
  v: mccod-frame-b-model.fetalOrInfantDeath.perinatalMaternalConditions
path:
  v: mccod-frame-b-model.fetalOrInfantDeath.perinatalMaternalConditions
short:
  v: Perinatal maternal conditions
definition:
  v: Conditions of the mother that affected the fetus or newborn, relevant to a perinatal death. Free text as written by the certifying practitioner.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-b-model.fetalOrInfantDeath.perinatalMaternalConditions
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — If death was perinatal, please state conditions of mother that affected the fetus and newborn
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/fetal_or_infant_death/maternal_conditions
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDFetalOrInfantDeath.component[maternalConditions].valueString

id:
  v: mccod-frame-b-model.womenOfReproductiveAge
path:
  v: mccod-frame-b-model.womenOfReproductiveAge
short:
  v: Women of Reproductive Age
definition:
  v: Data elements specific to deaths of women of reproductive age (15–49). CONDITIONAL GUIDANCE: This sub-section SHOULD be populated when: - The deceased was recorded as female, AND - Age at death was between 15 and 49 years (inclusive) This is enforced as a warning-level invariant in MCCoDComposition using Patient.gender and calculated age at death. When this section is intentionally omitted for a male deceased or a female outside reproductive age, the Composition.section[frameBPregnancy].emptyReason SHALL be provided.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-b-model.womenOfReproductiveAge
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — For women of reproductive age
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/pregnancy_status
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: Composition.section[frameBPregnancy]

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

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

id:
  v: mccod-frame-b-model.womenOfReproductiveAge.modifierExtension
path:
  v: mccod-frame-b-model.womenOfReproductiveAge.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
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: mccod-frame-b-model.womenOfReproductiveAge.pregnantWithinPastYear
path:
  v: mccod-frame-b-model.womenOfReproductiveAge.pregnantWithinPastYear
short:
  v: Was the deceased pregnant within past year? (Yes/No/Unknown)
definition:
  v: Whether the deceased was pregnant at any point during the year preceding death. This is the outer gating question for this section. Coded as: yes | no | unknown Cardinality 1..1 within the womenOfReproductiveAge backbone — if this backbone is present, this question SHALL be answered.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: mccod-frame-b-model.womenOfReproductiveAge.pregnantWithinPastYear
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Was the deceased pregnant within past year?
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/pregnancy_status/pregnant_within_year
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDPregnancyStatus.component[pregnantWithinYear].valueCodeableConcept

id:
  v: mccod-frame-b-model.womenOfReproductiveAge.pregnancyTiming
path:
  v: mccod-frame-b-model.womenOfReproductiveAge.pregnancyTiming
short:
  v: Timing of pregnancy relative to death
definition:
  v: The timing of the pregnancy relative to the time of death. Applicable only when pregnantWithinPastYear is 'yes'. Required binding to mccod-pregnancy-status-codes ValueSet: - When she died - Within the 42 days preceding her death - Within 43 days up to 1 year preceding her death - Exact pregnancy timing unknown
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-b-model.womenOfReproductiveAge.pregnancyTiming
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — If yes, was she pregnant: timing options
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/pregnancy_status/timing
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDPregnancyStatus.component[pregnancyTiming].valueCodeableConcept

id:
  v: mccod-frame-b-model.womenOfReproductiveAge.pregnancyContributedToDeath
path:
  v: mccod-frame-b-model.womenOfReproductiveAge.pregnancyContributedToDeath
short:
  v: Did pregnancy contribute to death? (Yes/No/Unknown)
definition:
  v: Whether the pregnancy contributed to the death of the woman. Applicable only when pregnantWithinPastYear is 'yes'. Coded as: yes | no | unknown
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-b-model.womenOfReproductiveAge.pregnancyContributedToDeath
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Did the pregnancy contribute to the death: Yes / No / Unknown
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/pregnancy_status/contributed_to_death
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDPregnancyStatus.component[contributedToDeath].valueCodeableConcept

element:
  id:
    v: mccod-frame-b-model
  path:
    v: mccod-frame-b-model
  short:
    v: MCCoD Frame B Logical Model — Other Medical Data
  definition:
    v: Logical model representing the data elements of Frame B (Other Medical Data) of the WHO Medical Certificate of Cause of Death (MCCoD). Frame B is OPTIONAL at the section level. However, certain sub-sections SHOULD be populated based on the clinical context of the death: - The Fetal or Infant Death sub-section SHOULD be populated when the deceased was an infant or newborn (age at death less than 28 days), or when the death was a stillbirth. - The Women of Reproductive Age sub-section SHOULD be populated when the deceased was female and aged 15–49 years at time of death. - External cause elements SHOULD be populated when manner of death is Assault, Accident, Legal Intervention, Intentional Self Harm, or War. These conditional requirements are enforced as warning-level invariants in the MCCoDComposition profile, not as hard errors, consistent with the optional nature of Frame B. This model is derived from: - WHO International Form of Medical Certificate of Cause of Death - openEHR-EHR-EVALUATION.death_summary.v0 (CKM archetype) - WHO SMART Guidelines L2 DAK data dictionary pattern
element:
  id:
    v: mccod-frame-b-model.generalMedicalData
  path:
    v: mccod-frame-b-model.generalMedicalData
  short:
    v: General Medical Data
  definition:
    v: General medical data about the circumstances of death including surgery, autopsy, manner of death, and external cause details. This sub-section is optional but SHOULD be populated when any of its elements are known.
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: BackboneElement
      l: BackboneElement
  mapping:
    identity:
      v: WHO-MCCoD
    map:
      v: Frame B — Other medical data (surgery, autopsy, manner, external cause)
  mapping:
    identity:
      v: openEHR
    map:
      v: death_summary/other_medical_data
  mapping:
    identity:
      v: FHIR-MCCoD
    map:
      v: Composition.section[frameBGeneral]
element:
  id:
    v: mccod-frame-b-model.generalMedicalData.surgeryPerformed
  path:
    v: mccod-frame-b-model.generalMedicalData.surgeryPerformed
  short:
    v: Surgery within last 4 weeks
  definition:
    v: Documents whether surgery was performed within the 4 weeks preceding death. Relevant for determining whether surgery may have contributed to the cause of death.
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: BackboneElement
      l: BackboneElement
  mapping:
    identity:
      v: WHO-MCCoD
    map:
      v: Frame B — Was surgery performed within the last 4 weeks?
  mapping:
    identity:
      v: openEHR
    map:
      v: death_summary/surgical_history
  mapping:
    identity:
      v: FHIR-MCCoD
    map:
      v: MCCoDSurgeryPerformed
element:
  id:
    v: mccod-frame-b-model.generalMedicalData.surgeryPerformed.wasPerformed
  path:
    v: mccod-frame-b-model.generalMedicalData.surgeryPerformed.wasPerformed
  short:
    v: Surgery performed (Yes/No/Unknown)
  definition:
    v: Whether surgery was performed within the last 4 weeks before death. Coded as: yes | no | unknown
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: code
      l: code
  mapping:
    identity:
      v: WHO-MCCoD
    map:
      v: Frame B — Surgery: Yes / No / Unknown
  mapping:
    identity:
      v: openEHR
    map:
      v: death_summary/surgical_history/performed
  mapping:
    identity:
      v: FHIR-MCCoD
    map:
      v: MCCoDSurgeryPerformed.valueCodeableConcept
element:
  id:
    v: mccod-frame-b-model.generalMedicalData.surgeryPerformed.dateOfSurgery
  path:
    v: mccod-frame-b-model.generalMedicalData.surgeryPerformed.dateOfSurgery
  short:
    v: Date of surgery
  definition:
    v: Date surgery was performed. Required when wasPerformed is 'yes'.
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: date
      l: date
  mapping:
    identity:
      v: WHO-MCCoD
    map:
      v: Frame B — If yes please specify date of surgery
  mapping:
    identity:
      v: openEHR
    map:
      v: death_summary/surgical_history/date
  mapping:
    identity:
      v: FHIR-MCCoD
    map:
      v: MCCoDSurgeryPerformed.effectiveDateTime
element:
  id:
    v: mccod-frame-b-model.generalMedicalData.surgeryPerformed.reasonForSurgery
  path:
    v: mccod-frame-b-model.generalMedicalData.surgeryPerformed.reasonForSurgery
  short:
    v: Reason for surgery
  definition:
    v: Disease or condition for which surgery was performed. Required when wasPerformed is 'yes'. Free text as written by certifying practitioner.
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: string
      l: string
  mapping:
    identity:
      v: WHO-MCCoD
    map:
      v: Frame B — If yes please specify reason for surgery (disease or condition)
  mapping:
    identity:
      v: openEHR
    map:
      v: death_summary/surgical_history/reason
  mapping:
    identity:
      v: FHIR-MCCoD
    map:
      v: MCCoDSurgeryPerformed.component[reason].valueString
element:
  id:
    v: mccod-frame-b-model.generalMedicalData.autopsy
  path:
    v: mccod-frame-b-model.generalMedicalData.autopsy
  short:
    v: Autopsy
  definition:
    v: Documents whether an autopsy was requested and whether findings were used in the certification of cause of death.
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: BackboneElement
      l: BackboneElement
  mapping:
    identity:
      v: WHO-MCCoD
    map:
      v: Frame B — Was an autopsy requested?
  mapping:
    identity:
      v: openEHR
    map:
      v: death_summary/autopsy
  mapping:
    identity:
      v: FHIR-MCCoD
    map:
      v: MCCoDAutopsyPerformed

id:
  v: mccod-frame-b-model.generalMedicalData.autopsy.wasRequested
path:
  v: mccod-frame-b-model.generalMedicalData.autopsy.wasRequested
short:
  v: Autopsy requested (Yes/No/Unknown)
definition:
  v: Whether an autopsy was requested. Coded as: yes | no | unknown
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Autopsy: Yes / No / Unknown
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/autopsy/requested
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDAutopsyPerformed.valueCodeableConcept

id:
  v: mccod-frame-b-model.generalMedicalData.autopsy.findingsUsedInCertification
path:
  v: mccod-frame-b-model.generalMedicalData.autopsy.findingsUsedInCertification
short:
  v: Autopsy findings used in certification (Yes/No/Unknown)
definition:
  v: Whether autopsy findings were used in the certification of the cause of death. Applicable only when wasRequested is 'yes'. Coded as: yes | no | unknown
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — If yes were the findings used in the certification?
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/autopsy/findings_used
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDAutopsyPerformed.component[findingsUsed].valueCodeableConcept

id:
  v: mccod-frame-b-model.generalMedicalData.mannerOfDeath
path:
  v: mccod-frame-b-model.generalMedicalData.mannerOfDeath
short:
  v: Manner of Death
definition:
  v: The manner in which the death occurred. Drawn from the mccod-manner-of-death-codes ValueSet.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Manner of death
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/manner_of_death
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDMannerOfDeath

id:
  v: mccod-frame-b-model.generalMedicalData.mannerOfDeath.manner
path:
  v: mccod-frame-b-model.generalMedicalData.mannerOfDeath.manner
short:
  v: Manner of death code
definition:
  v: Coded manner of death from mccod-manner-of-death-codes ValueSet. Required binding: Disease | Assault | Accident | Legal Intervention | Could Not Be Determined | Pending Investigation | Intentional Self Harm | War | Unknown
min:
  v: 1
max:
  v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Manner of death checkbox
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/manner_of_death/DV_CODED_TEXT
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDMannerOfDeath.valueCodeableConcept

id:
  v: mccod-frame-b-model.generalMedicalData.externalCause
path:
  v: mccod-frame-b-model.generalMedicalData.externalCause
short:
  v: External Cause or Poisoning
definition:
  v: Details of the external cause of death or poisoning. SHOULD be populated when manner of death is one of: Assault, Accident, Legal Intervention, Intentional Self Harm, War. This conditional requirement is enforced as a warning-level invariant in MCCoDComposition.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — If external cause or poisoning
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/external_cause
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDInjuryIncident

id:
  v: mccod-frame-b-model.generalMedicalData.externalCause.description
path:
  v: mccod-frame-b-model.generalMedicalData.externalCause.description
short:
  v: Description of external cause
definition:
  v: Free-text description of how the external cause occurred. If poisoning, the poisoning agent SHALL be specified here.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Please describe how external cause occurred (if poisoning please specify poisoning agent)
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/external_cause/description
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDInjuryIncident.component[description].valueString

id:
  v: mccod-frame-b-model.generalMedicalData.externalCause.dateOfInjury
path:
  v: mccod-frame-b-model.generalMedicalData.externalCause.dateOfInjury
short:
  v: Date of injury
definition:
  v: Date on which the external cause (injury or poisoning) occurred.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: date
    l: date
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Date of injury
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/external_cause/date_of_injury
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDInjuryIncident.effectiveDateTime

id:
  v: mccod-frame-b-model.generalMedicalData.externalCause.placeOfOccurrence
path:
  v: mccod-frame-b-model.generalMedicalData.externalCause.placeOfOccurrence
short:
  v: Place of occurrence
definition:
  v: Place where the external cause occurred. Required binding to mccod-place-of-injury-codes ValueSet. When coded as 'other', a text description SHALL be provided.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Place of Occurrence of the external cause
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/external_cause/place_of_occurrence
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDInjuryIncident.component[placeOfOccurrence].valueCodeableConcept

id:
  v: mccod-frame-b-model.fetalOrInfantDeath
path:
  v: mccod-frame-b-model.fetalOrInfantDeath
short:
  v: Fetal or Infant Death
definition:
  v: Data elements specific to fetal or infant deaths. CONDITIONAL GUIDANCE: This sub-section SHOULD be populated when: - The deceased was an infant aged less than 28 days at death, OR - The death was recorded as a stillbirth This is enforced as a warning-level invariant in MCCoDComposition using Patient.birthDate compared to Composition.date. When this section is intentionally omitted for a non-infant death, the Composition.section[frameBFetalInfant].emptyReason SHALL be provided.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Fetal or infant Death
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/fetal_or_infant_death
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: Composition.section[frameBFetalInfant]

id:
  v: mccod-frame-b-model.fetalOrInfantDeath.multiplePregnancy
path:
  v: mccod-frame-b-model.fetalOrInfantDeath.multiplePregnancy
short:
  v: Multiple pregnancy (Yes/No/Unknown)
definition:
  v: Whether the death occurred in the context of a multiple pregnancy. Coded as: yes | no | unknown
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Multiple pregnancy: Yes / No / Unknown
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/fetal_or_infant_death/multiple_pregnancy
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDFetalOrInfantDeath.component[multiplePregnancy].valueCodeableConcept

id:
  v: mccod-frame-b-model.fetalOrInfantDeath.stillborn
path:
  v: mccod-frame-b-model.fetalOrInfantDeath.stillborn
short:
  v: Stillborn (Yes/No/Unknown)
definition:
  v: Whether the death was a stillbirth (fetal death after 28 weeks of gestation with no signs of life after delivery). Coded as: yes | no | unknown
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Stillborn?: Yes / No / Unknown
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/fetal_or_infant_death/stillborn
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDFetalOrInfantDeath.component[stillborn].valueCodeableConcept

id:
  v: mccod-frame-b-model.fetalOrInfantDeath.hoursSurvived
path:
  v: mccod-frame-b-model.fetalOrInfantDeath.hoursSurvived
short:
  v: Hours survived if death within 24 hours
definition:
  v: Number of hours the infant survived if death occurred within 24 hours of birth. Applicable only when stillborn is 'no'.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: integer
    l: integer
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — If death within 24h specify number of hours survived
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/fetal_or_infant_death/hours_survived
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDFetalOrInfantDeath.component[hoursSurvived].valueInteger

id:
  v: mccod-frame-b-model.fetalOrInfantDeath.birthWeightGrams
path:
  v: mccod-frame-b-model.fetalOrInfantDeath.birthWeightGrams
short:
  v: Birth weight in grams
definition:
  v: Birth weight of the infant or fetus in grams.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: integer
    l: integer
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Birth weight (in grams)
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/fetal_or_infant_death/birth_weight
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDFetalOrInfantDeath.component[birthWeight].valueInteger

id:
  v: mccod-frame-b-model.fetalOrInfantDeath.completedWeeksOfPregnancy
path:
  v: mccod-frame-b-model.fetalOrInfantDeath.completedWeeksOfPregnancy
short:
  v: Number of completed weeks of pregnancy
definition:
  v: Gestational age at birth expressed as completed weeks of pregnancy.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: integer
    l: integer
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Number of completed weeks of pregnancy
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/fetal_or_infant_death/gestational_age
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDFetalOrInfantDeath.component[gestationalAge].valueInteger

id:
  v: mccod-frame-b-model.fetalOrInfantDeath.ageOfMotherYears
path:
  v: mccod-frame-b-model.fetalOrInfantDeath.ageOfMotherYears
short:
  v: Age of mother in years
definition:
  v: Age of the mother at the time of birth/delivery, in years.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: integer
    l: integer
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Age of mother (years)
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/fetal_or_infant_death/mother_age
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDFetalOrInfantDeath.component[motherAge].valueInteger

id:
  v: mccod-frame-b-model.fetalOrInfantDeath.perinatalMaternalConditions
path:
  v: mccod-frame-b-model.fetalOrInfantDeath.perinatalMaternalConditions
short:
  v: Perinatal maternal conditions
definition:
  v: Conditions of the mother that affected the fetus or newborn, relevant to a perinatal death. Free text as written by the certifying practitioner.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — If death was perinatal, please state conditions of mother that affected the fetus and newborn
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/fetal_or_infant_death/maternal_conditions
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDFetalOrInfantDeath.component[maternalConditions].valueString

id:
  v: mccod-frame-b-model.womenOfReproductiveAge
path:
  v: mccod-frame-b-model.womenOfReproductiveAge
short:
  v: Women of Reproductive Age
definition:
  v: Data elements specific to deaths of women of reproductive age (15–49). CONDITIONAL GUIDANCE: This sub-section SHOULD be populated when: - The deceased was recorded as female, AND - Age at death was between 15 and 49 years (inclusive) This is enforced as a warning-level invariant in MCCoDComposition using Patient.gender and calculated age at death. When this section is intentionally omitted for a male deceased or a female outside reproductive age, the Composition.section[frameBPregnancy].emptyReason SHALL be provided.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — For women of reproductive age
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/pregnancy_status
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: Composition.section[frameBPregnancy]

id:
  v: mccod-frame-b-model.womenOfReproductiveAge.pregnantWithinPastYear
path:
  v: mccod-frame-b-model.womenOfReproductiveAge.pregnantWithinPastYear
short:
  v: Was the deceased pregnant within past year? (Yes/No/Unknown)
definition:
  v: Whether the deceased was pregnant at any point during the year preceding death. This is the outer gating question for this section. Coded as: yes | no | unknown Cardinality 1..1 within the womenOfReproductiveAge backbone — if this backbone is present, this question SHALL be answered.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Was the deceased pregnant within past year?
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/pregnancy_status/pregnant_within_year
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDPregnancyStatus.component[pregnantWithinYear].valueCodeableConcept

id:
  v: mccod-frame-b-model.womenOfReproductiveAge.pregnancyTiming
path:
  v: mccod-frame-b-model.womenOfReproductiveAge.pregnancyTiming
short:
  v: Timing of pregnancy relative to death
definition:
  v: The timing of the pregnancy relative to the time of death. Applicable only when pregnantWithinPastYear is 'yes'. Required binding to mccod-pregnancy-status-codes ValueSet: - When she died - Within the 42 days preceding her death - Within 43 days up to 1 year preceding her death - Exact pregnancy timing unknown
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — If yes, was she pregnant: timing options
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/pregnancy_status/timing
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDPregnancyStatus.component[pregnancyTiming].valueCodeableConcept

id:
  v: mccod-frame-b-model.womenOfReproductiveAge.pregnancyContributedToDeath
path:
  v: mccod-frame-b-model.womenOfReproductiveAge.pregnancyContributedToDeath
short:
  v: Did pregnancy contribute to death? (Yes/No/Unknown)
definition:
  v: Whether the pregnancy contributed to the death of the woman. Applicable only when pregnantWithinPastYear is 'yes'. Coded as: yes | no | unknown
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame B — Did the pregnancy contribute to the death: Yes / No / Unknown
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/pregnancy_status/contributed_to_death
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDPregnancyStatus.component[contributedToDeath].valueCodeableConcept