Metadata Title AdvancedIllnessandFrailty Version 1.16.000 Identifier 66314c05633fd342e6fbc53f Topic FHIR Topic CQL Steward (Publisher) National Committee for Quality Assurance Description This library contains definitions used to exclude patients 66 and older with an indication of frailty who also meet advanced illness criteria, and patients 66 and older who are living long term in a nursing home. Type logic-library from http://terminology.hl7.org/CodeSystem/library-type Dependency Description: Library FHIRHelpers Resource: FHIRHelpersversion: null4.4.000) Canonical URL: https://madie.cms.gov/Library/FHIRHelpers|4.4.000 Dependency Description: Library QICoreCommon Resource: QICoreCommonversion: null2.1.000) Canonical URL: https://madie.cms.gov/Library/QICoreCommon|2.1.000 Dependency Description: Library CMD Resource: CumulativeMedicationDurationversion: null4.1.000) Canonical URL: https://madie.cms.gov/Library/CumulativeMedicationDuration|4.1.000 Dependency Description: Library Status Resource: Statusversion: null1.8.000) Canonical URL: https://madie.cms.gov/Library/Status|1.8.000 Dependency Description: Code System LOINC Resource: Logical Observation Identifiers, Names and Codes (LOINC) Canonical URL: http://loinc.org Dependency Description: Code System SNOMEDCT Resource: SNOMED CT (all versions) Canonical URL: http://snomed.info/sct Dependency Description: Value Set Advanced Illness Resource: Advanced Illness Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1082 Dependency Description: Value Set Dementia Medications Resource: Dementia Medications Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.196.12.1510 Dependency Description: Value Set Frailty Device Resource: Frailty Device Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.118.12.1300 Dependency Description: Value Set Frailty Diagnosis Resource: Frailty Diagnosis Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1074 Dependency Description: Value Set Frailty Encounter Resource: Frailty Encounter Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1088 Dependency Description: Value Set Frailty Symptom Resource: Frailty Symptom Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1075 Data Requirement Type: DeviceRequest Profile(s): QICoreDeviceRequest Code Filter(s): Path: code ValueSet: Frailty Device Data Requirement Type: Observation Profile(s): QICoreObservation Code Filter(s): Path: code Code(s): LOINC: 98181-1 (Medical equipment used) Data Requirement Type: Condition Profile(s): QICoreCondition Code Filter(s): Path: code ValueSet: Frailty Diagnosis Data Requirement Type: Encounter Profile(s): QICoreEncounter Code Filter(s): Path: type ValueSet: Frailty Encounter Data Requirement Type: Observation Profile(s): QICoreObservation Code Filter(s): Path: code ValueSet: Frailty Symptom Data Requirement Type: Condition Profile(s): QICoreCondition Code Filter(s): Path: code ValueSet: Advanced Illness Data Requirement Type: MedicationRequest Profile(s): QICoreMedicationRequest Code Filter(s): Path: medication ValueSet: Dementia Medications Data Requirement Type: Observation Profile(s): QICoreObservation Code Filter(s): Path: code Code(s): LOINC: 71802-3 (Housing status) Parameters Name Use Card. Type Documentation Measurement Period In 0..1 Period Patient Out 0..1 Resource Has Criteria Indicating Frailty Out 0..1 boolean Has Advanced Illness in Year Before or During Measurement Period Out 0..1 boolean Has Dementia Medications in Year Before or During Measurement Period Out 0..1 boolean Is Age 66 or Older with Advanced Illness and Frailty Out 0..1 boolean Is Age 66 to 80 with Advanced Illness and Frailty or Is Age 81 or Older with Frailty Out 0..1 boolean Is Age 66 or Older Living Long Term in a Nursing Home Out 0..1 boolean Library Content CQL Content library AdvancedIllnessandFrailty version '1.16.000' using QICore version '4.1.1' include FHIRHelpers version '4.4.000' called FHIRHelpers include QICoreCommon version '2.1.000' called QICoreCommon include CumulativeMedicationDuration version '4.1.000' called CMD include Status version '1.8.000' called Status codesystem "LOINC": 'http://loinc.org' codesystem "SNOMEDCT": 'http://snomed.info/sct' valueset "Advanced Illness": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1082' valueset "Dementia Medications": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.196.12.1510' valueset "Frailty Device": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.118.12.1300' valueset "Frailty Diagnosis": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1074' valueset "Frailty Encounter": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1088' valueset "Frailty Symptom": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1075' code "Housing status": '71802-3' from "LOINC" display 'Housing status' code "Lives in a nursing home (finding)": '160734000' from "SNOMEDCT" display 'Lives in a nursing home (finding)' code "Medical equipment used": '98181-1' from "LOINC" display 'Medical equipment used' parameter "Measurement Period" Interval<DateTime> context Patient define "Is Age 66 or Older with Advanced Illness and Frailty": AgeInYearsAt(date from end of "Measurement Period")>= 66 and "Has Criteria Indicating Frailty" and ( "Has Advanced Illness in Year Before or During Measurement Period" or "Has Dementia Medications in Year Before or During Measurement Period" ) define "Is Age 66 to 80 with Advanced Illness and Frailty or Is Age 81 or Older with Frailty": ( AgeInYearsAt(date from end of "Measurement Period")in Interval[66, 80] and "Has Criteria Indicating Frailty" and ( "Has Advanced Illness in Year Before or During Measurement Period" or "Has Dementia Medications in Year Before or During Measurement Period" ) ) or ( AgeInYearsAt(date from end of "Measurement Period")>= 81 and "Has Criteria Indicating Frailty" ) define "Has Criteria Indicating Frailty": exists ( (([DeviceRequest: "Frailty Device"]).isDeviceOrder()) FrailtyDeviceOrder where FrailtyDeviceOrder.doNotPerform() is not true and FrailtyDeviceOrder.authoredOn.toInterval() during day of "Measurement Period" ) or exists ( (([Observation: "Medical equipment used"]).isAssessmentPerformed()) EquipmentUsed where EquipmentUsed.value as Concept in "Frailty Device" and EquipmentUsed.effective.toInterval() ends during day of "Measurement Period" ) or exists ( ([Condition: "Frailty Diagnosis"]) FrailtyDiagnosis where FrailtyDiagnosis.prevalenceInterval() overlaps day of "Measurement Period" ) or exists ( (([Encounter: "Frailty Encounter"]).isEncounterPerformed()) FrailtyEncounter where FrailtyEncounter.period.toInterval() overlaps day of "Measurement Period" ) or exists ( (([Observation: "Frailty Symptom"]).isSymptom()) FrailtySymptom where FrailtySymptom.effective.toInterval() overlaps day of "Measurement Period" ) define "Has Advanced Illness in Year Before or During Measurement Period": exists ([Condition: "Advanced Illness"] AdvancedIllnessDiagnosis where AdvancedIllnessDiagnosis.prevalenceInterval() starts during day of Interval[start of "Measurement Period" - 1 year, end of "Measurement Period"]) define "Has Dementia Medications in Year Before or During Measurement Period": exists (( ([MedicationRequest: medication in "Dementia Medications"]).isMedicationActive()) DementiaMedication // https://oncprojectracking.healthit.gov/support/browse/CQLIT-449 where DementiaMedication.medicationRequestPeriod() overlaps day of Interval[start of "Measurement Period" - 1 year, end of "Measurement Period"] // and DementiaMedication.doNotPerform is not true // https://oncprojectracking.healthit.gov/support/browse/CQLIT-447 ) define "Is Age 66 or Older Living Long Term in a Nursing Home": AgeInYearsAt(date from end of "Measurement Period" )>= 66 and ( ( Last( (([Observation: "Housing status"]).isAssessmentPerformed()) HousingStatus where HousingStatus.effective.toInterval() ends on or before day of end of "Measurement Period" sort by end of effective.toInterval() asc )) LastHousingStatus where LastHousingStatus.value ~ "Lives in a nursing home (finding)" ) is not null ELM XML Content Encoded data ELM JSON Content Encoded data Generated using version 0.5.4-cibuild of the sample-content-ig Liquid templates
National Committee for Quality Assurance
This library contains definitions used to exclude patients 66 and older with an indication of frailty who also meet advanced illness criteria, and patients 66 and older who are living long term in a nursing home.
Has Advanced Illness in Year Before or During Measurement Period
Has Dementia Medications in Year Before or During Measurement Period
Is Age 66 or Older with Advanced Illness and Frailty
Is Age 66 to 80 with Advanced Illness and Frailty or Is Age 81 or Older with Frailty
Is Age 66 or Older Living Long Term in a Nursing Home