Id: DementiaCognitiveAssessmentFHIR Url: http://ecqi.healthit.gov/ecqms/Library/DementiaCognitiveAssessmentFHIR Version: 0.0.004 Identifier: value: DementiaCognitiveAssessmentFHIR Name: DementiaCognitiveAssessmentFHIR Title: DementiaCognitiveAssessmentFHIR Status: active Experimental: false Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2023-08-14T15:54:23+00:00 Description: DementiaCognitiveAssessmentFHIR Use Context: code value display program ep-ec EP/EC Related Artifacts: Dependencies Data Requirements: Type Profile MS Code Filter Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient Patient http://hl7.org/fhir/Patient ;;;; Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1492 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1012 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1014 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1496 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1023 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1011 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1008 Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient Condition http://hl7.org/fhir/Condition ; Condition http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition ;; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1005 Observation http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1006 Observation http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1332 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1012 Coverage http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage ;; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591 uri http://hl7.org/fhir/uri ; Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient ;; Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient ;; Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient ;; Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient ;; Observation http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observationnotdone ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1006 Observation http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observationnotdone ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1332 Coverage http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage ;; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591 Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient ;; Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient ;; Content: text/cql library DementiaCognitiveAssessmentFHIR version '0.0.004'#xD; #xD; using QICore version '4.1.1' /*This spec aligns with AU2023/PY2024 QDM version CMS149v12*/ /*Note ws 1. 8/09.2023: Negation issue as outlined in BonnieMat-1455 and ticket https://github.com/cqframework/cql-execution/issues/296 */#xD; #xD; #xD; #xD; include FHIRHelpers version '4.3.000' called FHIRHelpers#xD; include SupplementalDataElements version '3.4.000' called SDE#xD; include QICoreCommon version '1.5.000' called QICoreCommon#xD; #xD; codesystem "ActCode": 'http://terminology.hl7.org/CodeSystem/v3-ActCode'#xD; #xD; valueset "Behavioral/Neuropsych Assessment": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1023'#xD; valueset "Care Services in Long Term Residential Facility": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1014'#xD; valueset "Cognitive Assessment": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1332'#xD; valueset "Dementia & Mental Degenerations": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1005'#xD; valueset "Face-to-Face Interaction": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1048'#xD; valueset "Home Healthcare Services": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016'#xD; valueset "Nursing Facility Visit": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1012'#xD; valueset "Occupational Therapy Evaluation": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1011'#xD; valueset "Office Visit": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001'#xD; valueset "Outpatient Consultation": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1008'#xD; valueset "Patient Provider Interaction": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1012'#xD; valueset "Patient Reason": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1008'#xD; valueset "Psych Visit Diagnostic Evaluation": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1492'#xD; valueset "Psych Visit Psychotherapy": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1496'#xD; valueset "Standardized Tools for Assessment of Cognition": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1006'#xD; #xD; parameter "Measurement Period" Interval<DateTime>#xD; #xD; context Patient /***Population Criteria***/#xD; #xD; #xD; define "Initial Population":#xD; exists "Dementia Encounter During Measurement Period"#xD; and ( Count("Qualifying Encounter During Measurement Period") >= 2 )#xD; #xD; define "Denominator":#xD; "Initial Population"#xD; #xD; define "Numerator":#xD; exists "Assessment of Cognition Using Standardized Tools or Alternate Methods"#xD; #xD; define "Denominator Exceptions":#xD; exists "Patient Reason for Not Performing Assessment of Cognition Using Standardized Tools or Alternate Methods" /***Definitions***/#xD; #xD; #xD; define "Assessment of Cognition Using Standardized Tools or Alternate Methods":#xD; ( ["Observation": "Standardized Tools for Assessment of Cognition"]#xD; union ["Observation": "Cognitive Assessment"] ) CognitiveAssessment#xD; with "Dementia Encounter During Measurement Period" EncounterDementia#xD; such that CognitiveAssessment.issued.toInterval ( ) starts 12 months or less on or before day of end of EncounterDementia.period#xD; where CognitiveAssessment.value is not null#xD; and CognitiveAssessment.status in { 'final', 'amended', 'corrected', 'preliminary' }#xD; #xD; define "Dementia Encounter During Measurement Period":#xD; "Encounter to Assess Cognition" EncounterAssessCognition#xD; with [Condition: "Dementia & Mental Degenerations"] Dementia#xD; such that EncounterAssessCognition.period.toInterval ( ) during "Measurement Period"#xD; and Dementia.prevalenceInterval ( ) overlaps EncounterAssessCognition.period#xD; and Dementia.isActive ( )#xD; and not ( Dementia.verificationStatus ~ QICoreCommon."unconfirmed"#xD; or Dementia.verificationStatus ~ QICoreCommon."refuted"#xD; or Dementia.verificationStatus ~ QICoreCommon."entered-in-error"#xD; )#xD; #xD; define "Encounter to Assess Cognition":#xD; ["Encounter": "Psych Visit Diagnostic Evaluation"]#xD; union ["Encounter": "Nursing Facility Visit"]#xD; union ["Encounter": "Care Services in Long Term Residential Facility"]#xD; union ["Encounter": "Home Healthcare Services"]#xD; union ["Encounter": "Psych Visit Psychotherapy"]#xD; union ["Encounter": "Behavioral/Neuropsych Assessment"]#xD; union ["Encounter": "Occupational Therapy Evaluation"]#xD; union ["Encounter": "Office Visit"]#xD; union ["Encounter": "Outpatient Consultation"]#xD; #xD; define "Patient Reason for Not Performing Assessment of Cognition Using Standardized Tools or Alternate Methods":#xD; ( [ObservationNotDone: code in "Standardized Tools for Assessment of Cognition"]#xD; union [ObservationNotDone: code in "Cognitive Assessment"] ) NoCognitiveAssessment#xD; with "Dementia Encounter During Measurement Period" EncounterDementia#xD; such that NoCognitiveAssessment.issued.toInterval ( ) during EncounterDementia.period#xD; where NoCognitiveAssessment.status = 'cancelled'#xD; and NoCognitiveAssessment.notDoneReason in "Patient Reason"#xD; #xD; define "Qualifying Encounter During Measurement Period":#xD; ( "Encounter to Assess Cognition"#xD; union ["Encounter": "Patient Provider Interaction"] ) ValidEncounter#xD; where ValidEncounter.period during "Measurement Period"#xD; and ValidEncounter.status = 'finished'#xD; #xD; define "SDE Ethnicity":#xD; SDE."SDE Ethnicity"#xD; #xD; define "SDE Race":#xD; SDE."SDE Race"#xD; #xD; define "SDE Sex":#xD; SDE."SDE Sex"#xD; #xD; define "SDE Payer":#xD; SDE."SDE Payer" Content: application/elm+xml Encoded data (118556 characters) Content: application/elm+json Encoded data (167180 characters)
Code system ConditionClinicalStatusCodes
Code system ConditionVerificationStatusCodes
Value set Behavioral/Neuropsych Assessment
Value set Care Services in Long Term Residential Facility
Value set Dementia & Mental Degenerations
Value set Occupational Therapy Evaluation
Value set Psych Visit Diagnostic Evaluation
Value set Standardized Tools for Assessment of Cognition
Dementia Encounter During Measurement Period
Qualifying Encounter During Measurement Period
Assessment of Cognition Using Standardized Tools or Alternate Methods
Patient Reason for Not Performing Assessment of Cognition Using Standardized Tools or Alternate Methods