description: General structure for capturing comorbid conditions with respect to a primary ('index') condition. The specific set of comorbidities of interest in a given context are defined by slicing the components array. The same general approach can be applied to any comorbidity category checklist. package_name: hl7.fhir.us.mcode.r4b derivation: constraint name: ComorbiditiesParent abstract: true type: Observation elements: subject: type: Reference refers: ['http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-cancer-patient'] index: 0 focus: type: Reference short: The Index Condition refers: ['http://hl7.org/fhir/StructureDefinition/Condition'] index: 1 bodySite: {short: Not used in this profile, index: 2} specimen: {short: Not used in this profile, index: 3} device: {short: Not used in this profile, index: 4} component: index: 5 extensions: conditionCode: {url: 'http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-comorbid-condition-code', min: 0, type: Extension, index: 7} conditionReference: {url: 'http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-comorbid-condition-reference', min: 0, type: Extension, index: 8} elements: extension: short: Extensions to capture specific conditions that fall into the given category. index: 6 slicing: rules: open ordered: false discriminator: - {path: url, type: value} min: null slices: conditionCode: match: {url: null} schema: {type: Extension, url: 'http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-comorbid-condition-code', index: 7} min: 0 conditionReference: match: {url: null} schema: {type: Extension, url: 'http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-comorbid-condition-reference', index: 8} min: 0 modifierExtension: {index: 9} code: {short: Code representing the comorbidity category, index: 10} value: choices: [valueCodeableConcept] index: 12 valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 13} package_version: 2.1.0 class: profile kind: resource url: http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-comorbidities-parent base: http://hl7.org/fhir/StructureDefinition/Observation version: 2.1.0