mccod-frame-a-model
type: StructureDefinition
node role: treeRoot
id:
  v: mccod-frame-a-model
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition mccod-frame-a-model Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> <a href="StructureDefinition-mccod-frame-a-model-definitions.html#mccod-frame-a-model" title="Logical model representing the data elements of Frame A (Medical Data,#xA;Parts 1 and 2) of the WHO Medical Certificate of Cause of Death (MCCoD).#xA;#xA;Frame A is MANDATORY in its entirety. At minimum, the immediate cause#xA;of death (line a) and the underlying cause of death MUST be present.#xA;Lines b, c, and d are required if the preceding line is present and#xA;a further antecedent cause exists. The underlying cause of death is#xA;captured as a separate mandatory element and may differ from any of#xA;lines a–d, consistent with WHO DORIS methodology for ICD-11.#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-a-model 0..* Base MCCoD Frame A Logical Model — Cause of Death #xD; causeOfDeathChain 1..1 BackboneElement Cause of Death Chain (Frame A Part 1) #xD; lineA 1..1 BackboneElement Line a — Immediate Cause of Death #xD; causeText 1..1 string Cause description (text) #xD; causeCode 0..1 CodeableConcept Cause code (ICD-10 or ICD-11) #xD; onsetToDeathInterval 0..1 string Approximate interval from onset to death #xD; lineB 0..1 BackboneElement Line b — Antecedent Cause #xD; causeText 1..1 string Cause description (text) #xD; causeCode 0..1 CodeableConcept Cause code (ICD-10 or ICD-11) #xD; onsetToDeathInterval 0..1 string Approximate interval from onset to death #xD; lineC 0..1 BackboneElement Line c — Antecedent Cause #xD; causeText 1..1 string Cause description (text) #xD; causeCode 0..1 CodeableConcept Cause code (ICD-10 or ICD-11) #xD; onsetToDeathInterval 0..1 string Approximate interval from onset to death #xD; …
url:
  v: http://mccod.w3datanet.com/fhir/StructureDefinition/mccod-frame-a-model
  l: mccod-frame-a-model
version:
  v: 0.1.0
name:
  v: MCCoDFrameAModel
title:
  v: MCCoD Frame A Logical Model — Cause of Death
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 A (Medical Data, Parts 1 and 2) of the WHO Medical Certificate of Cause of Death (MCCoD). Frame A is MANDATORY in its entirety. At minimum, the immediate cause of death (line a) and the underlying cause of death MUST be present. Lines b, c, and d are required if the preceding line is present and a further antecedent cause exists. The underlying cause of death is captured as a separate mandatory element and may differ from any of lines a–d, consistent with WHO DORIS methodology for ICD-11. 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-a-model
  l: mccod-frame-a-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-a-model
    path:
      v: mccod-frame-a-model
    short:
      v: MCCoD Frame A Logical Model — Cause of Death
    definition:
      v: Logical model representing the data elements of Frame A (Medical Data, Parts 1 and 2) of the WHO Medical Certificate of Cause of Death (MCCoD). Frame A is MANDATORY in its entirety. At minimum, the immediate cause of death (line a) and the underlying cause of death MUST be present. Lines b, c, and d are required if the preceding line is present and a further antecedent cause exists. The underlying cause of death is captured as a separate mandatory element and may differ from any of lines a–d, consistent with WHO DORIS methodology for ICD-11. 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-a-model.causeOfDeathChain
    path:
      v: mccod-frame-a-model.causeOfDeathChain
    short:
      v: Cause of Death Chain (Frame A Part 1)
    definition:
      v: The ordered chain of conditions leading to death, as reported by the certifying practitioner. Line a is always mandatory. Lines b, c, d are conditionally mandatory — required when the certifier identifies a further antecedent cause for the preceding line.
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: mccod-frame-a-model.causeOfDeathChain
      min:
        v: 1
      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 A, Part 1, Section 1
    mapping:
      identity:
        v: openEHR
      map:
        v: death_summary/cause_of_death
    mapping:
      identity:
        v: FHIR-MCCoD
      map:
        v: Composition.section[frameA]
  element:
    id:
      v: mccod-frame-a-model.causeOfDeathChain.id
    path:
      v: mccod-frame-a-model.causeOfDeathChain.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-a-model.causeOfDeathChain.extension
path:
  v: mccod-frame-a-model.causeOfDeathChain.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-a-model.causeOfDeathChain.modifierExtension
path:
  v: mccod-frame-a-model.causeOfDeathChain.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-a-model.causeOfDeathChain.lineA
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineA
short:
  v: Line a — Immediate Cause of Death
definition:
  v: The disease, injury, or complication that directly caused death. This is the condition that was the final step in the chain of events leading to death. Always mandatory.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: mccod-frame-a-model.causeOfDeathChain.lineA
  min:
    v: 1
  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 A, Part 1, Section 1, Line a
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/cause_of_death/immediate_cause
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDCauseOfDeathCondition (linePosition=a)

id:
  v: mccod-frame-a-model.causeOfDeathChain.lineA.id
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineA.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-a-model.causeOfDeathChain.lineA.extension
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineA.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-a-model.causeOfDeathChain.lineA.modifierExtension
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineA.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-a-model.causeOfDeathChain.lineA.causeText
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineA.causeText
short:
  v: Cause description (text)
definition:
  v: Free-text description of the immediate cause of death as written by the certifying practitioner. Always mandatory regardless of whether a coded value is also provided.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: mccod-frame-a-model.causeOfDeathChain.lineA.causeText
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 1, Line a — text field
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/cause_of_death/immediate_cause/DV_TEXT
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDCauseOfDeathCondition.code.text

id:
  v: mccod-frame-a-model.causeOfDeathChain.lineA.causeCode
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineA.causeCode
short:
  v: Cause code (ICD-10 or ICD-11)
definition:
  v: Coded representation of the immediate cause of death. SHALL use ICD-10 or ICD-11 system URI. Text is always required even when a code is present. Extensible binding to mccod-cause-of-death-codes ValueSet.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-a-model.causeOfDeathChain.lineA.causeCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 1, Line a — coded
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/cause_of_death/immediate_cause/DV_CODED_TEXT
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDCauseOfDeathCondition.code.coding

id:
  v: mccod-frame-a-model.causeOfDeathChain.lineA.onsetToDeathInterval
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineA.onsetToDeathInterval
short:
  v: Approximate interval from onset to death
definition:
  v: Approximate time between onset of the condition and death, as reported by the certifying practitioner (e.g. \"2 hours\", \"3 weeks\", \"5 years\"). Represented as a string to accommodate the imprecise nature of clinician estimates.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-a-model.causeOfDeathChain.lineA.onsetToDeathInterval
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 1, Line a — Time interval from onset to death
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/cause_of_death/duration
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDCauseOfDeathCondition.extension:onsetToDeathInterval

id:
  v: mccod-frame-a-model.causeOfDeathChain.lineB
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineB
short:
  v: Line b — Antecedent Cause
definition:
  v: The disease or condition that gave rise to the immediate cause (line a). Required when the certifier identifies a further antecedent cause. Conditionally mandatory: if present, line a must also be present.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-a-model.causeOfDeathChain.lineB
  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 A, Part 1, Section 1, Line b (Due to)
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/cause_of_death/antecedent_cause[1]
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDCauseOfDeathCondition (linePosition=b)

id:
  v: mccod-frame-a-model.causeOfDeathChain.lineB.id
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineB.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-a-model.causeOfDeathChain.lineB.extension
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineB.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-a-model.causeOfDeathChain.lineB.modifierExtension
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineB.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-a-model.causeOfDeathChain.lineB.causeText
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineB.causeText
short:
  v: Cause description (text)
definition:
  v: Cause description (text)
min:
  v: 1
max:
  v: 1
base:
  path:
    v: mccod-frame-a-model.causeOfDeathChain.lineB.causeText
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 1, Line b — text field
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/cause_of_death/antecedent_cause[1]/DV_TEXT
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDCauseOfDeathCondition.code.text

id:
  v: mccod-frame-a-model.causeOfDeathChain.lineB.causeCode
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineB.causeCode
short:
  v: Cause code (ICD-10 or ICD-11)
definition:
  v: Cause code (ICD-10 or ICD-11)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-a-model.causeOfDeathChain.lineB.causeCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 1, Line b — coded
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/cause_of_death/antecedent_cause[1]/DV_CODED_TEXT
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDCauseOfDeathCondition.code.coding

id:
  v: mccod-frame-a-model.causeOfDeathChain.lineB.onsetToDeathInterval
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineB.onsetToDeathInterval
short:
  v: Approximate interval from onset to death
definition:
  v: Approximate interval from onset to death
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-a-model.causeOfDeathChain.lineB.onsetToDeathInterval
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 1, Line b — Time interval from onset to death
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/cause_of_death/duration
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDCauseOfDeathCondition.extension:onsetToDeathInterval

id:
  v: mccod-frame-a-model.causeOfDeathChain.lineC
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineC
short:
  v: Line c — Antecedent Cause
definition:
  v: The disease or condition that gave rise to line b. Conditionally mandatory: if present, line b must also be present.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-a-model.causeOfDeathChain.lineC
  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 A, Part 1, Section 1, Line c (Due to)
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/cause_of_death/antecedent_cause[2]
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDCauseOfDeathCondition (linePosition=c)

id:
  v: mccod-frame-a-model.causeOfDeathChain.lineC.id
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineC.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-a-model.causeOfDeathChain.lineC.extension
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineC.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-a-model.causeOfDeathChain.lineC.modifierExtension
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineC.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-a-model.causeOfDeathChain.lineC.causeText
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineC.causeText
short:
  v: Cause description (text)
definition:
  v: Cause description (text)
min:
  v: 1
max:
  v: 1
base:
  path:
    v: mccod-frame-a-model.causeOfDeathChain.lineC.causeText
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 1, Line c — text field
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/cause_of_death/antecedent_cause[2]/DV_TEXT
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDCauseOfDeathCondition.code.text

id:
  v: mccod-frame-a-model.causeOfDeathChain.lineC.causeCode
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineC.causeCode
short:
  v: Cause code (ICD-10 or ICD-11)
definition:
  v: Cause code (ICD-10 or ICD-11)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-a-model.causeOfDeathChain.lineC.causeCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 1, Line c — coded
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/cause_of_death/antecedent_cause[2]/DV_CODED_TEXT
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDCauseOfDeathCondition.code.coding

id:
  v: mccod-frame-a-model.causeOfDeathChain.lineC.onsetToDeathInterval
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineC.onsetToDeathInterval
short:
  v: Approximate interval from onset to death
definition:
  v: Approximate interval from onset to death
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-a-model.causeOfDeathChain.lineC.onsetToDeathInterval
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 1, Line c — Time interval from onset to death
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/cause_of_death/duration
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDCauseOfDeathCondition.extension:onsetToDeathInterval

id:
  v: mccod-frame-a-model.causeOfDeathChain.lineD
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineD
short:
  v: Line d — Antecedent Cause
definition:
  v: The disease or condition that gave rise to line c. Conditionally mandatory: if present, line c must also be present.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-a-model.causeOfDeathChain.lineD
  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 A, Part 1, Section 1, Line d (Due to)
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/cause_of_death/antecedent_cause[3]
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDCauseOfDeathCondition (linePosition=d)

id:
  v: mccod-frame-a-model.causeOfDeathChain.lineD.id
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineD.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-a-model.causeOfDeathChain.lineD.extension
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineD.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-a-model.causeOfDeathChain.lineD.modifierExtension
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineD.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-a-model.causeOfDeathChain.lineD.causeText
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineD.causeText
short:
  v: Cause description (text)
definition:
  v: Cause description (text)
min:
  v: 1
max:
  v: 1
base:
  path:
    v: mccod-frame-a-model.causeOfDeathChain.lineD.causeText
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 1, Line d — text field
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/cause_of_death/antecedent_cause[3]/DV_TEXT
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDCauseOfDeathCondition.code.text

id:
  v: mccod-frame-a-model.causeOfDeathChain.lineD.causeCode
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineD.causeCode
short:
  v: Cause code (ICD-10 or ICD-11)
definition:
  v: Cause code (ICD-10 or ICD-11)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-a-model.causeOfDeathChain.lineD.causeCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 1, Line d — coded
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/cause_of_death/antecedent_cause[3]/DV_CODED_TEXT
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDCauseOfDeathCondition.code.coding

id:
  v: mccod-frame-a-model.causeOfDeathChain.lineD.onsetToDeathInterval
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineD.onsetToDeathInterval
short:
  v: Approximate interval from onset to death
definition:
  v: Approximate interval from onset to death
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-a-model.causeOfDeathChain.lineD.onsetToDeathInterval
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 1, Line d — Time interval from onset to death
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/cause_of_death/duration
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDCauseOfDeathCondition.extension:onsetToDeathInterval

id:
  v: mccod-frame-a-model.underlyingCauseOfDeath
path:
  v: mccod-frame-a-model.underlyingCauseOfDeath
short:
  v: Underlying Cause of Death
definition:
  v: The disease or injury that initiated the train of morbid events leading directly to death, or the circumstances of accident or violence which produced the fatal injury (WHO definition). This element is MANDATORY and is captured separately from the causal chain (lines a–d). Per WHO DORIS methodology for ICD-11, the underlying cause of death may be a condition that does not appear on any line of the causal chain — for example, when DORIS applies a selection or modification rule that identifies a different condition as the underlying cause. The underlying cause is the primary basis for mortality statistics.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: mccod-frame-a-model.underlyingCauseOfDeath
  min:
    v: 1
  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 A, Part 1 — lowest used line (underlying cause per ICD rules)
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/underlying_cause_of_death
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDUnderlyingCauseOfDeath

id:
  v: mccod-frame-a-model.underlyingCauseOfDeath.id
path:
  v: mccod-frame-a-model.underlyingCauseOfDeath.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-a-model.underlyingCauseOfDeath.extension
path:
  v: mccod-frame-a-model.underlyingCauseOfDeath.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-a-model.underlyingCauseOfDeath.modifierExtension
path:
  v: mccod-frame-a-model.underlyingCauseOfDeath.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-a-model.underlyingCauseOfDeath.causeText
path:
  v: mccod-frame-a-model.underlyingCauseOfDeath.causeText
short:
  v: Underlying cause description (text)
definition:
  v: Free-text description of the underlying cause of death. Always mandatory regardless of whether a coded value is present.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: mccod-frame-a-model.underlyingCauseOfDeath.causeText
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A — underlying cause text
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/underlying_cause_of_death/DV_TEXT
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDUnderlyingCauseOfDeath.code.text

id:
  v: mccod-frame-a-model.underlyingCauseOfDeath.causeCode
path:
  v: mccod-frame-a-model.underlyingCauseOfDeath.causeCode
short:
  v: Underlying cause code (ICD-10 or ICD-11)
definition:
  v: Coded representation of the underlying cause of death. When ICD-11 and DORIS are used, this code is the DORIS-selected underlying cause and SHALL use the ICD-11 MMS system URI. When ICD-10 is used, this code is selected per ICD-10 mortality coding rules and SHALL use the appropriate ICD-10 system URI.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-a-model.underlyingCauseOfDeath.causeCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A — underlying cause code
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/underlying_cause_of_death/DV_CODED_TEXT
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDUnderlyingCauseOfDeath.code.coding

id:
  v: mccod-frame-a-model.underlyingCauseOfDeath.dorisDerived
path:
  v: mccod-frame-a-model.underlyingCauseOfDeath.dorisDerived
short:
  v: Derived by DORIS tool
definition:
  v: Indicates whether the underlying cause of death was derived using the WHO DORIS tool for ICD-11. When true, the causeCode SHALL use the ICD-11 MMS system URI. This element supports audit and transparency of the coding process.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-a-model.underlyingCauseOfDeath.dorisDerived
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: N/A — process metadata
mapping:
  identity:
    v: openEHR
  map:
    v: N/A
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDUnderlyingCauseOfDeath.extension:dorisDerived

id:
  v: mccod-frame-a-model.otherSignificantConditions
path:
  v: mccod-frame-a-model.otherSignificantConditions
short:
  v: Other Significant Conditions (Frame A Part 2)
definition:
  v: Other significant conditions that contributed to the death but were not part of the direct causal chain reported in Part 1. Time intervals may be noted alongside each condition. Modeled as structured Condition resources, not free text.
min:
  v: 0
max:
  v: *
base:
  path:
    v: mccod-frame-a-model.otherSignificantConditions
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 2 — Other significant conditions contributing to death
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/contributing_factors
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDContributingCondition

id:
  v: mccod-frame-a-model.otherSignificantConditions.id
path:
  v: mccod-frame-a-model.otherSignificantConditions.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-a-model.otherSignificantConditions.extension
path:
  v: mccod-frame-a-model.otherSignificantConditions.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-a-model.otherSignificantConditions.modifierExtension
path:
  v: mccod-frame-a-model.otherSignificantConditions.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-a-model.otherSignificantConditions.conditionText
path:
  v: mccod-frame-a-model.otherSignificantConditions.conditionText
short:
  v: Condition description (text)
definition:
  v: Free-text description of the contributing condition as written by the certifying practitioner. Always mandatory.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: mccod-frame-a-model.otherSignificantConditions.conditionText
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 2 — condition text
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/contributing_factors/DV_TEXT
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDContributingCondition.code.text

id:
  v: mccod-frame-a-model.otherSignificantConditions.conditionCode
path:
  v: mccod-frame-a-model.otherSignificantConditions.conditionCode
short:
  v: Condition code (ICD-10 or ICD-11)
definition:
  v: Coded representation of the contributing condition. Extensible binding to mccod-cause-of-death-codes ValueSet.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-a-model.otherSignificantConditions.conditionCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 2 — condition code
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/contributing_factors/DV_CODED_TEXT
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDContributingCondition.code.coding

id:
  v: mccod-frame-a-model.otherSignificantConditions.timeInterval
path:
  v: mccod-frame-a-model.otherSignificantConditions.timeInterval
short:
  v: Time interval
definition:
  v: Approximate time interval associated with this condition, as noted in brackets after the condition per WHO MCCoD guidance (e.g. \"6 months\", \"2 years\"). Represented as a string.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: mccod-frame-a-model.otherSignificantConditions.timeInterval
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 2 — time interval in brackets
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/contributing_factors/duration
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDContributingCondition.extension:onsetToDeathInterval

element:
  id:
    v: mccod-frame-a-model
  path:
    v: mccod-frame-a-model
  short:
    v: MCCoD Frame A Logical Model — Cause of Death
  definition:
    v: Logical model representing the data elements of Frame A (Medical Data, Parts 1 and 2) of the WHO Medical Certificate of Cause of Death (MCCoD). Frame A is MANDATORY in its entirety. At minimum, the immediate cause of death (line a) and the underlying cause of death MUST be present. Lines b, c, and d are required if the preceding line is present and a further antecedent cause exists. The underlying cause of death is captured as a separate mandatory element and may differ from any of lines a–d, consistent with WHO DORIS methodology for ICD-11. 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-a-model.causeOfDeathChain
  path:
    v: mccod-frame-a-model.causeOfDeathChain
  short:
    v: Cause of Death Chain (Frame A Part 1)
  definition:
    v: The ordered chain of conditions leading to death, as reported by the certifying practitioner. Line a is always mandatory. Lines b, c, d are conditionally mandatory — required when the certifier identifies a further antecedent cause for the preceding line.
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: BackboneElement
      l: BackboneElement
  mapping:
    identity:
      v: WHO-MCCoD
    map:
      v: Frame A, Part 1, Section 1
  mapping:
    identity:
      v: openEHR
    map:
      v: death_summary/cause_of_death
  mapping:
    identity:
      v: FHIR-MCCoD
    map:
      v: Composition.section[frameA]
element:
  id:
    v: mccod-frame-a-model.causeOfDeathChain.lineA
  path:
    v: mccod-frame-a-model.causeOfDeathChain.lineA
  short:
    v: Line a — Immediate Cause of Death
  definition:
    v: The disease, injury, or complication that directly caused death. This is the condition that was the final step in the chain of events leading to death. Always mandatory.
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: BackboneElement
      l: BackboneElement
  mapping:
    identity:
      v: WHO-MCCoD
    map:
      v: Frame A, Part 1, Section 1, Line a
  mapping:
    identity:
      v: openEHR
    map:
      v: death_summary/cause_of_death/immediate_cause
  mapping:
    identity:
      v: FHIR-MCCoD
    map:
      v: MCCoDCauseOfDeathCondition (linePosition=a)
element:
  id:
    v: mccod-frame-a-model.causeOfDeathChain.lineA.causeText
  path:
    v: mccod-frame-a-model.causeOfDeathChain.lineA.causeText
  short:
    v: Cause description (text)
  definition:
    v: Free-text description of the immediate cause of death as written by the certifying practitioner. Always mandatory regardless of whether a coded value is also provided.
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: string
      l: string
  mapping:
    identity:
      v: WHO-MCCoD
    map:
      v: Frame A, Part 1, Line a — text field
  mapping:
    identity:
      v: openEHR
    map:
      v: death_summary/cause_of_death/immediate_cause/DV_TEXT
  mapping:
    identity:
      v: FHIR-MCCoD
    map:
      v: MCCoDCauseOfDeathCondition.code.text
element:
  id:
    v: mccod-frame-a-model.causeOfDeathChain.lineA.causeCode
  path:
    v: mccod-frame-a-model.causeOfDeathChain.lineA.causeCode
  short:
    v: Cause code (ICD-10 or ICD-11)
  definition:
    v: Coded representation of the immediate cause of death. SHALL use ICD-10 or ICD-11 system URI. Text is always required even when a code is present. Extensible binding to mccod-cause-of-death-codes ValueSet.
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: CodeableConcept
      l: CodeableConcept
  mapping:
    identity:
      v: WHO-MCCoD
    map:
      v: Frame A, Part 1, Line a — coded
  mapping:
    identity:
      v: openEHR
    map:
      v: death_summary/cause_of_death/immediate_cause/DV_CODED_TEXT
  mapping:
    identity:
      v: FHIR-MCCoD
    map:
      v: MCCoDCauseOfDeathCondition.code.coding
element:
  id:
    v: mccod-frame-a-model.causeOfDeathChain.lineA.onsetToDeathInterval
  path:
    v: mccod-frame-a-model.causeOfDeathChain.lineA.onsetToDeathInterval
  short:
    v: Approximate interval from onset to death
  definition:
    v: Approximate time between onset of the condition and death, as reported by the certifying practitioner (e.g. \"2 hours\", \"3 weeks\", \"5 years\"). Represented as a string to accommodate the imprecise nature of clinician estimates.
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: string
      l: string
  mapping:
    identity:
      v: WHO-MCCoD
    map:
      v: Frame A, Part 1, Line a — Time interval from onset to death
  mapping:
    identity:
      v: openEHR
    map:
      v: death_summary/cause_of_death/duration
  mapping:
    identity:
      v: FHIR-MCCoD
    map:
      v: MCCoDCauseOfDeathCondition.extension:onsetToDeathInterval
element:
  id:
    v: mccod-frame-a-model.causeOfDeathChain.lineB
  path:
    v: mccod-frame-a-model.causeOfDeathChain.lineB
  short:
    v: Line b — Antecedent Cause
  definition:
    v: The disease or condition that gave rise to the immediate cause (line a). Required when the certifier identifies a further antecedent cause. Conditionally mandatory: if present, line a must also be present.
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: BackboneElement
      l: BackboneElement
  mapping:
    identity:
      v: WHO-MCCoD
    map:
      v: Frame A, Part 1, Section 1, Line b (Due to)
  mapping:
    identity:
      v: openEHR
    map:
      v: death_summary/cause_of_death/antecedent_cause[1]
  mapping:
    identity:
      v: FHIR-MCCoD
    map:
      v: MCCoDCauseOfDeathCondition (linePosition=b)

id:
  v: mccod-frame-a-model.causeOfDeathChain.lineB.causeText
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineB.causeText
short:
  v: Cause description (text)
definition:
  v: Cause description (text)
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 1, Line b — text field
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/cause_of_death/antecedent_cause[1]/DV_TEXT
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDCauseOfDeathCondition.code.text

id:
  v: mccod-frame-a-model.causeOfDeathChain.lineB.causeCode
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineB.causeCode
short:
  v: Cause code (ICD-10 or ICD-11)
definition:
  v: Cause code (ICD-10 or ICD-11)
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 1, Line b — coded
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/cause_of_death/antecedent_cause[1]/DV_CODED_TEXT
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDCauseOfDeathCondition.code.coding

id:
  v: mccod-frame-a-model.causeOfDeathChain.lineB.onsetToDeathInterval
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineB.onsetToDeathInterval
short:
  v: Approximate interval from onset to death
definition:
  v: Approximate interval from onset to death
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 1, Line b — Time interval from onset to death
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/cause_of_death/duration
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDCauseOfDeathCondition.extension:onsetToDeathInterval

id:
  v: mccod-frame-a-model.causeOfDeathChain.lineC
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineC
short:
  v: Line c — Antecedent Cause
definition:
  v: The disease or condition that gave rise to line b. Conditionally mandatory: if present, line b must also be present.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 1, Section 1, Line c (Due to)
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/cause_of_death/antecedent_cause[2]
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDCauseOfDeathCondition (linePosition=c)

id:
  v: mccod-frame-a-model.causeOfDeathChain.lineC.causeText
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineC.causeText
short:
  v: Cause description (text)
definition:
  v: Cause description (text)
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 1, Line c — text field
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/cause_of_death/antecedent_cause[2]/DV_TEXT
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDCauseOfDeathCondition.code.text

id:
  v: mccod-frame-a-model.causeOfDeathChain.lineC.causeCode
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineC.causeCode
short:
  v: Cause code (ICD-10 or ICD-11)
definition:
  v: Cause code (ICD-10 or ICD-11)
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 1, Line c — coded
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/cause_of_death/antecedent_cause[2]/DV_CODED_TEXT
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDCauseOfDeathCondition.code.coding

id:
  v: mccod-frame-a-model.causeOfDeathChain.lineC.onsetToDeathInterval
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineC.onsetToDeathInterval
short:
  v: Approximate interval from onset to death
definition:
  v: Approximate interval from onset to death
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 1, Line c — Time interval from onset to death
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/cause_of_death/duration
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDCauseOfDeathCondition.extension:onsetToDeathInterval

id:
  v: mccod-frame-a-model.causeOfDeathChain.lineD
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineD
short:
  v: Line d — Antecedent Cause
definition:
  v: The disease or condition that gave rise to line c. Conditionally mandatory: if present, line c must also be present.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 1, Section 1, Line d (Due to)
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/cause_of_death/antecedent_cause[3]
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDCauseOfDeathCondition (linePosition=d)

id:
  v: mccod-frame-a-model.causeOfDeathChain.lineD.causeText
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineD.causeText
short:
  v: Cause description (text)
definition:
  v: Cause description (text)
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 1, Line d — text field
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/cause_of_death/antecedent_cause[3]/DV_TEXT
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDCauseOfDeathCondition.code.text

id:
  v: mccod-frame-a-model.causeOfDeathChain.lineD.causeCode
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineD.causeCode
short:
  v: Cause code (ICD-10 or ICD-11)
definition:
  v: Cause code (ICD-10 or ICD-11)
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 1, Line d — coded
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/cause_of_death/antecedent_cause[3]/DV_CODED_TEXT
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDCauseOfDeathCondition.code.coding

id:
  v: mccod-frame-a-model.causeOfDeathChain.lineD.onsetToDeathInterval
path:
  v: mccod-frame-a-model.causeOfDeathChain.lineD.onsetToDeathInterval
short:
  v: Approximate interval from onset to death
definition:
  v: Approximate interval from onset to death
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 1, Line d — Time interval from onset to death
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/cause_of_death/duration
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDCauseOfDeathCondition.extension:onsetToDeathInterval

id:
  v: mccod-frame-a-model.underlyingCauseOfDeath
path:
  v: mccod-frame-a-model.underlyingCauseOfDeath
short:
  v: Underlying Cause of Death
definition:
  v: The disease or injury that initiated the train of morbid events leading directly to death, or the circumstances of accident or violence which produced the fatal injury (WHO definition). This element is MANDATORY and is captured separately from the causal chain (lines a–d). Per WHO DORIS methodology for ICD-11, the underlying cause of death may be a condition that does not appear on any line of the causal chain — for example, when DORIS applies a selection or modification rule that identifies a different condition as the underlying cause. The underlying cause is the primary basis for mortality statistics.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 1 — lowest used line (underlying cause per ICD rules)
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/underlying_cause_of_death
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDUnderlyingCauseOfDeath

id:
  v: mccod-frame-a-model.underlyingCauseOfDeath.causeText
path:
  v: mccod-frame-a-model.underlyingCauseOfDeath.causeText
short:
  v: Underlying cause description (text)
definition:
  v: Free-text description of the underlying cause of death. Always mandatory regardless of whether a coded value is present.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A — underlying cause text
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/underlying_cause_of_death/DV_TEXT
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDUnderlyingCauseOfDeath.code.text

id:
  v: mccod-frame-a-model.underlyingCauseOfDeath.causeCode
path:
  v: mccod-frame-a-model.underlyingCauseOfDeath.causeCode
short:
  v: Underlying cause code (ICD-10 or ICD-11)
definition:
  v: Coded representation of the underlying cause of death. When ICD-11 and DORIS are used, this code is the DORIS-selected underlying cause and SHALL use the ICD-11 MMS system URI. When ICD-10 is used, this code is selected per ICD-10 mortality coding rules and SHALL use the appropriate ICD-10 system URI.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A — underlying cause code
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/underlying_cause_of_death/DV_CODED_TEXT
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDUnderlyingCauseOfDeath.code.coding

id:
  v: mccod-frame-a-model.underlyingCauseOfDeath.dorisDerived
path:
  v: mccod-frame-a-model.underlyingCauseOfDeath.dorisDerived
short:
  v: Derived by DORIS tool
definition:
  v: Indicates whether the underlying cause of death was derived using the WHO DORIS tool for ICD-11. When true, the causeCode SHALL use the ICD-11 MMS system URI. This element supports audit and transparency of the coding process.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: boolean
    l: boolean
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: N/A — process metadata
mapping:
  identity:
    v: openEHR
  map:
    v: N/A
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDUnderlyingCauseOfDeath.extension:dorisDerived

id:
  v: mccod-frame-a-model.otherSignificantConditions
path:
  v: mccod-frame-a-model.otherSignificantConditions
short:
  v: Other Significant Conditions (Frame A Part 2)
definition:
  v: Other significant conditions that contributed to the death but were not part of the direct causal chain reported in Part 1. Time intervals may be noted alongside each condition. Modeled as structured Condition resources, not free text.
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 2 — Other significant conditions contributing to death
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/contributing_factors
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDContributingCondition

id:
  v: mccod-frame-a-model.otherSignificantConditions.conditionText
path:
  v: mccod-frame-a-model.otherSignificantConditions.conditionText
short:
  v: Condition description (text)
definition:
  v: Free-text description of the contributing condition as written by the certifying practitioner. Always mandatory.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 2 — condition text
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/contributing_factors/DV_TEXT
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDContributingCondition.code.text

id:
  v: mccod-frame-a-model.otherSignificantConditions.conditionCode
path:
  v: mccod-frame-a-model.otherSignificantConditions.conditionCode
short:
  v: Condition code (ICD-10 or ICD-11)
definition:
  v: Coded representation of the contributing condition. Extensible binding to mccod-cause-of-death-codes ValueSet.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 2 — condition code
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/contributing_factors/DV_CODED_TEXT
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDContributingCondition.code.coding

id:
  v: mccod-frame-a-model.otherSignificantConditions.timeInterval
path:
  v: mccod-frame-a-model.otherSignificantConditions.timeInterval
short:
  v: Time interval
definition:
  v: Approximate time interval associated with this condition, as noted in brackets after the condition per WHO MCCoD guidance (e.g. \"6 months\", \"2 years\"). Represented as a string.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: WHO-MCCoD
  map:
    v: Frame A, Part 2 — time interval in brackets
mapping:
  identity:
    v: openEHR
  map:
    v: death_summary/contributing_factors/duration
mapping:
  identity:
    v: FHIR-MCCoD
  map:
    v: MCCoDContributingCondition.extension:onsetToDeathInterval