eCQM QICore Content Implementation Guide, published by cqframework. This guide is not an authorized publication; it is the continuous build for version 2025.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/ecqm-content-qicore-2025/ and changes regularly. See the Directory of published versions
Active as of 2025-07-15 |
@prefix fhir: <http://hl7.org/fhir/> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix sct: <http://snomed.info/id/> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . # - resource ------------------------------------------------------------------- a fhir:Measure ; fhir:nodeRole fhir:treeRoot ; fhir:id [ fhir:v "CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy"] ; # fhir:meta [ ( fhir:profile [ fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablemeasure"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablemeasure> ] [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm> ] [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/publishable-measure-cqfm"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/publishable-measure-cqfm> ] [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/executable-measure-cqfm"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/executable-measure-cqfm> ] [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cql-measure-cqfm"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cql-measure-cqfm> ] [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/elm-measure-cqfm"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/elm-measure-cqfm> ] [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/proportion-measure-cqfm"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/proportion-measure-cqfm> ] ) ] ; # fhir:text [ fhir:status [ fhir:v "extensions" ] ; fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <table class=\"narrative-table\">\n <tbody>\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Metadata</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Title</th>\n\n\n<td class=\"content-container\">Bone Density Evaluation for Patients with Prostate Cancer and Receiving Androgen Deprivation TherapyFHIR</td>\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Version</th>\n\n\n<td class=\"content-container\">1.5.000</td>\n</tr>\n\n\n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Short Name</th>\n\n\n<td class=\"content-container\">CMS645FHIR</td>\n</tr>\n\n\n\n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">GUID (Version Independent)</th>\n\n\n<td class=\"content-container\">urn:uuid:299de9c4-755d-4f5a-ac9e-fa74fe34f759</td>\n</tr>\n\n\n\n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">GUID (Version Specific)</th>\n\n\n<td class=\"content-container\">urn:uuid:e5b5772c-e9c2-4ca7-9e84-a5ea02f000b2</td>\n</tr>\n\n\n\n \n \n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">CMS Identifier</th>\n\n\n<td class=\"content-container\">645FHIR</td>\n</tr>\n\n \n\n\n\n\n \n \n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Effective Period</th>\n\n\n<td class=\"content-container\">2026-01-01 through 2026-12-31</td>\n</tr>\n\n \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Steward (Publisher)</th>\n\n\n<td class=\"content-container\">Oregon Urology</td>\n</tr>\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Developer</th>\n\n\n<td class=\"content-container\">Oregon Urology</td>\n</tr>\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n<td class=\"content-container\"><div><p>Percentage of patients determined as having prostate cancer who are currently starting or undergoing androgen deprivation therapy (ADT), for an anticipated period of 12 months or greater and who receive an initial bone density evaluation. The bone density evaluation must be prior to the start of ADT or within 3 months of the start of ADT.</p>\n</div></td>\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Copyright</th>\n\n\n<td class=\"content-container\"><div><p>Limited proprietary coding is contained in the measure specifications for convenience. Users of the proprietary code sets should obtain all necessary licenses from the owners of these code sets. Oregon Urology Institute (OUI) and Large Urology Group Practice Association (LUGPA) disclaim all liability for the use or accuracy of third-party codes contained in the specifications.</p>\n<p>CPT(R) contained in the Measure specifications is copyright 2004-2024. American Medical Association. LOINC(R) copyright 2004-2024 Regenstrief Institute, Inc. This material contains SNOMED Clinical Terms(R) (SNOMED CT[R]) copyright 2004-2024. International Health Terminology Standards Development Organisation. ICD-10 copyright 2023 World Health Organization. All Rights Reserved.</p>\n</div></td>\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Disclaimer</th>\n\n\n<td class=\"content-container\"><div><p>The performance measure is not a clinical guideline and does not establish a standard of medical care, and has not been tested for all potential applications.</p>\n<p>THE MEASURES AND SPECIFICATIONS ARE PROVIDED \"AS IS\" WITHOUT WARRANTY OF ANY KIND.</p>\n<p>Due to technical limitations, registered trademarks are indicated by (R) or [R] and unregistered trademarks are indicated by (TM) or [TM].</p>\n</div></td>\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Rationale</th>\n\n\n<td class=\"content-container\"><div><p>Androgen suppression as a treatment for prostate cancer can cause osteoporosis (Qaseem, 2008). Patients with prostrate cancer undergoing prolonged androgen deprivation therapy (ADT) incur bone loss at a rate higher than menopausal patients (Guise, 2007). In preserving bone health, the goal is to prevent or treat osteopenia/osteoporosis for the patient on ADT and to prevent or delay skeletal related events. The National Osteoporosis Foundation recommendations include a baseline assessment of bone density with a dual-energy X-ray absorptiometry (DEXA) scan and daily calcium and Vitamin D supplementation (Watts, 2012). The DEXA scan is the gold standard for bone density screening. Patients at risk for adverse bone consequences from chronic ADT do not always receive care according to evidence-based guidelines. These findings call for improved processes that standardize evidence-based practice, including baseline and follow-up bone density assessment (Watts, 2012).</p>\n</div></td>\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Clinical Recommendation Statement</th>\n\n\n<td class=\"content-container\"><div><p>Bone density screening should be performed at the start of Androgen Deprivation Therapy (ADT) for prostate cancer. It should also be performed every 2 years for the patient with continued ADT or for patients with known osteoporosis. Current insurance practice is to possibly cover the cost of bone density screening if osteoporosis is known or if there is a high-risk drug. Some patients choose to delay bone density screening until after ADT is started and they therefore have insurance authorization due to the administration of a high-risk drug.</p>\n</div></td>\n</tr>\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Guidance (Usage)</th>\n\n\n<td class=\"content-container\">In order to capture the practitioner's intent of androgen deprivation therapy (ADT) for a period of 12 months or greater, SNOMEDCT 456381000124102 which is Injection of leuprolide acetate for the twelve-month period (regime/therapy) is the correct code.\n\nThis eCQM is a patient-based measure.\n\nThis FHIR-based measure has been derived from the QDM-based measure: CMS645v8.\n \nPlease refer to the HL7 QI-Core Implementation Guide (https://hl7.org/fhir/us/qicore/STU4.1.1/) for more information on QI-Core and mapping recommendations from QDM to QI-Core 4.1.1 (https://hl7.org/fhir/us/qicore/STU4.1.1/qdm-to-qicore.html).</td>\n</tr>\n\n\n\n \n \n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Group (Rate) (ID: Group_1)</th>\n\n\n</tr>\n \n \n \n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Basis</th>\n\n\n<td class=\"content-container\">boolean</td>\n</tr>\n\n\n\n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Scoring</th>\n\n\n<td class=\"content-container\"><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-scoring proportion}\">Proportion</span></td>\n</tr>\n\n\n\n\n\n\n\n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Type</th>\n\n\n<td class=\"content-container\"><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-type process}\">Process</span></td>\n</tr>\n\n\n\n\n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Rate Aggregation</th>\n\n\n<td class=\"content-container\">None</td>\n</tr>\n\n\n\n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Improvement Notation</th>\n\n\n<td class=\"content-container\"><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-improvement-notation increase}\">Increased score indicates improvement</span></td>\n</tr>\n\n\n \n \n <tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Initial Population</th>\n\n\n \n <td class=\"content-container\">\n \n <em>ID</em>: InitialPopulation_1\n <br/>\n \n \n <em>Description</em>:\n <p style=\"white-space: pre-line\" class=\"tab-one\">Patients with a qualifying encounter in the measurement period AND with a diagnosis of prostate cancer AND with an order for ADT or an active medication of ADT with an intent for treatment greater than or equal to 12 months during the measurement period AND order for ADT in 3 months before to 9 months after the start of the measurement period</p>\n \n \n \n \n <em>Logic Definition</em>: <a href=\"#primary-cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-initial-population\">Initial Population</a> \n \n \n </td>\n </tr>\n \n\n \n <tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Denominator</th>\n\n\n \n <td class=\"content-container\">\n \n <em>ID</em>: Denominator_1\n <br/>\n \n \n <em>Description</em>:\n <p style=\"white-space: pre-line\" class=\"tab-one\">Equals Initial Population</p>\n \n \n \n \n <em>Logic Definition</em>: <a href=\"#primary-cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-denominator\">Denominator</a> \n \n \n </td>\n </tr>\n \n\n \n <tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Numerator</th>\n\n\n \n <td class=\"content-container\">\n \n <em>ID</em>: Numerator_1\n <br/>\n \n \n <em>Description</em>:\n <p style=\"white-space: pre-line\" class=\"tab-one\">Patients with a bone density evaluation within the two years prior to the start of or less than three months after the start of ADT treatment</p>\n \n \n \n \n <em>Logic Definition</em>: <a href=\"#primary-cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-numerator\">Numerator</a> \n \n \n </td>\n </tr>\n \n\n \n <tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Denominator Exception</th>\n\n\n \n <td class=\"content-container\">\n \n <em>ID</em>: DenominatorException_1\n <br/>\n \n \n <em>Description</em>:\n <p style=\"white-space: pre-line\" class=\"tab-one\">Patient refused the bone density evaluation at the time ordered or did not have it performed within 3 months after the start of ADT\nNOTE: Created a placeholder population due to issues around negation: refer to https://github.com/cqframework/cql-execution/issues/296, which is tied to https://oncprojectracking.healthit.gov/support/browse/BONNIEMAT-1455</p>\n \n \n \n \n <em>Logic Definition</em>: <a href=\"#primary-cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-denominator-exception\">Denominator Exception</a> \n \n \n </td>\n </tr>\n \n\n \n\n\n \n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Guidance</th>\n\n\n<td class=\"content-container\">For every patient evaluated by this measure also identify payer, race, ethnicity and sex</td>\n</tr>\n\n \n\n \n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Guidance</th>\n\n\n<td class=\"content-container\">None</td>\n</tr>\n\n \n\n\n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Supplemental Data Elements</th>\n\n\n</tr>\n\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-ethnicity\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}\">Supplemental Data</span>\n \n <br/>\n \n \n \n <em>Description</em>: SDE Ethnicity\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-sde-ethnicity\">SDE Ethnicity</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-payer\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}\">Supplemental Data</span>\n \n <br/>\n \n \n \n <em>Description</em>: SDE Payer\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-sde-payer\">SDE Payer</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-race\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}\">Supplemental Data</span>\n \n <br/>\n \n \n \n <em>Description</em>: SDE Race\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-sde-race\">SDE Race</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-sex\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}\">Supplemental Data</span>\n \n <br/>\n \n \n \n <em>Description</em>: SDE Sex\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-sde-sex\">SDE Sex</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-ethnicity\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage risk-adjustment-factor}\">Risk Adjustment Factor</span>\n \n <br/>\n \n \n \n <em>Description</em>: SDE Ethnicity\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-sde-ethnicity\">SDE Ethnicity</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-payer\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage risk-adjustment-factor}\">Risk Adjustment Factor</span>\n \n <br/>\n \n \n \n <em>Description</em>: SDE Payer\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-sde-payer\">SDE Payer</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-race\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage risk-adjustment-factor}\">Risk Adjustment Factor</span>\n \n <br/>\n \n \n \n <em>Description</em>: SDE Race\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-sde-race\">SDE Race</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-sex\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage risk-adjustment-factor}\">Risk Adjustment Factor</span>\n \n <br/>\n \n \n \n <em>Description</em>: SDE Sex\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-sde-sex\">SDE Sex</a> \n \n \n </td>\n</tr>\n\n\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Logic</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Primary Library</th>\n\n\n<td class=\"content-container\"><a href=\"Library-CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy.html\">CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy</a></td>\n</tr>\n\n\n\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Contents</th>\n <td class=\"content-container\">\n <em><a href=\"#population-criteria\">Population Criteria</a></em>\n <br/>\n <em><a href=\"#definitions\">Logic Definitions</a></em>\n <br/>\n <em><a href=\"#terminology\">Terminology</a></em>\n <br/>\n <em><a href=\"#dependencies\">Dependencies</a></em>\n <br/>\n <em><a href=\"#data-requirements\">Data Requirements</a></em>\n <br/>\n </td>\n</tr>\n\n\n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"population-criteria\"> </a>Population Criteria</th>\n\n\n</tr>\n \n \n \n \n \n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Group (Rate) (ID: Group_1)</th>\n\n\n</tr>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n <tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"primary-cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-initial-population\"> </a>\n \n \n Initial Population\n \n </th>\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Initial Population\":\n \"Has Qualifying Encounter\"\n and exists \"Order for 12 Months of ADT in 3 Months Before to 9 Months After Start of Measurement Period\"</code></pre>\n </td>\n\n</tr>\n\n \n \n \n \n \n \n \n \n \n \n \n \n <tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"primary-cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-initial-population\"> </a>\n \n \n Initial Population\n \n </th>\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Initial Population\":\n \"Has Qualifying Encounter\"\n and exists \"Order for 12 Months of ADT in 3 Months Before to 9 Months After Start of Measurement Period\"</code></pre>\n </td>\n\n</tr>\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n <tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"primary-cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-denominator\"> </a>\n \n \n Denominator\n \n </th>\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator\":\n \"Initial Population\"</code></pre>\n </td>\n\n</tr>\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n <tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"primary-cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-numerator\"> </a>\n \n \n Numerator\n \n </th>\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Numerator\":\n \"Has Baseline DEXA Scan Two Years Prior to the Start of or Less than Three Months After the Start of ADT\"</code></pre>\n </td>\n\n</tr>\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n <tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"primary-cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-denominator-exception\"> </a>\n \n \n Denominator Exception\n \n </th>\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator Exception\":\n false</code></pre>\n </td>\n\n</tr>\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n\n \n \n\n\n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"definitions\"> </a>Logic Definitions</th>\n\n\n</tr>\n \n \n \n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"supplementaldataelements-sde-sex\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> SupplementalDataElements</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Sex\":\n case\n when Patient.sex = '248153007' then \"Male (finding)\"\n when Patient.sex = '248152002' then \"Female (finding)\"\n else null\n end</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"supplementaldataelements-sde-payer\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> SupplementalDataElements</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Payer\":\n [Coverage: type in \"Payer Type\"] Payer\n return {\n code: Payer.type,\n period: Payer.period\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"supplementaldataelements-sde-ethnicity\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> SupplementalDataElements</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Ethnicity\":\n Patient.ethnicity E\n return Tuple {\n codes: { E.ombCategory } union E.detailed,\n display: E.text\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"supplementaldataelements-sde-race\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> SupplementalDataElements</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Race\":\n Patient.race R\n return Tuple {\n codes: R.ombCategory union R.detailed,\n display: R.text\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n\n \n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"qicorecommon-earliest\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> QICoreCommon</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Given an interval, return the starting point if the interval has a starting boundary specified,\notherwise, return the ending point\n*/\ndefine fluent function earliest(choice Choice<DateTime, Quantity, Interval<DateTime>, Interval<Quantity>> ):\n (choice.toInterval()) period\n return\n if (period.\"hasStart\"()) then start of period\n else end of period</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"qicorecommon-hasstart\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> QICoreCommon</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Given an interval, return true if the interval has a starting boundary specified\n(i.e. the start of the interval is not null and not the minimum DateTime value)\n*/\ndefine fluent function hasStart(period Interval<DateTime> ):\n not ( start of period is null\n or start of period = minimum DateTime\n )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n\n \n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-sde-sex\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Sex\":\n SDE.\"SDE Sex\"</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-androgen-deprivation-therapy-for-urology-care-medication-active-start-dates\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Androgen Deprivation Therapy for Urology Care Medication Active Start Dates\":\n [MedicationRequest: \"Androgen Deprivation Therapy for Urology Care\"] ADTActive\n let firstMedicationPeriod: First((collapse(ADTActive.dosageInstruction.timing.repeat.bounds DoseTime\n return DoseTime.toInterval()\n )) DrugPeriods\n sort by start of $this\n ),\n //get the very first event\n \n firstMedicationEvent: First((ADTActive.dosageInstruction.timing dosageTiming\n //returns first event for the specific dosageTiming\n \n return First(dosageTiming.event dosageTimingEvents\n sort ascending\n )) firstEvents\n sort ascending\n ),\n medicationDateTime: NormalizeInterval(firstMedicationEvent, firstMedicationPeriod).earliest ( )\n where ADTActive.status in { 'active', 'completed' }\n and ADTActive.intent in { 'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order' }\n return medicationDateTime</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-androgen-deprivation-therapy-for-urology-care-medication-order-start-dates\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Androgen Deprivation Therapy for Urology Care Medication Order Start Dates\":\n [MedicationRequest: \"Androgen Deprivation Therapy for Urology Care\"] ADTOrder\n let firstMedicationPeriod: First((collapse(ADTOrder.dosageInstruction.timing.repeat.bounds DoseTime\n return DoseTime.toInterval()\n )) DrugPeriods\n sort by start of $this\n ),\n medicationDateTime: NormalizeInterval(ADTOrder.authoredOn, firstMedicationPeriod).earliest ( )\n where ADTOrder.status in { 'active', 'completed' }\n and ADTOrder.intent in { 'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order' }\n return medicationDateTime</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-prostate-cancer-diagnosis\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Prostate Cancer Diagnosis\":\n ( [ConditionProblemsHealthConcerns: \"Prostate Cancer\"]\n union [ConditionEncounterDiagnosis: \"Prostate Cancer\"] ) ProstateCancer\n where ProstateCancer.prevalenceInterval ( ) overlaps \"Measurement Period\"\n and ProstateCancer.clinicalStatus ~ QICoreCommon.\"active\"\n and ProstateCancer.verificationStatus ~ QICoreCommon.\"confirmed\"</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-first-adt-in-3-months-before-to-9-months-after-start-of-measurement-period\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"First ADT in 3 Months Before to 9 Months After Start of Measurement Period\":\n First((\"Androgen Deprivation Therapy for Urology Care Medication Active Start Dates\"\n union \"Androgen Deprivation Therapy for Urology Care Medication Order Start Dates\") ADTDateTime\n with \"Prostate Cancer Diagnosis\" ProstateCancer\n such that ADTDateTime during day of ProstateCancer.prevalenceInterval()\n and ADTDateTime during day of Interval[start of \"Measurement Period\" - 3 months, start of \"Measurement Period\" + 9 months]\n sort ascending\n )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-order-for-12-months-of-adt-in-3-months-before-to-9-months-after-start-of-measurement-period\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Order for 12 Months of ADT in 3 Months Before to 9 Months After Start of Measurement Period\":\n [ServiceRequest: \"Injection of leuprolide acetate for twelve month period (regime/therapy)\"] OrderTwelveMonthADT\n with \"First ADT in 3 Months Before to 9 Months After Start of Measurement Period\" FirstADTMP\n such that OrderTwelveMonthADT.authoredOn on or after day of FirstADTMP\n and OrderTwelveMonthADT.authoredOn during day of Interval[start of \"Measurement Period\" - 3 months, start of \"Measurement Period\" + 9 months]\n and OrderTwelveMonthADT.status in { 'active', 'completed' }\n and OrderTwelveMonthADT.intent = 'order'\n and OrderTwelveMonthADT.doNotPerform is not true</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-has-baseline-dexa-scan-two-years-prior-to-the-start-of-or-less-than-three-months-after-the-start-of-adt\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Has Baseline DEXA Scan Two Years Prior to the Start of or Less than Three Months After the Start of ADT\":\n exists ( ( [ServiceRequest: \"DEXA Bone Density for Urology Care\"] DEXAOrdered\n with \"Order for 12 Months of ADT in 3 Months Before to 9 Months After Start of Measurement Period\" OrderTwelveMonthsADT\n such that DEXAOrdered.authoredOn 3 months or less on or after day of OrderTwelveMonthsADT.authoredOn\n or DEXAOrdered.authoredOn 2 years or less before day of OrderTwelveMonthsADT.authoredOn\n where DEXAOrdered.status in { 'active', 'completed' }\n and DEXAOrdered.intent = 'order'\n and DEXAOrdered.doNotPerform is not true\n )\n union ( [LaboratoryResultObservation: \"DEXA Bone Density for Urology Care\"] DEXAPerformed\n with \"Order for 12 Months of ADT in 3 Months Before to 9 Months After Start of Measurement Period\" OrderTwelveMonthsADT\n such that DEXAPerformed.effective.toInterval ( ) 3 months or less on or after day of OrderTwelveMonthsADT.authoredOn\n or DEXAPerformed.effective.toInterval ( ) 2 years or less before day of OrderTwelveMonthsADT.authoredOn\n where DEXAPerformed.status in { 'final', 'amended', 'corrected' }\n )\n )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-numerator\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Numerator\":\n \"Has Baseline DEXA Scan Two Years Prior to the Start of or Less than Three Months After the Start of ADT\"</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-denominator-exception\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator Exception\":\n false</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-has-qualifying-encounter\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Has Qualifying Encounter\":\n exists ( [\"Encounter\": \"Office Visit\"] OfficeVisit\n where OfficeVisit.period during \"Measurement Period\"\n and OfficeVisit.status = 'finished'\n )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-initial-population\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Initial Population\":\n \"Has Qualifying Encounter\"\n and exists \"Order for 12 Months of ADT in 3 Months Before to 9 Months After Start of Measurement Period\"</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-denominator\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator\":\n \"Initial Population\"</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-sde-payer\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Payer\":\n SDE.\"SDE Payer\"</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-initial-population\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Initial Population\":\n \"Has Qualifying Encounter\"\n and exists \"Order for 12 Months of ADT in 3 Months Before to 9 Months After Start of Measurement Period\"</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-sde-ethnicity\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// @commmentedOutReason: Negation issue related to https://github.com/cqframework/cql-execution/issues/296,\n // which is tied to https://oncprojectracking.healthit.gov/support/browse/BONNIEMAT-1455.\n // Due to this being the only logic in population, created a 'false' placeholder\n // exists ( \"No Bone Density Scan Ordered Due to Patient Refusal\")\n // or exists ( \"No Bone Density Scan Performed Due to Patient Refusal\") \n\n\n\n\n\n\ndefine \"SDE Ethnicity\":\n SDE.\"SDE Ethnicity\"</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-sde-race\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Race\":\n SDE.\"SDE Race\"</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cms645fhirbonedensityprostatecancerandrogendeprivationtherapy-normalizeinterval\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function NormalizeInterval(pointInTime DateTime, dateTimeInterval Interval<DateTime>):\n if pointInTime is not null then Interval[pointInTime, pointInTime]\n else if dateTimeInterval is not null then dateTimeInterval \n else null as Interval<DateTime></code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n\n \n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value uri): value.value</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-tointerval\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period)\nvalue to a CQL DateTime Interval\n@comment: If the start value of the given period is unspecified, the starting\nboundary of the resulting interval will be open (meaning the start of the interval\nis unknown, as opposed to interpreted as the beginning of time).\n*/\ndefine function ToInterval(period FHIR.Period):\n if period is null then\n null\n else\n if period.\"start\" is null then\n Interval(period.\"start\".value, period.\"end\".value]\n else\n Interval[period.\"start\".value, period.\"end\".value]</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-tocode\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code.\n*/\ndefine function ToCode(coding FHIR.Coding):\n if coding is null then\n null\n else\n System.Code {\n code: coding.code.value,\n system: coding.system.value,\n version: coding.version.value,\n display: coding.display.value\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n\n\n \n \n\n\n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"terminology\"> </a>Terminology</th>\n\n\n</tr>\n \n \n \n\n \n\n \n\n \n\n \n\n\n<tr>\n \n \n \n\n<th scope=\"row\" class=\"row-header\">Code System</th>\n\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Code system SNOMEDCT\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"http://hl7.org/fhir/R4/codesystem-snomedct.html\">SNOMED CT (all versions)</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://snomed.info/sct</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n \n\n<th scope=\"row\" class=\"row-header\">Code System</th>\n\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Code system SNOMEDCT\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"http://hl7.org/fhir/R4/codesystem-snomedct.html\">SNOMED CT (all versions)</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://snomed.info/sct</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n \n\n<th scope=\"row\" class=\"row-header\">Code System</th>\n\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Code system ConditionClinicalStatusCodes\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"http://terminology.hl7.org/6.1.0/CodeSystem-condition-clinical.html\">Condition Clinical Status Codes</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-clinical</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n \n\n<th scope=\"row\" class=\"row-header\">Code System</th>\n\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Code system ConditionVerificationStatusCodes\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"http://terminology.hl7.org/6.1.0/CodeSystem-condition-ver-status.html\">ConditionVerificationStatus</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-ver-status</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set DEXA Bone Density for Urology Care\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.359</code>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.359</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Androgen Deprivation Therapy for Urology Care\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.352</code>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.352</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Prostate Cancer\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.319</code>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.319</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Office Visit\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001</code>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Payer Type\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591</code>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591</tt>\n \n </td>\n</tr>\n \n\n\n \n <tr>\n <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n <td class=\"content-container\">\n \n <em>Display</em>: Male (finding)\n <br/>\n \n <em>Code</em>: 248153007\n <br/>\n <em>System</em>: <tt>http://snomed.info/sct</tt>\n </td>\n </tr>\n\n <tr>\n <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n <td class=\"content-container\">\n \n <em>Display</em>: Female (finding)\n <br/>\n \n <em>Code</em>: 248152002\n <br/>\n <em>System</em>: <tt>http://snomed.info/sct</tt>\n </td>\n </tr>\n\n <tr>\n <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n <td class=\"content-container\">\n \n <em>Display</em>: Injection of leuprolide acetate for twelve month period (regime/therapy)\n <br/>\n \n <em>Code</em>: 456381000124102\n <br/>\n <em>System</em>: <tt>http://snomed.info/sct</tt>\n </td>\n </tr>\n\n <tr>\n <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n <td class=\"content-container\">\n \n <em>Display</em>: Active\n <br/>\n \n <em>Code</em>: active\n <br/>\n <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-clinical</tt>\n </td>\n </tr>\n\n <tr>\n <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n <td class=\"content-container\">\n \n <em>Display</em>: Confirmed\n <br/>\n \n <em>Code</em>: confirmed\n <br/>\n <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-ver-status</tt>\n </td>\n </tr>\n\n \n \n\n\n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"dependencies\"> </a>Dependencies</th>\n\n\n</tr>\n \n \n \n\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n <td class=\"content-container\">\n \n <em>Description</em>: Library SDE\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>Library/SupplementalDataElements|5.1.000</code>\n <br/>\n <em>Canonical URL</em>: <tt>Library/SupplementalDataElements|5.1.000</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n <td class=\"content-container\">\n \n <em>Description</em>: Library FHIRHelpers\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>Library/FHIRHelpers|4.4.000</code>\n <br/>\n <em>Canonical URL</em>: <tt>Library/FHIRHelpers|4.4.000</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n <td class=\"content-container\">\n \n <em>Description</em>: Library FHIRHelpers\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>Library/FHIRHelpers|4.4.000</code>\n <br/>\n <em>Canonical URL</em>: <tt>Library/FHIRHelpers|4.4.000</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n <td class=\"content-container\">\n \n <em>Description</em>: Library QICoreCommon\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>Library/QICoreCommon|4.0.000</code>\n <br/>\n <em>Canonical URL</em>: <tt>Library/QICoreCommon|4.0.000</tt>\n \n </td>\n</tr>\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n\n \n \n\n\n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"data-requirements\"> </a>Data Requirements</th>\n\n\n</tr>\n \n \n \n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Patient\n <br/>\n \n <em>Profile(s)</em>: \n \n <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient</code>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Patient\n <br/>\n \n <em>Profile(s)</em>: \n \n <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: url, value.value\n <br/>\n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: MedicationRequest\n <br/>\n \n <em>Profile(s)</em>: \n \n <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: medication\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: medication</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.352</code>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: MedicationRequest\n <br/>\n \n <em>Profile(s)</em>: \n \n <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: medication.reference.value\n <br/>\n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Medication\n <br/>\n \n <em>Profile(s)</em>: \n \n <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: id.value, code\n <br/>\n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Condition\n <br/>\n \n <em>Profile(s)</em>: \n \n <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-problems-health-concerns</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: code</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.319</code>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Condition\n <br/>\n \n <em>Profile(s)</em>: \n \n <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-encounter-diagnosis</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: code</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.319</code>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: ServiceRequest\n <br/>\n \n <em>Profile(s)</em>: \n \n <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, authoredOn, authoredOn.value, status, status.value, intent, intent.value, doNotPerform, doNotPerform.value\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: code</span>\n <br/>\n \n \n \n \n <span class=\"tab-one\"><em>Code(s)</em>: \n \n \n <a href=\"http://snomed.info/id/456381000124102\">SNOMED CT 456381000124102</a>: Injection of leuprolide acetate for twelve month period (regime/therapy)\n \n \n </span>\n <br/>\n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: ServiceRequest\n <br/>\n \n <em>Profile(s)</em>: \n \n <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, authoredOn, authoredOn.value, status, status.value, intent, intent.value, doNotPerform, doNotPerform.value\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: code</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.359</code>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Observation\n <br/>\n \n <em>Profile(s)</em>: \n \n <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation-lab</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, effective, status, status.value\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: code</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.359</code>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, period, status, status.value\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001</code>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Patient\n <br/>\n \n <em>Profile(s)</em>: \n \n <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: url\n <br/>\n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Coverage\n <br/>\n \n <em>Profile(s)</em>: \n \n <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, period\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591</code>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Patient\n <br/>\n \n <em>Profile(s)</em>: \n \n <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: url, extension\n <br/>\n \n \n </td>\n</tr>\n\n \n \n\n<tr>\n <th colspan=\"2\" scope=\"row\" class=\"row-header\">Generated using version 0.4.8 of the sample-content-ig Liquid templates</th>\n</tr>\n\n </tbody>\n </table>\n</div>"^^rdf:XMLLiteral ] ; # fhir:contained ( [ a fhir:Library ; fhir:id [ fhir:v "effective-data-requirements" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode"^^xsd:anyURI ] ; fhir:value [ a fhir:Coding, sct:248153007 ; fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ; fhir:code [ fhir:v "248153007" ] ; fhir:display [ fhir:v "Male (finding)" ] ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode"^^xsd:anyURI ] ; fhir:value [ a fhir:Coding, sct:248152002 ; fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ; fhir:code [ fhir:v "248152002" ] ; fhir:display [ fhir:v "Female (finding)" ] ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode"^^xsd:anyURI ] ; fhir:value [ a fhir:Coding, sct:456381000124102 ; fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ; fhir:code [ fhir:v "456381000124102" ] ; fhir:display [ fhir:v "Injection of leuprolide acetate for twelve month period (regime/therapy)" ] ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode"^^xsd:anyURI ] ; fhir:value [ a fhir:Coding ; fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/condition-clinical"^^xsd:anyURI ] ; fhir:code [ fhir:v "active" ] ; fhir:display [ fhir:v "Active" ] ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode"^^xsd:anyURI ] ; fhir:value [ a fhir:Coding ; fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/condition-ver-status"^^xsd:anyURI ] ; fhir:code [ fhir:v "confirmed" ] ; fhir:display [ fhir:v "Confirmed" ] ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SupplementalDataElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SDE Sex" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"SDE Sex\":\n case\n when Patient.sex = '248153007' then \"Male (finding)\"\n when Patient.sex = '248152002' then \"Female (finding)\"\n else null\n end" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 0 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SDE Sex" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"SDE Sex\":\n SDE.\"SDE Sex\"" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 1 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "Androgen Deprivation Therapy for Urology Care Medication Active Start Dates" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"Androgen Deprivation Therapy for Urology Care Medication Active Start Dates\":\n [MedicationRequest: \"Androgen Deprivation Therapy for Urology Care\"] ADTActive\n let firstMedicationPeriod: First((collapse(ADTActive.dosageInstruction.timing.repeat.bounds DoseTime\n return DoseTime.toInterval()\n )) DrugPeriods\n sort by start of $this\n ),\n //get the very first event\n \n firstMedicationEvent: First((ADTActive.dosageInstruction.timing dosageTiming\n //returns first event for the specific dosageTiming\n \n return First(dosageTiming.event dosageTimingEvents\n sort ascending\n )) firstEvents\n sort ascending\n ),\n medicationDateTime: NormalizeInterval(firstMedicationEvent, firstMedicationPeriod).earliest ( )\n where ADTActive.status in { 'active', 'completed' }\n and ADTActive.intent in { 'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order' }\n return medicationDateTime" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 2 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "Androgen Deprivation Therapy for Urology Care Medication Order Start Dates" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"Androgen Deprivation Therapy for Urology Care Medication Order Start Dates\":\n [MedicationRequest: \"Androgen Deprivation Therapy for Urology Care\"] ADTOrder\n let firstMedicationPeriod: First((collapse(ADTOrder.dosageInstruction.timing.repeat.bounds DoseTime\n return DoseTime.toInterval()\n )) DrugPeriods\n sort by start of $this\n ),\n medicationDateTime: NormalizeInterval(ADTOrder.authoredOn, firstMedicationPeriod).earliest ( )\n where ADTOrder.status in { 'active', 'completed' }\n and ADTOrder.intent in { 'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order' }\n return medicationDateTime" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 3 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "Prostate Cancer Diagnosis" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"Prostate Cancer Diagnosis\":\n ( [ConditionProblemsHealthConcerns: \"Prostate Cancer\"]\n union [ConditionEncounterDiagnosis: \"Prostate Cancer\"] ) ProstateCancer\n where ProstateCancer.prevalenceInterval ( ) overlaps \"Measurement Period\"\n and ProstateCancer.clinicalStatus ~ QICoreCommon.\"active\"\n and ProstateCancer.verificationStatus ~ QICoreCommon.\"confirmed\"" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 4 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "First ADT in 3 Months Before to 9 Months After Start of Measurement Period" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"First ADT in 3 Months Before to 9 Months After Start of Measurement Period\":\n First((\"Androgen Deprivation Therapy for Urology Care Medication Active Start Dates\"\n union \"Androgen Deprivation Therapy for Urology Care Medication Order Start Dates\") ADTDateTime\n with \"Prostate Cancer Diagnosis\" ProstateCancer\n such that ADTDateTime during day of ProstateCancer.prevalenceInterval()\n and ADTDateTime during day of Interval[start of \"Measurement Period\" - 3 months, start of \"Measurement Period\" + 9 months]\n sort ascending\n )" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 5 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "Order for 12 Months of ADT in 3 Months Before to 9 Months After Start of Measurement Period" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"Order for 12 Months of ADT in 3 Months Before to 9 Months After Start of Measurement Period\":\n [ServiceRequest: \"Injection of leuprolide acetate for twelve month period (regime/therapy)\"] OrderTwelveMonthADT\n with \"First ADT in 3 Months Before to 9 Months After Start of Measurement Period\" FirstADTMP\n such that OrderTwelveMonthADT.authoredOn on or after day of FirstADTMP\n and OrderTwelveMonthADT.authoredOn during day of Interval[start of \"Measurement Period\" - 3 months, start of \"Measurement Period\" + 9 months]\n and OrderTwelveMonthADT.status in { 'active', 'completed' }\n and OrderTwelveMonthADT.intent = 'order'\n and OrderTwelveMonthADT.doNotPerform is not true" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 6 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "Has Baseline DEXA Scan Two Years Prior to the Start of or Less than Three Months After the Start of ADT" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"Has Baseline DEXA Scan Two Years Prior to the Start of or Less than Three Months After the Start of ADT\":\n exists ( ( [ServiceRequest: \"DEXA Bone Density for Urology Care\"] DEXAOrdered\n with \"Order for 12 Months of ADT in 3 Months Before to 9 Months After Start of Measurement Period\" OrderTwelveMonthsADT\n such that DEXAOrdered.authoredOn 3 months or less on or after day of OrderTwelveMonthsADT.authoredOn\n or DEXAOrdered.authoredOn 2 years or less before day of OrderTwelveMonthsADT.authoredOn\n where DEXAOrdered.status in { 'active', 'completed' }\n and DEXAOrdered.intent = 'order'\n and DEXAOrdered.doNotPerform is not true\n )\n union ( [LaboratoryResultObservation: \"DEXA Bone Density for Urology Care\"] DEXAPerformed\n with \"Order for 12 Months of ADT in 3 Months Before to 9 Months After Start of Measurement Period\" OrderTwelveMonthsADT\n such that DEXAPerformed.effective.toInterval ( ) 3 months or less on or after day of OrderTwelveMonthsADT.authoredOn\n or DEXAPerformed.effective.toInterval ( ) 2 years or less before day of OrderTwelveMonthsADT.authoredOn\n where DEXAPerformed.status in { 'final', 'amended', 'corrected' }\n )\n )" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 7 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "Numerator" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"Numerator\":\n \"Has Baseline DEXA Scan Two Years Prior to the Start of or Less than Three Months After the Start of ADT\"" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 8 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "Denominator Exception" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"Denominator Exception\":\n false" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 9 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "Has Qualifying Encounter" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"Has Qualifying Encounter\":\n exists ( [\"Encounter\": \"Office Visit\"] OfficeVisit\n where OfficeVisit.period during \"Measurement Period\"\n and OfficeVisit.status = 'finished'\n )" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 10 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "Initial Population" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"Initial Population\":\n \"Has Qualifying Encounter\"\n and exists \"Order for 12 Months of ADT in 3 Months Before to 9 Months After Start of Measurement Period\"" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 11 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "Denominator" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"Denominator\":\n \"Initial Population\"" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 12 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SupplementalDataElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SDE Payer" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"SDE Payer\":\n [Coverage: type in \"Payer Type\"] Payer\n return {\n code: Payer.type,\n period: Payer.period\n }" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 13 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SDE Payer" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"SDE Payer\":\n SDE.\"SDE Payer\"" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 14 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "Initial Population" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"Initial Population\":\n \"Has Qualifying Encounter\"\n and exists \"Order for 12 Months of ADT in 3 Months Before to 9 Months After Start of Measurement Period\"" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 15 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SupplementalDataElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SDE Ethnicity" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"SDE Ethnicity\":\n Patient.ethnicity E\n return Tuple {\n codes: { E.ombCategory } union E.detailed,\n display: E.text\n }" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 16 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SDE Ethnicity" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "// @commmentedOutReason: Negation issue related to https://github.com/cqframework/cql-execution/issues/296,\n // which is tied to https://oncprojectracking.healthit.gov/support/browse/BONNIEMAT-1455.\n // Due to this being the only logic in population, created a 'false' placeholder\n // exists ( \"No Bone Density Scan Ordered Due to Patient Refusal\")\n // or exists ( \"No Bone Density Scan Performed Due to Patient Refusal\") \n\n\n\n\n\n\ndefine \"SDE Ethnicity\":\n SDE.\"SDE Ethnicity\"" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 17 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SupplementalDataElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SDE Race" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"SDE Race\":\n Patient.race R\n return Tuple {\n codes: R.ombCategory union R.detailed,\n display: R.text\n }" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 18 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SDE Race" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"SDE Race\":\n SDE.\"SDE Race\"" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 19 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "FHIRHelpers" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "ToString" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define function ToString(value uri): value.value" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 20 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "QICoreCommon" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "earliest" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "/*\n@description: Given an interval, return the starting point if the interval has a starting boundary specified,\notherwise, return the ending point\n*/\ndefine fluent function earliest(choice Choice<DateTime, Quantity, Interval<DateTime>, Interval<Quantity>> ):\n (choice.toInterval()) period\n return\n if (period.\"hasStart\"()) then start of period\n else end of period" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 21 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "QICoreCommon" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "hasStart" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "/*\n@description: Given an interval, return true if the interval has a starting boundary specified\n(i.e. the start of the interval is not null and not the minimum DateTime value)\n*/\ndefine fluent function hasStart(period Interval<DateTime> ):\n not ( start of period is null\n or start of period = minimum DateTime\n )" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 22 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "NormalizeInterval" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define function NormalizeInterval(pointInTime DateTime, dateTimeInterval Interval<DateTime>):\n if pointInTime is not null then Interval[pointInTime, pointInTime]\n else if dateTimeInterval is not null then dateTimeInterval \n else null as Interval<DateTime>" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 23 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "FHIRHelpers" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "ToInterval" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "/*\n@description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period)\nvalue to a CQL DateTime Interval\n@comment: If the start value of the given period is unspecified, the starting\nboundary of the resulting interval will be open (meaning the start of the interval\nis unknown, as opposed to interpreted as the beginning of time).\n*/\ndefine function ToInterval(period FHIR.Period):\n if period is null then\n null\n else\n if period.\"start\" is null then\n Interval(period.\"start\".value, period.\"end\".value]\n else\n Interval[period.\"start\".value, period.\"end\".value]" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 24 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "FHIRHelpers" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "ToCode" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "/*\n@description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code.\n*/\ndefine function ToCode(coding FHIR.Coding):\n if coding is null then\n null\n else\n System.Code {\n code: coding.code.value,\n system: coding.system.value,\n version: coding.version.value,\n display: coding.display.value\n }" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 25 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] ) ; fhir:name [ fhir:v "EffectiveDataRequirements" ] ; fhir:status [ fhir:v "active" ] ; fhir:type [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/library-type"^^xsd:anyURI ] ; fhir:code [ fhir:v "module-definition" ] ] ) ] ; ( fhir:relatedArtifact [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library SDE" ] ; fhir:resource [ fhir:v "Library/SupplementalDataElements|5.1.000"^^xsd:anyURI ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library FHIRHelpers" ] ; fhir:resource [ fhir:v "Library/FHIRHelpers|4.4.000"^^xsd:anyURI ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library FHIRHelpers" ] ; fhir:resource [ fhir:v "Library/FHIRHelpers|4.4.000"^^xsd:anyURI ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library QICoreCommon" ] ; fhir:resource [ fhir:v "Library/QICoreCommon|4.0.000"^^xsd:anyURI ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Code system SNOMEDCT" ] ; fhir:resource [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ; fhir:link <http://snomed.info/sct> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Code system SNOMEDCT" ] ; fhir:resource [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ; fhir:link <http://snomed.info/sct> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Code system ConditionClinicalStatusCodes" ] ; fhir:resource [ fhir:v "http://terminology.hl7.org/CodeSystem/condition-clinical"^^xsd:anyURI ; fhir:link <http://terminology.hl7.org/CodeSystem/condition-clinical> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Code system ConditionVerificationStatusCodes" ] ; fhir:resource [ fhir:v "http://terminology.hl7.org/CodeSystem/condition-ver-status"^^xsd:anyURI ; fhir:link <http://terminology.hl7.org/CodeSystem/condition-ver-status> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Value set DEXA Bone Density for Urology Care" ] ; fhir:resource [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.359"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.359> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Value set Androgen Deprivation Therapy for Urology Care" ] ; fhir:resource [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.352"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.352> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Value set Prostate Cancer" ] ; fhir:resource [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.319"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.319> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Value set Office Visit" ] ; fhir:resource [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Value set Payer Type" ] ; fhir:resource [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591> ] ] ) ; ( fhir:parameter [ fhir:name [ fhir:v "Measurement Period" ] ; fhir:use [ fhir:v "in" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "1" ] ; fhir:type [ fhir:v "Period" ] ] [ fhir:name [ fhir:v "SDE Sex" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "1" ] ; fhir:type [ fhir:v "Coding" ] ] [ fhir:name [ fhir:v "Numerator" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "1" ] ; fhir:type [ fhir:v "boolean" ] ] [ fhir:name [ fhir:v "Denominator Exception" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "1" ] ; fhir:type [ fhir:v "boolean" ] ] [ fhir:name [ fhir:v "Denominator" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "1" ] ; fhir:type [ fhir:v "boolean" ] ] [ fhir:name [ fhir:v "SDE Payer" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "*" ] ; fhir:type [ fhir:v "Resource" ] ] [ fhir:name [ fhir:v "Initial Population" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "1" ] ; fhir:type [ fhir:v "boolean" ] ] [ fhir:name [ fhir:v "SDE Ethnicity" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "1" ] ; fhir:type [ fhir:v "Resource" ] ] [ fhir:name [ fhir:v "SDE Race" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "1" ] ; fhir:type [ fhir:v "Resource" ] ] ) ; ( fhir:dataRequirement [ fhir:type [ fhir:v "Patient" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient> ] ) ] [ fhir:type [ fhir:v "Patient" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient> ] ) ; ( fhir:mustSupport [ fhir:v "url" ] [ fhir:v "value.value" ] ) ] [ fhir:type [ fhir:v "Patient" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient> ] ) ; ( fhir:mustSupport [ fhir:v "url" ] [ fhir:v "value.value" ] ) ] [ fhir:type [ fhir:v "MedicationRequest" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest> ] ) ; ( fhir:mustSupport [ fhir:v "medication" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "medication" ] ; fhir:valueSet [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.352"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.352> ] ] ) ] [ fhir:type [ fhir:v "MedicationRequest" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest> ] ) ; ( fhir:mustSupport [ fhir:v "medication.reference.value" ] ) ] [ fhir:type [ fhir:v "Medication" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication> ] ) ; ( fhir:mustSupport [ fhir:v "id.value" ] [ fhir:v "code" ] ) ] [ fhir:type [ fhir:v "MedicationRequest" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest> ] ) ; ( fhir:mustSupport [ fhir:v "medication" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "medication" ] ; fhir:valueSet [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.352"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.352> ] ] ) ] [ fhir:type [ fhir:v "MedicationRequest" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest> ] ) ; ( fhir:mustSupport [ fhir:v "medication.reference.value" ] ) ] [ fhir:type [ fhir:v "Medication" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication> ] ) ; ( fhir:mustSupport [ fhir:v "id.value" ] [ fhir:v "code" ] ) ] [ fhir:type [ fhir:v "Condition" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-problems-health-concerns"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-problems-health-concerns> ] ) ; ( fhir:mustSupport [ fhir:v "code" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "code" ] ; fhir:valueSet [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.319"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.319> ] ] ) ] [ fhir:type [ fhir:v "Condition" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-encounter-diagnosis"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-encounter-diagnosis> ] ) ; ( fhir:mustSupport [ fhir:v "code" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "code" ] ; fhir:valueSet [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.319"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.319> ] ] ) ] [ fhir:type [ fhir:v "ServiceRequest" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest> ] ) ; ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "authoredOn" ] [ fhir:v "authoredOn.value" ] [ fhir:v "status" ] [ fhir:v "status.value" ] [ fhir:v "intent" ] [ fhir:v "intent.value" ] [ fhir:v "doNotPerform" ] [ fhir:v "doNotPerform.value" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "code" ] ; ( fhir:code [ a sct:456381000124102 ; fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ; fhir:code [ fhir:v "456381000124102" ] ; fhir:display [ fhir:v "Injection of leuprolide acetate for twelve month period (regime/therapy)" ] ] ) ] ) ] [ fhir:type [ fhir:v "ServiceRequest" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest> ] ) ; ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "authoredOn" ] [ fhir:v "authoredOn.value" ] [ fhir:v "status" ] [ fhir:v "status.value" ] [ fhir:v "intent" ] [ fhir:v "intent.value" ] [ fhir:v "doNotPerform" ] [ fhir:v "doNotPerform.value" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "code" ] ; fhir:valueSet [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.359"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.359> ] ] ) ] [ fhir:type [ fhir:v "Observation" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation-lab"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation-lab> ] ) ; ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "effective" ] [ fhir:v "status" ] [ fhir:v "status.value" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "code" ] ; fhir:valueSet [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.359"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.359> ] ] ) ] [ fhir:type [ fhir:v "Encounter" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter> ] ) ; ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] [ fhir:v "status" ] [ fhir:v "status.value" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "type" ] ; fhir:valueSet [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001> ] ] ) ] [ fhir:type [ fhir:v "Coverage" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage> ] ) ; ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "type" ] ; fhir:valueSet [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591> ] ] ) ] [ fhir:type [ fhir:v "Patient" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient> ] ) ; ( fhir:mustSupport [ fhir:v "url" ] ) ] [ fhir:type [ fhir:v "Patient" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient> ] ) ; ( fhir:mustSupport [ fhir:v "url" ] [ fhir:v "extension" ] ) ] [ fhir:type [ fhir:v "Patient" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient> ] ) ; ( fhir:mustSupport [ fhir:v "url" ] ) ] [ fhir:type [ fhir:v "Patient" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient> ] ) ; ( fhir:mustSupport [ fhir:v "url" ] [ fhir:v "extension" ] ) ] [ fhir:type [ fhir:v "Coverage" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage> ] ) ; ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "type" ] ; fhir:valueSet [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591> ] ] ) ] [ fhir:type [ fhir:v "Patient" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient> ] ) ; ( fhir:mustSupport [ fhir:v "url" ] [ fhir:v "extension" ] ) ] [ fhir:type [ fhir:v "Patient" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient> ] ) ; ( fhir:mustSupport [ fhir:v "url" ] [ fhir:v "extension" ] ) ] ) ] ) ; # fhir:extension ( [ fhir:id [ fhir:v "supplementalDataGuidance" ] ; ( fhir:extension [ fhir:url [ fhir:v "guidance"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "For every patient evaluated by this measure also identify payer, race, ethnicity and sex" ] ] [ fhir:url [ fhir:v "usage"^^xsd:anyURI ] ; fhir:value [ a fhir:CodeableConcept ; ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ; fhir:code [ fhir:v "supplemental-data" ] ; fhir:display [ fhir:v "Supplemental Data" ] ] ) ; fhir:text [ fhir:v "Supplemental Data Guidance" ] ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-supplementalDataGuidance"^^xsd:anyURI ] ] [ fhir:id [ fhir:v "riskAdjustmentVariableGuidance" ] ; ( fhir:extension [ fhir:url [ fhir:v "guidance"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "None" ] ] [ fhir:url [ fhir:v "usage"^^xsd:anyURI ] ; fhir:value [ a fhir:CodeableConcept ; ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ; fhir:code [ fhir:v "risk-adjustment-factor" ] ; fhir:display [ fhir:v "Risk Adjustment Factor" ] ] ) ; fhir:text [ fhir:v "Risk Adjustment Variable Guidance" ] ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-supplementalDataGuidance"^^xsd:anyURI ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements"^^xsd:anyURI ] ; fhir:value [ a fhir:canonical ; fhir:v "#effective-data-requirements"^^xsd:anyURI ] ] [ fhir:id [ fhir:v "effective-data-requirements" ] ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-effectiveDataRequirements"^^xsd:anyURI ] ; fhir:value [ a fhir:Reference ; fhir:reference [ fhir:v "#effective-data-requirements" ] ] ] ) ; # fhir:url [ fhir:v "https://madie.cms.gov/Measure/CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy"^^xsd:anyURI] ; # fhir:identifier ( [ fhir:use [ fhir:v "usual" ] ; fhir:type [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/artifact-identifier-type"^^xsd:anyURI ] ; fhir:code [ fhir:v "short-name" ] ; fhir:display [ fhir:v "Short Name" ] ] ) ] ; fhir:system [ fhir:v "https://madie.cms.gov/measure/shortName"^^xsd:anyURI ] ; fhir:value [ fhir:v "CMS645FHIR" ] ] [ fhir:use [ fhir:v "official" ] ; fhir:type [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/artifact-identifier-type"^^xsd:anyURI ] ; fhir:code [ fhir:v "version-independent" ] ; fhir:display [ fhir:v "Version Independent" ] ] ) ] ; fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ; fhir:value [ fhir:v "urn:uuid:299de9c4-755d-4f5a-ac9e-fa74fe34f759" ] ] [ fhir:use [ fhir:v "official" ] ; fhir:type [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/artifact-identifier-type"^^xsd:anyURI ] ; fhir:code [ fhir:v "version-specific" ] ; fhir:display [ fhir:v "Version Specific" ] ] ) ] ; fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ; fhir:value [ fhir:v "urn:uuid:e5b5772c-e9c2-4ca7-9e84-a5ea02f000b2" ] ] [ fhir:use [ fhir:v "official" ] ; fhir:type [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/artifact-identifier-type"^^xsd:anyURI ] ; fhir:code [ fhir:v "publisher" ] ; fhir:display [ fhir:v "Publisher" ] ] ) ] ; fhir:system [ fhir:v "https://madie.cms.gov/measure/cmsId"^^xsd:anyURI ] ; fhir:value [ fhir:v "645FHIR" ] ; fhir:assigner [ fhir:display [ fhir:v "CMS" ] ] ] ) ; # fhir:version [ fhir:v "1.5.000"] ; # fhir:name [ fhir:v "CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy"] ; # fhir:title [ fhir:v "Bone Density Evaluation for Patients with Prostate Cancer and Receiving Androgen Deprivation TherapyFHIR"] ; # fhir:status [ fhir:v "active"] ; # fhir:experimental [ fhir:v false] ; # fhir:date [ fhir:v "2025-07-15T13:37:41+00:00"^^xsd:dateTime] ; # fhir:publisher [ fhir:v "Oregon Urology"] ; # fhir:contact ( [ ( fhir:telecom [ fhir:system [ fhir:v "url" ] ; fhir:value [ fhir:v "www.oregonurology.com" ] ] ) ] ) ; # fhir:description [ fhir:v "Percentage of patients determined as having prostate cancer who are currently starting or undergoing androgen deprivation therapy (ADT), for an anticipated period of 12 months or greater and who receive an initial bone density evaluation. The bone density evaluation must be prior to the start of ADT or within 3 months of the start of ADT."] ; # fhir:usage [ fhir:v "In order to capture the practitioner's intent of androgen deprivation therapy (ADT) for a period of 12 months or greater, SNOMEDCT 456381000124102 which is Injection of leuprolide acetate for the twelve-month period (regime/therapy) is the correct code.\n\nThis eCQM is a patient-based measure.\n\nThis FHIR-based measure has been derived from the QDM-based measure: CMS645v8.\n \nPlease refer to the HL7 QI-Core Implementation Guide (https://hl7.org/fhir/us/qicore/STU4.1.1/) for more information on QI-Core and mapping recommendations from QDM to QI-Core 4.1.1 (https://hl7.org/fhir/us/qicore/STU4.1.1/qdm-to-qicore.html)."] ; # fhir:copyright [ fhir:v "Limited proprietary coding is contained in the measure specifications for convenience. Users of the proprietary code sets should obtain all necessary licenses from the owners of these code sets. Oregon Urology Institute (OUI) and Large Urology Group Practice Association (LUGPA) disclaim all liability for the use or accuracy of third-party codes contained in the specifications.\n\nCPT(R) contained in the Measure specifications is copyright 2004-2024. American Medical Association. LOINC(R) copyright 2004-2024 Regenstrief Institute, Inc. This material contains SNOMED Clinical Terms(R) (SNOMED CT[R]) copyright 2004-2024. International Health Terminology Standards Development Organisation. ICD-10 copyright 2023 World Health Organization. All Rights Reserved."] ; # fhir:effectivePeriod [ fhir:start [ fhir:v "2026-01-01"^^xsd:date ] ; fhir:end [ fhir:v "2026-12-31"^^xsd:date ] ] ; # fhir:author ( [ fhir:name [ fhir:v "Oregon Urology" ] ; ( fhir:telecom [ fhir:system [ fhir:v "url" ] ; fhir:value [ fhir:v "www.oregonurology.com" ] ] ) ] ) ; # fhir:library ( [ fhir:v "https://madie.cms.gov/Library/CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy"^^xsd:anyURI ; fhir:link <https://madie.cms.gov/Library/CMS645FHIRBoneDensityProstateCancerAndrogenDeprivationTherapy> ] ) ; # fhir:disclaimer [ fhir:v "The performance measure is not a clinical guideline and does not establish a standard of medical care, and has not been tested for all potential applications.\n\nTHE MEASURES AND SPECIFICATIONS ARE PROVIDED \"AS IS\" WITHOUT WARRANTY OF ANY KIND.\n\nDue to technical limitations, registered trademarks are indicated by (R) or [R] and unregistered trademarks are indicated by (TM) or [TM]."] ; # fhir:rationale [ fhir:v "Androgen suppression as a treatment for prostate cancer can cause osteoporosis (Qaseem, 2008). Patients with prostrate cancer undergoing prolonged androgen deprivation therapy (ADT) incur bone loss at a rate higher than menopausal patients (Guise, 2007). In preserving bone health, the goal is to prevent or treat osteopenia/osteoporosis for the patient on ADT and to prevent or delay skeletal related events. The National Osteoporosis Foundation recommendations include a baseline assessment of bone density with a dual-energy X-ray absorptiometry (DEXA) scan and daily calcium and Vitamin D supplementation (Watts, 2012). The DEXA scan is the gold standard for bone density screening. Patients at risk for adverse bone consequences from chronic ADT do not always receive care according to evidence-based guidelines. These findings call for improved processes that standardize evidence-based practice, including baseline and follow-up bone density assessment (Watts, 2012)."] ; # fhir:clinicalRecommendationStatement [ fhir:v "Bone density screening should be performed at the start of Androgen Deprivation Therapy (ADT) for prostate cancer. It should also be performed every 2 years for the patient with continued ADT or for patients with known osteoporosis. Current insurance practice is to possibly cover the cost of bone density screening if osteoporosis is known or if there is a high-risk drug. Some patients choose to delay bone density screening until after ADT is started and they therefore have insurance authorization due to the administration of a high-risk drug."] ; # fhir:definition ( [ fhir:v "Dual Energy X-ray Absorptiometry (DEXA) - A scan that measures the bone of the spine, hip, or total body and measures bone mineral density. It is considered one of the most accurate measurements.\n"] [ fhir:v "First Androgen Deprivation Therapy - The first Androgen Deprivation Therapy (ADT) is measured as the first order or administration of ADT for an anticipated period of 12 months or greater to a patient with prostate cancer.\n"] [ fhir:v "Peripheral Dual Energy X-ray Absorptiometry (PDXA) - Bone mineral density measurement of the wrist, heel, or finger.\n"] ) ; # fhir:guidance [ fhir:v "In order to capture the practitioner's intent of androgen deprivation therapy (ADT) for a period of 12 months or greater, SNOMEDCT 456381000124102 which is Injection of leuprolide acetate for the twelve-month period (regime/therapy) is the correct code.\n\nThis eCQM is a patient-based measure.\n\nThis FHIR-based measure has been derived from the QDM-based measure: CMS645v8.\n \nPlease refer to the HL7 QI-Core Implementation Guide (https://hl7.org/fhir/us/qicore/STU4.1.1/) for more information on QI-Core and mapping recommendations from QDM to QI-Core 4.1.1 (https://hl7.org/fhir/us/qicore/STU4.1.1/qdm-to-qicore.html)."] ; # fhir:group ( [ fhir:id [ fhir:v "Group_1" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoring"^^xsd:anyURI ] ; fhir:value [ a fhir:CodeableConcept ; ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-scoring"^^xsd:anyURI ] ; fhir:code [ fhir:v "proportion" ] ; fhir:display [ fhir:v "Proportion" ] ] ) ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "boolean" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-type"^^xsd:anyURI ] ; fhir:value [ a fhir:CodeableConcept ; ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-type"^^xsd:anyURI ] ; fhir:code [ fhir:v "process" ] ; fhir:display [ fhir:v "Process" ] ] ) ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-rateAggregation"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "None" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-improvementNotation"^^xsd:anyURI ] ; fhir:value [ a fhir:CodeableConcept ; ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-improvement-notation"^^xsd:anyURI ] ; fhir:code [ fhir:v "increase" ] ; fhir:display [ fhir:v "Increased score indicates improvement" ] ] ) ] ] ) ; ( fhir:population [ fhir:id [ fhir:v "InitialPopulation_1" ] ; fhir:code [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ] ; fhir:code [ fhir:v "initial-population" ] ; fhir:display [ fhir:v "Initial Population" ] ] ) ] ; fhir:description [ fhir:v "Patients with a qualifying encounter in the measurement period AND with a diagnosis of prostate cancer AND with an order for ADT or an active medication of ADT with an intent for treatment greater than or equal to 12 months during the measurement period AND order for ADT in 3 months before to 9 months after the start of the measurement period" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "Initial Population" ] ] ] [ fhir:id [ fhir:v "Denominator_1" ] ; fhir:code [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ] ; fhir:code [ fhir:v "denominator" ] ; fhir:display [ fhir:v "Denominator" ] ] ) ] ; fhir:description [ fhir:v "Equals Initial Population" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "Denominator" ] ] ] [ fhir:id [ fhir:v "Numerator_1" ] ; fhir:code [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ] ; fhir:code [ fhir:v "numerator" ] ; fhir:display [ fhir:v "Numerator" ] ] ) ] ; fhir:description [ fhir:v "Patients with a bone density evaluation within the two years prior to the start of or less than three months after the start of ADT treatment" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "Numerator" ] ] ] [ fhir:id [ fhir:v "DenominatorException_1" ] ; fhir:code [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ] ; fhir:code [ fhir:v "denominator-exception" ] ; fhir:display [ fhir:v "Denominator Exception" ] ] ) ] ; fhir:description [ fhir:v "Patient refused the bone density evaluation at the time ordered or did not have it performed within 3 months after the start of ADT\nNOTE: Created a placeholder population due to issues around negation: refer to https://github.com/cqframework/cql-execution/issues/296, which is tied to https://oncprojectracking.healthit.gov/support/browse/BONNIEMAT-1455" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "Denominator Exception" ] ] ] ) ] ) ; # fhir:supplementalData ( [ fhir:id [ fhir:v "sde-ethnicity" ] ; ( fhir:usage [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ; fhir:code [ fhir:v "supplemental-data" ] ] ) ] ) ; fhir:description [ fhir:v "SDE Ethnicity" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "SDE Ethnicity" ] ] ] [ fhir:id [ fhir:v "sde-payer" ] ; ( fhir:usage [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ; fhir:code [ fhir:v "supplemental-data" ] ] ) ] ) ; fhir:description [ fhir:v "SDE Payer" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "SDE Payer" ] ] ] [ fhir:id [ fhir:v "sde-race" ] ; ( fhir:usage [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ; fhir:code [ fhir:v "supplemental-data" ] ] ) ] ) ; fhir:description [ fhir:v "SDE Race" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "SDE Race" ] ] ] [ fhir:id [ fhir:v "sde-sex" ] ; ( fhir:usage [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ; fhir:code [ fhir:v "supplemental-data" ] ] ) ] ) ; fhir:description [ fhir:v "SDE Sex" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "SDE Sex" ] ] ] [ fhir:id [ fhir:v "sde-ethnicity" ] ; ( fhir:usage [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ; fhir:code [ fhir:v "risk-adjustment-factor" ] ] ) ] ) ; fhir:description [ fhir:v "SDE Ethnicity" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "SDE Ethnicity" ] ] ] [ fhir:id [ fhir:v "sde-payer" ] ; ( fhir:usage [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ; fhir:code [ fhir:v "risk-adjustment-factor" ] ] ) ] ) ; fhir:description [ fhir:v "SDE Payer" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "SDE Payer" ] ] ] [ fhir:id [ fhir:v "sde-race" ] ; ( fhir:usage [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ; fhir:code [ fhir:v "risk-adjustment-factor" ] ] ) ] ) ; fhir:description [ fhir:v "SDE Race" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "SDE Race" ] ] ] [ fhir:id [ fhir:v "sde-sex" ] ; ( fhir:usage [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ; fhir:code [ fhir:v "risk-adjustment-factor" ] ] ) ] ) ; fhir:description [ fhir:v "SDE Sex" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "SDE Sex" ] ] ] ) . #
IG © 2023+ cqframework. Package gov.healthit.ecqi.ecqms#2025.0.0 based on FHIR 4.0.1. Generated 2025-09-06
Links: Table of Contents |
QA Report
| Version History | License