# Child and Adolescent Major Depressive Disorder (MDD): Suicide Risk AssessmentFHIR - eCQM QICore Content Implementation Guide v2023.0.0

* [**Table of Contents**](toc.md)
* [**Artifacts Summary**](artifacts.md)
* **Child and Adolescent Major Depressive Disorder (MDD): Suicide Risk AssessmentFHIR**

## Measure: Child and Adolescent Major Depressive Disorder (MDD): Suicide Risk AssessmentFHIR 

| | | |
| :--- | :--- | :--- |
| *Official URL*:http://ecqi.healthit.gov/ecqms/Measure/ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR | *Version*:0.0.003 | |
| Draft as of 2023-10-27 | *Responsible:*[Mathematica](https://www.mathematica.org/) | *Computable Name*:ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR |
| *Other Identifiers:*Short Name (use: usual, ), UUID:50d1dfcf-e2bf-41e8-bc1c-c607e5a09e79 (use: official, ), UUID:2c928085806c39a20180859de2340526 (use: official, ), Endorser (use: official, ), Publisher (use: official, ) | | |
| **Usage:**Program: EP/EC | | |
| **Copyright/Legal**: Copyright 2023 Mathematica Inc. All Rights Reserved. The PCPI and American Medical Association’s (AMA) significant past efforts and contributions to the development and updating of the Measure is acknowledged. | | |

 
Percentage of patient visits for those patients aged 6 through 16 at the start of the measurement period with a diagnosis of major depressive disorder (MDD) with an assessment for suicide risk 

 
UNKNOWN 

* **Logic Definitions:**: **Id: **
  * * **Group**: 638504914ba3d47c885c02c6
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Major Depressive Disorder Encounter
* **Library Name**: 
  * **Name**: ````define "Major Depressive Disorder Encounter": ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Psych Visit Diagnostic Evaluation"] union ["Encounter": "Psych Visit for Family Psychotherapy"] union ["Encounter": "Psych Visit Psychotherapy"] union ["Encounter": "Psychoanalysis"] union ["Encounter": "Group Psychotherapy"] union ["Encounter": "Telehealth Services"] ) ValidEncounter where ValidEncounter.status = 'finished' and ValidEncounter.class ~ "AMB" and ( ValidEncounter.reasonCode in "Major Depressive Disorder Active" or exists ( ( CQMCommon."EncounterDiagnosis" ( ValidEncounter ) ) EncounterDiagnosis where EncounterDiagnosis.code in "Major Depressive Disorder Active" ) ) and ValidEncounter.period during "Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Numerator
* **Library Name**: 
  * **Name**: ````define "Numerator": "Major Depressive Disorder Encounter" MDDEncounter with ["Procedure": "Suicide risk assessment (procedure)"] SuicideRiskAssessment such that SuicideRiskAssessment.status = 'completed' and QICoreCommon."ToInterval" ( SuicideRiskAssessment.performed ) during MDDEncounter.period````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Major Depressive Disorder Encounter" MDDEncounter where ( "AgeInYearsAt"(date from start of "Measurement Period") >= 6 and "AgeInYearsAt"(date from start of "Measurement Period") < 17 )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Denominator
* **Library Name**: 
  * **Name**: ````define "Denominator": "Initial Population"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: FHIRHelpers
  * **Name**: ToConcept
* **Library Name**: 
  * **Name**: ````/* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept): if concept is null then null else System.Concept { codes: concept.coding C return ToCode(C), display: concept.text.value }````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: CQMCommon
  * **Name**: EncounterDiagnosis
* **Library Name**: 
  * **Name**: ````/* @description: Returns the Condition resource referenced by the `diagnosis.condition` element of the Encounter @deprecated: This function is deprecated. Use the fluent function `encounterDiagnosis()` instead. */ define function "EncounterDiagnosis"(Encounter Encounter ): Encounter.diagnosis D return singleton from ([Condition] C where C.id = D.condition.reference.getId())````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: QICoreCommon
  * **Name**: getId
* **Library Name**: 
  * **Name**: ````/* @description: Returns the tail of the given uri (i.e. everything after the last slash in the URI). @comment: This function can be used to determine the logical id of a given resource. It can be used in a single-server environment to trace references. However, this function does not attempt to resolve or distinguish the base of the given url, and so cannot be used safely in multi-server environments. */ define fluent function getId(uri String): Last(Split(uri, '/'))````: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
* **Logic Definitions:**: **Download cql: **
  * * **Group**: 638504914ba3d47c885c02c6
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Major Depressive Disorder Encounter
* **Library Name**: 
  * **Name**: ````define "Major Depressive Disorder Encounter": ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Psych Visit Diagnostic Evaluation"] union ["Encounter": "Psych Visit for Family Psychotherapy"] union ["Encounter": "Psych Visit Psychotherapy"] union ["Encounter": "Psychoanalysis"] union ["Encounter": "Group Psychotherapy"] union ["Encounter": "Telehealth Services"] ) ValidEncounter where ValidEncounter.status = 'finished' and ValidEncounter.class ~ "AMB" and ( ValidEncounter.reasonCode in "Major Depressive Disorder Active" or exists ( ( CQMCommon."EncounterDiagnosis" ( ValidEncounter ) ) EncounterDiagnosis where EncounterDiagnosis.code in "Major Depressive Disorder Active" ) ) and ValidEncounter.period during "Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Numerator
* **Library Name**: 
  * **Name**: ````define "Numerator": "Major Depressive Disorder Encounter" MDDEncounter with ["Procedure": "Suicide risk assessment (procedure)"] SuicideRiskAssessment such that SuicideRiskAssessment.status = 'completed' and QICoreCommon."ToInterval" ( SuicideRiskAssessment.performed ) during MDDEncounter.period````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Major Depressive Disorder Encounter" MDDEncounter where ( "AgeInYearsAt"(date from start of "Measurement Period") >= 6 and "AgeInYearsAt"(date from start of "Measurement Period") < 17 )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Denominator
* **Library Name**: 
  * **Name**: ````define "Denominator": "Initial Population"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: FHIRHelpers
  * **Name**: ToConcept
* **Library Name**: 
  * **Name**: ````/* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept): if concept is null then null else System.Concept { codes: concept.coding C return ToCode(C), display: concept.text.value }````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: CQMCommon
  * **Name**: EncounterDiagnosis
* **Library Name**: 
  * **Name**: ````/* @description: Returns the Condition resource referenced by the `diagnosis.condition` element of the Encounter @deprecated: This function is deprecated. Use the fluent function `encounterDiagnosis()` instead. */ define function "EncounterDiagnosis"(Encounter Encounter ): Encounter.diagnosis D return singleton from ([Condition] C where C.id = D.condition.reference.getId())````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: QICoreCommon
  * **Name**: getId
* **Library Name**: 
  * **Name**: ````/* @description: Returns the tail of the given uri (i.e. everything after the last slash in the URI). @comment: This function can be used to determine the logical id of a given resource. It can be used in a single-server environment to trace references. However, this function does not attempt to resolve or distinguish the base of the given url, and so cannot be used safely in multi-server environments. */ define fluent function getId(uri String): Last(Split(uri, '/'))````: [ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR.cql](Library-ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR.cql)
* **Logic Definitions:**: **Version: **
  * * **Group**: 638504914ba3d47c885c02c6
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Major Depressive Disorder Encounter
* **Library Name**: 
  * **Name**: ````define "Major Depressive Disorder Encounter": ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Psych Visit Diagnostic Evaluation"] union ["Encounter": "Psych Visit for Family Psychotherapy"] union ["Encounter": "Psych Visit Psychotherapy"] union ["Encounter": "Psychoanalysis"] union ["Encounter": "Group Psychotherapy"] union ["Encounter": "Telehealth Services"] ) ValidEncounter where ValidEncounter.status = 'finished' and ValidEncounter.class ~ "AMB" and ( ValidEncounter.reasonCode in "Major Depressive Disorder Active" or exists ( ( CQMCommon."EncounterDiagnosis" ( ValidEncounter ) ) EncounterDiagnosis where EncounterDiagnosis.code in "Major Depressive Disorder Active" ) ) and ValidEncounter.period during "Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Numerator
* **Library Name**: 
  * **Name**: ````define "Numerator": "Major Depressive Disorder Encounter" MDDEncounter with ["Procedure": "Suicide risk assessment (procedure)"] SuicideRiskAssessment such that SuicideRiskAssessment.status = 'completed' and QICoreCommon."ToInterval" ( SuicideRiskAssessment.performed ) during MDDEncounter.period````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Major Depressive Disorder Encounter" MDDEncounter where ( "AgeInYearsAt"(date from start of "Measurement Period") >= 6 and "AgeInYearsAt"(date from start of "Measurement Period") < 17 )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Denominator
* **Library Name**: 
  * **Name**: ````define "Denominator": "Initial Population"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: FHIRHelpers
  * **Name**: ToConcept
* **Library Name**: 
  * **Name**: ````/* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept): if concept is null then null else System.Concept { codes: concept.coding C return ToCode(C), display: concept.text.value }````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: CQMCommon
  * **Name**: EncounterDiagnosis
* **Library Name**: 
  * **Name**: ````/* @description: Returns the Condition resource referenced by the `diagnosis.condition` element of the Encounter @deprecated: This function is deprecated. Use the fluent function `encounterDiagnosis()` instead. */ define function "EncounterDiagnosis"(Encounter Encounter ): Encounter.diagnosis D return singleton from ([Condition] C where C.id = D.condition.reference.getId())````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: QICoreCommon
  * **Name**: getId
* **Library Name**: 
  * **Name**: ````/* @description: Returns the tail of the given uri (i.e. everything after the last slash in the URI). @comment: This function can be used to determine the logical id of a given resource. It can be used in a single-server environment to trace references. However, this function does not attempt to resolve or distinguish the base of the given url, and so cannot be used safely in multi-server environments. */ define fluent function getId(uri String): Last(Split(uri, '/'))````: 0.0.003
* **Logic Definitions:**: **Url: **
  * * **Group**: 638504914ba3d47c885c02c6
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Major Depressive Disorder Encounter
* **Library Name**: 
  * **Name**: ````define "Major Depressive Disorder Encounter": ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Psych Visit Diagnostic Evaluation"] union ["Encounter": "Psych Visit for Family Psychotherapy"] union ["Encounter": "Psych Visit Psychotherapy"] union ["Encounter": "Psychoanalysis"] union ["Encounter": "Group Psychotherapy"] union ["Encounter": "Telehealth Services"] ) ValidEncounter where ValidEncounter.status = 'finished' and ValidEncounter.class ~ "AMB" and ( ValidEncounter.reasonCode in "Major Depressive Disorder Active" or exists ( ( CQMCommon."EncounterDiagnosis" ( ValidEncounter ) ) EncounterDiagnosis where EncounterDiagnosis.code in "Major Depressive Disorder Active" ) ) and ValidEncounter.period during "Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Numerator
* **Library Name**: 
  * **Name**: ````define "Numerator": "Major Depressive Disorder Encounter" MDDEncounter with ["Procedure": "Suicide risk assessment (procedure)"] SuicideRiskAssessment such that SuicideRiskAssessment.status = 'completed' and QICoreCommon."ToInterval" ( SuicideRiskAssessment.performed ) during MDDEncounter.period````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Major Depressive Disorder Encounter" MDDEncounter where ( "AgeInYearsAt"(date from start of "Measurement Period") >= 6 and "AgeInYearsAt"(date from start of "Measurement Period") < 17 )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Denominator
* **Library Name**: 
  * **Name**: ````define "Denominator": "Initial Population"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: FHIRHelpers
  * **Name**: ToConcept
* **Library Name**: 
  * **Name**: ````/* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept): if concept is null then null else System.Concept { codes: concept.coding C return ToCode(C), display: concept.text.value }````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: CQMCommon
  * **Name**: EncounterDiagnosis
* **Library Name**: 
  * **Name**: ````/* @description: Returns the Condition resource referenced by the `diagnosis.condition` element of the Encounter @deprecated: This function is deprecated. Use the fluent function `encounterDiagnosis()` instead. */ define function "EncounterDiagnosis"(Encounter Encounter ): Encounter.diagnosis D return singleton from ([Condition] C where C.id = D.condition.reference.getId())````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: QICoreCommon
  * **Name**: getId
* **Library Name**: 
  * **Name**: ````/* @description: Returns the tail of the given uri (i.e. everything after the last slash in the URI). @comment: This function can be used to determine the logical id of a given resource. It can be used in a single-server environment to trace references. However, this function does not attempt to resolve or distinguish the base of the given url, and so cannot be used safely in multi-server environments. */ define fluent function getId(uri String): Last(Split(uri, '/'))````: [Child and Adolescent Major Depressive Disorder (MDD): Suicide Risk AssessmentFHIR](Measure-ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR.md)
* **Logic Definitions:**: ** short-name identifier: **
  * * **Group**: 638504914ba3d47c885c02c6
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Major Depressive Disorder Encounter
* **Library Name**: 
  * **Name**: ````define "Major Depressive Disorder Encounter": ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Psych Visit Diagnostic Evaluation"] union ["Encounter": "Psych Visit for Family Psychotherapy"] union ["Encounter": "Psych Visit Psychotherapy"] union ["Encounter": "Psychoanalysis"] union ["Encounter": "Group Psychotherapy"] union ["Encounter": "Telehealth Services"] ) ValidEncounter where ValidEncounter.status = 'finished' and ValidEncounter.class ~ "AMB" and ( ValidEncounter.reasonCode in "Major Depressive Disorder Active" or exists ( ( CQMCommon."EncounterDiagnosis" ( ValidEncounter ) ) EncounterDiagnosis where EncounterDiagnosis.code in "Major Depressive Disorder Active" ) ) and ValidEncounter.period during "Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Numerator
* **Library Name**: 
  * **Name**: ````define "Numerator": "Major Depressive Disorder Encounter" MDDEncounter with ["Procedure": "Suicide risk assessment (procedure)"] SuicideRiskAssessment such that SuicideRiskAssessment.status = 'completed' and QICoreCommon."ToInterval" ( SuicideRiskAssessment.performed ) during MDDEncounter.period````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Major Depressive Disorder Encounter" MDDEncounter where ( "AgeInYearsAt"(date from start of "Measurement Period") >= 6 and "AgeInYearsAt"(date from start of "Measurement Period") < 17 )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Denominator
* **Library Name**: 
  * **Name**: ````define "Denominator": "Initial Population"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: FHIRHelpers
  * **Name**: ToConcept
* **Library Name**: 
  * **Name**: ````/* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept): if concept is null then null else System.Concept { codes: concept.coding C return ToCode(C), display: concept.text.value }````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: CQMCommon
  * **Name**: EncounterDiagnosis
* **Library Name**: 
  * **Name**: ````/* @description: Returns the Condition resource referenced by the `diagnosis.condition` element of the Encounter @deprecated: This function is deprecated. Use the fluent function `encounterDiagnosis()` instead. */ define function "EncounterDiagnosis"(Encounter Encounter ): Encounter.diagnosis D return singleton from ([Condition] C where C.id = D.condition.reference.getId())````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: QICoreCommon
  * **Name**: getId
* **Library Name**: 
  * **Name**: ````/* @description: Returns the tail of the given uri (i.e. everything after the last slash in the URI). @comment: This function can be used to determine the logical id of a given resource. It can be used in a single-server environment to trace references. However, this function does not attempt to resolve or distinguish the base of the given url, and so cannot be used safely in multi-server environments. */ define fluent function getId(uri String): Last(Split(uri, '/'))````:  CMS177FHIR 
* **Logic Definitions:**: ** version-independent identifier: **
  * * **Group**: 638504914ba3d47c885c02c6
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Major Depressive Disorder Encounter
* **Library Name**: 
  * **Name**: ````define "Major Depressive Disorder Encounter": ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Psych Visit Diagnostic Evaluation"] union ["Encounter": "Psych Visit for Family Psychotherapy"] union ["Encounter": "Psych Visit Psychotherapy"] union ["Encounter": "Psychoanalysis"] union ["Encounter": "Group Psychotherapy"] union ["Encounter": "Telehealth Services"] ) ValidEncounter where ValidEncounter.status = 'finished' and ValidEncounter.class ~ "AMB" and ( ValidEncounter.reasonCode in "Major Depressive Disorder Active" or exists ( ( CQMCommon."EncounterDiagnosis" ( ValidEncounter ) ) EncounterDiagnosis where EncounterDiagnosis.code in "Major Depressive Disorder Active" ) ) and ValidEncounter.period during "Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Numerator
* **Library Name**: 
  * **Name**: ````define "Numerator": "Major Depressive Disorder Encounter" MDDEncounter with ["Procedure": "Suicide risk assessment (procedure)"] SuicideRiskAssessment such that SuicideRiskAssessment.status = 'completed' and QICoreCommon."ToInterval" ( SuicideRiskAssessment.performed ) during MDDEncounter.period````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Major Depressive Disorder Encounter" MDDEncounter where ( "AgeInYearsAt"(date from start of "Measurement Period") >= 6 and "AgeInYearsAt"(date from start of "Measurement Period") < 17 )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Denominator
* **Library Name**: 
  * **Name**: ````define "Denominator": "Initial Population"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: FHIRHelpers
  * **Name**: ToConcept
* **Library Name**: 
  * **Name**: ````/* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept): if concept is null then null else System.Concept { codes: concept.coding C return ToCode(C), display: concept.text.value }````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: CQMCommon
  * **Name**: EncounterDiagnosis
* **Library Name**: 
  * **Name**: ````/* @description: Returns the Condition resource referenced by the `diagnosis.condition` element of the Encounter @deprecated: This function is deprecated. Use the fluent function `encounterDiagnosis()` instead. */ define function "EncounterDiagnosis"(Encounter Encounter ): Encounter.diagnosis D return singleton from ([Condition] C where C.id = D.condition.reference.getId())````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: QICoreCommon
  * **Name**: getId
* **Library Name**: 
  * **Name**: ````/* @description: Returns the tail of the given uri (i.e. everything after the last slash in the URI). @comment: This function can be used to determine the logical id of a given resource. It can be used in a single-server environment to trace references. However, this function does not attempt to resolve or distinguish the base of the given url, and so cannot be used safely in multi-server environments. */ define fluent function getId(uri String): Last(Split(uri, '/'))````:  urn:uuid:50d1dfcf-e2bf-41e8-bc1c-c607e5a09e79 
* **Logic Definitions:**: ** version-specific identifier: **
  * * **Group**: 638504914ba3d47c885c02c6
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Major Depressive Disorder Encounter
* **Library Name**: 
  * **Name**: ````define "Major Depressive Disorder Encounter": ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Psych Visit Diagnostic Evaluation"] union ["Encounter": "Psych Visit for Family Psychotherapy"] union ["Encounter": "Psych Visit Psychotherapy"] union ["Encounter": "Psychoanalysis"] union ["Encounter": "Group Psychotherapy"] union ["Encounter": "Telehealth Services"] ) ValidEncounter where ValidEncounter.status = 'finished' and ValidEncounter.class ~ "AMB" and ( ValidEncounter.reasonCode in "Major Depressive Disorder Active" or exists ( ( CQMCommon."EncounterDiagnosis" ( ValidEncounter ) ) EncounterDiagnosis where EncounterDiagnosis.code in "Major Depressive Disorder Active" ) ) and ValidEncounter.period during "Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Numerator
* **Library Name**: 
  * **Name**: ````define "Numerator": "Major Depressive Disorder Encounter" MDDEncounter with ["Procedure": "Suicide risk assessment (procedure)"] SuicideRiskAssessment such that SuicideRiskAssessment.status = 'completed' and QICoreCommon."ToInterval" ( SuicideRiskAssessment.performed ) during MDDEncounter.period````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Major Depressive Disorder Encounter" MDDEncounter where ( "AgeInYearsAt"(date from start of "Measurement Period") >= 6 and "AgeInYearsAt"(date from start of "Measurement Period") < 17 )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Denominator
* **Library Name**: 
  * **Name**: ````define "Denominator": "Initial Population"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: FHIRHelpers
  * **Name**: ToConcept
* **Library Name**: 
  * **Name**: ````/* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept): if concept is null then null else System.Concept { codes: concept.coding C return ToCode(C), display: concept.text.value }````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: CQMCommon
  * **Name**: EncounterDiagnosis
* **Library Name**: 
  * **Name**: ````/* @description: Returns the Condition resource referenced by the `diagnosis.condition` element of the Encounter @deprecated: This function is deprecated. Use the fluent function `encounterDiagnosis()` instead. */ define function "EncounterDiagnosis"(Encounter Encounter ): Encounter.diagnosis D return singleton from ([Condition] C where C.id = D.condition.reference.getId())````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: QICoreCommon
  * **Name**: getId
* **Library Name**: 
  * **Name**: ````/* @description: Returns the tail of the given uri (i.e. everything after the last slash in the URI). @comment: This function can be used to determine the logical id of a given resource. It can be used in a single-server environment to trace references. However, this function does not attempt to resolve or distinguish the base of the given url, and so cannot be used safely in multi-server environments. */ define fluent function getId(uri String): Last(Split(uri, '/'))````:  urn:uuid:2c928085806c39a20180859de2340526 
* **Logic Definitions:**: ** endorser (NQF) identifier: **
  * * **Group**: 638504914ba3d47c885c02c6
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Major Depressive Disorder Encounter
* **Library Name**: 
  * **Name**: ````define "Major Depressive Disorder Encounter": ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Psych Visit Diagnostic Evaluation"] union ["Encounter": "Psych Visit for Family Psychotherapy"] union ["Encounter": "Psych Visit Psychotherapy"] union ["Encounter": "Psychoanalysis"] union ["Encounter": "Group Psychotherapy"] union ["Encounter": "Telehealth Services"] ) ValidEncounter where ValidEncounter.status = 'finished' and ValidEncounter.class ~ "AMB" and ( ValidEncounter.reasonCode in "Major Depressive Disorder Active" or exists ( ( CQMCommon."EncounterDiagnosis" ( ValidEncounter ) ) EncounterDiagnosis where EncounterDiagnosis.code in "Major Depressive Disorder Active" ) ) and ValidEncounter.period during "Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Numerator
* **Library Name**: 
  * **Name**: ````define "Numerator": "Major Depressive Disorder Encounter" MDDEncounter with ["Procedure": "Suicide risk assessment (procedure)"] SuicideRiskAssessment such that SuicideRiskAssessment.status = 'completed' and QICoreCommon."ToInterval" ( SuicideRiskAssessment.performed ) during MDDEncounter.period````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Major Depressive Disorder Encounter" MDDEncounter where ( "AgeInYearsAt"(date from start of "Measurement Period") >= 6 and "AgeInYearsAt"(date from start of "Measurement Period") < 17 )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Denominator
* **Library Name**: 
  * **Name**: ````define "Denominator": "Initial Population"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: FHIRHelpers
  * **Name**: ToConcept
* **Library Name**: 
  * **Name**: ````/* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept): if concept is null then null else System.Concept { codes: concept.coding C return ToCode(C), display: concept.text.value }````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: CQMCommon
  * **Name**: EncounterDiagnosis
* **Library Name**: 
  * **Name**: ````/* @description: Returns the Condition resource referenced by the `diagnosis.condition` element of the Encounter @deprecated: This function is deprecated. Use the fluent function `encounterDiagnosis()` instead. */ define function "EncounterDiagnosis"(Encounter Encounter ): Encounter.diagnosis D return singleton from ([Condition] C where C.id = D.condition.reference.getId())````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: QICoreCommon
  * **Name**: getId
* **Library Name**: 
  * **Name**: ````/* @description: Returns the tail of the given uri (i.e. everything after the last slash in the URI). @comment: This function can be used to determine the logical id of a given resource. It can be used in a single-server environment to trace references. However, this function does not attempt to resolve or distinguish the base of the given url, and so cannot be used safely in multi-server environments. */ define fluent function getId(uri String): Last(Split(uri, '/'))````:  1365e 
* **Logic Definitions:**: ** publisher (CMS) identifier: **
  * * **Group**: 638504914ba3d47c885c02c6
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Major Depressive Disorder Encounter
* **Library Name**: 
  * **Name**: ````define "Major Depressive Disorder Encounter": ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Psych Visit Diagnostic Evaluation"] union ["Encounter": "Psych Visit for Family Psychotherapy"] union ["Encounter": "Psych Visit Psychotherapy"] union ["Encounter": "Psychoanalysis"] union ["Encounter": "Group Psychotherapy"] union ["Encounter": "Telehealth Services"] ) ValidEncounter where ValidEncounter.status = 'finished' and ValidEncounter.class ~ "AMB" and ( ValidEncounter.reasonCode in "Major Depressive Disorder Active" or exists ( ( CQMCommon."EncounterDiagnosis" ( ValidEncounter ) ) EncounterDiagnosis where EncounterDiagnosis.code in "Major Depressive Disorder Active" ) ) and ValidEncounter.period during "Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Numerator
* **Library Name**: 
  * **Name**: ````define "Numerator": "Major Depressive Disorder Encounter" MDDEncounter with ["Procedure": "Suicide risk assessment (procedure)"] SuicideRiskAssessment such that SuicideRiskAssessment.status = 'completed' and QICoreCommon."ToInterval" ( SuicideRiskAssessment.performed ) during MDDEncounter.period````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Major Depressive Disorder Encounter" MDDEncounter where ( "AgeInYearsAt"(date from start of "Measurement Period") >= 6 and "AgeInYearsAt"(date from start of "Measurement Period") < 17 )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Denominator
* **Library Name**: 
  * **Name**: ````define "Denominator": "Initial Population"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: FHIRHelpers
  * **Name**: ToConcept
* **Library Name**: 
  * **Name**: ````/* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept): if concept is null then null else System.Concept { codes: concept.coding C return ToCode(C), display: concept.text.value }````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: CQMCommon
  * **Name**: EncounterDiagnosis
* **Library Name**: 
  * **Name**: ````/* @description: Returns the Condition resource referenced by the `diagnosis.condition` element of the Encounter @deprecated: This function is deprecated. Use the fluent function `encounterDiagnosis()` instead. */ define function "EncounterDiagnosis"(Encounter Encounter ): Encounter.diagnosis D return singleton from ([Condition] C where C.id = D.condition.reference.getId())````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: QICoreCommon
  * **Name**: getId
* **Library Name**: 
  * **Name**: ````/* @description: Returns the tail of the given uri (i.e. everything after the last slash in the URI). @comment: This function can be used to determine the logical id of a given resource. It can be used in a single-server environment to trace references. However, this function does not attempt to resolve or distinguish the base of the given url, and so cannot be used safely in multi-server environments. */ define fluent function getId(uri String): Last(Split(uri, '/'))````:  177FHIR 
* **Logic Definitions:**: **Effective Period: **
  * * **Group**: 638504914ba3d47c885c02c6
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Major Depressive Disorder Encounter
* **Library Name**: 
  * **Name**: ````define "Major Depressive Disorder Encounter": ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Psych Visit Diagnostic Evaluation"] union ["Encounter": "Psych Visit for Family Psychotherapy"] union ["Encounter": "Psych Visit Psychotherapy"] union ["Encounter": "Psychoanalysis"] union ["Encounter": "Group Psychotherapy"] union ["Encounter": "Telehealth Services"] ) ValidEncounter where ValidEncounter.status = 'finished' and ValidEncounter.class ~ "AMB" and ( ValidEncounter.reasonCode in "Major Depressive Disorder Active" or exists ( ( CQMCommon."EncounterDiagnosis" ( ValidEncounter ) ) EncounterDiagnosis where EncounterDiagnosis.code in "Major Depressive Disorder Active" ) ) and ValidEncounter.period during "Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Numerator
* **Library Name**: 
  * **Name**: ````define "Numerator": "Major Depressive Disorder Encounter" MDDEncounter with ["Procedure": "Suicide risk assessment (procedure)"] SuicideRiskAssessment such that SuicideRiskAssessment.status = 'completed' and QICoreCommon."ToInterval" ( SuicideRiskAssessment.performed ) during MDDEncounter.period````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Major Depressive Disorder Encounter" MDDEncounter where ( "AgeInYearsAt"(date from start of "Measurement Period") >= 6 and "AgeInYearsAt"(date from start of "Measurement Period") < 17 )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Denominator
* **Library Name**: 
  * **Name**: ````define "Denominator": "Initial Population"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: FHIRHelpers
  * **Name**: ToConcept
* **Library Name**: 
  * **Name**: ````/* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept): if concept is null then null else System.Concept { codes: concept.coding C return ToCode(C), display: concept.text.value }````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: CQMCommon
  * **Name**: EncounterDiagnosis
* **Library Name**: 
  * **Name**: ````/* @description: Returns the Condition resource referenced by the `diagnosis.condition` element of the Encounter @deprecated: This function is deprecated. Use the fluent function `encounterDiagnosis()` instead. */ define function "EncounterDiagnosis"(Encounter Encounter ): Encounter.diagnosis D return singleton from ([Condition] C where C.id = D.condition.reference.getId())````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: QICoreCommon
  * **Name**: getId
* **Library Name**: 
  * **Name**: ````/* @description: Returns the tail of the given uri (i.e. everything after the last slash in the URI). @comment: This function can be used to determine the logical id of a given resource. It can be used in a single-server environment to trace references. However, this function does not attempt to resolve or distinguish the base of the given url, and so cannot be used safely in multi-server environments. */ define fluent function getId(uri String): Last(Split(uri, '/'))````: 2024-01-01 ..2024-12-31
* **Logic Definitions:**: **Status: **
  * * **Group**: 638504914ba3d47c885c02c6
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Major Depressive Disorder Encounter
* **Library Name**: 
  * **Name**: ````define "Major Depressive Disorder Encounter": ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Psych Visit Diagnostic Evaluation"] union ["Encounter": "Psych Visit for Family Psychotherapy"] union ["Encounter": "Psych Visit Psychotherapy"] union ["Encounter": "Psychoanalysis"] union ["Encounter": "Group Psychotherapy"] union ["Encounter": "Telehealth Services"] ) ValidEncounter where ValidEncounter.status = 'finished' and ValidEncounter.class ~ "AMB" and ( ValidEncounter.reasonCode in "Major Depressive Disorder Active" or exists ( ( CQMCommon."EncounterDiagnosis" ( ValidEncounter ) ) EncounterDiagnosis where EncounterDiagnosis.code in "Major Depressive Disorder Active" ) ) and ValidEncounter.period during "Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Numerator
* **Library Name**: 
  * **Name**: ````define "Numerator": "Major Depressive Disorder Encounter" MDDEncounter with ["Procedure": "Suicide risk assessment (procedure)"] SuicideRiskAssessment such that SuicideRiskAssessment.status = 'completed' and QICoreCommon."ToInterval" ( SuicideRiskAssessment.performed ) during MDDEncounter.period````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Major Depressive Disorder Encounter" MDDEncounter where ( "AgeInYearsAt"(date from start of "Measurement Period") >= 6 and "AgeInYearsAt"(date from start of "Measurement Period") < 17 )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Denominator
* **Library Name**: 
  * **Name**: ````define "Denominator": "Initial Population"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: FHIRHelpers
  * **Name**: ToConcept
* **Library Name**: 
  * **Name**: ````/* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept): if concept is null then null else System.Concept { codes: concept.coding C return ToCode(C), display: concept.text.value }````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: CQMCommon
  * **Name**: EncounterDiagnosis
* **Library Name**: 
  * **Name**: ````/* @description: Returns the Condition resource referenced by the `diagnosis.condition` element of the Encounter @deprecated: This function is deprecated. Use the fluent function `encounterDiagnosis()` instead. */ define function "EncounterDiagnosis"(Encounter Encounter ): Encounter.diagnosis D return singleton from ([Condition] C where C.id = D.condition.reference.getId())````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: QICoreCommon
  * **Name**: getId
* **Library Name**: 
  * **Name**: ````/* @description: Returns the tail of the given uri (i.e. everything after the last slash in the URI). @comment: This function can be used to determine the logical id of a given resource. It can be used in a single-server environment to trace references. However, this function does not attempt to resolve or distinguish the base of the given url, and so cannot be used safely in multi-server environments. */ define fluent function getId(uri String): Last(Split(uri, '/'))````: draft
* **Logic Definitions:**: **Date: **
  * * **Group**: 638504914ba3d47c885c02c6
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Major Depressive Disorder Encounter
* **Library Name**: 
  * **Name**: ````define "Major Depressive Disorder Encounter": ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Psych Visit Diagnostic Evaluation"] union ["Encounter": "Psych Visit for Family Psychotherapy"] union ["Encounter": "Psych Visit Psychotherapy"] union ["Encounter": "Psychoanalysis"] union ["Encounter": "Group Psychotherapy"] union ["Encounter": "Telehealth Services"] ) ValidEncounter where ValidEncounter.status = 'finished' and ValidEncounter.class ~ "AMB" and ( ValidEncounter.reasonCode in "Major Depressive Disorder Active" or exists ( ( CQMCommon."EncounterDiagnosis" ( ValidEncounter ) ) EncounterDiagnosis where EncounterDiagnosis.code in "Major Depressive Disorder Active" ) ) and ValidEncounter.period during "Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Numerator
* **Library Name**: 
  * **Name**: ````define "Numerator": "Major Depressive Disorder Encounter" MDDEncounter with ["Procedure": "Suicide risk assessment (procedure)"] SuicideRiskAssessment such that SuicideRiskAssessment.status = 'completed' and QICoreCommon."ToInterval" ( SuicideRiskAssessment.performed ) during MDDEncounter.period````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Major Depressive Disorder Encounter" MDDEncounter where ( "AgeInYearsAt"(date from start of "Measurement Period") >= 6 and "AgeInYearsAt"(date from start of "Measurement Period") < 17 )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Denominator
* **Library Name**: 
  * **Name**: ````define "Denominator": "Initial Population"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: FHIRHelpers
  * **Name**: ToConcept
* **Library Name**: 
  * **Name**: ````/* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept): if concept is null then null else System.Concept { codes: concept.coding C return ToCode(C), display: concept.text.value }````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: CQMCommon
  * **Name**: EncounterDiagnosis
* **Library Name**: 
  * **Name**: ````/* @description: Returns the Condition resource referenced by the `diagnosis.condition` element of the Encounter @deprecated: This function is deprecated. Use the fluent function `encounterDiagnosis()` instead. */ define function "EncounterDiagnosis"(Encounter Encounter ): Encounter.diagnosis D return singleton from ([Condition] C where C.id = D.condition.reference.getId())````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: QICoreCommon
  * **Name**: getId
* **Library Name**: 
  * **Name**: ````/* @description: Returns the tail of the given uri (i.e. everything after the last slash in the URI). @comment: This function can be used to determine the logical id of a given resource. It can be used in a single-server environment to trace references. However, this function does not attempt to resolve or distinguish the base of the given url, and so cannot be used safely in multi-server environments. */ define fluent function getId(uri String): Last(Split(uri, '/'))````: 2023-10-27 08:12:31+0000
* **Logic Definitions:**: **Approval Date: **
  * * **Group**: 638504914ba3d47c885c02c6
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Major Depressive Disorder Encounter
* **Library Name**: 
  * **Name**: ````define "Major Depressive Disorder Encounter": ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Psych Visit Diagnostic Evaluation"] union ["Encounter": "Psych Visit for Family Psychotherapy"] union ["Encounter": "Psych Visit Psychotherapy"] union ["Encounter": "Psychoanalysis"] union ["Encounter": "Group Psychotherapy"] union ["Encounter": "Telehealth Services"] ) ValidEncounter where ValidEncounter.status = 'finished' and ValidEncounter.class ~ "AMB" and ( ValidEncounter.reasonCode in "Major Depressive Disorder Active" or exists ( ( CQMCommon."EncounterDiagnosis" ( ValidEncounter ) ) EncounterDiagnosis where EncounterDiagnosis.code in "Major Depressive Disorder Active" ) ) and ValidEncounter.period during "Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Numerator
* **Library Name**: 
  * **Name**: ````define "Numerator": "Major Depressive Disorder Encounter" MDDEncounter with ["Procedure": "Suicide risk assessment (procedure)"] SuicideRiskAssessment such that SuicideRiskAssessment.status = 'completed' and QICoreCommon."ToInterval" ( SuicideRiskAssessment.performed ) during MDDEncounter.period````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Major Depressive Disorder Encounter" MDDEncounter where ( "AgeInYearsAt"(date from start of "Measurement Period") >= 6 and "AgeInYearsAt"(date from start of "Measurement Period") < 17 )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Denominator
* **Library Name**: 
  * **Name**: ````define "Denominator": "Initial Population"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: FHIRHelpers
  * **Name**: ToConcept
* **Library Name**: 
  * **Name**: ````/* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept): if concept is null then null else System.Concept { codes: concept.coding C return ToCode(C), display: concept.text.value }````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: CQMCommon
  * **Name**: EncounterDiagnosis
* **Library Name**: 
  * **Name**: ````/* @description: Returns the Condition resource referenced by the `diagnosis.condition` element of the Encounter @deprecated: This function is deprecated. Use the fluent function `encounterDiagnosis()` instead. */ define function "EncounterDiagnosis"(Encounter Encounter ): Encounter.diagnosis D return singleton from ([Condition] C where C.id = D.condition.reference.getId())````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: QICoreCommon
  * **Name**: getId
* **Library Name**: 
  * **Name**: ````/* @description: Returns the tail of the given uri (i.e. everything after the last slash in the URI). @comment: This function can be used to determine the logical id of a given resource. It can be used in a single-server environment to trace references. However, this function does not attempt to resolve or distinguish the base of the given url, and so cannot be used safely in multi-server environments. */ define fluent function getId(uri String): Last(Split(uri, '/'))````: 2023-08-14
* **Logic Definitions:**: **Last Review Date: **
  * * **Group**: 638504914ba3d47c885c02c6
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Major Depressive Disorder Encounter
* **Library Name**: 
  * **Name**: ````define "Major Depressive Disorder Encounter": ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Psych Visit Diagnostic Evaluation"] union ["Encounter": "Psych Visit for Family Psychotherapy"] union ["Encounter": "Psych Visit Psychotherapy"] union ["Encounter": "Psychoanalysis"] union ["Encounter": "Group Psychotherapy"] union ["Encounter": "Telehealth Services"] ) ValidEncounter where ValidEncounter.status = 'finished' and ValidEncounter.class ~ "AMB" and ( ValidEncounter.reasonCode in "Major Depressive Disorder Active" or exists ( ( CQMCommon."EncounterDiagnosis" ( ValidEncounter ) ) EncounterDiagnosis where EncounterDiagnosis.code in "Major Depressive Disorder Active" ) ) and ValidEncounter.period during "Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Numerator
* **Library Name**: 
  * **Name**: ````define "Numerator": "Major Depressive Disorder Encounter" MDDEncounter with ["Procedure": "Suicide risk assessment (procedure)"] SuicideRiskAssessment such that SuicideRiskAssessment.status = 'completed' and QICoreCommon."ToInterval" ( SuicideRiskAssessment.performed ) during MDDEncounter.period````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Major Depressive Disorder Encounter" MDDEncounter where ( "AgeInYearsAt"(date from start of "Measurement Period") >= 6 and "AgeInYearsAt"(date from start of "Measurement Period") < 17 )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Denominator
* **Library Name**: 
  * **Name**: ````define "Denominator": "Initial Population"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: FHIRHelpers
  * **Name**: ToConcept
* **Library Name**: 
  * **Name**: ````/* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept): if concept is null then null else System.Concept { codes: concept.coding C return ToCode(C), display: concept.text.value }````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: CQMCommon
  * **Name**: EncounterDiagnosis
* **Library Name**: 
  * **Name**: ````/* @description: Returns the Condition resource referenced by the `diagnosis.condition` element of the Encounter @deprecated: This function is deprecated. Use the fluent function `encounterDiagnosis()` instead. */ define function "EncounterDiagnosis"(Encounter Encounter ): Encounter.diagnosis D return singleton from ([Condition] C where C.id = D.condition.reference.getId())````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: QICoreCommon
  * **Name**: getId
* **Library Name**: 
  * **Name**: ````/* @description: Returns the tail of the given uri (i.e. everything after the last slash in the URI). @comment: This function can be used to determine the logical id of a given resource. It can be used in a single-server environment to trace references. However, this function does not attempt to resolve or distinguish the base of the given url, and so cannot be used safely in multi-server environments. */ define fluent function getId(uri String): Last(Split(uri, '/'))````: 2023-08-14
* **Logic Definitions:**: **Name: **
  * * **Group**: 638504914ba3d47c885c02c6
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Major Depressive Disorder Encounter
* **Library Name**: 
  * **Name**: ````define "Major Depressive Disorder Encounter": ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Psych Visit Diagnostic Evaluation"] union ["Encounter": "Psych Visit for Family Psychotherapy"] union ["Encounter": "Psych Visit Psychotherapy"] union ["Encounter": "Psychoanalysis"] union ["Encounter": "Group Psychotherapy"] union ["Encounter": "Telehealth Services"] ) ValidEncounter where ValidEncounter.status = 'finished' and ValidEncounter.class ~ "AMB" and ( ValidEncounter.reasonCode in "Major Depressive Disorder Active" or exists ( ( CQMCommon."EncounterDiagnosis" ( ValidEncounter ) ) EncounterDiagnosis where EncounterDiagnosis.code in "Major Depressive Disorder Active" ) ) and ValidEncounter.period during "Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Numerator
* **Library Name**: 
  * **Name**: ````define "Numerator": "Major Depressive Disorder Encounter" MDDEncounter with ["Procedure": "Suicide risk assessment (procedure)"] SuicideRiskAssessment such that SuicideRiskAssessment.status = 'completed' and QICoreCommon."ToInterval" ( SuicideRiskAssessment.performed ) during MDDEncounter.period````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Major Depressive Disorder Encounter" MDDEncounter where ( "AgeInYearsAt"(date from start of "Measurement Period") >= 6 and "AgeInYearsAt"(date from start of "Measurement Period") < 17 )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Denominator
* **Library Name**: 
  * **Name**: ````define "Denominator": "Initial Population"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: FHIRHelpers
  * **Name**: ToConcept
* **Library Name**: 
  * **Name**: ````/* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept): if concept is null then null else System.Concept { codes: concept.coding C return ToCode(C), display: concept.text.value }````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: CQMCommon
  * **Name**: EncounterDiagnosis
* **Library Name**: 
  * **Name**: ````/* @description: Returns the Condition resource referenced by the `diagnosis.condition` element of the Encounter @deprecated: This function is deprecated. Use the fluent function `encounterDiagnosis()` instead. */ define function "EncounterDiagnosis"(Encounter Encounter ): Encounter.diagnosis D return singleton from ([Condition] C where C.id = D.condition.reference.getId())````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: QICoreCommon
  * **Name**: getId
* **Library Name**: 
  * **Name**: ````/* @description: Returns the tail of the given uri (i.e. everything after the last slash in the URI). @comment: This function can be used to determine the logical id of a given resource. It can be used in a single-server environment to trace references. However, this function does not attempt to resolve or distinguish the base of the given url, and so cannot be used safely in multi-server environments. */ define fluent function getId(uri String): Last(Split(uri, '/'))````: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
* **Logic Definitions:**: **Publisher: **
  * * **Group**: 638504914ba3d47c885c02c6
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Major Depressive Disorder Encounter
* **Library Name**: 
  * **Name**: ````define "Major Depressive Disorder Encounter": ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Psych Visit Diagnostic Evaluation"] union ["Encounter": "Psych Visit for Family Psychotherapy"] union ["Encounter": "Psych Visit Psychotherapy"] union ["Encounter": "Psychoanalysis"] union ["Encounter": "Group Psychotherapy"] union ["Encounter": "Telehealth Services"] ) ValidEncounter where ValidEncounter.status = 'finished' and ValidEncounter.class ~ "AMB" and ( ValidEncounter.reasonCode in "Major Depressive Disorder Active" or exists ( ( CQMCommon."EncounterDiagnosis" ( ValidEncounter ) ) EncounterDiagnosis where EncounterDiagnosis.code in "Major Depressive Disorder Active" ) ) and ValidEncounter.period during "Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Numerator
* **Library Name**: 
  * **Name**: ````define "Numerator": "Major Depressive Disorder Encounter" MDDEncounter with ["Procedure": "Suicide risk assessment (procedure)"] SuicideRiskAssessment such that SuicideRiskAssessment.status = 'completed' and QICoreCommon."ToInterval" ( SuicideRiskAssessment.performed ) during MDDEncounter.period````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Major Depressive Disorder Encounter" MDDEncounter where ( "AgeInYearsAt"(date from start of "Measurement Period") >= 6 and "AgeInYearsAt"(date from start of "Measurement Period") < 17 )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Denominator
* **Library Name**: 
  * **Name**: ````define "Denominator": "Initial Population"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: FHIRHelpers
  * **Name**: ToConcept
* **Library Name**: 
  * **Name**: ````/* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept): if concept is null then null else System.Concept { codes: concept.coding C return ToCode(C), display: concept.text.value }````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: CQMCommon
  * **Name**: EncounterDiagnosis
* **Library Name**: 
  * **Name**: ````/* @description: Returns the Condition resource referenced by the `diagnosis.condition` element of the Encounter @deprecated: This function is deprecated. Use the fluent function `encounterDiagnosis()` instead. */ define function "EncounterDiagnosis"(Encounter Encounter ): Encounter.diagnosis D return singleton from ([Condition] C where C.id = D.condition.reference.getId())````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: QICoreCommon
  * **Name**: getId
* **Library Name**: 
  * **Name**: ````/* @description: Returns the tail of the given uri (i.e. everything after the last slash in the URI). @comment: This function can be used to determine the logical id of a given resource. It can be used in a single-server environment to trace references. However, this function does not attempt to resolve or distinguish the base of the given url, and so cannot be used safely in multi-server environments. */ define fluent function getId(uri String): Last(Split(uri, '/'))````: Mathematica
* **Logic Definitions:**: **Author: **
  * * **Group**: 638504914ba3d47c885c02c6
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Major Depressive Disorder Encounter
* **Library Name**: 
  * **Name**: ````define "Major Depressive Disorder Encounter": ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Psych Visit Diagnostic Evaluation"] union ["Encounter": "Psych Visit for Family Psychotherapy"] union ["Encounter": "Psych Visit Psychotherapy"] union ["Encounter": "Psychoanalysis"] union ["Encounter": "Group Psychotherapy"] union ["Encounter": "Telehealth Services"] ) ValidEncounter where ValidEncounter.status = 'finished' and ValidEncounter.class ~ "AMB" and ( ValidEncounter.reasonCode in "Major Depressive Disorder Active" or exists ( ( CQMCommon."EncounterDiagnosis" ( ValidEncounter ) ) EncounterDiagnosis where EncounterDiagnosis.code in "Major Depressive Disorder Active" ) ) and ValidEncounter.period during "Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Numerator
* **Library Name**: 
  * **Name**: ````define "Numerator": "Major Depressive Disorder Encounter" MDDEncounter with ["Procedure": "Suicide risk assessment (procedure)"] SuicideRiskAssessment such that SuicideRiskAssessment.status = 'completed' and QICoreCommon."ToInterval" ( SuicideRiskAssessment.performed ) during MDDEncounter.period````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Major Depressive Disorder Encounter" MDDEncounter where ( "AgeInYearsAt"(date from start of "Measurement Period") >= 6 and "AgeInYearsAt"(date from start of "Measurement Period") < 17 )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Denominator
* **Library Name**: 
  * **Name**: ````define "Denominator": "Initial Population"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: FHIRHelpers
  * **Name**: ToConcept
* **Library Name**: 
  * **Name**: ````/* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept): if concept is null then null else System.Concept { codes: concept.coding C return ToCode(C), display: concept.text.value }````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: CQMCommon
  * **Name**: EncounterDiagnosis
* **Library Name**: 
  * **Name**: ````/* @description: Returns the Condition resource referenced by the `diagnosis.condition` element of the Encounter @deprecated: This function is deprecated. Use the fluent function `encounterDiagnosis()` instead. */ define function "EncounterDiagnosis"(Encounter Encounter ): Encounter.diagnosis D return singleton from ([Condition] C where C.id = D.condition.reference.getId())````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: QICoreCommon
  * **Name**: getId
* **Library Name**: 
  * **Name**: ````/* @description: Returns the tail of the given uri (i.e. everything after the last slash in the URI). @comment: This function can be used to determine the logical id of a given resource. It can be used in a single-server environment to trace references. However, this function does not attempt to resolve or distinguish the base of the given url, and so cannot be used safely in multi-server environments. */ define fluent function getId(uri String): Last(Split(uri, '/'))````: Mathematica:[https://www.mathematica.org/](https://www.mathematica.org/), American Medical Association (AMA):[https://www.ama-assn.org/](https://www.ama-assn.org/)
* **Logic Definitions:**: **Description: **
  * * **Group**: 638504914ba3d47c885c02c6
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Major Depressive Disorder Encounter
* **Library Name**: 
  * **Name**: ````define "Major Depressive Disorder Encounter": ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Psych Visit Diagnostic Evaluation"] union ["Encounter": "Psych Visit for Family Psychotherapy"] union ["Encounter": "Psych Visit Psychotherapy"] union ["Encounter": "Psychoanalysis"] union ["Encounter": "Group Psychotherapy"] union ["Encounter": "Telehealth Services"] ) ValidEncounter where ValidEncounter.status = 'finished' and ValidEncounter.class ~ "AMB" and ( ValidEncounter.reasonCode in "Major Depressive Disorder Active" or exists ( ( CQMCommon."EncounterDiagnosis" ( ValidEncounter ) ) EncounterDiagnosis where EncounterDiagnosis.code in "Major Depressive Disorder Active" ) ) and ValidEncounter.period during "Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Numerator
* **Library Name**: 
  * **Name**: ````define "Numerator": "Major Depressive Disorder Encounter" MDDEncounter with ["Procedure": "Suicide risk assessment (procedure)"] SuicideRiskAssessment such that SuicideRiskAssessment.status = 'completed' and QICoreCommon."ToInterval" ( SuicideRiskAssessment.performed ) during MDDEncounter.period````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Major Depressive Disorder Encounter" MDDEncounter where ( "AgeInYearsAt"(date from start of "Measurement Period") >= 6 and "AgeInYearsAt"(date from start of "Measurement Period") < 17 )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Denominator
* **Library Name**: 
  * **Name**: ````define "Denominator": "Initial Population"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: FHIRHelpers
  * **Name**: ToConcept
* **Library Name**: 
  * **Name**: ````/* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept): if concept is null then null else System.Concept { codes: concept.coding C return ToCode(C), display: concept.text.value }````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: CQMCommon
  * **Name**: EncounterDiagnosis
* **Library Name**: 
  * **Name**: ````/* @description: Returns the Condition resource referenced by the `diagnosis.condition` element of the Encounter @deprecated: This function is deprecated. Use the fluent function `encounterDiagnosis()` instead. */ define function "EncounterDiagnosis"(Encounter Encounter ): Encounter.diagnosis D return singleton from ([Condition] C where C.id = D.condition.reference.getId())````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: QICoreCommon
  * **Name**: getId
* **Library Name**: 
  * **Name**: ````/* @description: Returns the tail of the given uri (i.e. everything after the last slash in the URI). @comment: This function can be used to determine the logical id of a given resource. It can be used in a single-server environment to trace references. However, this function does not attempt to resolve or distinguish the base of the given url, and so cannot be used safely in multi-server environments. */ define fluent function getId(uri String): Last(Split(uri, '/'))````: Percentage of patient visits for those patients aged 6 through 16 at the start of the measurement period with a diagnosis of major depressive disorder (MDD) with an assessment for suicide risk
* **Logic Definitions:**: **Purpose: **
  * * **Group**: 638504914ba3d47c885c02c6
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Major Depressive Disorder Encounter
* **Library Name**: 
  * **Name**: ````define "Major Depressive Disorder Encounter": ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Psych Visit Diagnostic Evaluation"] union ["Encounter": "Psych Visit for Family Psychotherapy"] union ["Encounter": "Psych Visit Psychotherapy"] union ["Encounter": "Psychoanalysis"] union ["Encounter": "Group Psychotherapy"] union ["Encounter": "Telehealth Services"] ) ValidEncounter where ValidEncounter.status = 'finished' and ValidEncounter.class ~ "AMB" and ( ValidEncounter.reasonCode in "Major Depressive Disorder Active" or exists ( ( CQMCommon."EncounterDiagnosis" ( ValidEncounter ) ) EncounterDiagnosis where EncounterDiagnosis.code in "Major Depressive Disorder Active" ) ) and ValidEncounter.period during "Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Numerator
* **Library Name**: 
  * **Name**: ````define "Numerator": "Major Depressive Disorder Encounter" MDDEncounter with ["Procedure": "Suicide risk assessment (procedure)"] SuicideRiskAssessment such that SuicideRiskAssessment.status = 'completed' and QICoreCommon."ToInterval" ( SuicideRiskAssessment.performed ) during MDDEncounter.period````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Major Depressive Disorder Encounter" MDDEncounter where ( "AgeInYearsAt"(date from start of "Measurement Period") >= 6 and "AgeInYearsAt"(date from start of "Measurement Period") < 17 )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Denominator
* **Library Name**: 
  * **Name**: ````define "Denominator": "Initial Population"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: FHIRHelpers
  * **Name**: ToConcept
* **Library Name**: 
  * **Name**: ````/* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept): if concept is null then null else System.Concept { codes: concept.coding C return ToCode(C), display: concept.text.value }````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: CQMCommon
  * **Name**: EncounterDiagnosis
* **Library Name**: 
  * **Name**: ````/* @description: Returns the Condition resource referenced by the `diagnosis.condition` element of the Encounter @deprecated: This function is deprecated. Use the fluent function `encounterDiagnosis()` instead. */ define function "EncounterDiagnosis"(Encounter Encounter ): Encounter.diagnosis D return singleton from ([Condition] C where C.id = D.condition.reference.getId())````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: QICoreCommon
  * **Name**: getId
* **Library Name**: 
  * **Name**: ````/* @description: Returns the tail of the given uri (i.e. everything after the last slash in the URI). @comment: This function can be used to determine the logical id of a given resource. It can be used in a single-server environment to trace references. However, this function does not attempt to resolve or distinguish the base of the given url, and so cannot be used safely in multi-server environments. */ define fluent function getId(uri String): Last(Split(uri, '/'))````: UNKNOWN
* **Logic Definitions:**: **Copyright: **
  * * **Group**: 638504914ba3d47c885c02c6
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Major Depressive Disorder Encounter
* **Library Name**: 
  * **Name**: ````define "Major Depressive Disorder Encounter": ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Psych Visit Diagnostic Evaluation"] union ["Encounter": "Psych Visit for Family Psychotherapy"] union ["Encounter": "Psych Visit Psychotherapy"] union ["Encounter": "Psychoanalysis"] union ["Encounter": "Group Psychotherapy"] union ["Encounter": "Telehealth Services"] ) ValidEncounter where ValidEncounter.status = 'finished' and ValidEncounter.class ~ "AMB" and ( ValidEncounter.reasonCode in "Major Depressive Disorder Active" or exists ( ( CQMCommon."EncounterDiagnosis" ( ValidEncounter ) ) EncounterDiagnosis where EncounterDiagnosis.code in "Major Depressive Disorder Active" ) ) and ValidEncounter.period during "Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Numerator
* **Library Name**: 
  * **Name**: ````define "Numerator": "Major Depressive Disorder Encounter" MDDEncounter with ["Procedure": "Suicide risk assessment (procedure)"] SuicideRiskAssessment such that SuicideRiskAssessment.status = 'completed' and QICoreCommon."ToInterval" ( SuicideRiskAssessment.performed ) during MDDEncounter.period````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Major Depressive Disorder Encounter" MDDEncounter where ( "AgeInYearsAt"(date from start of "Measurement Period") >= 6 and "AgeInYearsAt"(date from start of "Measurement Period") < 17 )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Denominator
* **Library Name**: 
  * **Name**: ````define "Denominator": "Initial Population"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: FHIRHelpers
  * **Name**: ToConcept
* **Library Name**: 
  * **Name**: ````/* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept): if concept is null then null else System.Concept { codes: concept.coding C return ToCode(C), display: concept.text.value }````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: CQMCommon
  * **Name**: EncounterDiagnosis
* **Library Name**: 
  * **Name**: ````/* @description: Returns the Condition resource referenced by the `diagnosis.condition` element of the Encounter @deprecated: This function is deprecated. Use the fluent function `encounterDiagnosis()` instead. */ define function "EncounterDiagnosis"(Encounter Encounter ): Encounter.diagnosis D return singleton from ([Condition] C where C.id = D.condition.reference.getId())````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: QICoreCommon
  * **Name**: getId
* **Library Name**: 
  * **Name**: ````/* @description: Returns the tail of the given uri (i.e. everything after the last slash in the URI). @comment: This function can be used to determine the logical id of a given resource. It can be used in a single-server environment to trace references. However, this function does not attempt to resolve or distinguish the base of the given url, and so cannot be used safely in multi-server environments. */ define fluent function getId(uri String): Last(Split(uri, '/'))````: Copyright 2023 Mathematica Inc. All Rights Reserved. The PCPI and American Medical Association's (AMA) significant past efforts and contributions to the development and updating of the Measure is acknowledged.
* **Logic Definitions:**: **Disclaimer: **
  * * **Group**: 638504914ba3d47c885c02c6
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Major Depressive Disorder Encounter
* **Library Name**: 
  * **Name**: ````define "Major Depressive Disorder Encounter": ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Psych Visit Diagnostic Evaluation"] union ["Encounter": "Psych Visit for Family Psychotherapy"] union ["Encounter": "Psych Visit Psychotherapy"] union ["Encounter": "Psychoanalysis"] union ["Encounter": "Group Psychotherapy"] union ["Encounter": "Telehealth Services"] ) ValidEncounter where ValidEncounter.status = 'finished' and ValidEncounter.class ~ "AMB" and ( ValidEncounter.reasonCode in "Major Depressive Disorder Active" or exists ( ( CQMCommon."EncounterDiagnosis" ( ValidEncounter ) ) EncounterDiagnosis where EncounterDiagnosis.code in "Major Depressive Disorder Active" ) ) and ValidEncounter.period during "Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Numerator
* **Library Name**: 
  * **Name**: ````define "Numerator": "Major Depressive Disorder Encounter" MDDEncounter with ["Procedure": "Suicide risk assessment (procedure)"] SuicideRiskAssessment such that SuicideRiskAssessment.status = 'completed' and QICoreCommon."ToInterval" ( SuicideRiskAssessment.performed ) during MDDEncounter.period````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Major Depressive Disorder Encounter" MDDEncounter where ( "AgeInYearsAt"(date from start of "Measurement Period") >= 6 and "AgeInYearsAt"(date from start of "Measurement Period") < 17 )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Denominator
* **Library Name**: 
  * **Name**: ````define "Denominator": "Initial Population"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: FHIRHelpers
  * **Name**: ToConcept
* **Library Name**: 
  * **Name**: ````/* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept): if concept is null then null else System.Concept { codes: concept.coding C return ToCode(C), display: concept.text.value }````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: CQMCommon
  * **Name**: EncounterDiagnosis
* **Library Name**: 
  * **Name**: ````/* @description: Returns the Condition resource referenced by the `diagnosis.condition` element of the Encounter @deprecated: This function is deprecated. Use the fluent function `encounterDiagnosis()` instead. */ define function "EncounterDiagnosis"(Encounter Encounter ): Encounter.diagnosis D return singleton from ([Condition] C where C.id = D.condition.reference.getId())````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: QICoreCommon
  * **Name**: getId
* **Library Name**: 
  * **Name**: ````/* @description: Returns the tail of the given uri (i.e. everything after the last slash in the URI). @comment: This function can be used to determine the logical id of a given resource. It can be used in a single-server environment to trace references. However, this function does not attempt to resolve or distinguish the base of the given url, and so cannot be used safely in multi-server environments. */ define fluent function getId(uri String): Last(Split(uri, '/'))````: The Measure is not a clinical guideline, does not establish a standard of medical care, and has not been tested for all potential applications.The Measure, while copyrighted, can be reproduced and distributed, without modification, for noncommercial purposes, e.g., use by health care providers in connection with their practices. Commercial use is defined as the sale, license, or distribution of the Measure for commercial gain, or incorporation of the Measure into a product or service that is sold, licensed or distributed for commercial gain.Commercial uses of the Measure require a license agreement between the user and Mathematica. Neither Mathematica, the PCPI, nor the American Medical Association (AMA), nor the former AMA-convened Physician Consortium for Performance Improvement(R) (AMA-PCPI), nor their members shall be responsible for any use of the Measure.Mathematica encourages use of the Measure by other health care professionals, where appropriate.THE MEASURE AND SPECIFICATIONS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.Limited proprietary coding may be contained in the Measure specifications for convenience. A license agreement must be entered prior to a third party’s use of Current Procedural Terminology (CPT[R]) or other proprietary code set contained in the Measure. Any other use of CPT or other coding by a third party is strictly prohibited. Mathematica, the AMA, and former members of the PCPI disclaim all liability for use or accuracy of any CPT(R) or other coding contained in the specifications.CPT(R) contained in the Measure specifications is copyright 2004-2022 American Medical Association. LOINC(R) is copyright 2004-2022 Regenstrief Institute, Inc. This material contains SNOMED Clinical Terms(R) (SNOMED CT[R]) copyright 2004-2022 International Health Terminology Standards Development Organisation. ICD-10 is copyright 2022 World Health Organization. All Rights Reserved.Due to technical limitations, registered trademarks are indicated by (R) or [R].
* **Logic Definitions:**: **Rationale: **
  * * **Group**: 638504914ba3d47c885c02c6
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Major Depressive Disorder Encounter
* **Library Name**: 
  * **Name**: ````define "Major Depressive Disorder Encounter": ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Psych Visit Diagnostic Evaluation"] union ["Encounter": "Psych Visit for Family Psychotherapy"] union ["Encounter": "Psych Visit Psychotherapy"] union ["Encounter": "Psychoanalysis"] union ["Encounter": "Group Psychotherapy"] union ["Encounter": "Telehealth Services"] ) ValidEncounter where ValidEncounter.status = 'finished' and ValidEncounter.class ~ "AMB" and ( ValidEncounter.reasonCode in "Major Depressive Disorder Active" or exists ( ( CQMCommon."EncounterDiagnosis" ( ValidEncounter ) ) EncounterDiagnosis where EncounterDiagnosis.code in "Major Depressive Disorder Active" ) ) and ValidEncounter.period during "Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Numerator
* **Library Name**: 
  * **Name**: ````define "Numerator": "Major Depressive Disorder Encounter" MDDEncounter with ["Procedure": "Suicide risk assessment (procedure)"] SuicideRiskAssessment such that SuicideRiskAssessment.status = 'completed' and QICoreCommon."ToInterval" ( SuicideRiskAssessment.performed ) during MDDEncounter.period````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Major Depressive Disorder Encounter" MDDEncounter where ( "AgeInYearsAt"(date from start of "Measurement Period") >= 6 and "AgeInYearsAt"(date from start of "Measurement Period") < 17 )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Denominator
* **Library Name**: 
  * **Name**: ````define "Denominator": "Initial Population"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: FHIRHelpers
  * **Name**: ToConcept
* **Library Name**: 
  * **Name**: ````/* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept): if concept is null then null else System.Concept { codes: concept.coding C return ToCode(C), display: concept.text.value }````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: CQMCommon
  * **Name**: EncounterDiagnosis
* **Library Name**: 
  * **Name**: ````/* @description: Returns the Condition resource referenced by the `diagnosis.condition` element of the Encounter @deprecated: This function is deprecated. Use the fluent function `encounterDiagnosis()` instead. */ define function "EncounterDiagnosis"(Encounter Encounter ): Encounter.diagnosis D return singleton from ([Condition] C where C.id = D.condition.reference.getId())````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: QICoreCommon
  * **Name**: getId
* **Library Name**: 
  * **Name**: ````/* @description: Returns the tail of the given uri (i.e. everything after the last slash in the URI). @comment: This function can be used to determine the logical id of a given resource. It can be used in a single-server environment to trace references. However, this function does not attempt to resolve or distinguish the base of the given url, and so cannot be used safely in multi-server environments. */ define fluent function getId(uri String): Last(Split(uri, '/'))````: Research has shown that youth with major depressive disorder (MDD) are at a high risk for suicide attempts and completion - among the most significant and devastating sequelae of the disease (Fontanella et al., 2020). Suicide risk is a critical consideration in children and adolescents with MDD, and an important aspect of care that should be assessed at each visit and subsequently managed to minimize that risk. Additionally, the importance of the assessments is underscored by research (Fontanella et al., 2020; Luoma, Martin, & Pearson, 2002) that indicates that many individuals who die by suicide do make contact with primary care providers and mental health services beforehand. More specifically, approximately 15% of suicide victims aged 35 years or younger had seen a mental health professional within 1 month of suicide while approximately 23% had seen a primary care provider within 1 month of suicide (Luoma, Martin, & Pearson, 2002). A recent analysis of depression severity and suicidal ideation symptom trajectories (Witt et al., 2021) found that suicidal ideation among children and young adults (15-25 years) might not improve with depression symptom severity. This evidence suggests the potential utility of continued suicide risk screening even after improvements in depression symptoms. Better assessment and identification of suicide risk in the health care setting should lead to improved connection to treatment and reduction in suicide attempts and deaths by suicide.
* **Logic Definitions:**: **Clinical recommendation statement: **
  * * **Group**: 638504914ba3d47c885c02c6
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Major Depressive Disorder Encounter
* **Library Name**: 
  * **Name**: ````define "Major Depressive Disorder Encounter": ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Psych Visit Diagnostic Evaluation"] union ["Encounter": "Psych Visit for Family Psychotherapy"] union ["Encounter": "Psych Visit Psychotherapy"] union ["Encounter": "Psychoanalysis"] union ["Encounter": "Group Psychotherapy"] union ["Encounter": "Telehealth Services"] ) ValidEncounter where ValidEncounter.status = 'finished' and ValidEncounter.class ~ "AMB" and ( ValidEncounter.reasonCode in "Major Depressive Disorder Active" or exists ( ( CQMCommon."EncounterDiagnosis" ( ValidEncounter ) ) EncounterDiagnosis where EncounterDiagnosis.code in "Major Depressive Disorder Active" ) ) and ValidEncounter.period during "Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Numerator
* **Library Name**: 
  * **Name**: ````define "Numerator": "Major Depressive Disorder Encounter" MDDEncounter with ["Procedure": "Suicide risk assessment (procedure)"] SuicideRiskAssessment such that SuicideRiskAssessment.status = 'completed' and QICoreCommon."ToInterval" ( SuicideRiskAssessment.performed ) during MDDEncounter.period````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Major Depressive Disorder Encounter" MDDEncounter where ( "AgeInYearsAt"(date from start of "Measurement Period") >= 6 and "AgeInYearsAt"(date from start of "Measurement Period") < 17 )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Denominator
* **Library Name**: 
  * **Name**: ````define "Denominator": "Initial Population"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: FHIRHelpers
  * **Name**: ToConcept
* **Library Name**: 
  * **Name**: ````/* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept): if concept is null then null else System.Concept { codes: concept.coding C return ToCode(C), display: concept.text.value }````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: CQMCommon
  * **Name**: EncounterDiagnosis
* **Library Name**: 
  * **Name**: ````/* @description: Returns the Condition resource referenced by the `diagnosis.condition` element of the Encounter @deprecated: This function is deprecated. Use the fluent function `encounterDiagnosis()` instead. */ define function "EncounterDiagnosis"(Encounter Encounter ): Encounter.diagnosis D return singleton from ([Condition] C where C.id = D.condition.reference.getId())````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: QICoreCommon
  * **Name**: getId
* **Library Name**: 
  * **Name**: ````/* @description: Returns the tail of the given uri (i.e. everything after the last slash in the URI). @comment: This function can be used to determine the logical id of a given resource. It can be used in a single-server environment to trace references. However, this function does not attempt to resolve or distinguish the base of the given url, and so cannot be used safely in multi-server environments. */ define fluent function getId(uri String): Last(Split(uri, '/'))````: The evaluation must include assessment for the presence of harm to self or others (American Academy of Child and Adolescent Psychiatry, 2007).Suicidal behavior exists along a continuum from passive thoughts of death to a clearly developed plan and intent to carry out that plan. Because depression is closely associated with suicidal thoughts and behavior, it is imperative to evaluate these symptoms at the initial and subsequent assessments. For this purpose, low burden tools to track suicidal ideation and behavior such as the Columbia-Suicidal Severity Rating Scale can be used. Also, it is crucial to evaluate the risk (e.g., age, sex, stressors, comorbid conditions, hopelessness, impulsivity) and protective factors (e.g., religious belief, concern not to hurt family) that might influence the desire to attempt suicide. The risk for suicidal behavior increases if there is a history of suicide attempts, comorbid psychiatric disorders (e.g., disruptive disorders, substance abuse), impulsivity and aggression, availability of lethal agents (e.g., firearms), exposure to negative events (e.g., physical or sexual abuse, violence), and a family history of suicidal behavior (American Academy of Child and Adolescent Psychiatry, 2007).A careful and ongoing evaluation of suicide risk is necessary for all patients with major depressive disorder (Category I). Such an assessment includes specific inquiry about suicidal thoughts, intent, plans, means, and behaviors; identification of specific psychiatric symptoms (e.g., psychosis, severe anxiety, substance use) or general medical conditions that may increase the likelihood of acting on suicidal ideas; assessment of past and, particularly, recent suicidal behavior; delineation of current stressors and potential protective factors (e.g., positive reasons for living, strong social support); and identification of any family history of suicide or mental illness (Category I) (American Psychiatric Association, 2010, reaffirmed 2015).
* **Logic Definitions:**: **Guidance (Usage): **
  * * **Group**: 638504914ba3d47c885c02c6
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Major Depressive Disorder Encounter
* **Library Name**: 
  * **Name**: ````define "Major Depressive Disorder Encounter": ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Psych Visit Diagnostic Evaluation"] union ["Encounter": "Psych Visit for Family Psychotherapy"] union ["Encounter": "Psych Visit Psychotherapy"] union ["Encounter": "Psychoanalysis"] union ["Encounter": "Group Psychotherapy"] union ["Encounter": "Telehealth Services"] ) ValidEncounter where ValidEncounter.status = 'finished' and ValidEncounter.class ~ "AMB" and ( ValidEncounter.reasonCode in "Major Depressive Disorder Active" or exists ( ( CQMCommon."EncounterDiagnosis" ( ValidEncounter ) ) EncounterDiagnosis where EncounterDiagnosis.code in "Major Depressive Disorder Active" ) ) and ValidEncounter.period during "Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Numerator
* **Library Name**: 
  * **Name**: ````define "Numerator": "Major Depressive Disorder Encounter" MDDEncounter with ["Procedure": "Suicide risk assessment (procedure)"] SuicideRiskAssessment such that SuicideRiskAssessment.status = 'completed' and QICoreCommon."ToInterval" ( SuicideRiskAssessment.performed ) during MDDEncounter.period````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Major Depressive Disorder Encounter" MDDEncounter where ( "AgeInYearsAt"(date from start of "Measurement Period") >= 6 and "AgeInYearsAt"(date from start of "Measurement Period") < 17 )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Denominator
* **Library Name**: 
  * **Name**: ````define "Denominator": "Initial Population"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: FHIRHelpers
  * **Name**: ToConcept
* **Library Name**: 
  * **Name**: ````/* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept): if concept is null then null else System.Concept { codes: concept.coding C return ToCode(C), display: concept.text.value }````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: CQMCommon
  * **Name**: EncounterDiagnosis
* **Library Name**: 
  * **Name**: ````/* @description: Returns the Condition resource referenced by the `diagnosis.condition` element of the Encounter @deprecated: This function is deprecated. Use the fluent function `encounterDiagnosis()` instead. */ define function "EncounterDiagnosis"(Encounter Encounter ): Encounter.diagnosis D return singleton from ([Condition] C where C.id = D.condition.reference.getId())````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: QICoreCommon
  * **Name**: getId
* **Library Name**: 
  * **Name**: ````/* @description: Returns the tail of the given uri (i.e. everything after the last slash in the URI). @comment: This function can be used to determine the logical id of a given resource. It can be used in a single-server environment to trace references. However, this function does not attempt to resolve or distinguish the base of the given url, and so cannot be used safely in multi-server environments. */ define fluent function getId(uri String): Last(Split(uri, '/'))````: This eCQM is an episode-based measure. An episode is defined as each eligible encounter for major depressive disorder (MDD) during the measurement period. A suicide risk assessment should be performed at every visit for MDD during the measurement period. In recognition of the growing use of integrated and team-based care, the diagnosis of depression and the assessment for suicide risk need not be performed by the same provider or clinician. Suicide risk assessments completed via telehealth services can also meet numerator performance. Use of a standardized tool(s) or instrument(s) to assess suicide risk will meet numerator performance, so long as the minimum criteria noted above is evaluated. Standardized tools can be mapped to the concept "Intervention, Performed": "Suicide risk assessment (procedure)" included in the numerator logic below, as no individual suicide risk assessment tool or instrument would satisfy the requirements alone. To ensure all patients with major depressive disorder (MDD) are assessed for suicide risk, there are two clinical quality measures addressing suicide risk assessment; CMS177 covers children and adolescents aged 6 through 16 at the start of the measurement period, and CMS161 - Adult Major Depressive Disorder (MDD): Suicide Risk Assessment covers the adult population aged 17 years and older at the start of the measurement period. This FHIR-based measure has been derived from the QDM-based measure: CMS161v12. Please refer to the HL7 QI-Core Implementation Guide (http://hl7.org/fhir/us/qicore/index.html) for more information on QI-Core and mapping recommendations from QDM to QI-Core 4.1.1 (http://hl7.org/fhir/us/qicore/qdm-to-qicore.html).
* **Logic Definitions:**: **Libraries: **
  * * **Group**: 638504914ba3d47c885c02c6
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Major Depressive Disorder Encounter
* **Library Name**: 
  * **Name**: ````define "Major Depressive Disorder Encounter": ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Psych Visit Diagnostic Evaluation"] union ["Encounter": "Psych Visit for Family Psychotherapy"] union ["Encounter": "Psych Visit Psychotherapy"] union ["Encounter": "Psychoanalysis"] union ["Encounter": "Group Psychotherapy"] union ["Encounter": "Telehealth Services"] ) ValidEncounter where ValidEncounter.status = 'finished' and ValidEncounter.class ~ "AMB" and ( ValidEncounter.reasonCode in "Major Depressive Disorder Active" or exists ( ( CQMCommon."EncounterDiagnosis" ( ValidEncounter ) ) EncounterDiagnosis where EncounterDiagnosis.code in "Major Depressive Disorder Active" ) ) and ValidEncounter.period during "Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Numerator
* **Library Name**: 
  * **Name**: ````define "Numerator": "Major Depressive Disorder Encounter" MDDEncounter with ["Procedure": "Suicide risk assessment (procedure)"] SuicideRiskAssessment such that SuicideRiskAssessment.status = 'completed' and QICoreCommon."ToInterval" ( SuicideRiskAssessment.performed ) during MDDEncounter.period````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Major Depressive Disorder Encounter" MDDEncounter where ( "AgeInYearsAt"(date from start of "Measurement Period") >= 6 and "AgeInYearsAt"(date from start of "Measurement Period") < 17 )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Denominator
* **Library Name**: 
  * **Name**: ````define "Denominator": "Initial Population"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: FHIRHelpers
  * **Name**: ToConcept
* **Library Name**: 
  * **Name**: ````/* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept): if concept is null then null else System.Concept { codes: concept.coding C return ToCode(C), display: concept.text.value }````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: CQMCommon
  * **Name**: EncounterDiagnosis
* **Library Name**: 
  * **Name**: ````/* @description: Returns the Condition resource referenced by the `diagnosis.condition` element of the Encounter @deprecated: This function is deprecated. Use the fluent function `encounterDiagnosis()` instead. */ define function "EncounterDiagnosis"(Encounter Encounter ): Encounter.diagnosis D return singleton from ([Condition] C where C.id = D.condition.reference.getId())````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: QICoreCommon
  * **Name**: getId
* **Library Name**: 
  * **Name**: ````/* @description: Returns the tail of the given uri (i.e. everything after the last slash in the URI). @comment: This function can be used to determine the logical id of a given resource. It can be used in a single-server environment to trace references. However, this function does not attempt to resolve or distinguish the base of the given url, and so cannot be used safely in multi-server environments. */ define fluent function getId(uri String): Last(Split(uri, '/'))````: 
| |
| :--- |
| [ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR](Library-ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR.md) |

* **Logic Definitions:**: **Related Artifact Dependencies: **
  * * **Group**: 638504914ba3d47c885c02c6
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Major Depressive Disorder Encounter
* **Library Name**: 
  * **Name**: ````define "Major Depressive Disorder Encounter": ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Psych Visit Diagnostic Evaluation"] union ["Encounter": "Psych Visit for Family Psychotherapy"] union ["Encounter": "Psych Visit Psychotherapy"] union ["Encounter": "Psychoanalysis"] union ["Encounter": "Group Psychotherapy"] union ["Encounter": "Telehealth Services"] ) ValidEncounter where ValidEncounter.status = 'finished' and ValidEncounter.class ~ "AMB" and ( ValidEncounter.reasonCode in "Major Depressive Disorder Active" or exists ( ( CQMCommon."EncounterDiagnosis" ( ValidEncounter ) ) EncounterDiagnosis where EncounterDiagnosis.code in "Major Depressive Disorder Active" ) ) and ValidEncounter.period during "Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Numerator
* **Library Name**: 
  * **Name**: ````define "Numerator": "Major Depressive Disorder Encounter" MDDEncounter with ["Procedure": "Suicide risk assessment (procedure)"] SuicideRiskAssessment such that SuicideRiskAssessment.status = 'completed' and QICoreCommon."ToInterval" ( SuicideRiskAssessment.performed ) during MDDEncounter.period````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Major Depressive Disorder Encounter" MDDEncounter where ( "AgeInYearsAt"(date from start of "Measurement Period") >= 6 and "AgeInYearsAt"(date from start of "Measurement Period") < 17 )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR
  * **Name**: Denominator
* **Library Name**: 
  * **Name**: ````define "Denominator": "Initial Population"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: FHIRHelpers
  * **Name**: ToConcept
* **Library Name**: 
  * **Name**: ````/* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept): if concept is null then null else System.Concept { codes: concept.coding C return ToCode(C), display: concept.text.value }````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: CQMCommon
  * **Name**: EncounterDiagnosis
* **Library Name**: 
  * **Name**: ````/* @description: Returns the Condition resource referenced by the `diagnosis.condition` element of the Encounter @deprecated: This function is deprecated. Use the fluent function `encounterDiagnosis()` instead. */ define function "EncounterDiagnosis"(Encounter Encounter ): Encounter.diagnosis D return singleton from ([Condition] C where C.id = D.condition.reference.getId())````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: QICoreCommon
  * **Name**: getId
* **Library Name**: 
  * **Name**: ````/* @description: Returns the tail of the given uri (i.e. everything after the last slash in the URI). @comment: This function can be used to determine the logical id of a given resource. It can be used in a single-server environment to trace references. However, this function does not attempt to resolve or distinguish the base of the given url, and so cannot be used safely in multi-server environments. */ define fluent function getId(uri String): Last(Split(uri, '/'))````: * [FHIRHelpers](Library-FHIRHelpers.md) version: 4.3.000
* [CQMCommon](Library-CQMCommon.md) version: 1.4.000
* [QICoreCommon](Library-QICoreCommon.md) version: 1.5.000
* [ActCode](http://terminology.hl7.org/7.1.0/CodeSystem-v3-ActCode.html)
* [SNOMED CT (all versions)](http://hl7.org/fhir/R4/codesystem-snomedct.html)
* [Office Visit](https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1001/expansion)
* [Outpatient Consultation](https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1008/expansion)
* [Psych Visit - Diagnostic Evaluation](https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1492/expansion)
* [Psych Visit - Family Psychotherapy](https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1018/expansion)
* [Psych Visit - Psychotherapy](https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1496/expansion)
* [Psychoanalysis](https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1141/expansion)
* [Group Psychotherapy](https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1187/expansion)
* [Telehealth Services](https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1031/expansion)
* [Major Depressive Disorder-Active](https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1491/expansion)




## Resource Content

```json
{
  "resourceType" : "Measure",
  "id" : "ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR",
  "meta" : {
    "profile" : ["http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm",
    "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/publishable-measure-cqfm",
    "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/executable-measure-cqfm"]
  },
  "contained" : [{
    "resourceType" : "Library",
    "id" : "effective-data-requirements",
    "extension" : [{
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode",
      "valueCoding" : {
        "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
        "code" : "AMB",
        "display" : "Ambulatory"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode",
      "valueCoding" : {
        "system" : "http://snomed.info/sct",
        "code" : "225337009",
        "display" : "Suicide risk assessment (procedure)"
      }
    },
    {
      "extension" : [{
        "url" : "libraryName",
        "valueString" : "ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR"
      },
      {
        "url" : "name",
        "valueString" : "Major Depressive Disorder Encounter"
      },
      {
        "url" : "statement",
        "valueString" : "define \"Major Depressive Disorder Encounter\":\n  ( [\"Encounter\": \"Office Visit\"]\n    union [\"Encounter\": \"Outpatient Consultation\"]\n    union [\"Encounter\": \"Psych Visit Diagnostic Evaluation\"]\n    union [\"Encounter\": \"Psych Visit for Family Psychotherapy\"]\n    union [\"Encounter\": \"Psych Visit Psychotherapy\"]\n    union [\"Encounter\": \"Psychoanalysis\"]\n    union [\"Encounter\": \"Group Psychotherapy\"]\n    union [\"Encounter\": \"Telehealth Services\"] ) ValidEncounter\n    where ValidEncounter.status = 'finished'\n      and ValidEncounter.class ~ \"AMB\"\n      and ( ValidEncounter.reasonCode in \"Major Depressive Disorder Active\"\n          or exists ( ( CQMCommon.\"EncounterDiagnosis\" ( ValidEncounter ) ) EncounterDiagnosis\n              where EncounterDiagnosis.code in \"Major Depressive Disorder Active\"\n          )\n      )\n      and ValidEncounter.period during \"Measurement Period\""
      },
      {
        "url" : "displaySequence",
        "valueInteger" : 0
      }],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [{
        "url" : "libraryName",
        "valueString" : "ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR"
      },
      {
        "url" : "name",
        "valueString" : "Numerator"
      },
      {
        "url" : "statement",
        "valueString" : "define \"Numerator\":\n  \"Major Depressive Disorder Encounter\" MDDEncounter\n    with [\"Procedure\": \"Suicide risk assessment (procedure)\"] SuicideRiskAssessment\n      such that SuicideRiskAssessment.status = 'completed'\n        and QICoreCommon.\"ToInterval\" ( SuicideRiskAssessment.performed ) during MDDEncounter.period"
      },
      {
        "url" : "displaySequence",
        "valueInteger" : 1
      }],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [{
        "url" : "libraryName",
        "valueString" : "ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR"
      },
      {
        "url" : "name",
        "valueString" : "Initial Population"
      },
      {
        "url" : "statement",
        "valueString" : "define \"Initial Population\":\n  \"Major Depressive Disorder Encounter\" MDDEncounter\n    where ( \"AgeInYearsAt\"(date from start of \"Measurement Period\") >= 6\n        and \"AgeInYearsAt\"(date from start of \"Measurement Period\") < 17\n    )"
      },
      {
        "url" : "displaySequence",
        "valueInteger" : 2
      }],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [{
        "url" : "libraryName",
        "valueString" : "ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR"
      },
      {
        "url" : "name",
        "valueString" : "Denominator"
      },
      {
        "url" : "statement",
        "valueString" : "define \"Denominator\":\n  \"Initial Population\""
      },
      {
        "url" : "displaySequence",
        "valueInteger" : 3
      }],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [{
        "url" : "libraryName",
        "valueString" : "FHIRHelpers"
      },
      {
        "url" : "name",
        "valueString" : "ToConcept"
      },
      {
        "url" : "statement",
        "valueString" : "/*\n@description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.\n*/\ndefine function ToConcept(concept FHIR.CodeableConcept):\n    if concept is null then\n        null\n    else\n        System.Concept {\n            codes: concept.coding C return ToCode(C),\n            display: concept.text.value\n        }"
      },
      {
        "url" : "displaySequence",
        "valueInteger" : 4
      }],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [{
        "url" : "libraryName",
        "valueString" : "CQMCommon"
      },
      {
        "url" : "name",
        "valueString" : "EncounterDiagnosis"
      },
      {
        "url" : "statement",
        "valueString" : "/*\n@description: Returns the Condition resource referenced by the `diagnosis.condition` element of the Encounter\n@deprecated: This function is deprecated. Use the fluent function `encounterDiagnosis()` instead.\n*/\ndefine function \"EncounterDiagnosis\"(Encounter Encounter ):\n  Encounter.diagnosis D\n\treturn singleton from ([Condition] C where C.id = D.condition.reference.getId())"
      },
      {
        "url" : "displaySequence",
        "valueInteger" : 5
      }],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [{
        "url" : "libraryName",
        "valueString" : "QICoreCommon"
      },
      {
        "url" : "name",
        "valueString" : "getId"
      },
      {
        "url" : "statement",
        "valueString" : "/*\n@description: Returns the tail of the given uri (i.e. everything after the last slash in the URI).\n@comment: This function can be used to determine the logical id of a given resource. It can be used in\na single-server environment to trace references. However, this function does not attempt to resolve\nor distinguish the base of the given url, and so cannot be used safely in multi-server environments.\n*/\ndefine fluent function getId(uri String):\n  Last(Split(uri, '/'))"
      },
      {
        "url" : "displaySequence",
        "valueInteger" : 6
      }],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    }],
    "status" : "active",
    "type" : {
      "coding" : [{
        "system" : "http://terminology.hl7.org/CodeSystem/library-type",
        "code" : "module-definition"
      }]
    },
    "relatedArtifact" : [{
      "type" : "depends-on",
      "display" : "Library FHIRHelpers",
      "resource" : "http://ecqi.healthit.gov/ecqms/Library/FHIRHelpers|4.3.000"
    },
    {
      "type" : "depends-on",
      "display" : "Library CQMCommon",
      "resource" : "http://ecqi.healthit.gov/ecqms/Library/CQMCommon|1.4.000"
    },
    {
      "type" : "depends-on",
      "display" : "Library QICoreCommon",
      "resource" : "http://ecqi.healthit.gov/ecqms/Library/QICoreCommon|1.5.000"
    },
    {
      "type" : "depends-on",
      "display" : "Code system ActCode",
      "resource" : "http://terminology.hl7.org/CodeSystem/v3-ActCode"
    },
    {
      "type" : "depends-on",
      "display" : "Code system SNOMEDCT",
      "resource" : "http://snomed.info/sct"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Office Visit",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Outpatient Consultation",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1008"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Psych Visit Diagnostic Evaluation",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1492"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Psych Visit for Family Psychotherapy",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1018"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Psych Visit Psychotherapy",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1496"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Psychoanalysis",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1141"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Group Psychotherapy",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1187"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Telehealth Services",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1031"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Major Depressive Disorder Active",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1491"
    }],
    "parameter" : [{
      "name" : "Measurement Period",
      "use" : "in",
      "min" : 0,
      "max" : "1",
      "type" : "Period"
    },
    {
      "name" : "Numerator",
      "use" : "out",
      "min" : 0,
      "max" : "*",
      "type" : "Resource"
    },
    {
      "name" : "Denominator",
      "use" : "out",
      "min" : 0,
      "max" : "*",
      "type" : "Resource"
    },
    {
      "name" : "Initial Population",
      "use" : "out",
      "min" : 0,
      "max" : "*",
      "type" : "Resource"
    }],
    "dataRequirement" : [{
      "type" : "Condition",
      "profile" : ["http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition"],
      "mustSupport" : ["id", "id.value", "code"]
    },
    {
      "type" : "Encounter",
      "profile" : ["http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"],
      "mustSupport" : ["type",
      "condition",
      "condition.reference",
      "condition.reference.value",
      "status",
      "status.value",
      "class",
      "reasonCode",
      "period"],
      "codeFilter" : [{
        "path" : "type",
        "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001"
      }]
    },
    {
      "type" : "Encounter",
      "profile" : ["http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"],
      "mustSupport" : ["type",
      "condition",
      "condition.reference",
      "condition.reference.value",
      "status",
      "status.value",
      "class",
      "reasonCode",
      "period"],
      "codeFilter" : [{
        "path" : "type",
        "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1008"
      }]
    },
    {
      "type" : "Encounter",
      "profile" : ["http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"],
      "mustSupport" : ["type",
      "condition",
      "condition.reference",
      "condition.reference.value",
      "status",
      "status.value",
      "class",
      "reasonCode",
      "period"],
      "codeFilter" : [{
        "path" : "type",
        "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1492"
      }]
    },
    {
      "type" : "Encounter",
      "profile" : ["http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"],
      "mustSupport" : ["type",
      "condition",
      "condition.reference",
      "condition.reference.value",
      "status",
      "status.value",
      "class",
      "reasonCode",
      "period"],
      "codeFilter" : [{
        "path" : "type",
        "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1018"
      }]
    },
    {
      "type" : "Encounter",
      "profile" : ["http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"],
      "mustSupport" : ["type",
      "condition",
      "condition.reference",
      "condition.reference.value",
      "status",
      "status.value",
      "class",
      "reasonCode",
      "period"],
      "codeFilter" : [{
        "path" : "type",
        "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1496"
      }]
    },
    {
      "type" : "Encounter",
      "profile" : ["http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"],
      "mustSupport" : ["type",
      "condition",
      "condition.reference",
      "condition.reference.value",
      "status",
      "status.value",
      "class",
      "reasonCode",
      "period"],
      "codeFilter" : [{
        "path" : "type",
        "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1141"
      }]
    },
    {
      "type" : "Encounter",
      "profile" : ["http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"],
      "mustSupport" : ["type",
      "condition",
      "condition.reference",
      "condition.reference.value",
      "status",
      "status.value",
      "class",
      "reasonCode",
      "period"],
      "codeFilter" : [{
        "path" : "type",
        "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1187"
      }]
    },
    {
      "type" : "Encounter",
      "profile" : ["http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"],
      "mustSupport" : ["type",
      "condition",
      "condition.reference",
      "condition.reference.value",
      "status",
      "status.value",
      "class",
      "reasonCode",
      "period"],
      "codeFilter" : [{
        "path" : "type",
        "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1031"
      }]
    },
    {
      "type" : "Procedure",
      "profile" : ["http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure"],
      "mustSupport" : ["code", "status", "status.value", "performed"],
      "codeFilter" : [{
        "path" : "code",
        "code" : [{
          "system" : "http://snomed.info/sct",
          "code" : "225337009",
          "display" : "Suicide risk assessment (procedure)"
        }]
      },
      {
        "path" : "status.value",
        "code" : [{
          "code" : "completed"
        }]
      }]
    },
    {
      "type" : "Patient",
      "profile" : ["http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"]
    }]
  }],
  "extension" : [{
    "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-softwaresystem",
    "valueReference" : {
      "reference" : "Device/cqf-tooling"
    }
  },
  {
    "id" : "effective-data-requirements",
    "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-effectiveDataRequirements",
    "valueReference" : {
      "reference" : "#effective-data-requirements"
    }
  }],
  "url" : "http://ecqi.healthit.gov/ecqms/Measure/ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR",
  "identifier" : [{
    "use" : "usual",
    "type" : {
      "coding" : [{
        "system" : "http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type",
        "code" : "short-name"
      }]
    },
    "system" : "https://madie.cms.gov/measure/shortName",
    "value" : "CMS177FHIR"
  },
  {
    "use" : "official",
    "type" : {
      "coding" : [{
        "system" : "http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type",
        "code" : "version-independent"
      }]
    },
    "system" : "urn:ietf:rfc:3986",
    "value" : "urn:uuid:50d1dfcf-e2bf-41e8-bc1c-c607e5a09e79"
  },
  {
    "use" : "official",
    "type" : {
      "coding" : [{
        "system" : "http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type",
        "code" : "version-specific"
      }]
    },
    "system" : "urn:ietf:rfc:3986",
    "value" : "urn:uuid:2c928085806c39a20180859de2340526"
  },
  {
    "use" : "official",
    "type" : {
      "coding" : [{
        "system" : "http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type",
        "code" : "endorser"
      }]
    },
    "system" : "https://madie.cms.gov/measure/nqfId",
    "value" : "1365e",
    "assigner" : {
      "display" : "NQF"
    }
  },
  {
    "use" : "official",
    "type" : {
      "coding" : [{
        "system" : "http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type",
        "code" : "publisher"
      }]
    },
    "system" : "https://madie.cms.gov/measure/cmsId",
    "value" : "177FHIR",
    "assigner" : {
      "display" : "CMS"
    }
  }],
  "version" : "0.0.003",
  "name" : "ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR",
  "title" : "Child and Adolescent Major Depressive Disorder (MDD): Suicide Risk AssessmentFHIR",
  "status" : "draft",
  "experimental" : false,
  "date" : "2023-10-27T08:12:31+00:00",
  "publisher" : "Mathematica",
  "contact" : [{
    "telecom" : [{
      "system" : "url",
      "value" : "https://www.mathematica.org/"
    }]
  }],
  "description" : "Percentage of patient visits for those patients aged 6 through 16 at the start of the measurement period with a diagnosis of major depressive disorder (MDD) with an assessment for suicide risk",
  "useContext" : [{
    "code" : {
      "system" : "http://terminology.hl7.org/CodeSystem/usage-context-type",
      "code" : "program"
    },
    "valueCodeableConcept" : {
      "coding" : [{
        "system" : "http://hl7.org/fhir/us/cqfmeasures/CodeSystem/quality-programs",
        "code" : "ep-ec",
        "display" : "EP/EC"
      }]
    }
  }],
  "purpose" : "UNKNOWN",
  "usage" : "This eCQM is an episode-based measure. An episode is defined as each eligible encounter for major depressive disorder (MDD) during the measurement period. A suicide risk assessment should be performed at every visit for MDD during the measurement period.\n\nIn recognition of the growing use of integrated and team-based care, the diagnosis of depression and the assessment for suicide risk need not be performed by the same provider or clinician. \n\nSuicide risk assessments completed via telehealth services can also meet numerator performance. \n\nUse of a standardized tool(s) or instrument(s) to assess suicide risk will meet numerator performance, so long as the minimum criteria noted above is evaluated. Standardized tools can be mapped to the concept \"Intervention, Performed\": \"Suicide risk assessment (procedure)\" included in the numerator logic below, as no individual suicide risk assessment tool or instrument would satisfy the requirements alone.\n\nTo ensure all patients with major depressive disorder (MDD) are assessed for suicide risk, there are two clinical quality measures addressing suicide risk assessment; CMS177 covers children and adolescents aged 6 through 16 at the start of the measurement period, and CMS161 - Adult Major Depressive Disorder (MDD): Suicide Risk Assessment covers the adult population aged 17 years and older at the start of the measurement period. \n\nThis FHIR-based measure has been derived from the QDM-based measure: CMS161v12.\n\nPlease refer to the HL7 QI-Core Implementation Guide (http://hl7.org/fhir/us/qicore/index.html) for more information on QI-Core and mapping recommendations from QDM to QI-Core 4.1.1 (http://hl7.org/fhir/us/qicore/qdm-to-qicore.html).",
  "copyright" : "Copyright 2023 Mathematica Inc. All Rights Reserved.\nThe PCPI and American Medical Association's (AMA) significant past efforts and contributions to the development and updating of the Measure is acknowledged.",
  "approvalDate" : "2023-08-14",
  "lastReviewDate" : "2023-08-14",
  "effectivePeriod" : {
    "start" : "2024-01-01",
    "end" : "2024-12-31"
  },
  "author" : [{
    "name" : "Mathematica",
    "telecom" : [{
      "system" : "url",
      "value" : "https://www.mathematica.org/"
    }]
  },
  {
    "name" : "American Medical Association (AMA)",
    "telecom" : [{
      "system" : "url",
      "value" : "https://www.ama-assn.org/"
    }]
  }],
  "library" : ["http://ecqi.healthit.gov/ecqms/Library/ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR"],
  "disclaimer" : "The Measure is not a clinical guideline, does not establish a standard of medical care, and has not been tested for all potential applications. \n\nThe Measure, while copyrighted, can be reproduced and distributed, without modification, for noncommercial purposes, e.g., use by health care providers in connection with their practices. Commercial use is defined as the sale, license, or distribution of the Measure for commercial gain, or incorporation of the Measure into a product or service that is sold, licensed or distributed for commercial gain. \n\nCommercial uses of the Measure require a license agreement between the user and Mathematica. Neither Mathematica, the PCPI, nor the American Medical Association (AMA), nor the former AMA-convened Physician Consortium for Performance Improvement(R) (AMA-PCPI), nor their members shall be responsible for any use of the Measure.\n\nMathematica encourages use of the Measure by other health care professionals, where appropriate.\n\nTHE MEASURE AND SPECIFICATIONS ARE PROVIDED \"AS IS\" WITHOUT WARRANTY OF ANY KIND.\n\nLimited proprietary coding may be contained in the Measure specifications for convenience. A license agreement must be entered prior to a third party’s use of Current Procedural Terminology (CPT[R]) or other proprietary code set contained in the Measure. Any other use of CPT or other coding by a third party is strictly prohibited. Mathematica, the AMA, and former members of the PCPI disclaim all liability for use or accuracy of any CPT(R) or other coding contained in the specifications. \n\nCPT(R) contained in the Measure specifications is copyright 2004-2022 American Medical Association. LOINC(R) is copyright 2004-2022 Regenstrief Institute, Inc. This material contains SNOMED Clinical Terms(R) (SNOMED CT[R]) copyright 2004-2022 International Health Terminology Standards Development Organisation. ICD-10 is copyright 2022 World Health Organization. All Rights Reserved.\n\nDue to technical limitations, registered trademarks are indicated by (R) or [R].",
  "rationale" : "Research has shown that youth with major depressive disorder (MDD) are at a high risk for suicide attempts and completion - among the most significant and devastating sequelae of the disease (Fontanella et al., 2020). Suicide risk is a critical consideration in children and adolescents with MDD, and an important aspect of care that should be assessed at each visit and subsequently managed to minimize that risk. Additionally, the importance of the assessments is underscored by research (Fontanella et al., 2020; Luoma, Martin, & Pearson, 2002) that indicates that many individuals who die by suicide do make contact with primary care providers and mental health services beforehand. More specifically, approximately 15% of suicide victims aged 35 years or younger had seen a mental health professional within 1 month of suicide while approximately 23% had seen a primary care provider within 1 month of suicide (Luoma, Martin, & Pearson, 2002). A recent analysis of depression severity and suicidal ideation symptom trajectories (Witt et al., 2021) found that suicidal ideation among children and young adults (15-25 years) might not improve with depression symptom severity. This evidence suggests the potential utility of continued suicide risk screening even after improvements in depression symptoms. Better assessment and identification of suicide risk in the health care setting should lead to improved connection to treatment and reduction in suicide attempts and deaths by suicide.",
  "clinicalRecommendationStatement" : "The evaluation must include assessment for the presence of harm to self or others (American Academy of Child and Adolescent Psychiatry, 2007).\n\nSuicidal behavior exists along a continuum from passive thoughts of death to a clearly developed plan and intent to carry out that plan. Because depression is closely associated with suicidal thoughts and behavior, it is imperative to evaluate these symptoms at the initial and subsequent assessments. For this purpose, low burden tools to track suicidal ideation and behavior such as the Columbia-Suicidal Severity Rating Scale can be used. Also, it is crucial to evaluate the risk (e.g., age, sex, stressors, comorbid conditions, hopelessness, impulsivity) and protective factors (e.g., religious belief, concern not to hurt family) that might influence the desire to attempt suicide. The risk for suicidal behavior increases if there is a history of suicide attempts, comorbid psychiatric disorders (e.g., disruptive disorders, substance abuse), impulsivity and aggression, availability of lethal agents (e.g., firearms), exposure to negative events (e.g., physical or sexual abuse, violence), and a family history of suicidal behavior (American Academy of Child and Adolescent Psychiatry, 2007).\n\nA careful and ongoing evaluation of suicide risk is necessary for all patients with major depressive disorder (Category I). Such an assessment includes specific inquiry about suicidal thoughts, intent, plans, means, and behaviors; identification of specific psychiatric symptoms (e.g., psychosis, severe anxiety, substance use) or general medical conditions that may increase the likelihood of acting on suicidal ideas; assessment of past and, particularly, recent suicidal behavior; delineation of current stressors and potential protective factors (e.g., positive reasons for living, strong social support); and identification of any family history of suicide or mental illness (Category I) (American Psychiatric Association, 2010, reaffirmed 2015).",
  "group" : [{
    "id" : "638504914ba3d47c885c02c6",
    "extension" : [{
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoring",
      "valueCodeableConcept" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/measure-scoring",
          "code" : "proportion",
          "display" : "Proportion"
        }]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis",
      "valueCode" : "Encounter"
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-type",
      "valueCodeableConcept" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/measure-type",
          "code" : "process",
          "display" : "Process"
        }]
      }
    }],
    "population" : [{
      "id" : "EAADF858-A8F8-4AEA-A571-27CFCA95F745",
      "code" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
          "code" : "initial-population",
          "display" : "Initial Population"
        }]
      },
      "description" : "All patient visits for those patients aged 6 through 16 at the start of the measurement period with a diagnosis of major depressive disorder",
      "criteria" : {
        "language" : "text/cql-identifier",
        "expression" : "Initial Population"
      }
    },
    {
      "id" : "FD251731-0487-4A1F-B7CC-D7D2696DB9EE",
      "code" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
          "code" : "denominator",
          "display" : "Denominator"
        }]
      },
      "description" : "Equals Initial Population",
      "criteria" : {
        "language" : "text/cql-identifier",
        "expression" : "Denominator"
      }
    },
    {
      "id" : "bdd33044-e6ec-4e09-9242-a4287f6ef930",
      "code" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
          "code" : "denominator-exclusion",
          "display" : "Denominator Exclusion"
        }]
      },
      "criteria" : {
        "language" : "text/cql-identifier"
      }
    },
    {
      "id" : "1B08534C-7722-4B76-B352-4E80C1FA732E",
      "code" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
          "code" : "numerator",
          "display" : "Numerator"
        }]
      },
      "description" : "Patient visits with an assessment for suicide risk",
      "criteria" : {
        "language" : "text/cql-identifier",
        "expression" : "Numerator"
      }
    },
    {
      "id" : "72b56924-a46c-40ed-ac22-833cf82431cd",
      "code" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
          "code" : "numerator-exclusion",
          "display" : "Numerator Exclusion"
        }]
      },
      "criteria" : {
        "language" : "text/cql-identifier"
      }
    },
    {
      "id" : "b0964fc5-57da-4671-9136-e449641e8c9f",
      "code" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
          "code" : "denominator-exception",
          "display" : "Denominator Exception"
        }]
      },
      "criteria" : {
        "language" : "text/cql-identifier"
      }
    }]
  }]
}

```
