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 derivation: constraint name: ComorbiditiesParent abstract: true type: Observation elements: focus: type: Reference short: The Index Condition refers: ['http://hl7.org/fhir/StructureDefinition/Condition'] index: 0 bodySite: {short: Not used in this profile, index: 1} specimen: {short: Not used in this profile, index: 2} device: {short: Not used in this profile, index: 3} component: index: 4 extensions: conditionCode: {url: 'http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-comorbid-condition-code', min: 0, type: Extension, index: 6} conditionReference: {url: 'http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-comorbid-condition-reference', min: 0, type: Extension, index: 7} elements: extension: short: Extensions to capture specific conditions that fall into the given category. index: 5 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: 6} min: 0 conditionReference: match: {url: null} schema: {type: Extension, url: 'http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-comorbid-condition-reference', index: 7} min: 0 modifierExtension: {index: 8} code: {short: Code representing the comorbidity category, index: 9} value: choices: [valueCodeableConcept] index: 11 valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 12} package_version: 1.16.0 class: profile kind: resource url: http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-comorbidities-parent base: http://hl7.org/fhir/StructureDefinition/Observation version: 1.16.0