Id: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR Url: http://ecqi.healthit.gov/ecqms/Library/ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR Version: 0.0.003 Identifier: value: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR Name: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR Title: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR Status: active Experimental: false Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2023-08-14T14:37:08+00:00 Description: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR Use Context: code value display program ep-ec EP/EC Related Artifacts: Dependencies Data Requirements: Type Profile MS Code Filter 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.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.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.526.3.1018 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.526.3.1187 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 Content: text/cql library ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR version '0.0.003'#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 FHIRHelpers version '4.3.000' called FHIRHelpers#xD; include CQMCommon version '1.4.000' called CQMCommon#xD; #xD; codesystem "LOINC": 'http://loinc.org'#xD; codesystem "SNOMEDCT": 'http://snomed.info/sct'#xD; codesystem "ActCode": 'http://terminology.hl7.org/CodeSystem/v3-ActCode'#xD; codesystem "ICD10CM": 'http://hl7.org/fhir/sid/icd-10-cm'#xD; #xD; valueset "Group Psychotherapy": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1187'#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 "Outpatient Consultation": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.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 for Family Psychotherapy": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1018'#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 "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; "Major Depressive Disorder Encounter" MDDEncounter#xD; where ( "AgeInYearsAt"(date from start of "Measurement Period") >= 6#xD; and "AgeInYearsAt"(date from start of "Measurement Period") < 17#xD; )#xD; #xD; define "Denominator":#xD; "Initial Population"#xD; #xD; define "Numerator":#xD; "Major Depressive Disorder Encounter" MDDEncounter#xD; with ["Procedure": "Suicide risk assessment (procedure)"] SuicideRiskAssessment#xD; such that SuicideRiskAssessment.status = 'completed'#xD; and QICoreCommon."ToInterval" ( SuicideRiskAssessment.performed ) during MDDEncounter.period#xD; #xD; define "Major Depressive Disorder Encounter":#xD; ( ["Encounter": "Office Visit"]#xD; union ["Encounter": "Outpatient Consultation"]#xD; union ["Encounter": "Psych Visit Diagnostic Evaluation"]#xD; union ["Encounter": "Psych Visit for Family Psychotherapy"]#xD; union ["Encounter": "Psych Visit Psychotherapy"]#xD; union ["Encounter": "Psychoanalysis"]#xD; union ["Encounter": "Group Psychotherapy"]#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; and ValidEncounter.period during "Measurement Period"#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 (79024 characters) Content: application/elm+json Encoded data (110596 characters)
Value set Major Depressive Disorder Active
Value set Psych Visit Diagnostic Evaluation
Value set Psych Visit for Family Psychotherapy