Quality Measure Implementation Guide, published by HL7 International / Clinical Quality Information. This guide is not an authorized publication; it is the continuous build for version 2.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-cqm/ and changes regularly. See the Directory of published versions
| Page standards status: Informative |
@prefix fhir: <http://hl7.org/fhir/> . @prefix loinc: <http://loinc.org/rdf#> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . # - resource ------------------------------------------------------------------- <http://hl7.org/fhir/Measure/EXM108-FHIR> a fhir:Measure ; fhir:nodeRole fhir:treeRoot ; fhir:Resource.id [ fhir:value "EXM108-FHIR"] ; fhir:Resource.meta [ fhir:Meta.profile [ fhir:value "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablemeasure" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablemeasure> ], [ fhir:value "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-computablemeasure" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-computablemeasure> ], [ fhir:value "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-proportionmeasure" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-proportionmeasure> ], [ fhir:value "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-cqlmeasure" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-cqlmeasure> ], [ fhir:value "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-computablemeasure" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-computablemeasure> ] ] ; fhir:Resource.language [ fhir:value "en"] ; fhir:DomainResource.text [ fhir:Narrative.status [ fhir:value "extensions" ] ; fhir:Narrative.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\"><a name=\"metadata\"> </a>Metadata</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Title</th>\n\n\n\n<td class=\"content-container\">EXM108 - Venous Thromboembolism Prophylaxis</td>\n\n\n</tr>\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Version</th>\n\n\n\n<td class=\"content-container\">2.0.0</td>\n\n\n</tr>\n\n\n\n\n\n\n\n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Identifier</th>\n\n\n\n<td class=\"content-container\">108</td>\n\n\n</tr>\n\n\n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Identifier</th>\n\n\n\n<td class=\"content-container\">urn:oid:2.16.840.1.113883.4.642.40.61.29.3</td>\n\n\n</tr>\n\n\n\n \n \n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Effective Period</th>\n\n\n\n<td class=\"content-container\">2018-01-01 through 2018-12-31</td>\n\n\n</tr>\n\n \n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Approval Date</th>\n\n\n\n<td class=\"content-container\">2019-03-08</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Last Review Date</th>\n\n\n\n<td class=\"content-container\">2019-03-08</td>\n\n\n</tr>\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Experimental</th>\n\n\n\n<td class=\"content-container\">true</td>\n\n\n</tr>\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Use Context</th>\n\n\n\n<td class=\"content-container\">\n Clinical Venue\n\n = \n EH\n\n\n</td>\n\n\n</tr>\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Jurisdiction</th>\n\n\n\n<td class=\"content-container\">\n <a href=\"http://unstats.un.org/unsd/methods/m49/m49.htm\">http://unstats.un.org/unsd/methods/m49/m49.htm</a>#001\n\n\n</td>\n\n\n</tr>\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Topic</th>\n\n\n\n<td class=\"content-container\">\n Health Quality Measure Document\n\n\n</td>\n\n\n</tr>\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\n<td class=\"content-container\">HL7 International / Clinical Quality Information</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\"><div><p>This measure assesses the number of patients who received VTE prophylaxis or have documentation why no VTE prophylaxis was given the day of or the day after hospital admission or surgery end date for surgeries that start the day of or the day after hospital admission</p>\n</div></td>\n\n\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Copyright</th>\n\n\n\n<td class=\"content-container\"><div><p>Measure specifications are in the Public Domain.</p>\n<p>LOINC(R) is a registered trademark of the Regenstrief Institute.</p>\n<p>This material contains SNOMED Clinical Terms(R) (SNOMED CT(C)) copyright 2004-2017 International Health Terminology Standards Development Organization. All rights reserved.</p>\n</div></td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Disclaimer</th>\n\n\n\n<td class=\"content-container\"><div><p>These performance measures are not clinical guidelines and do not establish a standard of medical care, and have not been tested for all potential applications. The measures and specifications are provided without warranty</p>\n</div></td>\n\n\n</tr>\n\n\n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Measure Basis</th>\n\n\n\n<td class=\"content-container\">Encounter</td>\n\n\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Measure Scoring</th>\n\n\n\n<td class=\"content-container\">\n Proportion\n\n\n</td>\n\n\n</tr>\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Improvement Notation</th>\n\n\n\n<td class=\"content-container\">\n Increased score indicates improvement\n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Measure Type</th>\n\n\n\n<td class=\"content-container\">\n <a href=\"http://terminology.hl7.org/7.3.0/CodeSystem-measure-type.html\">http://terminology.hl7.org/CodeSystem/measure-type</a>#process\n\n\n</td>\n\n\n</tr>\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\n<td class=\"content-container\"><div><p>Hospitalized patients at high-risk for VTE may develop an asymptomatic deep vein thrombosis (DVT), and die from pulmonary embolism (PE) even before the diagnosis is suspected. The majority of fatal events occur as sudden or abrupt death, underscoring the importance of prevention as the most critical action step for reducing death from PE (Geerts, et al, 2008).</p>\n<p>The estimated annual incidence of deep-vein thrombosis (DVT) and pulmonary embolism (PE), known collectively as venous thromboembolism (VTE), is approximately 900,000 (Geerts, et al, 2008). Approximately two-thirds of cases of DVT or PE are associated with recent hospitalization. This is consistent with the 2001 report by The Agency for Healthcare Research and Quality (AHRQ). AHRQ indicates that \"the appropriate application of effective preventive measures in hospitals has major potential for improving patient safety by reducing the incidence of venous thromboembolism\" (Shojania, 2001).</p>\n<p>Despite its proven effectiveness, rates of appropriate thromboprophylaxis remain low in both medical and surgical patients. A recent analysis from the ENDORSE survey, which evaluated prophylaxis rates in 17,084 major surgery patients, found that more than one third of patients at risk for VTE (38%) did not receive prophylaxis and that rates varied by surgery type (Cohen, et al., 2008).</p>\n<p>In a review of evidence-based patient safety practices, the Agency for Healthcare Research and Quality defined thromboprophylaxis against VTE as the \"number one patient safety practice\" for hospitalized patients (Shojania, 2001). Updated \"safe practices\" published by the National Quality Forum (NQF) recommend routine evaluation of hospitalized patients for risk of VTE and use of appropriate prophylaxis (National Quality Forum. National Voluntary Consensus Standards for Prevention and Care of Venous Thromboembolism, 2006).</p>\n<p>As noted by the ACCP, a vast number of randomized clinical trials provide irrefutable evidence that thromboprophylaxis reduces VTE events, and there are studies that have also shown that fatal PE is prevented by thromboprophylaxis (Geerts, et al. 2008).</p>\n<p>Some select surgeries have previously been monitored in the Surgical Care Improvement Project; since performance on these surgeries has achieved very high levels, they are not included in this measure.</p>\n</div></td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Clinical Recommendation Statement</th>\n\n\n\n<td class=\"content-container\"><div><p>Failure to recognize and protect patients at risk for venous thromboembolism (VTE) increases the chances for acutely ill hospitalized patients at high risk for developing a deep vein thrombosis or dying from a pulmonary emboli. Screening all patients is the only evidence based practice in reducing incidence of disease. All hospitalized patients should be evaluated for primary VTE prophylaxis, and given appropriate prophylaxis when indicated.</p>\n</div></td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n <th scope=\"row\" class=\"row-header\"><a name=\"contents\"> </a>Contents</th>\n <td class=\"content-container\">\n <em><a href=\"#metadata\">Metadata</a></em>\n <br/>\n <em><a href=\"#contents\">Contents</a></em>\n <br/>\n <em><a href=\"#measure-rates\">Measure Rates (Groups)</a></em>\n <br/>\n <em><a href=\"#supplemental-data\">Supplemental Data</a></em>\n <br/>\n \n <em><a href=\"#measure-logic\">Measure Logic</a></em>\n <br/>\n \n \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 \n \n \n </td>\n</tr>\n\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"measure-rates\"> </a>Measure Rates (Groups)</th>\n\n\n</tr>\n\n \n \n \n \n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Rate (Group) (ID: primary)</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 <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>: primary-exm108-initial-population\n <br/>\n \n \n <em>Description</em>:\n <p style=\"white-space: pre-line\" class=\"tab-one\">Patients age 18 and older discharged from hospital inpatient acute care without a diagnosis of venous thromboembolism (VTE) or obstetrics with a length of stay less than or equal to 120 days that ends during the measurement period</p>\n \n \n \n \n \n <em>Criteria</em>: <a href=\"#primary-primary-exm108-initial-population\">Initial Population</a> \n \n \n \n \n \n \n </td>\n </tr>\n \n\n \n \n\n \n \n \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>: primary-exm108-denominator\n <br/>\n \n \n <em>Description</em>:\n <p style=\"white-space: pre-line\" class=\"tab-one\">All patients in the initial population</p>\n \n \n \n \n \n <em>Criteria</em>: <a href=\"#primary-primary-exm108-denominator\">Denominator</a> \n \n \n \n \n \n \n </td>\n </tr>\n \n\n \n \n\n \n \n \n \n \n \n <tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Denominator Exclusion</th>\n\n\n \n <td class=\"content-container\">\n \n <em>ID</em>: primary-exm108-denominator-exclusion\n <br/>\n \n \n <em>Description</em>:\n <p style=\"white-space: pre-line\" class=\"tab-one\">* Patients who have a length of stay less than 2 days\n* Patients with comfort measures documented anytime between arrival and the day after hospital admission\n* Patients with comfort measures documented by the day after surgery end date for surgeries that start the day of or the day after hospital admission\n* Patients who are direct admits to intensive care unit (ICU), or transferred to ICU the day of or the day after hospital admission with ICU length of stay greater than or equal to one day\n* Patients with a principal diagnosis of mental disorders or stroke\n* Patients with a principal procedure of Surgical Care Improvement Project (SCIP) VTE selected surgeries</p>\n \n \n \n \n \n <em>Criteria</em>: <a href=\"#primary-primary-exm108-denominator-exclusion\">Denominator Exclusion</a> \n \n \n \n \n \n \n </td>\n </tr>\n \n\n \n \n\n \n \n \n\n \n \n \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>: primary-exm108-numerator\n <br/>\n \n \n <em>Description</em>:\n <p style=\"white-space: pre-line\" class=\"tab-one\">Patients who received VTE prophylaxis:\n- the day of or the day after hospital admission\n- the day of or the day after surgery end date for surgeries that end the day of or the day after hospital admission\n\nPatients who have documentation of a reason why no VTE prophylaxis was given:\n- between arrival and hospital admission\n- the day of or the day after hospital admission\n- the day of or the day after surgery end date (for surgeries that end the day of or the day after hospital admission)</p>\n \n \n \n \n \n <em>Criteria</em>: <a href=\"#primary-primary-exm108-numerator\">Numerator</a> \n \n \n \n \n \n \n </td>\n </tr>\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=\"supplemental-data\"> </a>Supplemental Data Elements</th>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\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 \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 \n \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#exm108-sde-ethnicity\">SDE Ethnicity</a> \n \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 \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 \n \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#exm108-sde-payer\">SDE Payer</a> \n \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 \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 \n \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#exm108-sde-race\">SDE Race</a> \n \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 \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 \n \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#exm108-sde-sex\">SDE Sex</a> \n \n \n \n </td>\n</tr>\n\n\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"measure-logic\"> </a>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\n<td class=\"content-container\"><a href=\"Library-EXM108.html\">EXM108 - Venous Thromboembolism Prophylaxis Library</a></td>\n\n\n</tr>\n\n\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 \n \n \n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Rate (Group) (ID: primary)</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 \n \n \n \n \n \n \n \n \n \n \n \n \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 Initial Population\n \n </th>\n</tr>\n<tr>\n\n <td>\n \n \n \n \n \n <a name=\"primary-primary-exm108-initial-population\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Initial Population\":\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\"</code></pre>\n \n \n <a href=\"#exm108-initial-population\"><em>Definition</em></a>\n \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 \n \n \n \n \n \n\n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \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 Denominator\n \n </th>\n</tr>\n<tr>\n\n <td>\n \n \n \n \n \n <a name=\"primary-primary-exm108-denominator\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator\":\n \"Initial Population\"</code></pre>\n \n \n <a href=\"#exm108-denominator\"><em>Definition</em></a>\n \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 \n \n \n \n\n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \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 Denominator Exclusion\n \n </th>\n</tr>\n<tr>\n\n <td>\n \n \n \n \n \n <a name=\"primary-primary-exm108-denominator-exclusion\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator Exclusion\":\n \"Encounter Less Than 2 Days\"\n union \"Encounter With ICU Location Stay 1 Day or More\"\n union \"Encounter With Principal Diagnosis of Mental Disorder or Stroke\"\n union \"Encounter With Principal Procedure of SCIP VTE Selected Surgery\"\n union \"Encounter With Intervention Comfort Measures From Day of Start of Hospitalization To Day After Admission\"\n union \"Encounter With Intervention Comfort Measures on Day of or Day After Procedure\"</code></pre>\n \n \n <a href=\"#exm108-denominator-exclusion\"><em>Definition</em></a>\n \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 \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \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 Numerator\n \n </th>\n</tr>\n<tr>\n\n <td>\n \n \n \n \n \n <a name=\"primary-primary-exm108-numerator\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Numerator\":\n \"Encounter With VTE Prophylaxis Received on Day of or Day After Admission or Procedure\"\n union ( \"Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure\"\n intersect ( \"Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE\"\n union \"Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery\"\n )\n )\n union \"Encounter With Low Risk for VTE or Anticoagulant Administered\"\n union \"Encounter With No VTE Prophylaxis Due to Medical Reason\"\n union \"Encounter With No VTE Prophylaxis Due to Patient Refusal\"</code></pre>\n \n \n <a href=\"#exm108-numerator\"><em>Definition</em></a>\n \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 \n \n \n \n \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 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 \n \n \n \n <a name=\"supplementaldataelements-sde-sex\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Sex\":\n case\n when Patient.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' }\n when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' }\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\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\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 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 \n \n \n \n <a name=\"supplementaldataelements-sde-payer\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Payer\":\n [Coverage: type in \"Payer\"] 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<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\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 \n \n \n \n <a name=\"supplementaldataelements-sde-ethnicity\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Ethnicity\":\n (flatten (\n Patient.extension Extension\n where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'\n return Extension.extension\n )) E\n where E.url = 'ombCategory'\n or E.url = 'detailed'\n return E.value as Coding</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 <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\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 \n \n \n \n <a name=\"supplementaldataelements-sde-race\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Race\":\n (flatten (\n Patient.extension Extension\n where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race'\n return Extension.extension\n )) E\n where E.url = 'ombCategory'\n or E.url = 'detailed'\n return E.value as Coding</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\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-sde-sex\"> </a>\n \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\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-admission-without-vte-or-obstetrical-conditions\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Admission Without VTE or Obstetrical Conditions\":\n Global.\"Inpatient Encounter\" InpatientEncounter\n where not exists (\n (Global.EncounterDiagnosis(InpatientEncounter)) EncounterDiagnosis\n where EncounterDiagnosis.code in \"Obstetrics\"\n or EncounterDiagnosis.code in \"Venous Thromboembolism\"\n or EncounterDiagnosis.code in \"Obstetrics VTE\"\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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-encounter-with-age-range-and-without-vte-diagnosis-or-obstetrical-conditions\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// Note: added FHIRHelpers.ToDate() in R4\ndefine \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\":\n ( Global.\"Inpatient Encounter\" InpatientEncounter\n where Global.\"CalendarAgeInYearsAt\"(FHIRHelpers.ToDate(Patient.birthDate), start of InpatientEncounter.period) >= 18\n )\n intersect \"Admission Without VTE or Obstetrical Conditions\"</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-vte-prophylaxis-by-medication-administered-or-device-applied\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// 10/29: Replaced DeviceUseStatement with Procedure with a new value set and procedure.usdCode for specifying devices\ndefine \"VTE Prophylaxis by Medication Administered or Device Applied\":\n ( [\"MedicationAdministration\": medication in \"Low Dose Unfractionated Heparin for VTE Prophylaxis\"] VTEMedication\n where VTEMedication.status ='completed'\n and VTEMedication.dosage.route in \"Subcutaneous route\"\n )\n union ([\"MedicationAdministration\": medication in \"Low Molecular Weight Heparin for VTE Prophylaxis\"] LMWH where LMWH.status = 'completed')\n union ([\"MedicationAdministration\": medication in \"Injectable Factor Xa Inhibitor for VTE Prophylaxis\"] FactorXa where FactorXa.status = 'completed')\n union ([\"MedicationAdministration\": medication in \"Warfarin\"] WarfarinAdmin where WarfarinAdmin.status = 'completed')\n union (\n [\"Procedure\": \"Device Application\"] DeviceApplied\n where DeviceApplied.status = 'complete'\n and (\n DeviceApplied.usedCode in \"Intermittent pneumatic compression devices (IPC)\"\n or DeviceApplied.usedCode in\"Venous foot pumps (VFP)\"\n or DeviceApplied.usedCode in \"Graduated compression stockings (GCS)\"\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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-encounter-with-vte-prophylaxis-received-on-day-of-or-day-after-admission-or-procedure\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Encounter With VTE Prophylaxis Received on Day of or Day After Admission or Procedure\":\n ( from\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\n \"VTE Prophylaxis by Medication Administered or Device Applied\" VTEProphylaxis\n where Coalesce(VTEProphylaxis.effective.toInterval(), VTEProphylaxis.performed.toInterval()) starts during TJC.\"CalendarDayOfOrDayAfter\"(start of QualifyingEncounter.period)\n return QualifyingEncounter\n )\n union (\n from\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\n [\"Procedure\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\n \"VTE Prophylaxis by Medication Administered or Device Applied\" VTEProphylaxis\n where AnesthesiaProcedure.performed.toInterval() ends 1 day after day of start of QualifyingEncounter.period\n and Coalesce(VTEProphylaxis.effective.toInterval(), VTEProphylaxis.performed.toInterval()) starts during TJC.\"CalendarDayOfOrDayAfter\"(end of AnesthesiaProcedure.performed.toInterval())\n return QualifyingEncounter\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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-encounter-with-medication-oral-factor-xa-inhibitor-administered-on-day-of-or-day-after-admission-or-procedure\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure\":\n ( from\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\n [\"MedicationAdministration\": medication in \"Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment\"] FactorXaMedication\n where FactorXaMedication.status = 'completed'\n and FactorXaMedication.effective.toInterval() starts during TJC.\"CalendarDayOfOrDayAfter\"(start of QualifyingEncounter.period)\n return QualifyingEncounter\n )\n union ( \n from\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\n [\"Procedure\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\n [\"MedicationAdministration\": medication in \"Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment\"] FactorXaMedication\n where FactorXaMedication.status = 'completed'\n and AnesthesiaProcedure.status = 'completed'\n and AnesthesiaProcedure.performed.toInterval() ends 1 day after day of start of QualifyingEncounter.period\n and FactorXaMedication.effective.toInterval() starts during TJC.\"CalendarDayOfOrDayAfter\"(end of AnesthesiaProcedure.performed.toInterval())\n return QualifyingEncounter\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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-encounter-with-prior-or-present-diagnosis-of-atrial-fibrillation-or-vte\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE\":\n ( \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n with [\"Condition\": code in \"Atrial Fibrillation/Flutter\"] AtrialFibrillation\n such that AtrialFibrillation.prevalenceInterval() starts on or before end of QualifyingEncounter.period\n )\n union ( \n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n where Global.EncounterDiagnosis(QualifyingEncounter).code in \"Atrial Fibrillation/Flutter\"\n )\n union ( \n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n with [\"Condition\": code in \"Venous Thromboembolism\"] VTEDiagnosis\n such that (\n VTEDiagnosis.clinicalStatus ~ Global.\"inactive\"\n or VTEDiagnosis.clinicalStatus ~ Global.\"remission\"\n or VTEDiagnosis.clinicalStatus ~ Global.\"resolved\" \n )\n and VTEDiagnosis.onset.toInterval() before start of QualifyingEncounter.period\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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-encounter-with-prior-or-present-procedure-of-hip-or-knee-replacement-surgery\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery\":\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n with ( \n [\"Procedure\": \"Hip Replacement Surgery\"]\n union [\"Procedure\": \"Knee Replacement Surgery\"] \n ) HipKneeProcedure\n such that HipKneeProcedure.status = 'completed'\n and HipKneeProcedure.performed.toInterval() starts on or before end of QualifyingEncounter.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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-is-in-low-risk-for-vte-or-on-anticoagulant\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Is In Low Risk for VTE or On Anticoagulant\":\n ( [\"Observation\": \"Risk for venous thromboembolism\"] VTERiskAssessment\n where VTERiskAssessment.value in \"Low Risk\"\n and VTERiskAssessment.status in {'final','amended', 'corrected'}\n )\n union ( [\"Observation\": \"INR\"] INRLabTest\n where INRLabTest.value as Quantity > 3.0\n and INRLabTest.status in {'final','amended', 'corrected'}\n return \"Observation\" { id: INRLabTest.id, effective: INRLabTest.issued }\n )\n union ((( [\"MedicationAdministration\": \"Unfractionated Heparin\"] UnfractionatedHeparin\n where UnfractionatedHeparin.dosage.route in \"Intravenous route\"\n )\n union [\"MedicationAdministration\": \"Direct Thrombin Inhibitor\"]\n union [\"MedicationAdministration\": \"Glycoprotein IIb/IIIa Inhibitors\"] ) AnticoagulantMedication\n where AnticoagulantMedication.status = 'complete'\n return \"Observation\" { id: AnticoagulantMedication.id, effective: AnticoagulantMedication.effective }\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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-low-risk-for-vte-or-anticoagulant-administered-from-day-of-start-of-hospitalization-to-day-after-admission\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission\":\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n with \"Is In Low Risk for VTE or On Anticoagulant\" VTERiskAssessment\n such that VTERiskAssessment.effective.toInterval() starts during VTEICU.\"FromDayOfStartOfHospitalizationToDayAfterAdmission\"(QualifyingEncounter)</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-low-risk-for-vte-or-anticoagulant-administered-on-day-of-or-day-after-procedure\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure\":\n from\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\n [\"Procedure\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\n \"Is In Low Risk for VTE or On Anticoagulant\" VTERiskAssessment\n where AnesthesiaProcedure.performed.toInterval() ends 1 day after day of start of QualifyingEncounter.period\n and VTERiskAssessment.effective.toInterval() starts during TJC.\"CalendarDayOfOrDayAfter\"(end of AnesthesiaProcedure.performed.toInterval())\n return QualifyingEncounter</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-encounter-with-low-risk-for-vte-or-anticoagulant-administered\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Encounter With Low Risk for VTE or Anticoagulant Administered\":\n \"Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission\"\n union \"Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure\"</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-no-vte-prophylaxis-medication-administered-or-ordered\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"No VTE Prophylaxis Medication Administered or Ordered\":\n (( \n [\"MedicationAdministration\": medication in \"Low Dose Unfractionated Heparin for VTE Prophylaxis\"]\n union [\"MedicationAdministration\": medication in \"Low Molecular Weight Heparin for VTE Prophylaxis\"]\n union [\"MedicationAdministration\": medication in \"Injectable Factor Xa Inhibitor for VTE Prophylaxis\"]\n union [\"MedicationAdministration\": medication in \"Warfarin\"]\n ) MedicationAdm\n where MedicationAdm.status = 'not-done'\n )\n union\n (( \n [\"MedicationRequest\": medication in \"Low Dose Unfractionated Heparin for VTE Prophylaxis\"]\n union [\"MedicationRequest\": medication in \"Low Molecular Weight Heparin for VTE Prophylaxis\"]\n union [\"MedicationRequest\": medication in \"Injectable Factor Xa Inhibitor for VTE Prophylaxis\"]\n union [\"MedicationRequest\": medication in \"Warfarin\"]\n ) MedicationOrder\n where MedicationOrder.doNotPerform is true\n and MedicationOrder.status in {'completed', 'cancelled'}\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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-no-vte-prophylaxis-medication-due-to-medical-reason-from-day-of-start-of-hospitalization-to-day-after-admission\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission\":\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n with \"No VTE Prophylaxis Medication Administered or Ordered\" NoVTEMedication\n such that Coalesce(NoVTEMedication.statusReason, NoVTEMedication.reasonCode) in \"Medical Reason\"\n and Coalesce(NoVTEMedication.authoredOn, start of NoVTEMedication.effective.toInterval()) during VTEICU.\"FromDayOfStartOfHospitalizationToDayAfterAdmission\"(QualifyingEncounter)</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-no-vte-prophylaxis-device-applied-or-ordered\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"No VTE Prophylaxis Device Applied or Ordered\":\n ((\n [\"ServiceRequest\": \"Venous foot pumps (VFP)\"]\n union [\"ServiceRequest\": \"Intermittent pneumatic compression devices (IPC)\"]\n union [\"ServiceRequest\": \"Graduated compression stockings (GCS)\"]\n ) DeviceOrder\n where DeviceOrder.status = 'completed'\n and DeviceOrder.doNotPerform is true\n return {\n id: DeviceOrder.id, \n requestStatusReason: DeviceOrder.statusReason(), \n authoredOn: DeviceOrder.authoredOn\n }\n )\n union (\n [\"Procedure\": \"Device Application\"] DeviceApplied\n where (DeviceApplied.usedCode in \"Intermittent pneumatic compression devices (IPC)\"\n or DeviceApplied.usedCode in \"Venous foot pumps (VFP)\"\n or DeviceApplied.usedCode in \"Graduated compression stockings (GCS)\"\n )\n and DeviceApplied.status = 'not-done'\n return {\n id: DeviceApplied.id, \n requestStatusReason: DeviceApplied.statusReason, \n authoredOn: DeviceApplied.recorded()\n }\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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-no-vte-prophylaxis-device-due-to-medical-reason-from-day-of-start-of-hospitalization-to-day-after-admission\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission\":\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n with \"No VTE Prophylaxis Device Applied or Ordered\" NoVTEDevice\n such that NoVTEDevice.requestStatusReason in \"Medical Reason\"\n and NoVTEDevice.authoredOn during VTEICU.\"FromDayOfStartOfHospitalizationToDayAfterAdmission\"(QualifyingEncounter)</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-no-vte-prophylaxis-medication-due-to-medical-reason-on-day-of-or-day-after-procedure\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure\":\n from\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\n [\"Procedure\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\n \"No VTE Prophylaxis Medication Administered or Ordered\" NoVTEMedication\n where Coalesce(NoVTEMedication.statusReason,NoVTEMedication.reasonCode) in \"Medical Reason\"\n and AnesthesiaProcedure.status = 'completed'\n and AnesthesiaProcedure.performed.toInterval() ends 1 day after day of start of QualifyingEncounter.period\n and Coalesce(NoVTEMedication.authoredOn, start of NoVTEMedication.effective.toInterval()) during TJC.\"CalendarDayOfOrDayAfter\"(end of AnesthesiaProcedure.performed.toInterval())\n return QualifyingEncounter</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-no-vte-prophylaxis-device-due-to-medical-reason-on-day-of-or-day-after-procedure\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure\":\n from\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\n [\"Procedure\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\n \"No VTE Prophylaxis Device Applied or Ordered\" NoVTEDevice\n where NoVTEDevice.requestStatusReason in \"Medical Reason\"\n and AnesthesiaProcedure.status = 'completed'\n and AnesthesiaProcedure.performed.toInterval() ends 1 day after day of start of QualifyingEncounter.period\n and NoVTEDevice.authoredOn during TJC.\"CalendarDayOfOrDayAfter\"(end of AnesthesiaProcedure.performed.toInterval())\n return QualifyingEncounter</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-encounter-with-no-vte-prophylaxis-due-to-medical-reason\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Encounter With No VTE Prophylaxis Due to Medical Reason\":\n ( \"No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission\"\n intersect \"No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission\"\n )\n union ( \n \"No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure\"\n intersect \"No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure\"\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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-no-vte-prophylaxis-medication-or-device-due-to-patient-refusal\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"No VTE Prophylaxis Medication or Device Due to Patient Refusal\":\n ( \n \"No VTE Prophylaxis Medication Administered or Ordered\" NoVTEMedication\n where Coalesce(NoVTEMedication.statusReason,NoVTEMedication.reasonCode) in \"Patient Refusal\"\n )\n union (\n \"No VTE Prophylaxis Device Applied or Ordered\" NoVTEDevice\n where NoVTEDevice.requestStatusReason in \"Patient Refusal\"\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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-no-vte-prophylaxis-due-to-patient-refusal-from-day-of-start-of-hospitalization-to-day-after-admission\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"No VTE Prophylaxis Due to Patient Refusal From Day of Start of Hospitalization To Day After Admission\":\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n with \"No VTE Prophylaxis Medication or Device Due to Patient Refusal\" PatientRefusal\n such that Coalesce(start of PatientRefusal.effective.toInterval(), PatientRefusal.authoredOn)\n during VTEICU.\"FromDayOfStartOfHospitalizationToDayAfterAdmission\"(QualifyingEncounter)</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-no-vte-prophylaxis-due-to-patient-refusal-on-day-of-or-day-after-procedure\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure\":\n from\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\n [\"Procedure\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\n \"No VTE Prophylaxis Medication or Device Due to Patient Refusal\" PatientRefusal\n where AnesthesiaProcedure.performed.toInterval() ends 1 day after day of start of QualifyingEncounter.period\n and Coalesce(start of PatientRefusal.effective.toInterval(), PatientRefusal.authoredOn)\n during TJC.\"CalendarDayOfOrDayAfter\"(end of AnesthesiaProcedure.performed.toInterval())\n return QualifyingEncounter</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-encounter-with-no-vte-prophylaxis-due-to-patient-refusal\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Encounter With No VTE Prophylaxis Due to Patient Refusal\":\n \"No VTE Prophylaxis Due to Patient Refusal From Day of Start of Hospitalization To Day After Admission\"\n union \"No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure\"</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-numerator\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Numerator\":\n \"Encounter With VTE Prophylaxis Received on Day of or Day After Admission or Procedure\"\n union ( \"Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure\"\n intersect ( \"Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE\"\n union \"Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery\"\n )\n )\n union \"Encounter With Low Risk for VTE or Anticoagulant Administered\"\n union \"Encounter With No VTE Prophylaxis Due to Medical Reason\"\n union \"Encounter With No VTE Prophylaxis Due to Patient Refusal\"</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-initial-population\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Initial Population\":\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\"</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-denominator\"> </a>\n \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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-sde-payer\"> </a>\n \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\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-sde-ethnicity\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Ethnicity\":\n SDE.\"SDE Ethnicity\"</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-encounter-less-than-2-days\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Encounter Less Than 2 Days\":\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n where QualifyingEncounter.period.lengthInDays() < 2</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-encounter-with-icu-location-stay-1-day-or-more\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Encounter With ICU Location Stay 1 Day or More\":\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n where exists ( QualifyingEncounter.location Location\n where Global.GetLocation(Location.location).type in \"Intensive Care Unit\"\n and Location.period.lengthInDays() >= 1\n and Location.period starts during TJC.\"CalendarDayOfOrDayAfter\"(start of QualifyingEncounter.period)\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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-encounter-with-principal-diagnosis-of-mental-disorder-or-stroke\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Encounter With Principal Diagnosis of Mental Disorder or Stroke\":\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n where QualifyingEncounter.principalDiagnosis().diagnosis in \"Mental Health Diagnoses\"\n or QualifyingEncounter.principalDiagnosis().diagnosis in \"Hemorrhagic Stroke\"\n or QualifyingEncounter.principalDiagnosis().diagnosis in \"Ischemic Stroke\"</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-scip-vte-selected-surgery\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SCIP VTE Selected Surgery\":\n ( [\"Procedure\": \"General Surgery\"]\n union [\"Procedure\": \"Gynecological Surgery\"]\n union [\"Procedure\": \"Hip Fracture Surgery\"]\n union [\"Procedure\": \"Hip Replacement Surgery\"]\n union [\"Procedure\": \"Intracranial Neurosurgery\"]\n union [\"Procedure\": \"Knee Replacement Surgery\"]\n union [\"Procedure\": \"Urological Surgery\"] ) Procedure\n where Procedure.status = 'completed'</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-encounter-with-principal-procedure-of-scip-vte-selected-surgery\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Encounter With Principal Procedure of SCIP VTE Selected Surgery\":\n from\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\n \"SCIP VTE Selected Surgery\" SelectedProcedure\n let EncounterProcedure: QualifyingEncounter.principalProcedure()\n where EncounterProcedure.procedure.references(SelectedProcedure)\n and SelectedProcedure.performed.toInterval() during QualifyingEncounter.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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-intervention-comfort-measures\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Intervention Comfort Measures\":\n ([\"ServiceRequest\": \"Comfort Measures\"] P\n where P.intent = 'order'\n )\n union\n ([\"Procedure\": \"Comfort Measures\"] InterventionPerformed\n where InterventionPerformed.status in {'completed', 'in-progress'})</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-encounter-with-intervention-comfort-measures-from-day-of-start-of-hospitalization-to-day-after-admission\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Encounter With Intervention Comfort Measures From Day of Start of Hospitalization To Day After Admission\":\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n with \"Intervention Comfort Measures\" ComfortMeasure\n such that Coalesce(start of ComfortMeasure.performed.toInterval(), ComfortMeasure.authoredOn) during VTEICU.\"FromDayOfStartOfHospitalizationToDayAfterAdmission\"(QualifyingEncounter)</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-encounter-with-intervention-comfort-measures-on-day-of-or-day-after-procedure\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Encounter With Intervention Comfort Measures on Day of or Day After Procedure\":\n from\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\n [\"Procedure\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\n \"Intervention Comfort Measures\" ComfortMeasure\n where AnesthesiaProcedure.status = 'completed'\n and AnesthesiaProcedure.performed.toInterval() ends 1 day after day of start of QualifyingEncounter.period\n and Coalesce(start of ComfortMeasure.performed.toInterval(), ComfortMeasure.authoredOn) during TJC.\"CalendarDayOfOrDayAfter\"(end of AnesthesiaProcedure.performed.toInterval())\n return QualifyingEncounter</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-denominator-exclusion\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator Exclusion\":\n \"Encounter Less Than 2 Days\"\n union \"Encounter With ICU Location Stay 1 Day or More\"\n union \"Encounter With Principal Diagnosis of Mental Disorder or Stroke\"\n union \"Encounter With Principal Procedure of SCIP VTE Selected Surgery\"\n union \"Encounter With Intervention Comfort Measures From Day of Start of Hospitalization To Day After Admission\"\n union \"Encounter With Intervention Comfort Measures on Day of or Day After Procedure\"</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXM108</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exm108-sde-race\"> </a>\n \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\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n\n \n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> TJCOverall</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"tjcoverall-calendardayofordayafter\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function \"CalendarDayOfOrDayAfter\"(StartValue DateTime ):\n Interval(Global.\"ToDate\"(StartValue), Global.\"ToDate\"(StartValue + 2 days))</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\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> VTEICU</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"vteicu-fromdayofstartofhospitalizationtodayafteradmission\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function \"FromDayOfStartOfHospitalizationToDayAfterAdmission\"(Encounter FHIR.Encounter ):\n Interval[Global.\"ToDate\"(start of Global.\"HospitalizationWithObservation\"(Encounter)), Global.\"ToDate\"(start of Encounter.period + 2 days))</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> MATGlobalCommonFunctions</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"matglobalcommonfunctions-inpatient-encounter\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Inpatient Encounter\":\n [Encounter: \"Encounter Inpatient\"] EncounterInpatient\n where EncounterInpatient.status = 'finished'\n and \"LengthInDays\"(EncounterInpatient.period) <= 120\n and EncounterInpatient.period ends during \"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 \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> MATGlobalCommonFunctions</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"matglobalcommonfunctions-lengthindays\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function \"LengthInDays\"(Value Interval<DateTime>):\n difference in days between start of Value and end of Value</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> MATGlobalCommonFunctions</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"matglobalcommonfunctions-calendarageinyearsat\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function \"CalendarAgeInYearsAt\"(BirthDateTime DateTime, AsOf DateTime):\n years between ToDate(BirthDateTime)and ToDate(AsOf)</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> MATGlobalCommonFunctions</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"matglobalcommonfunctions-todate\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function \"ToDate\"(Value DateTime):\n DateTime(year from Value, month from Value, day from Value, 0, 0, 0, 0, timezoneoffset from Value)</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> MATGlobalCommonFunctions</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"matglobalcommonfunctions-encounterdiagnosis\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function \"EncounterDiagnosis\"(Encounter Encounter):\n Encounter.diagnosis D\n return singleton from ([Condition] C where C.id = \"GetId\"(D.condition.reference))</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> MATGlobalCommonFunctions</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"matglobalcommonfunctions-getid\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function \"GetId\"(uri String):\n Last(Split(uri, '/'))</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<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> MATGlobalCommonFunctions</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"matglobalcommonfunctions-hospitalizationwithobservation\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function \"HospitalizationWithObservation\"(TheEncounter FHIR.Encounter):\n TheEncounter Visit\n let ObsVisit: Last([Encounter: \"Observation Services\"] LastObs\n where LastObs.period ends 1 hour or less on or before start of Visit.period\n sort by end of period\n ),\n VisitStart: Coalesce(start of ObsVisit.period, start of Visit.period),\n EDVisit: Last([Encounter: \"Emergency Department Visit\"] LastED\n where LastED.period ends 1 hour or less on or before VisitStart\n sort by end of period\n )\n return Interval[Coalesce(start of EDVisit.period, VisitStart), end of Visit.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<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> MATGlobalCommonFunctions</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"matglobalcommonfunctions-getlocation\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// Returns the location for the given location reference\ndefine function GetLocation(reference Reference):\n singleton from (\n [Location] L where L.id = GetId(reference.reference)\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\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRCommon</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"fhircommon-tointerval\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Normalizes a value that is a choice of timing-valued types to an equivalent interval\n@comment: Normalizes a choice type of FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instance, FHIR.string, FHIR.Age, or FHIR.Range types\nto an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible\nrepresentations for timing-valued elements in FHIR, allowing this function to be used across any resource.\n\nThe input can be provided as a dateTime, Period, Timing, instant, string, Age, or Range.\nThe intent of this function is to provide a clear and concise mechanism to treat single\nelements that have multiple possible representations as intervals so that logic doesn't have to account\nfor the variability. More complex calculations (such as medication request period or dispense period\ncalculation) need specific guidance and consideration. That guidance may make use of this function, but\nthe focus of this function is on single element calculations where the semantics are unambiguous.\nIf the input is a dateTime, the result a DateTime Interval beginning and ending on that dateTime.\nIf the input is a Period, the result is a DateTime Interval.\nIf the input is a Timing, an error is raised indicating a single interval cannot be computed from a Timing.\nIf the input is an instant, the result is a DateTime Interval beginning and ending on that instant.\nIf the input is a string, an error is raised indicating a single interval cannot be computed from a string.\nIf the input is an Age, the result is a DateTime Interval beginning when the patient was the given Age,\nand ending immediately prior to when the patient was the given Age plus one year.\nIf the input is a Range, the result is a DateTime Interval beginning when the patient was the Age given\nby the low end of the Range, and ending immediately prior to when the patient was the Age given by the\nhigh end of the Range plus one year.\n\nNOTE: Due to the\ncomplexity of determining a single interval from a Timing or String type, this function will throw a run-time exception if it is used\nwith a Timing or String.\n*/\ndefine fluent function toInterval(choice Choice<FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instant, FHIR.string, FHIR.Age, FHIR.Range>):\n case\n when choice is FHIR.dateTime then\n Interval[FHIRHelpers.ToDateTime(choice as FHIR.dateTime), FHIRHelpers.ToDateTime(choice as FHIR.dateTime)]\n when choice is FHIR.Period then\n FHIRHelpers.ToInterval(choice as FHIR.Period)\n when choice is FHIR.instant then\n Interval[FHIRHelpers.ToDateTime(choice as FHIR.instant), FHIRHelpers.ToDateTime(choice as FHIR.instant)]\n when choice is FHIR.Age then\n Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age),\n FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age) + 1 year)\n when choice is FHIR.Range then\n Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).low),\n FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).high) + 1 year)\n when choice is FHIR.Timing then\n Message(null as Interval<DateTime>, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a Timing value is not supported')\n when choice is FHIR.string then\n Message(null as Interval<DateTime>, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a String value is not supported')\n else\n null as Interval<DateTime>\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<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRCommon</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"fhircommon-prevalenceinterval\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Returns an interval representing the normalized prevalence period of a given Condition resource.\n@comment: Uses the toInterval and toAbatementInterval functions to determine the widest potential interval from\nonset to abatement as specified in the given Condition.\n*/\ndefine fluent function prevalenceInterval(condition Condition):\nif condition.clinicalStatus ~ \"active\"\n or condition.clinicalStatus ~ \"recurrence\"\n or condition.clinicalStatus ~ \"relapse\" then\n Interval[start of condition.onset.toInterval(), end of condition.abatementInterval()]\nelse\n (end of condition.abatementInterval()) abatementDate\n return \n if abatementDate is null then\n Interval[start of condition.onset.toInterval(), abatementDate)\n else\n Interval[start of condition.onset.toInterval(), abatementDate]</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRCommon</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"fhircommon-abatementinterval\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Returns an interval representing the normalized Abatement of a given Condition resource.\n@comment: @comment: If the abatement element of the Condition is represented as a DateTime, the result\nis an interval beginning and ending on that DateTime.\nIf the abatement is represented as a Quantity, the quantity is expected to be a calendar-duration and is interpreted as the age of the patient. The\nresult is an interval from the date the patient turned that age to immediately before one year later.\nIf the abatement is represented as a Quantity Interval, the quantities are expected to be calendar-durations and are interpreted as an age range during\nwhich the abatement occurred. The result is an interval from the date the patient turned the starting age of the quantity interval, and ending immediately\nbefore one year later than the date the patient turned the ending age of the quantity interval.\n\nNOTE: Due to the complexity of determining an interval from a String, this function will throw\na run-time exception if used with a Condition instance that has a String as the abatement value.\n*/\ndefine fluent function abatementInterval(condition Condition):\n if condition.abatement is FHIR.dateTime then\n Interval[FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime), FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime)]\n else if condition.abatement is FHIR.Period then\n FHIRHelpers.ToInterval(condition.abatement as FHIR.Period)\n else if condition.abatement is FHIR.string then\n Message(null as Interval<DateTime>, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a String value is not supported')\n else if condition.abatement is FHIR.Age then\n Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age),\n FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age) + 1 year)\n else if condition.abatement is FHIR.Range then\n Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).low),\n FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).high) + 1 year)\n else if condition.abatement is FHIR.boolean then\n Interval[end of condition.onset.toInterval(), condition.recordedDate)\n else \n null</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<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRCommon</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"fhircommon-ext\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Returns the single extension (if present) on the given resource with the specified url.\n@comment: This function uses singleton from to ensure that a run-time exception is thrown if there\nis more than one extension on the given resource with the specified url.\n*/\ndefine fluent function ext(domainResource DomainResource, url String):\n singleton from domainResource.exts(url)</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRCommon</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"fhircommon-exts\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Returns any extensions defined on the given resource with the specified url\n*/\ndefine fluent function exts(domainResource DomainResource, url String):\n domainResource.extension E\n where E.url = url\n return E</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<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRCommon</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"fhircommon-references\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Returns true if any of the given references are to the given resource\n@comment: Returns true if the `id` element of the given resource exactly equals the tail of any of the given references.\nNOTE: This function assumes resources from the same source server.\n*/\ndefine fluent function references(references List<FHIR.Reference>, resource FHIR.Resource):\n exists (references R where R.references(resource))</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRCommon</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"fhircommon-references\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Returns true if the given reference is to the given resource\n@comment: Returns true if the `id` element of the given resource exactly equals the tail of the given reference.\nNOTE: This function assumes resources from the same source server.\n*/\ndefine fluent function references(reference FHIR.Reference, resource FHIR.Resource):\n resource.id = Last(Split(reference.reference, '/'))</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRCommon</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"fhircommon-includescode\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Returns true if the given code is in the given codeList\n@comment: Returns true if the `code` is equivalent to any of the codes in the given `codeList`, false otherwise.\n*/\ndefine fluent function includesCode(codeList List<CodeableConcept>, code Concept):\n exists (codeList C where C ~ code)</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\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXMCommon</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exmcommon-statusreason\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define fluent function statusReason(serviceRequest ServiceRequest):\n serviceRequest.ext('http://hl7.org/fhir/StructureDefinition/request-statusReason').value as FHIR.CodeableConcept</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXMCommon</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exmcommon-recorded\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define fluent function recorded(procedure Procedure):\n procedure.ext('http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-recorded').value as FHIR.dateTime</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXMCommon</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exmcommon-lengthindays\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define fluent function lengthInDays(Value Interval<DateTime> ):\n difference in days between start of Value and end of Value</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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXMCommon</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exmcommon-principaldiagnosis\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define fluent function principalDiagnosis(encounter Encounter):\n singleton from (\n (encounter.claimDiagnosis()) CD\n where CD.type.includesCode(\"Principal Diagnosis\")\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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXMCommon</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exmcommon-claimdiagnosis\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define fluent function claimDiagnosis(encounter Encounter):\n encounter E\n let \n claim: ([Claim] C where C.status = 'active' and C.use = 'claim' and exists (C.item I where I.encounter.references(E))),\n claimItem: (claim.item I where I.encounter.references(E))\n return claim.diagnosis D where D.sequence in claimItem.diagnosisSequence</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<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> EXMCommon</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"exmcommon-principalprocedure\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define fluent function principalProcedure(encounter Encounter): \n encounter E\n let \n claim: [Claim] C where C.status = 'active' and C.use = 'claim' and exists (C.item I where I.encounter.references(E)),\n claimItem: claim.item I where I.encounter.references(E),\n princProcedure: singleton from (claim.procedure P where P.sequence in claimItem.procedureSequence and P.type.includesCode(\"Primary procedure\"))\n return princProcedure</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\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\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 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 \n \n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value AdministrativeGender): value.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 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 \n \n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value EncounterStatus): value.value</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 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 \n \n \n \n <a name=\"fhirhelpers-tointerval\"> </a>\n \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\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\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 \n \n \n \n <a name=\"fhirhelpers-todate\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToDate(value date): value.value</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 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 \n \n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value string): value.value</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 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 \n \n \n \n <a name=\"fhirhelpers-toconcept\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.\n*/\ndefine function ToConcept(concept FHIR.CodeableConcept):\n if concept is null then\n null\n else\n System.Concept {\n codes: concept.coding C return ToCode(C),\n display: concept.text.value\n }</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 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 \n \n \n \n <a name=\"fhirhelpers-tocode\"> </a>\n \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<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\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 \n \n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value MedicationAdministrationStatus): value.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 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 \n \n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value ProcedureStatus): value.value</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 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 \n \n \n \n <a name=\"fhirhelpers-todatetime\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToDateTime(value dateTime): value.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 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 \n \n \n \n <a name=\"fhirhelpers-todatetime\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToDateTime(value instant): value.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 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 \n \n \n \n <a name=\"fhirhelpers-toquantity\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Converts the given FHIR [Quantity](https://hl7.org/fhir/datatypes.html#Quantity) \nvalue to a CQL Quantity\n@comment: If the given quantity has a comparator specified, a runtime error is raised. If the given quantity\nhas a system other than UCUM (i.e. `http://unitsofmeasure.org`) or CQL calendar units (i.e. `http://hl7.org/fhirpath/CodeSystem/calendar-units`)\nan error is raised. For UCUM to calendar units, the `ToCalendarUnit` function is used.\n@seealso: ToCalendarUnit\n*/\ndefine function ToQuantity(quantity FHIR.Quantity):\n case\n when quantity is null then null\n when quantity.value is null then null\n when quantity.comparator is not null then\n Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')\n when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'\n or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then\n System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }\n else\n Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' & quantity.unit.value & ' (' & quantity.system.value & '|' & quantity.code.value & ')')\n end</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 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 \n \n \n \n <a name=\"fhirhelpers-tocalendarunit\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Converts a UCUM definite duration unit to a CQL calendar duration\nunit using conversions specified in the [quantities](https://cql.hl7.org/02-authorsguide.html#quantities) \ntopic of the CQL specification.\n@comment: Note that for durations above days (or weeks), the conversion is understood to be approximate\n*/\ndefine function ToCalendarUnit(unit System.String):\n case unit\n when 'ms' then 'millisecond'\n when 's' then 'second'\n when 'min' then 'minute'\n when 'h' then 'hour'\n when 'd' then 'day'\n when 'wk' then 'week'\n when 'mo' then 'month'\n when 'a' then 'year'\n else unit\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<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\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 \n \n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value ObservationStatus): value.value</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 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 \n \n \n \n <a name=\"fhirhelpers-toboolean\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToBoolean(value boolean): value.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 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 \n \n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value MedicationRequestStatus): value.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 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 \n \n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value ServiceRequestStatus): 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 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 \n \n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \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\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\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 \n \n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value ClaimStatus): value.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 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 \n \n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value Use): 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\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\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 \n \n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value ServiceRequestIntent): value.value</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\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 ConditionClinicalStatusCodes\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"http://terminology.hl7.org/7.3.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 LOINC\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-v3-loinc.html\">Logical Observation Identifiers, Names and Codes (LOINC)</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://loinc.org</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 Diagnosis Type\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"http://terminology.hl7.org/7.3.0/CodeSystem-ex-diagnosistype.html\">Example Diagnosis Type Codes</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://terminology.hl7.org/CodeSystem/ex-diagnosistype</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 Procedure Type\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"http://terminology.hl7.org/7.3.0/CodeSystem-ex-procedure-type.html\">Example Procedure Type Codes</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://terminology.hl7.org/CodeSystem/ex-procedure-type</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 Encounter Inpatient\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://tx.fhir.org/r4/ValueSet/2.16.840.1.113883.3.666.5.307-20260210\">Encounter Inpatient</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307</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 Obstetrics\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.263/expansion\">Obstetrical or Pregnancy Related Conditions</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.263</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 Venous Thromboembolism\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.279/expansion\">Venous Thromboembolism</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.279</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 Obstetrics VTE\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.264/expansion\">Obstetrics VTE</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.264</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 Low Dose Unfractionated Heparin for VTE Prophylaxis\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1045.39/expansion\">Low Dose Unfractionated Heparin for VTE Prophylaxis</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39</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 Subcutaneous route\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.223/expansion\">Subcutaneous route</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.223</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 Low Molecular Weight Heparin for VTE Prophylaxis\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.219/expansion\">Low Molecular Weight Heparin for VTE Prophylaxis</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219</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 Injectable Factor Xa Inhibitor for VTE Prophylaxis\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.211/expansion\">Injectable Factor Xa Inhibitor for VTE Prophylaxis</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211</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 Warfarin\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.232/expansion\">Warfarin</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232</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 Device Application\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1110.48/expansion\">Device Application</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.48</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 Intermittent pneumatic compression devices (IPC)\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.214/expansion\">Intermittent pneumatic compression devices</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.214</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 Venous foot pumps (VFP)\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.230/expansion\">Venous foot pumps</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.230</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 Graduated compression stockings (GCS)\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.256/expansion\">Graduated compression stockings</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.256</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 General or Neuraxial Anesthesia\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.666.5.1743/expansion\">General or Neuraxial Anesthesia</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743</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 Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.134/expansion\">Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.134</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 Atrial Fibrillation/Flutter\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.202/expansion\">Atrial Fibrillation or Flutter</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.202</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 Hip Replacement Surgery\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.259/expansion\">Hip Replacement Surgery</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.259</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 Knee Replacement Surgery\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.261/expansion\">Knee Replacement Surgery</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.261</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 Low Risk\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.400/expansion\">Low Risk</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.400</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 INR\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.213/expansion\">INR</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.213</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 Unfractionated Heparin\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.218/expansion\">Unfractionated Heparin</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.218</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 Intravenous route\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.222/expansion\">Intravenous route</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.222</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 Direct Thrombin Inhibitor\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.205/expansion\">Direct Thrombin Inhibitor</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.205</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 Glycoprotein IIb/IIIa Inhibitors\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1045.41/expansion\">Glycoprotein IIb IIIa Inhibitors</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.41</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 Observation Services\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1111.143/expansion\">Observation Services</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143</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 Emergency Department Visit\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.292/expansion\">Emergency Department Visit</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292</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 Medical Reason\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.473/expansion\">Medical Reason For Not Providing Treatment</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.473</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 Patient Refusal\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.93/expansion\">Patient Refusal</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.93</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\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.114222.4.11.3591/expansion\">Payer Type</a>\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<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 Intensive Care Unit\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1110.23/expansion\">Intensive Care Unit</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.23</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 Mental Health Diagnoses\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.105.12.1004/expansion\">Mental Health Diagnoses</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.105.12.1004</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 Hemorrhagic Stroke\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.212/expansion\">Hemorrhagic Stroke</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.212</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 Ischemic Stroke\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.247/expansion\">Ischemic Stroke</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.247</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 General Surgery\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.255/expansion\">General Surgery</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.255</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 Gynecological Surgery\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.257/expansion\">Gynecological Surgery</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.257</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 Hip Fracture Surgery\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.258/expansion\">Hip Fracture Surgery</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.258</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 Intracranial Neurosurgery\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.260/expansion\">Intracranial Neurosurgery</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.260</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 Urological Surgery\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.272/expansion\">Urological Surgery</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.272</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 Comfort Measures\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/1.3.6.1.4.1.33895.1.3.0.45/expansion\">Comfort Measures</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45</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>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>Code</em>: recurrence\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>Code</em>: relapse\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>Code</em>: inactive\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>Code</em>: remission\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>Code</em>: resolved\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>: Risk for venous thromboembolism\n <br/>\n \n <em>Code</em>: 72136-5\n <br/>\n <em>System</em>: <tt>http://loinc.org</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>: Principal Diagnosis\n <br/>\n \n <em>Code</em>: principal\n <br/>\n <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/ex-diagnosistype</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>: Primary procedure\n <br/>\n \n <em>Code</em>: primary\n <br/>\n <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/ex-procedure-type</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>: FHIR model information\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"http://hl7.org/fhir/uv/cql/STU2/Library-FHIR-ModelInfo.html\">http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1</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 SDE\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"Library-SupplementalDataElements.html\">Supplemental Data Elements</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cqm/Library/SupplementalDataElements</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>: <a href=\"http://hl7.org/fhir/uv/cql/STU2/Library-FHIRHelpers.html\">http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1</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 Global\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"Library-MATGlobalCommonFunctions.html\">MAT Global Common Functions FHIR Library</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cqm/Library/MATGlobalCommonFunctions</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 FHIRCommon\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"http://hl7.org/fhir/uv/cql/STU2/Library-FHIRCommon.html\">http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0</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 TJC\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"Library-TJCOverall.html\">TJC Overall Library</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cqm/Library/TJCOverall</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 VTEICU\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"Library-VTEICU.html\">VTE ICU Library</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cqm/Library/VTEICU</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 EXMCommon\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"Library-EXMCommon.html\">EXMCommon</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cqm/Library/EXMCommon</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\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\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 <a href=\"http://hl7.org/fhir/R4/patient.html\">Patient</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: url, extension, 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>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, status, period, condition, condition.reference, location\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> <a href=\"https://tx.fhir.org/r4/ValueSet/2.16.840.1.113883.3.666.5.307-20260210\">Encounter Inpatient</a>\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 <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, period, condition, condition.reference, location\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1111.143/expansion\">Observation Services</a>\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 <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, period, condition, condition.reference, location\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.292/expansion\">Emergency Department Visit</a>\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 <a href=\"http://hl7.org/fhir/R4/condition.html\">Condition</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: id, 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 <a href=\"http://hl7.org/fhir/R4/condition.html\">Condition</a>\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.202/expansion\">Atrial Fibrillation or Flutter</a>\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 <a href=\"http://hl7.org/fhir/R4/condition.html\">Condition</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, clinicalStatus, onset\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.279/expansion\">Venous Thromboembolism</a>\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>: MedicationAdministration\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/medicationadministration.html\">MedicationAdministration</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: medication, status, effective, dosage, dosage.route, id\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.134/expansion\">Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment</a>\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>: MedicationAdministration\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/medicationadministration.html\">MedicationAdministration</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: medication, dosage, dosage.route, status, id, effective\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.218/expansion\">Unfractionated Heparin</a>\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>: MedicationAdministration\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/medicationadministration.html\">MedicationAdministration</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: medication, dosage, dosage.route, status, id, effective\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.205/expansion\">Direct Thrombin Inhibitor</a>\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>: MedicationAdministration\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/medicationadministration.html\">MedicationAdministration</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: medication, dosage, dosage.route, status, id, effective\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1045.41/expansion\">Glycoprotein IIb IIIa Inhibitors</a>\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>: MedicationAdministration\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/medicationadministration.html\">MedicationAdministration</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: medication.reference, dosage, dosage.route, status, id, effective\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>: MedicationAdministration\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/medicationadministration.html\">MedicationAdministration</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: medication, status, dosage, dosage.route, id, effective\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1045.39/expansion\">Low Dose Unfractionated Heparin for VTE Prophylaxis</a>\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>: MedicationAdministration\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/medicationadministration.html\">MedicationAdministration</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: medication, status, dosage, dosage.route, id, effective\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.219/expansion\">Low Molecular Weight Heparin for VTE Prophylaxis</a>\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>: MedicationAdministration\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/medicationadministration.html\">MedicationAdministration</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: medication, status, dosage, dosage.route, id, effective\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.211/expansion\">Injectable Factor Xa Inhibitor for VTE Prophylaxis</a>\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>: MedicationAdministration\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/medicationadministration.html\">MedicationAdministration</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: medication, status, dosage, dosage.route, id, effective\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.232/expansion\">Warfarin</a>\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>: Procedure\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/procedure.html\">Procedure</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, status, usedCode, performed, id, statusReason\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1110.48/expansion\">Device Application</a>\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>: Procedure\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/procedure.html\">Procedure</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, status, performed\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.255/expansion\">General Surgery</a>\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>: Procedure\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/procedure.html\">Procedure</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, status, performed\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.257/expansion\">Gynecological Surgery</a>\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>: Procedure\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/procedure.html\">Procedure</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, status, performed\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.258/expansion\">Hip Fracture Surgery</a>\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>: Procedure\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/procedure.html\">Procedure</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, status, performed\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.259/expansion\">Hip Replacement Surgery</a>\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>: Procedure\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/procedure.html\">Procedure</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, status, performed\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.260/expansion\">Intracranial Neurosurgery</a>\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>: Procedure\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/procedure.html\">Procedure</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, status, performed\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.261/expansion\">Knee Replacement Surgery</a>\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>: Procedure\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/procedure.html\">Procedure</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, status, performed\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.272/expansion\">Urological Surgery</a>\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>: Procedure\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/procedure.html\">Procedure</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, status, performed\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> <a href=\"https://vsac.nlm.nih.gov/valueset/1.3.6.1.4.1.33895.1.3.0.45/expansion\">Comfort Measures</a>\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>: Procedure\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/procedure.html\">Procedure</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, performed, status\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.666.5.1743/expansion\">General or Neuraxial Anesthesia</a>\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 <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, value, status, effective\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=\"https://loinc.org/72136-5\">LOINC: 72136-5</a> (Risk for venous thromboembolism)\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>: Observation\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, value, status, id, issued, effective\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.213/expansion\">INR</a>\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>: Medication\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/medication.html\">Medication</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: id, 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>: MedicationRequest\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/medicationrequest.html\">MedicationRequest</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: medication, doNotPerform, status\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1045.39/expansion\">Low Dose Unfractionated Heparin for VTE Prophylaxis</a>\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 <a href=\"http://hl7.org/fhir/R4/medicationrequest.html\">MedicationRequest</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: medication, doNotPerform, status\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.219/expansion\">Low Molecular Weight Heparin for VTE Prophylaxis</a>\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 <a href=\"http://hl7.org/fhir/R4/medicationrequest.html\">MedicationRequest</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: medication, doNotPerform, status\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.211/expansion\">Injectable Factor Xa Inhibitor for VTE Prophylaxis</a>\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 <a href=\"http://hl7.org/fhir/R4/medicationrequest.html\">MedicationRequest</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: medication, doNotPerform, status\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.232/expansion\">Warfarin</a>\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 <a href=\"http://hl7.org/fhir/R4/servicerequest.html\">ServiceRequest</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, status, doNotPerform, id, authoredOn\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.230/expansion\">Venous foot pumps</a>\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 <a href=\"http://hl7.org/fhir/R4/servicerequest.html\">ServiceRequest</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, status, doNotPerform, id, authoredOn\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.214/expansion\">Intermittent pneumatic compression devices</a>\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 <a href=\"http://hl7.org/fhir/R4/servicerequest.html\">ServiceRequest</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, status, doNotPerform, id, authoredOn\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.256/expansion\">Graduated compression stockings</a>\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 <a href=\"http://hl7.org/fhir/R4/servicerequest.html\">ServiceRequest</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, intent, status, doNotPerform, id, authoredOn\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> <a href=\"https://vsac.nlm.nih.gov/valueset/1.3.6.1.4.1.33895.1.3.0.45/expansion\">Comfort Measures</a>\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>: Coverage\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/coverage.html\">Coverage</a>\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.114222.4.11.3591/expansion\">Payer Type</a>\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>: Location\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/location.html\">Location</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: id\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>: Claim\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/claim.html\">Claim</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: status, use, item\n <br/>\n \n \n </td>\n</tr>\n\n \n \n\n\n\n\n<tr>\n <th colspan=\"2\" scope=\"row\" class=\"row-header\">Generated using version 0.5.6 of the sample-content-ig Liquid templates</th>\n</tr>\n\n </tbody>\n </table>\n</div>" ] ; fhir:DomainResource.contained [ a fhir:Library ; fhir:index -1 ; fhir:Resource.id [ fhir:value "effective-data-requirements" ] ; fhir:DomainResource.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode" ] ; fhir:Extension.valueCoding [ fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/condition-clinical" ] ; fhir:Coding.code [ fhir:value "active" ] ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode" ] ; fhir:Extension.valueCoding [ fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/condition-clinical" ] ; fhir:Coding.code [ fhir:value "recurrence" ] ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode" ] ; fhir:Extension.valueCoding [ fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/condition-clinical" ] ; fhir:Coding.code [ fhir:value "relapse" ] ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode" ] ; fhir:Extension.valueCoding [ fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/condition-clinical" ] ; fhir:Coding.code [ fhir:value "inactive" ] ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode" ] ; fhir:Extension.valueCoding [ fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/condition-clinical" ] ; fhir:Coding.code [ fhir:value "remission" ] ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode" ] ; fhir:Extension.valueCoding [ fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/condition-clinical" ] ; fhir:Coding.code [ fhir:value "resolved" ] ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode" ] ; fhir:Extension.valueCoding [ a loinc:72136-5 ; fhir:Coding.system [ fhir:value "http://loinc.org" ] ; fhir:Coding.code [ fhir:value "72136-5" ] ; fhir:Coding.display [ fhir:value "Risk for venous thromboembolism" ] ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode" ] ; fhir:Extension.valueCoding [ fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/ex-diagnosistype" ] ; fhir:Coding.code [ fhir:value "principal" ] ; fhir:Coding.display [ fhir:value "Principal Diagnosis" ] ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode" ] ; fhir:Extension.valueCoding [ fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/ex-procedure-type" ] ; fhir:Coding.code [ fhir:value "primary" ] ; fhir:Coding.display [ fhir:value "Primary procedure" ] ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "SupplementalDataElements" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "SDE Sex" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"SDE Sex\":\n case\n when Patient.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' }\n when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' }\n else null\n end" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "0"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "SDE Sex" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"SDE Sex\":\n SDE.\"SDE Sex\"" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "MATGlobalCommonFunctions" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Inpatient Encounter" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Inpatient Encounter\":\n [Encounter: \"Encounter Inpatient\"] EncounterInpatient\n where EncounterInpatient.status = 'finished'\n and \"LengthInDays\"(EncounterInpatient.period) <= 120\n and EncounterInpatient.period ends during \"Measurement Period\"" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "2"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Admission Without VTE or Obstetrical Conditions" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Admission Without VTE or Obstetrical Conditions\":\n Global.\"Inpatient Encounter\" InpatientEncounter\n where not exists (\n (Global.EncounterDiagnosis(InpatientEncounter)) EncounterDiagnosis\n where EncounterDiagnosis.code in \"Obstetrics\"\n or EncounterDiagnosis.code in \"Venous Thromboembolism\"\n or EncounterDiagnosis.code in \"Obstetrics VTE\"\n )" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "3"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "// Note: added FHIRHelpers.ToDate() in R4\ndefine \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\":\n ( Global.\"Inpatient Encounter\" InpatientEncounter\n where Global.\"CalendarAgeInYearsAt\"(FHIRHelpers.ToDate(Patient.birthDate), start of InpatientEncounter.period) >= 18\n )\n intersect \"Admission Without VTE or Obstetrical Conditions\"" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "4"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "VTE Prophylaxis by Medication Administered or Device Applied" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "// 10/29: Replaced DeviceUseStatement with Procedure with a new value set and procedure.usdCode for specifying devices\ndefine \"VTE Prophylaxis by Medication Administered or Device Applied\":\n ( [\"MedicationAdministration\": medication in \"Low Dose Unfractionated Heparin for VTE Prophylaxis\"] VTEMedication\n where VTEMedication.status ='completed'\n and VTEMedication.dosage.route in \"Subcutaneous route\"\n )\n union ([\"MedicationAdministration\": medication in \"Low Molecular Weight Heparin for VTE Prophylaxis\"] LMWH where LMWH.status = 'completed')\n union ([\"MedicationAdministration\": medication in \"Injectable Factor Xa Inhibitor for VTE Prophylaxis\"] FactorXa where FactorXa.status = 'completed')\n union ([\"MedicationAdministration\": medication in \"Warfarin\"] WarfarinAdmin where WarfarinAdmin.status = 'completed')\n union (\n [\"Procedure\": \"Device Application\"] DeviceApplied\n where DeviceApplied.status = 'complete'\n and (\n DeviceApplied.usedCode in \"Intermittent pneumatic compression devices (IPC)\"\n or DeviceApplied.usedCode in\"Venous foot pumps (VFP)\"\n or DeviceApplied.usedCode in \"Graduated compression stockings (GCS)\"\n )\n )" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "5"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Encounter With VTE Prophylaxis Received on Day of or Day After Admission or Procedure" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Encounter With VTE Prophylaxis Received on Day of or Day After Admission or Procedure\":\n ( from\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\n \"VTE Prophylaxis by Medication Administered or Device Applied\" VTEProphylaxis\n where Coalesce(VTEProphylaxis.effective.toInterval(), VTEProphylaxis.performed.toInterval()) starts during TJC.\"CalendarDayOfOrDayAfter\"(start of QualifyingEncounter.period)\n return QualifyingEncounter\n )\n union (\n from\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\n [\"Procedure\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\n \"VTE Prophylaxis by Medication Administered or Device Applied\" VTEProphylaxis\n where AnesthesiaProcedure.performed.toInterval() ends 1 day after day of start of QualifyingEncounter.period\n and Coalesce(VTEProphylaxis.effective.toInterval(), VTEProphylaxis.performed.toInterval()) starts during TJC.\"CalendarDayOfOrDayAfter\"(end of AnesthesiaProcedure.performed.toInterval())\n return QualifyingEncounter\n )" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "6"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure\":\n ( from\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\n [\"MedicationAdministration\": medication in \"Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment\"] FactorXaMedication\n where FactorXaMedication.status = 'completed'\n and FactorXaMedication.effective.toInterval() starts during TJC.\"CalendarDayOfOrDayAfter\"(start of QualifyingEncounter.period)\n return QualifyingEncounter\n )\n union ( \n from\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\n [\"Procedure\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\n [\"MedicationAdministration\": medication in \"Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment\"] FactorXaMedication\n where FactorXaMedication.status = 'completed'\n and AnesthesiaProcedure.status = 'completed'\n and AnesthesiaProcedure.performed.toInterval() ends 1 day after day of start of QualifyingEncounter.period\n and FactorXaMedication.effective.toInterval() starts during TJC.\"CalendarDayOfOrDayAfter\"(end of AnesthesiaProcedure.performed.toInterval())\n return QualifyingEncounter\n )" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "7"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE\":\n ( \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n with [\"Condition\": code in \"Atrial Fibrillation/Flutter\"] AtrialFibrillation\n such that AtrialFibrillation.prevalenceInterval() starts on or before end of QualifyingEncounter.period\n )\n union ( \n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n where Global.EncounterDiagnosis(QualifyingEncounter).code in \"Atrial Fibrillation/Flutter\"\n )\n union ( \n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n with [\"Condition\": code in \"Venous Thromboembolism\"] VTEDiagnosis\n such that (\n VTEDiagnosis.clinicalStatus ~ Global.\"inactive\"\n or VTEDiagnosis.clinicalStatus ~ Global.\"remission\"\n or VTEDiagnosis.clinicalStatus ~ Global.\"resolved\" \n )\n and VTEDiagnosis.onset.toInterval() before start of QualifyingEncounter.period\n )" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "8"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery\":\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n with ( \n [\"Procedure\": \"Hip Replacement Surgery\"]\n union [\"Procedure\": \"Knee Replacement Surgery\"] \n ) HipKneeProcedure\n such that HipKneeProcedure.status = 'completed'\n and HipKneeProcedure.performed.toInterval() starts on or before end of QualifyingEncounter.period" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "9"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Is In Low Risk for VTE or On Anticoagulant" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Is In Low Risk for VTE or On Anticoagulant\":\n ( [\"Observation\": \"Risk for venous thromboembolism\"] VTERiskAssessment\n where VTERiskAssessment.value in \"Low Risk\"\n and VTERiskAssessment.status in {'final','amended', 'corrected'}\n )\n union ( [\"Observation\": \"INR\"] INRLabTest\n where INRLabTest.value as Quantity > 3.0\n and INRLabTest.status in {'final','amended', 'corrected'}\n return \"Observation\" { id: INRLabTest.id, effective: INRLabTest.issued }\n )\n union ((( [\"MedicationAdministration\": \"Unfractionated Heparin\"] UnfractionatedHeparin\n where UnfractionatedHeparin.dosage.route in \"Intravenous route\"\n )\n union [\"MedicationAdministration\": \"Direct Thrombin Inhibitor\"]\n union [\"MedicationAdministration\": \"Glycoprotein IIb/IIIa Inhibitors\"] ) AnticoagulantMedication\n where AnticoagulantMedication.status = 'complete'\n return \"Observation\" { id: AnticoagulantMedication.id, effective: AnticoagulantMedication.effective }\n )" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "10"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission\":\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n with \"Is In Low Risk for VTE or On Anticoagulant\" VTERiskAssessment\n such that VTERiskAssessment.effective.toInterval() starts during VTEICU.\"FromDayOfStartOfHospitalizationToDayAfterAdmission\"(QualifyingEncounter)" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "11"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure\":\n from\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\n [\"Procedure\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\n \"Is In Low Risk for VTE or On Anticoagulant\" VTERiskAssessment\n where AnesthesiaProcedure.performed.toInterval() ends 1 day after day of start of QualifyingEncounter.period\n and VTERiskAssessment.effective.toInterval() starts during TJC.\"CalendarDayOfOrDayAfter\"(end of AnesthesiaProcedure.performed.toInterval())\n return QualifyingEncounter" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "12"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Encounter With Low Risk for VTE or Anticoagulant Administered" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Encounter With Low Risk for VTE or Anticoagulant Administered\":\n \"Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission\"\n union \"Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure\"" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "13"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "No VTE Prophylaxis Medication Administered or Ordered" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"No VTE Prophylaxis Medication Administered or Ordered\":\n (( \n [\"MedicationAdministration\": medication in \"Low Dose Unfractionated Heparin for VTE Prophylaxis\"]\n union [\"MedicationAdministration\": medication in \"Low Molecular Weight Heparin for VTE Prophylaxis\"]\n union [\"MedicationAdministration\": medication in \"Injectable Factor Xa Inhibitor for VTE Prophylaxis\"]\n union [\"MedicationAdministration\": medication in \"Warfarin\"]\n ) MedicationAdm\n where MedicationAdm.status = 'not-done'\n )\n union\n (( \n [\"MedicationRequest\": medication in \"Low Dose Unfractionated Heparin for VTE Prophylaxis\"]\n union [\"MedicationRequest\": medication in \"Low Molecular Weight Heparin for VTE Prophylaxis\"]\n union [\"MedicationRequest\": medication in \"Injectable Factor Xa Inhibitor for VTE Prophylaxis\"]\n union [\"MedicationRequest\": medication in \"Warfarin\"]\n ) MedicationOrder\n where MedicationOrder.doNotPerform is true\n and MedicationOrder.status in {'completed', 'cancelled'}\n )" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "14"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission\":\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n with \"No VTE Prophylaxis Medication Administered or Ordered\" NoVTEMedication\n such that Coalesce(NoVTEMedication.statusReason, NoVTEMedication.reasonCode) in \"Medical Reason\"\n and Coalesce(NoVTEMedication.authoredOn, start of NoVTEMedication.effective.toInterval()) during VTEICU.\"FromDayOfStartOfHospitalizationToDayAfterAdmission\"(QualifyingEncounter)" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "15"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "No VTE Prophylaxis Device Applied or Ordered" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"No VTE Prophylaxis Device Applied or Ordered\":\n ((\n [\"ServiceRequest\": \"Venous foot pumps (VFP)\"]\n union [\"ServiceRequest\": \"Intermittent pneumatic compression devices (IPC)\"]\n union [\"ServiceRequest\": \"Graduated compression stockings (GCS)\"]\n ) DeviceOrder\n where DeviceOrder.status = 'completed'\n and DeviceOrder.doNotPerform is true\n return {\n id: DeviceOrder.id, \n requestStatusReason: DeviceOrder.statusReason(), \n authoredOn: DeviceOrder.authoredOn\n }\n )\n union (\n [\"Procedure\": \"Device Application\"] DeviceApplied\n where (DeviceApplied.usedCode in \"Intermittent pneumatic compression devices (IPC)\"\n or DeviceApplied.usedCode in \"Venous foot pumps (VFP)\"\n or DeviceApplied.usedCode in \"Graduated compression stockings (GCS)\"\n )\n and DeviceApplied.status = 'not-done'\n return {\n id: DeviceApplied.id, \n requestStatusReason: DeviceApplied.statusReason, \n authoredOn: DeviceApplied.recorded()\n }\n\n )" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "16"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission\":\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n with \"No VTE Prophylaxis Device Applied or Ordered\" NoVTEDevice\n such that NoVTEDevice.requestStatusReason in \"Medical Reason\"\n and NoVTEDevice.authoredOn during VTEICU.\"FromDayOfStartOfHospitalizationToDayAfterAdmission\"(QualifyingEncounter)" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "17"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure\":\n from\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\n [\"Procedure\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\n \"No VTE Prophylaxis Medication Administered or Ordered\" NoVTEMedication\n where Coalesce(NoVTEMedication.statusReason,NoVTEMedication.reasonCode) in \"Medical Reason\"\n and AnesthesiaProcedure.status = 'completed'\n and AnesthesiaProcedure.performed.toInterval() ends 1 day after day of start of QualifyingEncounter.period\n and Coalesce(NoVTEMedication.authoredOn, start of NoVTEMedication.effective.toInterval()) during TJC.\"CalendarDayOfOrDayAfter\"(end of AnesthesiaProcedure.performed.toInterval())\n return QualifyingEncounter" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "18"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure\":\n from\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\n [\"Procedure\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\n \"No VTE Prophylaxis Device Applied or Ordered\" NoVTEDevice\n where NoVTEDevice.requestStatusReason in \"Medical Reason\"\n and AnesthesiaProcedure.status = 'completed'\n and AnesthesiaProcedure.performed.toInterval() ends 1 day after day of start of QualifyingEncounter.period\n and NoVTEDevice.authoredOn during TJC.\"CalendarDayOfOrDayAfter\"(end of AnesthesiaProcedure.performed.toInterval())\n return QualifyingEncounter" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "19"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Encounter With No VTE Prophylaxis Due to Medical Reason" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Encounter With No VTE Prophylaxis Due to Medical Reason\":\n ( \"No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission\"\n intersect \"No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission\"\n )\n union ( \n \"No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure\"\n intersect \"No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure\"\n )" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "20"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "No VTE Prophylaxis Medication or Device Due to Patient Refusal" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"No VTE Prophylaxis Medication or Device Due to Patient Refusal\":\n ( \n \"No VTE Prophylaxis Medication Administered or Ordered\" NoVTEMedication\n where Coalesce(NoVTEMedication.statusReason,NoVTEMedication.reasonCode) in \"Patient Refusal\"\n )\n union (\n \"No VTE Prophylaxis Device Applied or Ordered\" NoVTEDevice\n where NoVTEDevice.requestStatusReason in \"Patient Refusal\"\n )" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "21"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "No VTE Prophylaxis Due to Patient Refusal From Day of Start of Hospitalization To Day After Admission" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"No VTE Prophylaxis Due to Patient Refusal From Day of Start of Hospitalization To Day After Admission\":\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n with \"No VTE Prophylaxis Medication or Device Due to Patient Refusal\" PatientRefusal\n such that Coalesce(start of PatientRefusal.effective.toInterval(), PatientRefusal.authoredOn)\n during VTEICU.\"FromDayOfStartOfHospitalizationToDayAfterAdmission\"(QualifyingEncounter)" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "22"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure\":\n from\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\n [\"Procedure\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\n \"No VTE Prophylaxis Medication or Device Due to Patient Refusal\" PatientRefusal\n where AnesthesiaProcedure.performed.toInterval() ends 1 day after day of start of QualifyingEncounter.period\n and Coalesce(start of PatientRefusal.effective.toInterval(), PatientRefusal.authoredOn)\n during TJC.\"CalendarDayOfOrDayAfter\"(end of AnesthesiaProcedure.performed.toInterval())\n return QualifyingEncounter" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "23"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Encounter With No VTE Prophylaxis Due to Patient Refusal" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Encounter With No VTE Prophylaxis Due to Patient Refusal\":\n \"No VTE Prophylaxis Due to Patient Refusal From Day of Start of Hospitalization To Day After Admission\"\n union \"No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure\"" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "24"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Numerator" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Numerator\":\n \"Encounter With VTE Prophylaxis Received on Day of or Day After Admission or Procedure\"\n union ( \"Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure\"\n intersect ( \"Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE\"\n union \"Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery\"\n )\n )\n union \"Encounter With Low Risk for VTE or Anticoagulant Administered\"\n union \"Encounter With No VTE Prophylaxis Due to Medical Reason\"\n union \"Encounter With No VTE Prophylaxis Due to Patient Refusal\"" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "25"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Initial Population" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Initial Population\":\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\"" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "26"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Denominator" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Denominator\":\n \"Initial Population\"" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "27"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "SupplementalDataElements" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "SDE Payer" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"SDE Payer\":\n [Coverage: type in \"Payer\"] Payer\n return {\n code: Payer.type,\n period: Payer.period\n }" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "28"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "SDE Payer" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"SDE Payer\":\n SDE.\"SDE Payer\"" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "29"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "SupplementalDataElements" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "SDE Ethnicity" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"SDE Ethnicity\":\n (flatten (\n Patient.extension Extension\n where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'\n return Extension.extension\n )) E\n where E.url = 'ombCategory'\n or E.url = 'detailed'\n return E.value as Coding" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "30"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "SDE Ethnicity" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"SDE Ethnicity\":\n SDE.\"SDE Ethnicity\"" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "31"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Encounter Less Than 2 Days" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Encounter Less Than 2 Days\":\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n where QualifyingEncounter.period.lengthInDays() < 2" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "32"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Encounter With ICU Location Stay 1 Day or More" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Encounter With ICU Location Stay 1 Day or More\":\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n where exists ( QualifyingEncounter.location Location\n where Global.GetLocation(Location.location).type in \"Intensive Care Unit\"\n and Location.period.lengthInDays() >= 1\n and Location.period starts during TJC.\"CalendarDayOfOrDayAfter\"(start of QualifyingEncounter.period)\n )" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "33"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Encounter With Principal Diagnosis of Mental Disorder or Stroke" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Encounter With Principal Diagnosis of Mental Disorder or Stroke\":\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n where QualifyingEncounter.principalDiagnosis().diagnosis in \"Mental Health Diagnoses\"\n or QualifyingEncounter.principalDiagnosis().diagnosis in \"Hemorrhagic Stroke\"\n or QualifyingEncounter.principalDiagnosis().diagnosis in \"Ischemic Stroke\"" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "34"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "SCIP VTE Selected Surgery" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"SCIP VTE Selected Surgery\":\n ( [\"Procedure\": \"General Surgery\"]\n union [\"Procedure\": \"Gynecological Surgery\"]\n union [\"Procedure\": \"Hip Fracture Surgery\"]\n union [\"Procedure\": \"Hip Replacement Surgery\"]\n union [\"Procedure\": \"Intracranial Neurosurgery\"]\n union [\"Procedure\": \"Knee Replacement Surgery\"]\n union [\"Procedure\": \"Urological Surgery\"] ) Procedure\n where Procedure.status = 'completed'" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "35"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Encounter With Principal Procedure of SCIP VTE Selected Surgery" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Encounter With Principal Procedure of SCIP VTE Selected Surgery\":\n from\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\n \"SCIP VTE Selected Surgery\" SelectedProcedure\n let EncounterProcedure: QualifyingEncounter.principalProcedure()\n where EncounterProcedure.procedure.references(SelectedProcedure)\n and SelectedProcedure.performed.toInterval() during QualifyingEncounter.period" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "36"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Intervention Comfort Measures" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Intervention Comfort Measures\":\n ([\"ServiceRequest\": \"Comfort Measures\"] P\n where P.intent = 'order'\n )\n union\n ([\"Procedure\": \"Comfort Measures\"] InterventionPerformed\n where InterventionPerformed.status in {'completed', 'in-progress'})" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "37"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Encounter With Intervention Comfort Measures From Day of Start of Hospitalization To Day After Admission" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Encounter With Intervention Comfort Measures From Day of Start of Hospitalization To Day After Admission\":\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\n with \"Intervention Comfort Measures\" ComfortMeasure\n such that Coalesce(start of ComfortMeasure.performed.toInterval(), ComfortMeasure.authoredOn) during VTEICU.\"FromDayOfStartOfHospitalizationToDayAfterAdmission\"(QualifyingEncounter)" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "38"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Encounter With Intervention Comfort Measures on Day of or Day After Procedure" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Encounter With Intervention Comfort Measures on Day of or Day After Procedure\":\n from\n \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\n [\"Procedure\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\n \"Intervention Comfort Measures\" ComfortMeasure\n where AnesthesiaProcedure.status = 'completed'\n and AnesthesiaProcedure.performed.toInterval() ends 1 day after day of start of QualifyingEncounter.period\n and Coalesce(start of ComfortMeasure.performed.toInterval(), ComfortMeasure.authoredOn) during TJC.\"CalendarDayOfOrDayAfter\"(end of AnesthesiaProcedure.performed.toInterval())\n return QualifyingEncounter" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "39"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Denominator Exclusion" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Denominator Exclusion\":\n \"Encounter Less Than 2 Days\"\n union \"Encounter With ICU Location Stay 1 Day or More\"\n union \"Encounter With Principal Diagnosis of Mental Disorder or Stroke\"\n union \"Encounter With Principal Procedure of SCIP VTE Selected Surgery\"\n union \"Encounter With Intervention Comfort Measures From Day of Start of Hospitalization To Day After Admission\"\n union \"Encounter With Intervention Comfort Measures on Day of or Day After Procedure\"" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "40"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "SupplementalDataElements" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "SDE Race" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"SDE Race\":\n (flatten (\n Patient.extension Extension\n where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race'\n return Extension.extension\n )) E\n where E.url = 'ombCategory'\n or E.url = 'detailed'\n return E.value as Coding" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "41"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXM108" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "SDE Race" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"SDE Race\":\n SDE.\"SDE Race\"" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "42"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToString" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToString(value AdministrativeGender): value.value" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "43"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToString" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToString(value EncounterStatus): value.value" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "44"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "MATGlobalCommonFunctions" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "LengthInDays" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function \"LengthInDays\"(Value Interval<DateTime>):\n difference in days between start of Value and end of Value" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "45"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToInterval" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "/*\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:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "46"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "MATGlobalCommonFunctions" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "CalendarAgeInYearsAt" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function \"CalendarAgeInYearsAt\"(BirthDateTime DateTime, AsOf DateTime):\n years between ToDate(BirthDateTime)and ToDate(AsOf)" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "47"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "MATGlobalCommonFunctions" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToDate" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function \"ToDate\"(Value DateTime):\n DateTime(year from Value, month from Value, day from Value, 0, 0, 0, 0, timezoneoffset from Value)" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "48"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToDate" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToDate(value date): value.value" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "49"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "MATGlobalCommonFunctions" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "EncounterDiagnosis" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function \"EncounterDiagnosis\"(Encounter Encounter):\n Encounter.diagnosis D\n return singleton from ([Condition] C where C.id = \"GetId\"(D.condition.reference))" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "50"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToString" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToString(value string): value.value" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "51"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "MATGlobalCommonFunctions" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "GetId" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function \"GetId\"(uri String):\n Last(Split(uri, '/'))" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "52"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToConcept" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "/*\n@description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.\n*/\ndefine function ToConcept(concept FHIR.CodeableConcept):\n if concept is null then\n null\n else\n System.Concept {\n codes: concept.coding C return ToCode(C),\n display: concept.text.value\n }" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "53"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToCode" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "/*\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:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "54"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToString" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToString(value MedicationAdministrationStatus): value.value" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "55"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToString" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToString(value ProcedureStatus): value.value" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "56"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRCommon" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "toInterval" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "/*\n@description: Normalizes a value that is a choice of timing-valued types to an equivalent interval\n@comment: Normalizes a choice type of FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instance, FHIR.string, FHIR.Age, or FHIR.Range types\nto an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible\nrepresentations for timing-valued elements in FHIR, allowing this function to be used across any resource.\n\nThe input can be provided as a dateTime, Period, Timing, instant, string, Age, or Range.\nThe intent of this function is to provide a clear and concise mechanism to treat single\nelements that have multiple possible representations as intervals so that logic doesn't have to account\nfor the variability. More complex calculations (such as medication request period or dispense period\ncalculation) need specific guidance and consideration. That guidance may make use of this function, but\nthe focus of this function is on single element calculations where the semantics are unambiguous.\nIf the input is a dateTime, the result a DateTime Interval beginning and ending on that dateTime.\nIf the input is a Period, the result is a DateTime Interval.\nIf the input is a Timing, an error is raised indicating a single interval cannot be computed from a Timing.\nIf the input is an instant, the result is a DateTime Interval beginning and ending on that instant.\nIf the input is a string, an error is raised indicating a single interval cannot be computed from a string.\nIf the input is an Age, the result is a DateTime Interval beginning when the patient was the given Age,\nand ending immediately prior to when the patient was the given Age plus one year.\nIf the input is a Range, the result is a DateTime Interval beginning when the patient was the Age given\nby the low end of the Range, and ending immediately prior to when the patient was the Age given by the\nhigh end of the Range plus one year.\n\nNOTE: Due to the\ncomplexity of determining a single interval from a Timing or String type, this function will throw a run-time exception if it is used\nwith a Timing or String.\n*/\ndefine fluent function toInterval(choice Choice<FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instant, FHIR.string, FHIR.Age, FHIR.Range>):\n case\n when choice is FHIR.dateTime then\n Interval[FHIRHelpers.ToDateTime(choice as FHIR.dateTime), FHIRHelpers.ToDateTime(choice as FHIR.dateTime)]\n when choice is FHIR.Period then\n FHIRHelpers.ToInterval(choice as FHIR.Period)\n when choice is FHIR.instant then\n Interval[FHIRHelpers.ToDateTime(choice as FHIR.instant), FHIRHelpers.ToDateTime(choice as FHIR.instant)]\n when choice is FHIR.Age then\n Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age),\n FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age) + 1 year)\n when choice is FHIR.Range then\n Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).low),\n FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).high) + 1 year)\n when choice is FHIR.Timing then\n Message(null as Interval<DateTime>, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a Timing value is not supported')\n when choice is FHIR.string then\n Message(null as Interval<DateTime>, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a String value is not supported')\n else\n null as Interval<DateTime>\n end" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "57"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToDateTime" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToDateTime(value dateTime): value.value" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "58"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToDateTime" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToDateTime(value instant): value.value" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "59"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToQuantity" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "/*\n@description: Converts the given FHIR [Quantity](https://hl7.org/fhir/datatypes.html#Quantity) \nvalue to a CQL Quantity\n@comment: If the given quantity has a comparator specified, a runtime error is raised. If the given quantity\nhas a system other than UCUM (i.e. `http://unitsofmeasure.org`) or CQL calendar units (i.e. `http://hl7.org/fhirpath/CodeSystem/calendar-units`)\nan error is raised. For UCUM to calendar units, the `ToCalendarUnit` function is used.\n@seealso: ToCalendarUnit\n*/\ndefine function ToQuantity(quantity FHIR.Quantity):\n case\n when quantity is null then null\n when quantity.value is null then null\n when quantity.comparator is not null then\n Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')\n when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'\n or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then\n System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }\n else\n Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' & quantity.unit.value & ' (' & quantity.system.value & '|' & quantity.code.value & ')')\n end" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "60"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToCalendarUnit" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "/*\n@description: Converts a UCUM definite duration unit to a CQL calendar duration\nunit using conversions specified in the [quantities](https://cql.hl7.org/02-authorsguide.html#quantities) \ntopic of the CQL specification.\n@comment: Note that for durations above days (or weeks), the conversion is understood to be approximate\n*/\ndefine function ToCalendarUnit(unit System.String):\n case unit\n when 'ms' then 'millisecond'\n when 's' then 'second'\n when 'min' then 'minute'\n when 'h' then 'hour'\n when 'd' then 'day'\n when 'wk' then 'week'\n when 'mo' then 'month'\n when 'a' then 'year'\n else unit\n end" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "61"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "TJCOverall" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "CalendarDayOfOrDayAfter" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function \"CalendarDayOfOrDayAfter\"(StartValue DateTime ):\n Interval(Global.\"ToDate\"(StartValue), Global.\"ToDate\"(StartValue + 2 days))" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "62"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRCommon" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "prevalenceInterval" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "/*\n@description: Returns an interval representing the normalized prevalence period of a given Condition resource.\n@comment: Uses the toInterval and toAbatementInterval functions to determine the widest potential interval from\nonset to abatement as specified in the given Condition.\n*/\ndefine fluent function prevalenceInterval(condition Condition):\nif condition.clinicalStatus ~ \"active\"\n or condition.clinicalStatus ~ \"recurrence\"\n or condition.clinicalStatus ~ \"relapse\" then\n Interval[start of condition.onset.toInterval(), end of condition.abatementInterval()]\nelse\n (end of condition.abatementInterval()) abatementDate\n return \n if abatementDate is null then\n Interval[start of condition.onset.toInterval(), abatementDate)\n else\n Interval[start of condition.onset.toInterval(), abatementDate]" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "63"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRCommon" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "abatementInterval" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "/*\n@description: Returns an interval representing the normalized Abatement of a given Condition resource.\n@comment: @comment: If the abatement element of the Condition is represented as a DateTime, the result\nis an interval beginning and ending on that DateTime.\nIf the abatement is represented as a Quantity, the quantity is expected to be a calendar-duration and is interpreted as the age of the patient. The\nresult is an interval from the date the patient turned that age to immediately before one year later.\nIf the abatement is represented as a Quantity Interval, the quantities are expected to be calendar-durations and are interpreted as an age range during\nwhich the abatement occurred. The result is an interval from the date the patient turned the starting age of the quantity interval, and ending immediately\nbefore one year later than the date the patient turned the ending age of the quantity interval.\n\nNOTE: Due to the complexity of determining an interval from a String, this function will throw\na run-time exception if used with a Condition instance that has a String as the abatement value.\n*/\ndefine fluent function abatementInterval(condition Condition):\n if condition.abatement is FHIR.dateTime then\n Interval[FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime), FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime)]\n else if condition.abatement is FHIR.Period then\n FHIRHelpers.ToInterval(condition.abatement as FHIR.Period)\n else if condition.abatement is FHIR.string then\n Message(null as Interval<DateTime>, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a String value is not supported')\n else if condition.abatement is FHIR.Age then\n Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age),\n FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age) + 1 year)\n else if condition.abatement is FHIR.Range then\n Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).low),\n FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).high) + 1 year)\n else if condition.abatement is FHIR.boolean then\n Interval[end of condition.onset.toInterval(), condition.recordedDate)\n else \n null" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "64"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToString" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToString(value ObservationStatus): value.value" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "65"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "VTEICU" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "FromDayOfStartOfHospitalizationToDayAfterAdmission" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function \"FromDayOfStartOfHospitalizationToDayAfterAdmission\"(Encounter FHIR.Encounter ):\n Interval[Global.\"ToDate\"(start of Global.\"HospitalizationWithObservation\"(Encounter)), Global.\"ToDate\"(start of Encounter.period + 2 days))" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "66"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "MATGlobalCommonFunctions" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "HospitalizationWithObservation" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function \"HospitalizationWithObservation\"(TheEncounter FHIR.Encounter):\n TheEncounter Visit\n let ObsVisit: Last([Encounter: \"Observation Services\"] LastObs\n where LastObs.period ends 1 hour or less on or before start of Visit.period\n sort by end of period\n ),\n VisitStart: Coalesce(start of ObsVisit.period, start of Visit.period),\n EDVisit: Last([Encounter: \"Emergency Department Visit\"] LastED\n where LastED.period ends 1 hour or less on or before VisitStart\n sort by end of period\n )\n return Interval[Coalesce(start of EDVisit.period, VisitStart), end of Visit.period]" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "67"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToBoolean" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToBoolean(value boolean): value.value" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "68"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToString" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToString(value MedicationRequestStatus): value.value" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "69"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToString" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToString(value ServiceRequestStatus): value.value" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "70"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXMCommon" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "statusReason" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define fluent function statusReason(serviceRequest ServiceRequest):\n serviceRequest.ext('http://hl7.org/fhir/StructureDefinition/request-statusReason').value as FHIR.CodeableConcept" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "71"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRCommon" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ext" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "/*\n@description: Returns the single extension (if present) on the given resource with the specified url.\n@comment: This function uses singleton from to ensure that a run-time exception is thrown if there\nis more than one extension on the given resource with the specified url.\n*/\ndefine fluent function ext(domainResource DomainResource, url String):\n singleton from domainResource.exts(url)" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "72"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRCommon" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "exts" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "/*\n@description: Returns any extensions defined on the given resource with the specified url\n*/\ndefine fluent function exts(domainResource DomainResource, url String):\n domainResource.extension E\n where E.url = url\n return E" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "73"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToString" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToString(value uri): value.value" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "74"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXMCommon" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "recorded" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define fluent function recorded(procedure Procedure):\n procedure.ext('http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-recorded').value as FHIR.dateTime" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "75"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXMCommon" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "lengthInDays" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define fluent function lengthInDays(Value Interval<DateTime> ):\n difference in days between start of Value and end of Value" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "76"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "MATGlobalCommonFunctions" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "GetLocation" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "// Returns the location for the given location reference\ndefine function GetLocation(reference Reference):\n singleton from (\n [Location] L where L.id = GetId(reference.reference)\n )" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "77"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXMCommon" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "principalDiagnosis" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define fluent function principalDiagnosis(encounter Encounter):\n singleton from (\n (encounter.claimDiagnosis()) CD\n where CD.type.includesCode(\"Principal Diagnosis\")\n )" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "78"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXMCommon" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "claimDiagnosis" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define fluent function claimDiagnosis(encounter Encounter):\n encounter E\n let \n claim: ([Claim] C where C.status = 'active' and C.use = 'claim' and exists (C.item I where I.encounter.references(E))),\n claimItem: (claim.item I where I.encounter.references(E))\n return claim.diagnosis D where D.sequence in claimItem.diagnosisSequence" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "79"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToString" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToString(value ClaimStatus): value.value" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "80"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToString" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToString(value Use): value.value" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "81"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRCommon" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "references" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "/*\n@description: Returns true if any of the given references are to the given resource\n@comment: Returns true if the `id` element of the given resource exactly equals the tail of any of the given references.\nNOTE: This function assumes resources from the same source server.\n*/\ndefine fluent function references(references List<FHIR.Reference>, resource FHIR.Resource):\n exists (references R where R.references(resource))" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "82"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRCommon" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "references" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "/*\n@description: Returns true if the given reference is to the given resource\n@comment: Returns true if the `id` element of the given resource exactly equals the tail of the given reference.\nNOTE: This function assumes resources from the same source server.\n*/\ndefine fluent function references(reference FHIR.Reference, resource FHIR.Resource):\n resource.id = Last(Split(reference.reference, '/'))" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "83"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRCommon" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "includesCode" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "/*\n@description: Returns true if the given code is in the given codeList\n@comment: Returns true if the `code` is equivalent to any of the codes in the given `codeList`, false otherwise.\n*/\ndefine fluent function includesCode(codeList List<CodeableConcept>, code Concept):\n exists (codeList C where C ~ code)" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "84"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "EXMCommon" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "principalProcedure" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define fluent function principalProcedure(encounter Encounter): \n encounter E\n let \n claim: [Claim] C where C.status = 'active' and C.use = 'claim' and exists (C.item I where I.encounter.references(E)),\n claimItem: claim.item I where I.encounter.references(E),\n princProcedure: singleton from (claim.procedure P where P.sequence in claimItem.procedureSequence and P.type.includesCode(\"Primary procedure\"))\n return princProcedure" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "85"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToString" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToString(value ServiceRequestIntent): value.value" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "86"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ] ; fhir:Library.name [ fhir:value "EffectiveDataRequirements" ] ; fhir:Library.status [ fhir:value "active" ] ; fhir:Library.type [ fhir:CodeableConcept.coding [ fhir:index -1 ; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/library-type" ] ; fhir:Coding.code [ fhir:value "module-definition" ] ] ] ; fhir:Library.relatedArtifact [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "FHIR model information" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1" ; fhir:link <http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Library SDE" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://hl7.org/fhir/uv/cqm/Library/SupplementalDataElements" ; fhir:link <http://hl7.org/fhir/uv/cqm/Library/SupplementalDataElements> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Library FHIRHelpers" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1" ; fhir:link <http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Library Global" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://hl7.org/fhir/uv/cqm/Library/MATGlobalCommonFunctions" ; fhir:link <http://hl7.org/fhir/uv/cqm/Library/MATGlobalCommonFunctions> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Library FHIRCommon" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0" ; fhir:link <http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Library TJC" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://hl7.org/fhir/uv/cqm/Library/TJCOverall" ; fhir:link <http://hl7.org/fhir/uv/cqm/Library/TJCOverall> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Library VTEICU" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://hl7.org/fhir/uv/cqm/Library/VTEICU" ; fhir:link <http://hl7.org/fhir/uv/cqm/Library/VTEICU> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Library EXMCommon" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://hl7.org/fhir/uv/cqm/Library/EXMCommon" ; fhir:link <http://hl7.org/fhir/uv/cqm/Library/EXMCommon> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Code system ConditionClinicalStatusCodes" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://terminology.hl7.org/CodeSystem/condition-clinical" ; fhir:link <http://terminology.hl7.org/CodeSystem/condition-clinical> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Code system LOINC" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://loinc.org" ; fhir:link <http://loinc.org> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Code system Diagnosis Type" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://terminology.hl7.org/CodeSystem/ex-diagnosistype" ; fhir:link <http://terminology.hl7.org/CodeSystem/ex-diagnosistype> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Code system Procedure Type" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://terminology.hl7.org/CodeSystem/ex-procedure-type" ; fhir:link <http://terminology.hl7.org/CodeSystem/ex-procedure-type> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Encounter Inpatient" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Obstetrics" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.263" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.263> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Venous Thromboembolism" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.279" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.279> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Obstetrics VTE" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.264" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.264> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Low Dose Unfractionated Heparin for VTE Prophylaxis" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Subcutaneous route" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.223" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.223> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Low Molecular Weight Heparin for VTE Prophylaxis" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Injectable Factor Xa Inhibitor for VTE Prophylaxis" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Warfarin" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Device Application" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.48" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.48> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Intermittent pneumatic compression devices (IPC)" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.214" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.214> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Venous foot pumps (VFP)" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.230" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.230> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Graduated compression stockings (GCS)" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.256" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.256> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set General or Neuraxial Anesthesia" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.134" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.134> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Atrial Fibrillation/Flutter" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.202" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.202> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Hip Replacement Surgery" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.259" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.259> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Knee Replacement Surgery" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.261" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.261> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Low Risk" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.400" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.400> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set INR" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.213" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.213> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Unfractionated Heparin" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.218" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.218> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Intravenous route" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.222" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.222> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Direct Thrombin Inhibitor" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.205" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.205> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Glycoprotein IIb/IIIa Inhibitors" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.41" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.41> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Observation Services" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Emergency Department Visit" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Medical Reason" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.473" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.473> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Patient Refusal" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.93" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.93> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Payer" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Intensive Care Unit" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.23" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.23> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Mental Health Diagnoses" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.105.12.1004" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.105.12.1004> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Hemorrhagic Stroke" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.212" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.212> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Ischemic Stroke" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.247" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.247> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set General Surgery" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.255" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.255> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Gynecological Surgery" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.257" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.257> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Hip Fracture Surgery" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.258" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.258> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Intracranial Neurosurgery" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.260" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.260> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Urological Surgery" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.272" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.272> ] ], [ fhir:index -1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Comfort Measures" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45> ] ] ; fhir:Library.parameter [ fhir:index -1 ; fhir:ParameterDefinition.name [ fhir:value "Measurement Period" ] ; fhir:ParameterDefinition.use [ fhir:value "in" ] ; fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ; fhir:ParameterDefinition.max [ fhir:value "1" ] ; fhir:ParameterDefinition.type [ fhir:value "Period" ] ], [ fhir:index -1 ; fhir:ParameterDefinition.name [ fhir:value "SDE Sex" ] ; fhir:ParameterDefinition.use [ fhir:value "out" ] ; fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ; fhir:ParameterDefinition.max [ fhir:value "1" ] ; fhir:ParameterDefinition.type [ fhir:value "Coding" ] ], [ fhir:index -1 ; fhir:ParameterDefinition.name [ fhir:value "Numerator" ] ; fhir:ParameterDefinition.use [ fhir:value "out" ] ; fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ; fhir:ParameterDefinition.max [ fhir:value "*" ] ; fhir:ParameterDefinition.type [ fhir:value "Encounter" ] ], [ fhir:index -1 ; fhir:ParameterDefinition.name [ fhir:value "Denominator" ] ; fhir:ParameterDefinition.use [ fhir:value "out" ] ; fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ; fhir:ParameterDefinition.max [ fhir:value "*" ] ; fhir:ParameterDefinition.type [ fhir:value "Encounter" ] ], [ fhir:index -1 ; fhir:ParameterDefinition.name [ fhir:value "SDE Payer" ] ; fhir:ParameterDefinition.use [ fhir:value "out" ] ; fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ; fhir:ParameterDefinition.max [ fhir:value "*" ] ; fhir:ParameterDefinition.type [ fhir:value "Resource" ] ], [ fhir:index -1 ; fhir:ParameterDefinition.name [ fhir:value "Initial Population" ] ; fhir:ParameterDefinition.use [ fhir:value "out" ] ; fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ; fhir:ParameterDefinition.max [ fhir:value "*" ] ; fhir:ParameterDefinition.type [ fhir:value "Encounter" ] ], [ fhir:index -1 ; fhir:ParameterDefinition.name [ fhir:value "SDE Ethnicity" ] ; fhir:ParameterDefinition.use [ fhir:value "out" ] ; fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ; fhir:ParameterDefinition.max [ fhir:value "*" ] ; fhir:ParameterDefinition.type [ fhir:value "Coding" ] ], [ fhir:index -1 ; fhir:ParameterDefinition.name [ fhir:value "Denominator Exclusion" ] ; fhir:ParameterDefinition.use [ fhir:value "out" ] ; fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ; fhir:ParameterDefinition.max [ fhir:value "*" ] ; fhir:ParameterDefinition.type [ fhir:value "Resource" ] ], [ fhir:index -1 ; fhir:ParameterDefinition.name [ fhir:value "SDE Race" ] ; fhir:ParameterDefinition.use [ fhir:value "out" ] ; fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ; fhir:ParameterDefinition.max [ fhir:value "*" ] ; fhir:ParameterDefinition.type [ fhir:value "Coding" ] ] ; fhir:Library.dataRequirement [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "Patient" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Patient" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Patient> ] ; fhir:DataRequirement.mustSupport [ fhir:value "url" ; fhir:index -1 ], [ fhir:value "extension" ; fhir:index -1 ], [ fhir:value "value" ; fhir:index -1 ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "Encounter" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter> ] ; fhir:DataRequirement.mustSupport [ fhir:value "type" ; fhir:index -1 ], [ fhir:value "status" ; fhir:index -1 ], [ fhir:value "period" ; fhir:index -1 ], [ fhir:value "condition" ; fhir:index -1 ], [ fhir:value "condition.reference" ; fhir:index -1 ], [ fhir:value "location" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "type" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "Encounter" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter> ] ; fhir:DataRequirement.mustSupport [ fhir:value "type" ; fhir:index -1 ], [ fhir:value "period" ; fhir:index -1 ], [ fhir:value "condition" ; fhir:index -1 ], [ fhir:value "condition.reference" ; fhir:index -1 ], [ fhir:value "location" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "type" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "Encounter" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter> ] ; fhir:DataRequirement.mustSupport [ fhir:value "type" ; fhir:index -1 ], [ fhir:value "period" ; fhir:index -1 ], [ fhir:value "condition" ; fhir:index -1 ], [ fhir:value "condition.reference" ; fhir:index -1 ], [ fhir:value "location" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "type" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "Condition" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Condition" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Condition> ] ; fhir:DataRequirement.mustSupport [ fhir:value "id" ; fhir:index -1 ], [ fhir:value "code" ; fhir:index -1 ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "Condition" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Condition" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Condition> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.202" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.202> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "Condition" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Condition" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Condition> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index -1 ], [ fhir:value "clinicalStatus" ; fhir:index -1 ], [ fhir:value "onset" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.279" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.279> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "MedicationAdministration" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/MedicationAdministration" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/MedicationAdministration> ] ; fhir:DataRequirement.mustSupport [ fhir:value "medication" ; fhir:index -1 ], [ fhir:value "status" ; fhir:index -1 ], [ fhir:value "effective" ; fhir:index -1 ], [ fhir:value "dosage" ; fhir:index -1 ], [ fhir:value "dosage.route" ; fhir:index -1 ], [ fhir:value "id" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "medication" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.134" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.134> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "MedicationAdministration" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/MedicationAdministration" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/MedicationAdministration> ] ; fhir:DataRequirement.mustSupport [ fhir:value "medication" ; fhir:index -1 ], [ fhir:value "dosage" ; fhir:index -1 ], [ fhir:value "dosage.route" ; fhir:index -1 ], [ fhir:value "status" ; fhir:index -1 ], [ fhir:value "id" ; fhir:index -1 ], [ fhir:value "effective" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "medication" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.218" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.218> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "MedicationAdministration" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/MedicationAdministration" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/MedicationAdministration> ] ; fhir:DataRequirement.mustSupport [ fhir:value "medication" ; fhir:index -1 ], [ fhir:value "dosage" ; fhir:index -1 ], [ fhir:value "dosage.route" ; fhir:index -1 ], [ fhir:value "status" ; fhir:index -1 ], [ fhir:value "id" ; fhir:index -1 ], [ fhir:value "effective" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "medication" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.205" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.205> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "MedicationAdministration" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/MedicationAdministration" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/MedicationAdministration> ] ; fhir:DataRequirement.mustSupport [ fhir:value "medication" ; fhir:index -1 ], [ fhir:value "dosage" ; fhir:index -1 ], [ fhir:value "dosage.route" ; fhir:index -1 ], [ fhir:value "status" ; fhir:index -1 ], [ fhir:value "id" ; fhir:index -1 ], [ fhir:value "effective" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "medication" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.41" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.41> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "MedicationAdministration" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/MedicationAdministration" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/MedicationAdministration> ] ; fhir:DataRequirement.mustSupport [ fhir:value "medication.reference" ; fhir:index -1 ], [ fhir:value "dosage" ; fhir:index -1 ], [ fhir:value "dosage.route" ; fhir:index -1 ], [ fhir:value "status" ; fhir:index -1 ], [ fhir:value "id" ; fhir:index -1 ], [ fhir:value "effective" ; fhir:index -1 ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "MedicationAdministration" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/MedicationAdministration" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/MedicationAdministration> ] ; fhir:DataRequirement.mustSupport [ fhir:value "medication" ; fhir:index -1 ], [ fhir:value "status" ; fhir:index -1 ], [ fhir:value "dosage" ; fhir:index -1 ], [ fhir:value "dosage.route" ; fhir:index -1 ], [ fhir:value "id" ; fhir:index -1 ], [ fhir:value "effective" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "medication" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "MedicationAdministration" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/MedicationAdministration" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/MedicationAdministration> ] ; fhir:DataRequirement.mustSupport [ fhir:value "medication" ; fhir:index -1 ], [ fhir:value "status" ; fhir:index -1 ], [ fhir:value "dosage" ; fhir:index -1 ], [ fhir:value "dosage.route" ; fhir:index -1 ], [ fhir:value "id" ; fhir:index -1 ], [ fhir:value "effective" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "medication" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "MedicationAdministration" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/MedicationAdministration" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/MedicationAdministration> ] ; fhir:DataRequirement.mustSupport [ fhir:value "medication" ; fhir:index -1 ], [ fhir:value "status" ; fhir:index -1 ], [ fhir:value "dosage" ; fhir:index -1 ], [ fhir:value "dosage.route" ; fhir:index -1 ], [ fhir:value "id" ; fhir:index -1 ], [ fhir:value "effective" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "medication" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "MedicationAdministration" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/MedicationAdministration" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/MedicationAdministration> ] ; fhir:DataRequirement.mustSupport [ fhir:value "medication" ; fhir:index -1 ], [ fhir:value "status" ; fhir:index -1 ], [ fhir:value "dosage" ; fhir:index -1 ], [ fhir:value "dosage.route" ; fhir:index -1 ], [ fhir:value "id" ; fhir:index -1 ], [ fhir:value "effective" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "medication" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "Procedure" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Procedure" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Procedure> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index -1 ], [ fhir:value "status" ; fhir:index -1 ], [ fhir:value "usedCode" ; fhir:index -1 ], [ fhir:value "performed" ; fhir:index -1 ], [ fhir:value "id" ; fhir:index -1 ], [ fhir:value "statusReason" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.48" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.48> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "Procedure" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Procedure" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Procedure> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index -1 ], [ fhir:value "status" ; fhir:index -1 ], [ fhir:value "performed" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.255" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.255> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "Procedure" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Procedure" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Procedure> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index -1 ], [ fhir:value "status" ; fhir:index -1 ], [ fhir:value "performed" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.257" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.257> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "Procedure" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Procedure" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Procedure> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index -1 ], [ fhir:value "status" ; fhir:index -1 ], [ fhir:value "performed" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.258" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.258> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "Procedure" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Procedure" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Procedure> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index -1 ], [ fhir:value "status" ; fhir:index -1 ], [ fhir:value "performed" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.259" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.259> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "Procedure" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Procedure" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Procedure> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index -1 ], [ fhir:value "status" ; fhir:index -1 ], [ fhir:value "performed" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.260" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.260> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "Procedure" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Procedure" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Procedure> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index -1 ], [ fhir:value "status" ; fhir:index -1 ], [ fhir:value "performed" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.261" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.261> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "Procedure" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Procedure" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Procedure> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index -1 ], [ fhir:value "status" ; fhir:index -1 ], [ fhir:value "performed" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.272" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.272> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "Procedure" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Procedure" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Procedure> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index -1 ], [ fhir:value "status" ; fhir:index -1 ], [ fhir:value "performed" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "Procedure" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Procedure" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Procedure> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index -1 ], [ fhir:value "performed" ; fhir:index -1 ], [ fhir:value "status" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.1743> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "Observation" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Observation" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Observation> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index -1 ], [ fhir:value "value" ; fhir:index -1 ], [ fhir:value "status" ; fhir:index -1 ], [ fhir:value "effective" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.code [ fhir:index -1 ; a loinc:72136-5 ; fhir:Coding.system [ fhir:value "http://loinc.org" ] ; fhir:Coding.code [ fhir:value "72136-5" ] ; fhir:Coding.display [ fhir:value "Risk for venous thromboembolism" ] ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "Observation" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Observation" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Observation> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index -1 ], [ fhir:value "value" ; fhir:index -1 ], [ fhir:value "status" ; fhir:index -1 ], [ fhir:value "id" ; fhir:index -1 ], [ fhir:value "issued" ; fhir:index -1 ], [ fhir:value "effective" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.213" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.213> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "Medication" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Medication" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Medication> ] ; fhir:DataRequirement.mustSupport [ fhir:value "id" ; fhir:index -1 ], [ fhir:value "code" ; fhir:index -1 ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "MedicationRequest" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/MedicationRequest" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/MedicationRequest> ] ; fhir:DataRequirement.mustSupport [ fhir:value "medication" ; fhir:index -1 ], [ fhir:value "doNotPerform" ; fhir:index -1 ], [ fhir:value "status" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "medication" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.39> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "MedicationRequest" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/MedicationRequest" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/MedicationRequest> ] ; fhir:DataRequirement.mustSupport [ fhir:value "medication" ; fhir:index -1 ], [ fhir:value "doNotPerform" ; fhir:index -1 ], [ fhir:value "status" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "medication" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.219> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "MedicationRequest" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/MedicationRequest" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/MedicationRequest> ] ; fhir:DataRequirement.mustSupport [ fhir:value "medication" ; fhir:index -1 ], [ fhir:value "doNotPerform" ; fhir:index -1 ], [ fhir:value "status" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "medication" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.211> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "MedicationRequest" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/MedicationRequest" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/MedicationRequest> ] ; fhir:DataRequirement.mustSupport [ fhir:value "medication" ; fhir:index -1 ], [ fhir:value "doNotPerform" ; fhir:index -1 ], [ fhir:value "status" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "medication" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.232> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "ServiceRequest" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/ServiceRequest" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/ServiceRequest> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index -1 ], [ fhir:value "status" ; fhir:index -1 ], [ fhir:value "doNotPerform" ; fhir:index -1 ], [ fhir:value "id" ; fhir:index -1 ], [ fhir:value "authoredOn" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.230" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.230> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "ServiceRequest" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/ServiceRequest" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/ServiceRequest> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index -1 ], [ fhir:value "status" ; fhir:index -1 ], [ fhir:value "doNotPerform" ; fhir:index -1 ], [ fhir:value "id" ; fhir:index -1 ], [ fhir:value "authoredOn" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.214" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.214> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "ServiceRequest" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/ServiceRequest" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/ServiceRequest> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index -1 ], [ fhir:value "status" ; fhir:index -1 ], [ fhir:value "doNotPerform" ; fhir:index -1 ], [ fhir:value "id" ; fhir:index -1 ], [ fhir:value "authoredOn" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.256" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.256> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "ServiceRequest" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/ServiceRequest" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/ServiceRequest> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index -1 ], [ fhir:value "intent" ; fhir:index -1 ], [ fhir:value "status" ; fhir:index -1 ], [ fhir:value "doNotPerform" ; fhir:index -1 ], [ fhir:value "id" ; fhir:index -1 ], [ fhir:value "authoredOn" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "Coverage" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Coverage" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Coverage> ] ; fhir:DataRequirement.mustSupport [ fhir:value "type" ; fhir:index -1 ], [ fhir:value "period" ; fhir:index -1 ] ; fhir:DataRequirement.codeFilter [ fhir:index -1 ; fhir:DataRequirement.codeFilter.path [ fhir:value "type" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591> ] ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "Location" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Location" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Location> ] ; fhir:DataRequirement.mustSupport [ fhir:value "id" ; fhir:index -1 ] ], [ fhir:index -1 ; fhir:DataRequirement.type [ fhir:value "Claim" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Claim" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Claim> ] ; fhir:DataRequirement.mustSupport [ fhir:value "status" ; fhir:index -1 ], [ fhir:value "use" ; fhir:index -1 ], [ fhir:value "item" ; fhir:index -1 ] ] ] ; fhir:DomainResource.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-populationBasis" ] ; fhir:Extension.valueCode [ fhir:value "Encounter" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements" ] ; fhir:Extension.valueCanonical [ fhir:value "#effective-data-requirements" ] ] ; fhir:Measure.url [ fhir:value "http://hl7.org/fhir/uv/cqm/Measure/EXM108-FHIR"] ; fhir:Measure.identifier [ fhir:index -1 ; fhir:Identifier.use [ fhir:value "official" ] ; fhir:Identifier.system [ fhir:value "http://example.org/fhir/cqi/ecqm/Measure/Identifier/cms" ] ; fhir:Identifier.value [ fhir:value "108" ] ], [ fhir:index -1 ; fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ] ; fhir:Identifier.value [ fhir:value "urn:oid:2.16.840.1.113883.4.642.40.61.29.3" ] ] ; fhir:Measure.version [ fhir:value "2.0.0"] ; fhir:Measure.name [ fhir:value "EXM108"] ; fhir:Measure.title [ fhir:value "EXM108 - Venous Thromboembolism Prophylaxis"] ; fhir:Measure.status [ fhir:value "active"] ; fhir:Measure.experimental [ fhir:value "true"^^xsd:boolean] ; fhir:Measure.date [ fhir:value "2025-08-13"^^xsd:date] ; fhir:Measure.publisher [ fhir:value "HL7 International / Clinical Quality Information"] ; fhir:Measure.contact [ fhir:index -1 ; fhir:ContactDetail.telecom [ fhir:index -1 ; fhir:ContactPoint.system [ fhir:value "url" ] ; fhir:ContactPoint.value [ fhir:value "http://www.hl7.org/Special/committees/cqi" ] ] ] ; fhir:Measure.description [ fhir:value "This measure assesses the number of patients who received VTE prophylaxis or have documentation why no VTE prophylaxis was given the day of or the day after hospital admission or surgery end date for surgeries that start the day of or the day after hospital admission"] ; fhir:Measure.useContext [ fhir:index -1 ; fhir:UsageContext.code [ fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/usage-context-type" ] ; fhir:Coding.code [ fhir:value "venue" ] ; fhir:Coding.display [ fhir:value "Clinical Venue" ] ] ; fhir:UsageContext.valueCodeableConcept [ fhir:CodeableConcept.coding [ fhir:index -1 ; fhir:Coding.system [ fhir:value "http://hl7.org/fhir/uv/cqm/CodeSystem/intended-venue-codes" ] ; fhir:Coding.code [ fhir:value "eh" ] ; fhir:Coding.display [ fhir:value "EH" ] ] ] ] ; fhir:Measure.jurisdiction [ fhir:index -1 ; fhir:CodeableConcept.coding [ fhir:index -1 ; fhir:Coding.system [ fhir:value "http://unstats.un.org/unsd/methods/m49/m49.htm" ] ; fhir:Coding.code [ fhir:value "001" ] ] ] ; fhir:Measure.copyright [ fhir:value "Measure specifications are in the Public Domain.\n\nLOINC(R) is a registered trademark of the Regenstrief Institute.\n\nThis material contains SNOMED Clinical Terms(R) (SNOMED CT(C)) copyright 2004-2017 International Health Terminology Standards Development Organization. All rights reserved."] ; fhir:Measure.approvalDate [ fhir:value "2019-03-08"^^xsd:date] ; fhir:Measure.lastReviewDate [ fhir:value "2019-03-08"^^xsd:date] ; fhir:Measure.effectivePeriod [ fhir:Period.start [ fhir:value "2018-01-01"^^xsd:date ] ; fhir:Period.end [ fhir:value "2018-12-31"^^xsd:date ] ] ; fhir:Measure.topic [ fhir:index -1 ; fhir:CodeableConcept.coding [ fhir:index -1 ; a loinc:57024-2 ; fhir:Coding.system [ fhir:value "http://loinc.org" ] ; fhir:Coding.code [ fhir:value "57024-2" ] ; fhir:Coding.display [ fhir:value "Health Quality Measure Document" ] ] ] ; fhir:Measure.library [ fhir:value "http://hl7.org/fhir/uv/cqm/Library/EXM108" ; fhir:index -1 ; fhir:link <http://hl7.org/fhir/uv/cqm/Library/EXM108> ] ; fhir:Measure.disclaimer [ fhir:value "These performance measures are not clinical guidelines and do not establish a standard of medical care, and have not been tested for all potential applications. The measures and specifications are provided without warranty"] ; fhir:Measure.scoring [ fhir:CodeableConcept.coding [ fhir:index -1 ; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-scoring" ] ; fhir:Coding.code [ fhir:value "proportion" ] ; fhir:Coding.display [ fhir:value "Proportion" ] ] ] ; fhir:Measure.type [ fhir:index -1 ; fhir:CodeableConcept.coding [ fhir:index -1 ; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-type" ] ; fhir:Coding.code [ fhir:value "process" ] ] ] ; fhir:Measure.rationale [ fhir:value "Hospitalized patients at high-risk for VTE may develop an asymptomatic deep vein thrombosis (DVT), and die from pulmonary embolism (PE) even before the diagnosis is suspected. The majority of fatal events occur as sudden or abrupt death, underscoring the importance of prevention as the most critical action step for reducing death from PE (Geerts, et al, 2008).\n\nThe estimated annual incidence of deep-vein thrombosis (DVT) and pulmonary embolism (PE), known collectively as venous thromboembolism (VTE), is approximately 900,000 (Geerts, et al, 2008). Approximately two-thirds of cases of DVT or PE are associated with recent hospitalization. This is consistent with the 2001 report by The Agency for Healthcare Research and Quality (AHRQ). AHRQ indicates that \"the appropriate application of effective preventive measures in hospitals has major potential for improving patient safety by reducing the incidence of venous thromboembolism\" (Shojania, 2001).\n\nDespite its proven effectiveness, rates of appropriate thromboprophylaxis remain low in both medical and surgical patients. A recent analysis from the ENDORSE survey, which evaluated prophylaxis rates in 17,084 major surgery patients, found that more than one third of patients at risk for VTE (38%) did not receive prophylaxis and that rates varied by surgery type (Cohen, et al., 2008).\n\nIn a review of evidence-based patient safety practices, the Agency for Healthcare Research and Quality defined thromboprophylaxis against VTE as the \"number one patient safety practice\" for hospitalized patients (Shojania, 2001). Updated \"safe practices\" published by the National Quality Forum (NQF) recommend routine evaluation of hospitalized patients for risk of VTE and use of appropriate prophylaxis (National Quality Forum. National Voluntary Consensus Standards for Prevention and Care of Venous Thromboembolism, 2006).\n\nAs noted by the ACCP, a vast number of randomized clinical trials provide irrefutable evidence that thromboprophylaxis reduces VTE events, and there are studies that have also shown that fatal PE is prevented by thromboprophylaxis (Geerts, et al. 2008).\n\nSome select surgeries have previously been monitored in the Surgical Care Improvement Project; since performance on these surgeries has achieved very high levels, they are not included in this measure."] ; fhir:Measure.clinicalRecommendationStatement [ fhir:value "Failure to recognize and protect patients at risk for venous thromboembolism (VTE) increases the chances for acutely ill hospitalized patients at high risk for developing a deep vein thrombosis or dying from a pulmonary emboli. Screening all patients is the only evidence based practice in reducing incidence of disease. All hospitalized patients should be evaluated for primary VTE prophylaxis, and given appropriate prophylaxis when indicated."] ; fhir:Measure.improvementNotation [ fhir:CodeableConcept.coding [ fhir:index -1 ; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-improvement-notation" ] ; fhir:Coding.code [ fhir:value "increase" ] ; fhir:Coding.display [ fhir:value "Increased score indicates improvement" ] ] ] ; fhir:Measure.guidance [ fhir:value "When low dose unfractionated heparin is administered for VTE Prophylaxis, the intended administration route for low dose unfractionated heparin is subcutaneous.\n\nReasons for no pharmacological and no mechanical VTE prophylaxis must be explicitly documented by the MD/APN/PA or pharmacist and linked with VTE prophylaxis. Ambulation alone is not a sufficient reason for not administering VTE prophylaxis. In order for ambulation/patient ambulating to be considered as an acceptable reason, there needs to be explicit documentation, e.g., \"patient out of bed and ambulating in halls - no VTE prophylaxis needed.\""] ; fhir:Measure.group [ fhir:index -1 ; fhir:Element.id [ fhir:value "group-1" ] ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.linkId" ] ; fhir:Extension.valueString [ fhir:value "primary" ] ] ; fhir:Measure.group.population [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId" ] ; fhir:Extension.valueString [ fhir:value "primary-exm108-initial-population" ] ] ; fhir:Measure.group.population.code [ fhir:CodeableConcept.coding [ fhir:index -1 ; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-population" ] ; fhir:Coding.code [ fhir:value "initial-population" ] ; fhir:Coding.display [ fhir:value "Initial Population" ] ] ] ; fhir:Measure.group.population.description [ fhir:value "Patients age 18 and older discharged from hospital inpatient acute care without a diagnosis of venous thromboembolism (VTE) or obstetrics with a length of stay less than or equal to 120 days that ends during the measurement period" ] ; fhir:Measure.group.population.criteria [ fhir:Expression.language [ fhir:value "text/cql-identifier" ] ; fhir:Expression.expression [ fhir:value "Initial Population" ] ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId" ] ; fhir:Extension.valueString [ fhir:value "primary-exm108-numerator" ] ] ; fhir:Measure.group.population.code [ fhir:CodeableConcept.coding [ fhir:index -1 ; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-population" ] ; fhir:Coding.code [ fhir:value "numerator" ] ; fhir:Coding.display [ fhir:value "Numerator" ] ] ] ; fhir:Measure.group.population.description [ fhir:value "Patients who received VTE prophylaxis:\n- the day of or the day after hospital admission\n- the day of or the day after surgery end date for surgeries that end the day of or the day after hospital admission\n\nPatients who have documentation of a reason why no VTE prophylaxis was given:\n- between arrival and hospital admission\n- the day of or the day after hospital admission\n- the day of or the day after surgery end date (for surgeries that end the day of or the day after hospital admission)" ] ; fhir:Measure.group.population.criteria [ fhir:Expression.language [ fhir:value "text/cql-identifier" ] ; fhir:Expression.expression [ fhir:value "Numerator" ] ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId" ] ; fhir:Extension.valueString [ fhir:value "primary-exm108-denominator" ] ] ; fhir:Measure.group.population.code [ fhir:CodeableConcept.coding [ fhir:index -1 ; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-population" ] ; fhir:Coding.code [ fhir:value "denominator" ] ; fhir:Coding.display [ fhir:value "Denominator" ] ] ] ; fhir:Measure.group.population.description [ fhir:value "All patients in the initial population" ] ; fhir:Measure.group.population.criteria [ fhir:Expression.language [ fhir:value "text/cql-identifier" ] ; fhir:Expression.expression [ fhir:value "Denominator" ] ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId" ] ; fhir:Extension.valueString [ fhir:value "primary-exm108-denominator-exclusion" ] ] ; fhir:Measure.group.population.code [ fhir:CodeableConcept.coding [ fhir:index -1 ; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-population" ] ; fhir:Coding.code [ fhir:value "denominator-exclusion" ] ; fhir:Coding.display [ fhir:value "Denominator Exclusion" ] ] ] ; fhir:Measure.group.population.description [ fhir:value "* Patients who have a length of stay less than 2 days\n* Patients with comfort measures documented anytime between arrival and the day after hospital admission\n* Patients with comfort measures documented by the day after surgery end date for surgeries that start the day of or the day after hospital admission\n* Patients who are direct admits to intensive care unit (ICU), or transferred to ICU the day of or the day after hospital admission with ICU length of stay greater than or equal to one day\n* Patients with a principal diagnosis of mental disorders or stroke\n* Patients with a principal procedure of Surgical Care Improvement Project (SCIP) VTE selected surgeries" ] ; fhir:Measure.group.population.criteria [ fhir:Expression.language [ fhir:value "text/cql-identifier" ] ; fhir:Expression.expression [ fhir:value "Denominator Exclusion" ] ] ] ] ; fhir:Measure.supplementalData [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId" ] ; fhir:Extension.valueString [ fhir:value "primary-sde-ethnicity" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-includeInReportType" ] ; fhir:Extension.valueCode [ fhir:value "summary" ] ] ; fhir:Measure.supplementalData.usage [ fhir:index -1 ; fhir:CodeableConcept.coding [ fhir:index -1 ; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-data-usage" ] ; fhir:Coding.code [ fhir:value "supplemental-data" ] ] ] ; fhir:Measure.supplementalData.criteria [ fhir:Expression.language [ fhir:value "text/cql-identifier" ] ; fhir:Expression.expression [ fhir:value "SDE Ethnicity" ] ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId" ] ; fhir:Extension.valueString [ fhir:value "primary-sde-payer" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-includeInReportType" ] ; fhir:Extension.valueCode [ fhir:value "summary" ] ] ; fhir:Measure.supplementalData.usage [ fhir:index -1 ; fhir:CodeableConcept.coding [ fhir:index -1 ; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-data-usage" ] ; fhir:Coding.code [ fhir:value "supplemental-data" ] ] ] ; fhir:Measure.supplementalData.criteria [ fhir:Expression.language [ fhir:value "text/cql-identifier" ] ; fhir:Expression.expression [ fhir:value "SDE Payer" ] ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId" ] ; fhir:Extension.valueString [ fhir:value "primary-sde-race" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-includeInReportType" ] ; fhir:Extension.valueCode [ fhir:value "summary" ] ] ; fhir:Measure.supplementalData.usage [ fhir:index -1 ; fhir:CodeableConcept.coding [ fhir:index -1 ; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-data-usage" ] ; fhir:Coding.code [ fhir:value "supplemental-data" ] ] ] ; fhir:Measure.supplementalData.criteria [ fhir:Expression.language [ fhir:value "text/cql-identifier" ] ; fhir:Expression.expression [ fhir:value "SDE Race" ] ] ], [ fhir:index -1 ; fhir:Element.extension [ fhir:index -1 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId" ] ; fhir:Extension.valueString [ fhir:value "primary-sde-sex" ] ], [ fhir:index -1 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-includeInReportType" ] ; fhir:Extension.valueCode [ fhir:value "summary" ] ] ; fhir:Measure.supplementalData.usage [ fhir:index -1 ; fhir:CodeableConcept.coding [ fhir:index -1 ; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-data-usage" ] ; fhir:Coding.code [ fhir:value "supplemental-data" ] ] ] ; fhir:Measure.supplementalData.criteria [ fhir:Expression.language [ fhir:value "text/cql-identifier" ] ; fhir:Expression.expression [ fhir:value "SDE Sex" ] ] ] . # - ontology header ------------------------------------------------------------ <http://hl7.org/fhir/Measure/EXM108-FHIR.ttl> a owl:Ontology ; owl:imports fhir:fhir.ttl ; owl:versionIRI <http://build.fhir.org/Measure/EXM108-FHIR.ttl> .
IG © 2019+ HL7 International / Clinical Quality Information.
Package hl7.fhir.uv.cqm#2.0.0 based on FHIR 4.0.1.
Generated
2026-09-02
Links: Table of Contents |
QA Report
| Version History |
|
Propose a change
