Id: AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR Url: http://ecqi.healthit.gov/ecqms/Library/AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR Version: 0.0.004 Identifier: value: AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR Name: AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR Title: AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR Status: active Experimental: false Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2023-08-14T14:38:57+00:00 Description: AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR 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 ;; Condition http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition ;; 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.1010 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 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.1141 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.1031 Procedure http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure ;;;; code filter: path: code system: http://snomed.info/sct code: 225337009 display: Suicide risk assessment (procedure) Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient 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 ;; 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 AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR version '0.0.004'#xD; #xD; using QICore version '4.1.1'#xD; #xD; include SupplementalDataElements version '3.4.000' called SDE#xD; include QICoreCommon version '1.5.000' called QICoreCommon#xD; include CQMCommon version '1.4.000' called CQMCommon#xD; include FHIRHelpers version '4.3.000' called FHIRHelpers#xD; #xD; codesystem "SNOMEDCT": 'http://snomed.info/sct'#xD; codesystem "LOINC": 'http://loinc.org'#xD; codesystem "ActCode": 'http://terminology.hl7.org/CodeSystem/v3-ActCode'#xD; #xD; valueset "Emergency Department Visit": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1010'#xD; valueset "Ethnicity": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.837'#xD; valueset "Major Depressive Disorder Active": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1491'#xD; valueset "Office Visit": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001'#xD; valueset "ONC Administrative Sex": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1'#xD; valueset "Outpatient Consultation": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1008'#xD; valueset "Payer": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591'#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 "Psychoanalysis": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1141'#xD; valueset "Race": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.836'#xD; valueset "Telehealth Services": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1031'#xD; #xD; code "Birth date": '21112-8' from "LOINC" display 'Birth date'#xD; code "Suicide risk assessment (procedure)": '225337009' from "SNOMEDCT" display 'Suicide risk assessment (procedure)'#xD; code "AMB": 'AMB' from "ActCode" display 'Ambulatory'#xD; #xD; parameter "Measurement Period" Interval<DateTime>#xD; #xD; context Patient#xD; #xD; define "Initial Population":#xD; "New or Recurrent Major Depressive Disorder Encounter" NewOrRecurrentMDDEncounter#xD; where "AgeInYearsAt"(date from start of "Measurement Period") >= 17#xD; #xD; define "Denominator":#xD; "Initial Population"#xD; #xD; define "Numerator":#xD; "New or Recurrent Major Depressive Disorder Encounter" NewOrRecurrentMDDEncounter#xD; with ["Procedure": "Suicide risk assessment (procedure)"] SuicideRiskAssessment#xD; such that SuicideRiskAssessment.status = 'completed'#xD; and QICoreCommon."ToInterval" ( SuicideRiskAssessment.performed ) during NewOrRecurrentMDDEncounter.period#xD; #xD; define "New or Recurrent Major Depressive Disorder Encounter":#xD; "Major Depressive Disorder Encounter" NewOrRecurrentMDDEncounter#xD; without "Major Depressive Disorder Encounter" PriorMDDEpisodeEncounter#xD; such that ( PriorMDDEpisodeEncounter !~ NewOrRecurrentMDDEncounter#xD; and PriorMDDEpisodeEncounter.period ends 104 days or less before day of start of NewOrRecurrentMDDEncounter.period#xD; )#xD; where NewOrRecurrentMDDEncounter.period during "Measurement Period"#xD; #xD; define "Major Depressive Disorder Encounter":#xD; ( ["Encounter": "Psych Visit Diagnostic Evaluation"]#xD; union ["Encounter": "Emergency Department Visit"]#xD; union ["Encounter": "Office Visit"]#xD; union ["Encounter": "Outpatient Consultation"]#xD; union ["Encounter": "Psych Visit Psychotherapy"]#xD; union ["Encounter": "Psychoanalysis"]#xD; union ["Encounter": "Telehealth Services"] ) ValidEncounter#xD; where ValidEncounter.status = 'finished'#xD; and ValidEncounter.class ~ "AMB"#xD; and ( ValidEncounter.reasonCode in "Major Depressive Disorder Active"#xD; or exists ( ( CQMCommon."EncounterDiagnosis" ( ValidEncounter ) ) EncounterDiagnosis#xD; where EncounterDiagnosis.code in "Major Depressive Disorder Active"#xD; )#xD; )#xD; #xD; define "SDE Ethnicity":#xD; SDE."SDE Ethnicity"#xD; #xD; define "SDE Payer":#xD; SDE."SDE Payer"#xD; #xD; define "SDE Race":#xD; SDE."SDE Race"#xD; #xD; define "SDE Sex":#xD; SDE."SDE Sex" Content: application/elm+xml Encoded data (87128 characters) Content: application/elm+json Encoded data (122084 characters)
Value set Major Depressive Disorder Active
Value set Psych Visit Diagnostic Evaluation
New or Recurrent Major Depressive Disorder Encounter