| eCQM Title | Hospital Harm - Postoperative Venous Thromboembolism |
||
|---|---|---|---|
| CMS ID | 1061 | eCQM Version Number | Draft based on 1.1.047 |
| CBE Number | Not Applicable | GUID | 7e887cc3-8e90-401c-bb55-ba4c562cb03c |
| Measurement Period | January 1, 2026 through December 31, 2026 | ||
| Measure Steward | Centers for Medicare & Medicaid Services (CMS) | ||
| Measure Developer | Mathematica | ||
| Endorsed By | None | ||
| Description |
The proportion of inpatient encounters for patients age 18 and older, who have at least one surgical procedure performed inside the operating room during the encounter, and who suffer the harm of a postoperative venous thromboembolism (VTE) during the encounter or within 30 days after the first surgical procedure. |
||
| Copyright |
Limited proprietary coding is contained in the Measure specifications for user convenience. Users of proprietary code sets should obtain all necessary licenses from the owners of the code sets. Mathematica disclaims all liability for use or accuracy of any third party codes contained in the specifications. LOINC(R) copyright 2004-2024 Regenstrief Institute, Inc. This material contains SNOMED Clinical Terms(R) (SNOMED CT[R]) copyright 2004-2024 International Health Terminology Standards Development Organisation. ICD-10 copyright 2024 World Health Organization. All Rights Reserved. |
||
| Disclaimer |
This measure and specifications are subject to further revisions. This performance measure is not a clinical guideline and does not establish a standard of medical care, and has not been tested for all potential applications. THE MEASURES AND SPECIFICATIONS ARE PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND. Due to technical limitations, registered trademarks are indicated by (R) or [R] and unregistered trademarks are indicated by (TM) or [TM]. |
||
| Measure Scoring | Proportion | ||
| Measure Type | Outcome | ||
| Stratification |
None |
||
| Risk Adjustment |
The measure’s initial risk model will include the following factors: Sex Age Bleeding disorders Cancer Catheterization insertion History of venous thromboembolism (VTE) Obesity Respiratory operations Stroke Vascular surgery In addition to the above risk factors, which are included in the risk model, the measure also captures the following diagnoses and procedures to support the potential modification of the risk adjustment model in future years: Diabetes Fractures Hip/knee replacement Hormone therapy use Tobacco use Please see risk adjustment methodology details available within the Hospital Harm – Postoperative Venous Thromboembolism Risk Adjustment Methodology Report on the eCQI Resource Center website. |
||
| Rate Aggregation |
None |
||
| Rationale |
In-hospital postoperative venous thromboembolism (VTE) encompasses both deep vein thrombosis (DVTs) and pulmonary embolisms (PEs). DVT is associated with poor clinical outcomes, including post-thrombotic syndrome in the leg, anticoagulation-related bleeding, and death (Bysshe et al., 2017). Even though VTE is linked to adverse patient outcomes, there are evidence-based strategies for preventing VTE in hospital settings. During 2019, 2021, and 2022, patients in the United States experienced 51,586 perioperative VTEs (AHRQ, 2024). This volume of detected, preventable safety events illustrates that there are continued opportunities to reduce the rate of postoperative VTEs. In terms of processes of care that clinicians can utilize to prevent these safety events, one study found evidence that combining hospital interventions, such as mechanical and pharmacological prophylaxis, can reduce the incidence of DVT among patients undergoing surgery or admitted with trauma (Kakkos et al., 2022). Another study found that interruptions or delays in the prescription of VTE prophylaxis in surgical patients are associated with a 2- to 3- fold increased risk of VTE (Henke et al., 2020). Furthermore, there are clinical guidelines (noted in the clinical recommendation statement section) to support and improve clinical decision making in the prevention of VTE. As such, hospitals have evidence-based strategies to prevent VTEs in the inpatient setting. These findings suggest that there are opportunities to lower postoperative VTE rates through hospital intervention. |
||
| Clinical Recommendation Statement |
Current clinical practice guidelines recommend the administration of mechanical and/or pharmacologic prophylaxis along with the implementation of a formal strategy within the hospital as appropriate methods to prevent VTE postoperatively. The American College of Chest Physicians (CHEST) provides the following recommendations as they pertain to general and abdominal-pelvic surgery patients (Gould et al., 2012): 3.6.3. For general and abdominal-pelvic surgery patients at moderate risk for VTE (∼3.0%; Rogers score, > 10; Caprini score, 3-4) who are not at high risk for major bleeding complications, we suggest low-molecular-weight heparin (LMWH) (Grade 2B), low-dose unfractionated heparin (LDUH) (Grade 2B), or mechanical prophylaxis, preferably with IPC (Grade 2C), over no prophylaxis. 3.6.5. For general and abdominal-pelvic surgery patients at high risk for VTE (∼6.0%; Caprini score, ≥ 5) who are not at high risk for major bleeding complications, we recommend pharmacologic prophylaxis with LMWH (Grade 1B) or LDUH (Grade 1B) over no prophylaxis. We suggest that mechanical prophylaxis with elastic stockings (ES) or IPC should be added to pharmacologic prophylaxis (Grade 2C). CHEST provides the following recommendation as it pertains to cardiac surgery patients (Gould et al., 2012): 4.4.2 For cardiac surgery patients whose hospital course is prolonged by one or more no hemorrhagic surgical complications, we suggest adding pharmacologic prophylaxis with LDUH or LMWH to mechanical prophylaxis (Grade 2C). CHEST provides the following recommendation as it pertains to thoracic surgery patients (Gould et al., 2012): 5.4.2 For thoracic surgery patients at high risk for VTE who are not at high risk for perioperative bleeding, we suggest LDUH or LMWH over no prophylaxis (Grade 1C). CHEST provides the following recommendation as it pertains to craniotomy patients (Gould et al., 2012): 6.4.2 For craniotomy patients at very high risk for VTE (e.g., those undergoing craniotomy for malignant disease), we suggest adding pharmacologic prophylaxis to mechanical prophylaxis once adequate hemostasis is established and the risk of bleeding decreases (Grade 2C). CHEST provides the following recommendation as it pertains to spinal surgery patients (Gould et al., 2012): 7.4.2 For patients undergoing spinal surgery at high risk for VTE (including those with malignant disease or those undergoing surgery with a combined anterior-posterior approach), we suggest adding pharmacologic prophylaxis to mechanical prophylaxis once adequate hemostasis is established and the risk of bleeding decreases (Grade 2C). The American Society of Hematology (ASH) provides the following guidelines (Anderson et al., 2019): Recommendation 4. For patients undergoing major surgery who receive pharmacologic prophylaxis, the ASH guideline panel suggests using combined prophylaxis with mechanical and pharmacological methods over prophylaxis with pharmacological agents alone. Recommendation 5. For patients undergoing major surgery, the ASH guideline panel suggests depending on the individual patient and the type of surgical procedure, using combined prophylaxis or mechanical prophylaxis alone. Recommendation 6. For patients undergoing major surgery, the ASH guideline panel suggests against using inferior vena cava (IVC) filters for prophylaxis of VTE. Recommendation 10. In patients undergoing total hip or total knee arthroplasty, conditional recommendations included using either aspirin or anticoagulants, as well as for a direct oral anticoagulant over low-molecular-weight heparin (LMWH). |
||
| Improvement Notation |
A lower proportion indicates better quality. |
||
| Reference |
Reference Type: CITATION Reference Text: 'AHRQ PSI Technical Documentation, Version v2024, Agency for Healthcare Research and Quality, Rockville, MD. https://qualityindicators.ahrq.gov/measures/psi_resources. Accessed March 29th, 2025' |
||
| Reference |
Reference Type: CITATION Reference Text: 'Anderson, D. R., Morgano, G. P., Bennett, C., Dentali, F., Francis, C. W., Garcia, D. A., Kahn, S. R., Rahman, M., Rajasekhar, A., Rogers, F. B., Smythe, M. A., Tikkinen, K. A. O., Yates, A. J., Baldeh, T., Balduzzi, S., Brożek, J. L., Ikobaltzeta, I. E., Johal, H., Neumann, I., . . . Dahm, P. (2019). American Society of Hematology 2019 guidelines for management of venous thromboembolism: prevention of venous thromboembolism in surgical hospitalized patients. Blood Advances, 3(23), 3898–3944. https://doi.org/10.1182/bloodadvances.2019000975' |
||
| Reference |
Reference Type: CITATION Reference Text: 'Bartlett, M. A., Mauck, K. F., Stephenson, C. R., Ganesh, R., & Daniels, P. R. (2020). Perioperative venous thromboembolism prophylaxis. Mayo Clinic Proceedings, 95(12), 2775–2798. https://doi.org/10.1016/j.mayocp.2020.06.015' |
||
| Reference |
Reference Type: CITATION Reference Text: 'Bysshe, T., Gao, Y., Heaney-Huls, K., Hockenberry, J., Hovey, L., Laffan, A. M., Lee, S., Murphy, D. J. &, Watts, E. (2017). Estimating the additional hospital inpatient cost and mortality associated with selected Hospital-Acquired conditions. Agency for Healthcare Research and Quality. https://www.norc.org/content/dam/norc-org/documents/standard-projects-pdf/hac-cost-report2017.pdf' |
||
| Reference |
Reference Type: CITATION Reference Text: 'Centers for Medicare & Medicaid Services. (2024). Quality in Motion: Acting on the CMS National Quality Strategy. https://www.cms.gov/files/document/quality-motion-cms-national-quality-strategy.pdf' |
||
| Reference |
Reference Type: CITATION Reference Text: 'Gould, M. K., Garcia, D. A., Wren, S. M., Karanicolas, P. J., Arcelus, J. I., Heit, J. A., & Samama, C. M. (2012). Prevention of VTE in nonorthopedic surgical patients. Antithrombotic therapy and prevention of thrombosis, 9th ed: American College of Chest Physicians evidence-based clinical practice guidelines. Chest, 141(2), e227S-e277S. https://doi.org/10.1378/chest.11-2297' |
||
| Reference |
Reference Type: CITATION Reference Text: 'Hanley, M., Steigner, M. L., Ahmed, O., Azene, E. M., Bennett, S. J., Chandra, A., Desjardins, B., Gage, K. L., Ginsburg, M., Mauro, D., Oliva, I. B., Ptak, T., Strax, R., Verma, N., & Dill, K. E. (2018). American College of Radiology ACR Appropriateness Criteria®: Suspected Lower Extremity Deep Vein Thrombosis. American College of Radiology. https://acsearch.acr.org/docs/69416/Narrative' |
||
| Reference |
Reference Type: CITATION Reference Text: 'Henke, P. K., Kahn, S. R., Pannucci, C. J., Secemksy, E. A., Evans, N. S., Khorana, A. A., Creager, M. A., & Pradhan, A. D. (2020). Call to action to prevent venous thromboembolism in hospitalized patients: A policy statement from the American Heart Association. Circulation, 141(24). https://doi.org/10.1161/cir.0000000000000769' |
||
| Reference |
Reference Type: CITATION Reference Text: 'Kakkos, S., Kirkilesis, G., Caprini, J. A., Geroulakos, G., Nicolaides, A., Stansby, G., & Reddy, D. J. (2022). Combined intermittent pneumatic leg compression and pharmacological prophylaxis for prevention of venous thromboembolism. The Cochrane database of systematic reviews, 1(1), CD005258. https://doi.org/10.1002/14651858.CD005258.pub4' |
||
| Reference |
Reference Type: CITATION Reference Text: 'Key, N. S., Khorana, A. A., Kuderer, N. M., Bohlke, K., Lee, A. Y. Y., Arcelus, J. I., Wong, S. L., Balaban, E. P., Flowers, C. R., Gates, L. E., Kakkar, A. K., Tempero, M. A., Gupta, S., Lyman, G. H., & Falanga, A. (2023). Venous Thromboembolism Prophylaxis and Treatment in Patients With Cancer: ASCO Guideline Update. Journal of clinical oncology : official journal of the American Society of Clinical Oncology, 41(16), 3063–3071. https://doi.org/10.1200/JCO.23.00294' |
||
| Reference |
Reference Type: CITATION Reference Text: 'Konstantinides S V., Meyer G, Bueno H, et al. 2019 ESC Guidelines for the diagnosis and management of acute pulmonary embolism developed in collaboration with the European respiratory society (ERS). Eur Heart J. 2020;41(4):543-603. doi:10.1093/eurheartj/ehz405.' |
||
| Reference |
Reference Type: CITATION Reference Text: 'National Institute for Health and Care Excellence Venous thromboembolic diseases: diagnosis, management and thrombophilia testing NG158. 2020 https://www.nice.org.uk/guidance/ng158 (accessed 2 Jul 2021).' |
||
| Reference |
Reference Type: CITATION Reference Text: 'Stevens, S. M., Woller, S. C., Baumann Kreuziger, L., Doerschug, K., Geersing, G. J., Klok, F. A., King, C. S., Murin, S., Vintch, J. R. E., Wells, P. S., Wasan, S., & Moores, L. K. (2024). Antithrombotic Therapy for VTE Disease: Compendium and Review of CHEST Guidelines 2012-2021. Chest, 166(2), 388–404. https://doi.org/10.1016/j.chest.2024.03.003' |
||
| Reference |
Reference Type: CITATION Reference Text: 'Stevens, S. M., Woller, S. C., Kreuziger, L. B., Bounameaux, H., Doerschug, K., Geersing, G.-J., Huisman, M. V., Kearon, C., King, C. S., Knighton, A. J., Lake, E., Murin, S., Vintch, J. R. E., Wells, P. S., & Moores, L. K. (2021). Antithrombotic therapy for VTE disease. Chest, 160(6). https://doi.org/10.1016/j.chest.2021.07.055' |
||
| Definition |
Inpatient encounters: Includes time in the emergency department, observation and outpatient surgery service when the transition between these encounters (if they exist) and the inpatient encounter are within an hour or less of each other. Surgical procedures: The combined concepts of anesthesia data AND operating room location are used to determine if a surgical procedure occurred. Patients are admitted to the operating room location for any surgical procedure. Using these combined concepts identifies patients at higher risk of developing a postoperative venous thromboembolism (VTE). First surgical procedure: The first surgical procedure occurring during the inpatient encounter. The measure is specified to assess whether a VTE occurred within 30 days following the first surgical procedure. Qualifying inpatient encounter: The inpatient encounter that qualifies a patient for the measure denominator. The measure identifies whether a VTE occurs within 30 days of the first surgical procedure that occurs during this qualifying inpatient encounter. Criteria A and B identify instances when that post-operative VTE occurs during the qualifying inpatient encounter, and Criteria C identifies instances when that post-operative VTE occurs during a subsequent encounter, but all of these criteria limit their scope to VTEs occurring within the 30-day window following the first surgical procedure of the qualifying inpatient encounter. Subsequent encounter: An inpatient encounter occurring within 30 days of the first surgical procedure of the qualifying inpatient encounter. If a patient experiences a VTE during this encounter as defined by numerator Criteria C, the qualifying inpatient encounter is included in the measure numerator. If a subsequent encounter qualifies the preceding qualifying inpatient encounter for inclusion in the measure numerator, then the subsequent encounter cannot qualify as a qualifying inpatient encounter, even if it otherwise satisfies the measure denominator criteria. A postoperative VTE is defined as a pulmonary embolism (PE) or lower extremity deep vein thrombosis (DVT) experienced by postoperative patients within 30 days following their first surgical procedure. The measure uses four methods to detect a postoperative VTE event, three of which occur within the qualifying inpatient encounter and the fourth occurs in a subsequent encounter. These methods include (1) the use of a diagnostic imaging study and administration of anticoagulants, (2) placement of inferior vena cava filter, (3) diagnosis of VTE not present on admission, or (4) a VTE diagnosed and administration of anticoagulation therapy during a subsequent encounter. To reduce sensitivity to overdiagnosis bias, diagnosis codes for distal (calf) vein thromboses, solitary subsegmental pulmonary emboli, and unspecified VTE diagnosis codes are not considered as a qualifying VTE diagnosis. The American College of Radiology Expert Panel on Vascular Imaging states, “DVT that is limited to the infrapopliteal calf veins (i.e., below-the-knee or distal DVT) often resolves spontaneously and is rarely associated with pulmonary embolism or other adverse outcome” (Hanley et al., 2018). Similarly, CHEST guidelines state that subsegmental pulmonary emboli is more likely to be a false-positive finding, and clinicians may be safe to refrain from providing anticoagulant therapy if no proximal DVT is present (Stevens et al., 2021). In Criterion B, due to the risk of bleeding with intracranial or spinal surgeries if VTE prophylaxis is administered, postoperative VTE events will only be considered in the numerator if a diagnostic imaging study is performed after thromboprophylaxis is deemed safe to start which is between 5 days and up to 30 days after the end of the first surgical procedure performed during the qualifying inpatient encounter. In Criterion C, anticoagulation therapy ordered or prescribed during the subsequent encounter is defined by an anticoagulant medication ordered during the subsequent encounter or an anticoagulant ordered at discharge of the subsequent encounter. Present on admission (POA) is defined as the conditions present at the time the order for inpatient admission occurs. The POA Indicator is intended to differentiate conditions present at the time of admission from those conditions that develop during the inpatient admission. A POA Indicator of Y = yes (Diagnosis was present at time of inpatient admission). A POA Indicator of N = no (Diagnosis was not present at time of inpatient admission.) A POA Indicator of W = clinically undetermined A POA Indicator of U = documentation insufficient to determine if the condition was present at the time of inpatient admission Per CMS and the Agency for Healthcare Research and Quality (AHRQ) convention, POA indicators of Y and W are accepted indicators of a diagnosis present on admission. POA indicators of N and U are accepted indicators of a diagnosis that is not present on admission. The factor "history of venous thromboembolism (VTE)" included in the measure’s initial risk model is defined as a VTE risk assessment completed with a result of high risk during or before the encounter OR if there was a history of VTE as a diagnosis during or before the encounter. |
||
| Guidance |
To calculate the observed hospital-level measure result, divide the total numerator events by the total number of denominator eligible inpatient encounters (denominator-denominator exclusions). To generate the hospital’s risk adjusted rates, CMS uses a regression model to account for sex, age, cancer, catheterization insertion, history of venous thromboembolism (VTE), fractures, and obesity. Please see risk adjustment methodology details available within the Hospital Harm – Postoperative Venous Thromboembolism Risk Adjustment Methodology Report on the eCQM-specific page on the eCQI Resource Center website. Only one harm (numerator event) is counted per qualifying inpatient encounter and within the 30 day evaluation period. This eCQM is an episode-based measure. An episode is defined as each inpatient encounter that ends during the measurement period. This version of the eCQM uses QDM version 5.6. Please refer to the eCQI resource center (https://ecqi.healthit.gov/qdm) for more information on the QDM. |
||
| Transmission Format |
TBD |
||
| Initial Population |
Inpatient encounters for patients age 18 and older where a surgical procedure was performed inside the operating room during the encounter. |
||
| Denominator |
Equals Initial Population |
||
| Denominator Exclusions |
Inpatient encounters for
- Patients with an obstetric-related diagnosis during the inpatient encounter
- Patients with a venous thromboembolism (VTE) diagnosis present on admission
- Patients who had extracorporeal membrane oxygenation (ECMO) during the inpatient encounter
- Patients with acute brain or spinal injury or hemorrhage present on admission
- Patients who had a thrombectomy procedure which occurred before or on the same day as the first
surgical procedure during the inpatient encounter
- Patients who had intracranial or spinal surgery during the inpatient encounter who were discharged less than
5 days after the end of the surgery
- Patients who have a duration of stay less than 2 calendar days
|
||
| Numerator |
Inpatient encounters for patients with a postoperative venous thromboembolism (VTE) within 30 days of the first surgical procedure.
Evidence of a postoperative VTE is determined by either Criterion A, B or C:
Criterion A: A qualifying inpatient encounter, excluding encounters where the first surgical procedure was an intracranial or spinal surgery procedure, with a diagnostic imaging study performed during the qualifying inpatient encounter and within 30 days or less after the end of the first surgical procedure performed and at least one of the following :
- An anticoagulation medication order within 24 hours after the end of the diagnostic imaging study during the qualifying inpatient encounter. An anticoagulation medication order is evidenced by:
- Enoxaparin (Lovenox) >80 mg per day
- Apixaban (Eliquis) >=10 mg per day
- Rivaroxaban (Xarelto) >=20 mg per day
- Fondaparinux (Arixtra) >= 5 mg per day
- Dalteparin sodium (Fragmin)>= 10,000 IU per day; or
- A heparin intravenous administration within 24 hours after the end of the diagnostic imaging study, with at least 2 aPTT heparin therapy monitoring tests or at least 2 Anti Factor Xa Assays within 35 hours of the start of heparin intravenous therapy administration all which occur during the qualifying inpatient encounter; or
- Placement of an inferior vena cava (IVC) filter within 24 hours after the end of the diagnostic imaging study and during the qualifying inpatient encounter; or
- A diagnosis of VTE which was not present on admission during the qualifying inpatient encounter.
OR
Criterion B: A qualifying inpatient encounter, where the first surgical procedure was for an intracranial or spinal surgery, and a diagnostic imaging study was performed during the qualifying inpatient encounter and the diagnostic imagining study occurred between 5 days and up to 30 days after the end of the first surgical procedure and at least one of the following:
- An anticoagulation medication order within 24 hours after the end of the diagnostic imaging study during the qualifying inpatient encounter. An anticoagulation medication order is evidenced by:
- Enoxaparin (Lovenox) >80 mg per day
- Apixaban (Eliquis) >=10 mg per day
- Rivaroxaban (Xarelto) >=20 mg per day
- Fondaparinux (Arixtra) >= 5 mg per day
- Dalteparin sodium (Fragmin)>= 10,000 IU per day; or
- A heparin intravenous administration within 24 hours after the diagnostic imaging study, with at least 2 aPTT heparin therapy monitoring tests or at least 2 Anti Factor Xa Assays within 35 hours of the start of heparin intravenous therapy administration, all of which occur during the qualifying inpatient encounter; or
- Placement of an inferior vena cava (IVC) filter within 24 hours after the end of the diagnostic imaging study and during the qualifying inpatient encounter; or
- A diagnosis of VTE which was not present on admission during the qualifying inpatient encounter.
OR
Criterion C: A VTE that occurs during a subsequent inpatient encounter and within 30 days or less after the end of the first surgical procedure that occurred during the qualifying inpatient encounter as evidenced by:
- A diagnosis of VTE during the subsequent encounter;
and
- Anticoagulation therapy ordered or prescribed during the subsequent encounter.
|
||
| Numerator Exclusions |
None |
||
| Denominator Exceptions |
None |
||
| Supplemental Data Elements |
For every patient evaluated by this measure also identify payer, race, ethnicity and sex |
||
"Encounter with Procedure with Anesthesia in the Operating Room"
"Initial Population"
"Encounter with Surgical Procedure and with Obstetrical Condition"
union "Encounter with VTE Present on Admission"
union "Encounter with ECMO Procedure"
union "Encounter with Acute Brain or Spinal Injury or Hemorrhage Present on Admission"
union "Encounter with Thrombectomy Before or Same Day As Another Procedure"
union "Intracranial or Spinal Surgery Encounter with Discharge Less Than 5 Days After Surgery"
union "Encounter with Length of Stay Less Than 2 Days"
"Encounter with PostOp Imaging Study without Intracranial or Spinal Surgery with Evidence of VTE"
union "Intracranial or Spinal Surgery Encounter with PostOp Imaging Study with Evidence of VTE"
union "Subsequent Encounter with VTE within 30 Days PostOp"
None
None
None
["Medication, Order": "Apixaban"] Apixiban
where Apixiban.dosage >= 10 'mg'
and Apixiban.frequency ~ "Once daily (qualifier value)"
or ( Apixiban.dosage >= 5 'mg'
and Apixiban.frequency ~ "Twice a day (qualifier value)"
)
["Medication, Order": "Dalteparin Anticoagulant"] Dalteparin
where Dalteparin.dosage >= 10000 'kg'
and Dalteparin.frequency ~ "Once daily (qualifier value)"
"Initial Population"
"Encounter with Surgical Procedure and with Obstetrical Condition"
union "Encounter with VTE Present on Admission"
union "Encounter with ECMO Procedure"
union "Encounter with Acute Brain or Spinal Injury or Hemorrhage Present on Admission"
union "Encounter with Thrombectomy Before or Same Day As Another Procedure"
union "Intracranial or Spinal Surgery Encounter with Discharge Less Than 5 Days After Surgery"
union "Encounter with Length of Stay Less Than 2 Days"
"Encounter with Procedure with Anesthesia in the Operating Room" InpatientEncounter
where exists ( InpatientEncounter.diagnoses BrainSpinalInjurydiagnosis
where BrainSpinalInjurydiagnosis.code in "Acute Brain or Spinal Injury or Hemorrhage"
and BrainSpinalInjurydiagnosis.presentOnAdmissionIndicator in "Present on Admission or Clinically Undetermined"
)
["Encounter, Performed": "Encounter Inpatient"] EncounterIP
where EncounterIP.relevantPeriod ends during day of "Measurement Period"
and AgeInYearsAt(date from start of EncounterIP.relevantPeriod) >= 18
"Encounter with Procedure with Anesthesia in the Operating Room" InpatientEncounter
with ["Procedure, Performed": "Extracorporeal Membrane Oxygenation"] ECMO
such that Global."NormalizeInterval" ( ECMO.relevantDatetime, ECMO.relevantPeriod ) during day of Global."HospitalizationWithObservationAndOutpatientSurgeryService" ( InpatientEncounter )
"Encounter with Procedure with Anesthesia in the Operating Room" InpatientEncounter
where "HospitalizationWithObservationAndOutpatientSurgeryServiceLengthOfStay"(InpatientEncounter) < 2
"Encounter with PostOp Imaging Study and Intravenous Heparin without Intracranial or Spinal Surgery" ImagingHeparinEncounter
where ( Count("AntiFactorXaAssayHeparinMonitoringTests"(ImagingHeparinEncounter)) > 1 )
"Encounter with PostOp Imaging Study and Intravenous Heparin without Intracranial or Spinal Surgery" ImagingHeparinEncounter
where ( Count("aPTTHeparinMonitoringTests"(ImagingHeparinEncounter)) > 1 )
from
"Encounter without Intracranial or Spinal Surgery with PostOp Imaging Study within 30 Days After Surgery" QualifyingEncounter,
"Imaging Study for VTE" ImagingStudy,
"Intravenous Heparin Administration" IntravenousHeparin
where Global."NormalizeInterval" ( IntravenousHeparin.relevantDatetime, IntravenousHeparin.relevantPeriod ) starts 24 hours or less after end of Global."NormalizeInterval" ( ImagingStudy.relevantDatetime, ImagingStudy.relevantPeriod )
return QualifyingEncounter
from
"Encounter without Intracranial or Spinal Surgery with PostOp Imaging Study within 30 Days After Surgery" QualifyingEncounter,
"Imaging Study for VTE" ImagingStudy,
["Procedure, Performed": "Inferior Vena Cava (IVC) Filter Placement"] IVCFilterPlacement
where Global."NormalizeInterval" ( ImagingStudy.relevantDatetime, ImagingStudy.relevantPeriod ) starts during Global."HospitalizationWithObservationAndOutpatientSurgeryService" ( QualifyingEncounter )
and Global."NormalizeInterval" ( IVCFilterPlacement.relevantDatetime, IVCFilterPlacement.relevantPeriod ) starts during Global."HospitalizationWithObservationAndOutpatientSurgeryService" ( QualifyingEncounter )
and Global."NormalizeInterval" ( IVCFilterPlacement.relevantDatetime, IVCFilterPlacement.relevantPeriod ) starts 24 hours or less after end of Global."NormalizeInterval" ( ImagingStudy.relevantDatetime, ImagingStudy.relevantPeriod )
return QualifyingEncounter
from
"Encounter without Intracranial or Spinal Surgery with PostOp Imaging Study within 30 Days After Surgery" QualifyingEncounter,
"Imaging Study for VTE" ImagingStudy,
"Non Heparin Therapeutic Medication Order" Anticoagulant
where Global."NormalizeInterval" ( ImagingStudy.relevantDatetime, ImagingStudy.relevantPeriod ) starts during Global."HospitalizationWithObservationAndOutpatientSurgeryService" ( QualifyingEncounter )
and Anticoagulant.authorDatetime during Global."HospitalizationWithObservationAndOutpatientSurgeryService" ( QualifyingEncounter )
and Anticoagulant.authorDatetime 24 hours or less after end of Global."NormalizeInterval" ( ImagingStudy.relevantDatetime, ImagingStudy.relevantPeriod )
return QualifyingEncounter
"Encounter without Intracranial or Spinal Surgery with PostOp Imaging Study within 30 Days After Surgery" QualifyingEncounter
where exists ( QualifyingEncounter.diagnoses VTEDiagnosis
where VTEDiagnosis.code in "Venous Thromboembolism"
and VTEDiagnosis.presentOnAdmissionIndicator in "Not Present On Admission or Documentation Insufficient to Determine"
)
"Encounter with Procedure with Anesthesia in the Operating Room" InpatientEncounter
with "Imaging Study for VTE" ImagingStudy
such that Global."NormalizeInterval" ( ImagingStudy.relevantDatetime, ImagingStudy.relevantPeriod ) during day of Global."HospitalizationWithObservationAndOutpatientSurgeryService" ( InpatientEncounter )
and Global."NormalizeInterval" ( ImagingStudy.relevantDatetime, ImagingStudy.relevantPeriod ) starts 30 days or less after end of Global."NormalizeInterval" ( "FirstProcedure"(InpatientEncounter).relevantDatetime, "FirstProcedure"(InpatientEncounter).relevantPeriod )
"Encounter with PostOp Imaging Study and Non Heparin Therapeutic Anticoagulant without Intracranial or Spinal Surgery"
union "Encounter with PostOp Imaging Study and Intravenous Heparin with at Least 2 AntiFactorXa Tests without Intracranial or Spinal Surgery"
union "Encounter with PostOp Imaging Study and Intravenous Heparin with at Least 2 aPTT Tests without Intracranial or Spinal Surgery"
union "Encounter with PostOp Imaging Study and IVC Filter Placement without Intracranial or Spinal Surgery"
union "Encounter with PostOp Imaging Study and VTE Diagnosis Not Present on Admission without Intracranial or Spinal Surgery"
"Encounter with Age Range" AgeEncounter
with ["Procedure, Performed": "General and Neuraxial Anesthesia"] AnesthesiaProcedure
such that Global."NormalizeInterval" ( AnesthesiaProcedure.relevantDatetime, AnesthesiaProcedure.relevantPeriod ) during day of Global."HospitalizationWithObservationAndOutpatientSurgeryService" ( AgeEncounter )
and exists ( AgeEncounter.facilityLocations EncounterLocation
where EncounterLocation.code ~ "Operating Room/Suite"
and Global."NormalizeInterval" ( AnesthesiaProcedure.relevantDatetime, AnesthesiaProcedure.relevantPeriod ) starts during EncounterLocation.locationPeriod
)
"Encounter with Procedure with Anesthesia in the Operating Room" EncounterWithSurgery
where ( exists ( EncounterWithSurgery.diagnoses EncounterDiagnoses
where EncounterDiagnoses.code in "Obstetrics and VTE Obstetrics"
)
)
"Encounter with Procedure with Anesthesia in the Operating Room" InpatientEncounter
with ["Procedure, Performed": "Pulmonary Arterial Thrombectomy"] Thrombectomy
such that Global."NormalizeInterval" ( Thrombectomy.relevantDatetime, Thrombectomy.relevantPeriod ) during day of Global."HospitalizationWithObservationAndOutpatientSurgeryService" ( InpatientEncounter )
and Global."NormalizeInterval" ( Thrombectomy.relevantDatetime, Thrombectomy.relevantPeriod ) starts on or before day of start of Global."NormalizeInterval" ( "FirstProcedure"(InpatientEncounter).relevantDatetime, "FirstProcedure"(InpatientEncounter).relevantPeriod )
"Encounter with Procedure with Anesthesia in the Operating Room" InpatientEncounter
where exists ( InpatientEncounter.diagnoses VTEdiagnosis
where VTEdiagnosis.code in "Venous Thromboembolism"
and VTEdiagnosis.presentOnAdmissionIndicator in "Present on Admission or Clinically Undetermined"
)
"Encounter with PostOp Imaging Study within 30 Days of Surgery" ImagingStudyEncounter
without "Intracranial or Spinal Surgery Encounter" SurgeryEncounter
such that SurgeryEncounter.relevantPeriod during ImagingStudyEncounter.relevantPeriod
["Medication, Order": "Enoxaparin Anticoagulant"] Enoxaparin
where Enoxaparin.dosage >= 40 'mg'
and Enoxaparin.frequency ~ "Twice a day (qualifier value)"
or ( Enoxaparin.dosage >= 70 'mg'
and Enoxaparin.frequency ~ "Once daily (qualifier value)"
)
["Medication, Order": "Fondaparinux Anticoagulant"] Fondaparinux
where (Fondaparinux.dosage >= 2.5 'mg'
and Fondaparinux.frequency ~ "Twice a day (qualifier value)"
or Fondaparinux.dosage >= 5 'mg'
and Fondaparinux.frequency ~ "Once daily (qualifier value)")
exists(["Assessment, Performed": "Risk for venous thromboembolism"] VTERiskAssessment
with "Initial Population" EncounterIP
such that VTERiskAssessment.result ~ "High" and
(Global."EarliestOf" ( VTERiskAssessment.relevantDatetime, VTERiskAssessment.relevantPeriod ) before day of EncounterIP.relevantPeriod
or Global."EarliestOf" ( VTERiskAssessment.relevantDatetime, VTERiskAssessment.relevantPeriod ) during day of EncounterIP.relevantPeriod))
exists("Initial Population" EncounterIP
where EncounterIP.diagnoses.code contains "Personal history of other venous thrombosis and embolism")
["Diagnostic Study, Performed": "CT Angiography of Chest"]
union ["Diagnostic Study, Performed": "Pulmonary Ventilation/Perfusion (VQ) Scan"]
union ["Diagnostic Study, Performed": "Ultrasound of Lower Extremities"]
union ["Diagnostic Study, Performed": "Abdominal or Pelvic CT Scan with Contrast"]
"Encounter with Procedure with Anesthesia in the Operating Room"
["Procedure, Performed": "Intracranial Neurosurgery"]
union ["Procedure, Performed": "Spinal Surgery"]
"Encounter with Procedure with Anesthesia in the Operating Room" InpatientEncounter
with "Intracranial or Spinal Surgery" BrainSpineSurgery
such that Global."NormalizeInterval" ( BrainSpineSurgery.relevantDatetime, BrainSpineSurgery.relevantPeriod ) during day of Global."HospitalizationWithObservationAndOutpatientSurgeryService" ( InpatientEncounter )
"Encounter with Procedure with Anesthesia in the Operating Room" InpatientEncounter
with "Intracranial or Spinal Surgery" BrainSpineSurgery
such that Global."NormalizeInterval" ( BrainSpineSurgery.relevantDatetime, BrainSpineSurgery.relevantPeriod ) during day of Global."HospitalizationWithObservationAndOutpatientSurgeryService" ( InpatientEncounter )
and Global."HospitalizationWithObservationAndOutpatientSurgeryService" ( InpatientEncounter ) ends less than 5 days after end of Global."NormalizeInterval" ( BrainSpineSurgery.relevantDatetime, BrainSpineSurgery.relevantPeriod )
from
"Intracranial or Spinal Surgery Encounter with PostOp Imaging Study Between 5 and 30 Days After Surgery" BrainSpinalEncounter,
"Imaging Study for VTE" ImagingStudy,
"Intravenous Heparin Administration" IntravenousHeparin
where Global."NormalizeInterval" ( IntravenousHeparin.relevantDatetime, IntravenousHeparin.relevantPeriod ) starts 24 hours or less after end of Global."NormalizeInterval" ( ImagingStudy.relevantDatetime, ImagingStudy.relevantPeriod )
return BrainSpinalEncounter
"Intracranial or Spinal Surgery Encounter with PostOp Imaging Study and Intravenous Heparin" SurgicalHeparinEncounter
where ( Count("AntiFactorXaAssayHeparinMonitoringTests"(SurgicalHeparinEncounter)) > 1 )
"Intracranial or Spinal Surgery Encounter with PostOp Imaging Study and Intravenous Heparin" SurgicalHeparinEncounter
where ( Count("aPTTHeparinMonitoringTests"(SurgicalHeparinEncounter)) > 1 )
from
"Intracranial or Spinal Surgery Encounter with PostOp Imaging Study Between 5 and 30 Days After Surgery" BrainSpinalEncounter,
"Imaging Study for VTE" ImagingStudy,
["Procedure, Performed": "Inferior Vena Cava (IVC) Filter Placement"] IVCFilterPlacement
where Global."NormalizeInterval" ( ImagingStudy.relevantDatetime, ImagingStudy.relevantPeriod ) starts during Global."HospitalizationWithObservationAndOutpatientSurgeryService" ( BrainSpinalEncounter )
and Global."NormalizeInterval" ( IVCFilterPlacement.relevantDatetime, IVCFilterPlacement.relevantPeriod ) during day of Global."HospitalizationWithObservationAndOutpatientSurgeryService" ( BrainSpinalEncounter )
and Global."NormalizeInterval" ( IVCFilterPlacement.relevantDatetime, IVCFilterPlacement.relevantPeriod ) starts 24 hours or less after end of Global."NormalizeInterval" ( ImagingStudy.relevantDatetime, ImagingStudy.relevantPeriod )
return BrainSpinalEncounter
from
"Intracranial or Spinal Surgery Encounter with PostOp Imaging Study Between 5 and 30 Days After Surgery" BrainSpinalEncounter,
"Imaging Study for VTE" ImagingStudy,
"Non Heparin Therapeutic Medication Order" Anticoagulant
where Global."NormalizeInterval" ( ImagingStudy.relevantDatetime, ImagingStudy.relevantPeriod ) starts during Global."HospitalizationWithObservationAndOutpatientSurgeryService" ( BrainSpinalEncounter )
and Anticoagulant.authorDatetime during Global."HospitalizationWithObservationAndOutpatientSurgeryService" ( BrainSpinalEncounter )
and Anticoagulant.authorDatetime 24 hours or less after end of Global."NormalizeInterval" ( ImagingStudy.relevantDatetime, ImagingStudy.relevantPeriod )
return BrainSpinalEncounter
"Intracranial or Spinal Surgery Encounter with PostOp Imaging Study Between 5 and 30 Days After Surgery" BrainSpinalEncounter
where exists ( BrainSpinalEncounter.diagnoses VTEDiagnosis
where VTEDiagnosis.code in "Venous Thromboembolism"
and VTEDiagnosis.presentOnAdmissionIndicator in "Not Present On Admission or Documentation Insufficient to Determine"
)
from
"Encounter with Procedure with Anesthesia in the Operating Room" InpatientEncounter,
"Intracranial or Spinal Surgery" BrainSpineSurgery,
"Imaging Study for VTE" ImagingStudy
where Global."NormalizeInterval" ( BrainSpineSurgery.relevantDatetime, BrainSpineSurgery.relevantPeriod ) during day of Global."HospitalizationWithObservationAndOutpatientSurgeryService" ( InpatientEncounter )
and Global."NormalizeInterval" ( ImagingStudy.relevantDatetime, ImagingStudy.relevantPeriod ) during day of Global."HospitalizationWithObservationAndOutpatientSurgeryService" ( InpatientEncounter )
and Global."NormalizeInterval" ( ImagingStudy.relevantDatetime, ImagingStudy.relevantPeriod ) during day of Interval[end of Global."NormalizeInterval" ( "FirstProcedure"(InpatientEncounter).relevantDatetime, "FirstProcedure"(InpatientEncounter).relevantPeriod ) + 5 days, end of Global."NormalizeInterval" ( "FirstProcedure"(InpatientEncounter).relevantDatetime, "FirstProcedure"(InpatientEncounter).relevantPeriod ) + 30 days]
return InpatientEncounter
"Intracranial or Spinal Surgery Encounter with PostOp Imaging Study and Non Heparin Therapeutic Anticoagulant"
union "Intracranial or Spinal Surgery Encounter with PostOp Imaging Study and Intravenous Heparin with at Least 2 AntiFactorXa Tests"
union "Intracranial or Spinal Surgery Encounter with PostOp Imaging Study and Intravenous Heparin with at Least 2 aPTT Tests"
union "Intracranial or Spinal Surgery Encounter with PostOp Imaging Study and IVC Filter Placement"
union "Intracranial or Spinal Surgery Encounter with PostOp Imaging Study and VTE Diagnosis Not Present on Admission"
["Medication, Administered": "Heparin"] HeparinMed
where HeparinMed.route in "Intravenous Heparin Administration Route"
"Apixiban Greater Than or Equal to 10mg Daily"
union "Dalteparin Greater Than or Equal to 10,000 kg Daily"
union "Enoxaparin Greater Than 80mg Daily"
union "Rivaroxaban Greater Than or Equal to 20 mg Daily"
union "Fondaparinux Greater Than or Equal to 5mg Daily"
"Encounter with PostOp Imaging Study without Intracranial or Spinal Surgery with Evidence of VTE"
union "Intracranial or Spinal Surgery Encounter with PostOp Imaging Study with Evidence of VTE"
union "Subsequent Encounter with VTE within 30 Days PostOp"
exists ("Initial Population" EncounterIP
where AgeInYearsAt(date from start of EncounterIP.relevantPeriod) >= 18 and
AgeInYearsAt(date from start of EncounterIP.relevantPeriod) <= 29)
exists("Initial Population" EncounterIP
where AgeInYearsAt(date from start of EncounterIP.relevantPeriod) >= 30 and
AgeInYearsAt(date from start of EncounterIP.relevantPeriod) <= 39)
exists("Initial Population" EncounterIP
where AgeInYearsAt(date from start of EncounterIP.relevantPeriod) >= 40 and
AgeInYearsAt(date from start of EncounterIP.relevantPeriod) <= 49)
exists("Initial Population" EncounterIP
where AgeInYearsAt(date from start of EncounterIP.relevantPeriod) >= 50 and
AgeInYearsAt(date from start of EncounterIP.relevantPeriod) <= 59)
exists("Initial Population" EncounterIP
where AgeInYearsAt(date from start of EncounterIP.relevantPeriod) >= 60 and
AgeInYearsAt(date from start of EncounterIP.relevantPeriod) <= 69)
exists("Initial Population" EncounterIP
where AgeInYearsAt(date from start of EncounterIP.relevantPeriod) >= 70 and
AgeInYearsAt(date from start of EncounterIP.relevantPeriod) <= 79)
exists("Initial Population" EncounterIP
where AgeInYearsAt(date from start of EncounterIP.relevantPeriod) >= 80)
"Initial Population" EncounterIP
let DiagnosisComponent: singleton from(EncounterIP.diagnoses Diagnosis
where Diagnosis.code in "Bleeding Disorder")
return Tuple {
code: DiagnosisComponent.code,
poa: DiagnosisComponent.presentOnAdmissionIndicator
}
"Initial Population" EncounterIP
let DiagnosisComponent: singleton from(EncounterIP.diagnoses Diagnosis
where Diagnosis.code in "Cancer")
return Tuple {
code: DiagnosisComponent.code,
poa: DiagnosisComponent.presentOnAdmissionIndicator
}
["Procedure, Performed": "CVC Insertion Procedure"] CatheterInsertion
with "Initial Population" EncounterIP
such that Global."NormalizeInterval" ( CatheterInsertion.relevantDatetime, CatheterInsertion.relevantPeriod ) during EncounterIP.relevantPeriod
return Tuple {
procedureCode: CatheterInsertion.code
}
"Initial Population" EncounterIP
let DiagnosisComponent: singleton from(EncounterIP.diagnoses Diagnosis
where Diagnosis.code in "Diabetes")
return Tuple {
code: DiagnosisComponent.code,
poa: DiagnosisComponent.presentOnAdmissionIndicator
}
exists("Initial Population" EncounterIP with
"SDE Sex" Sex
such that Sex.code ~ "Female (finding)")
"Initial Population" EncounterIP
let DiagnosisComponent: singleton from(EncounterIP.diagnoses Diagnosis
where Diagnosis.code in "Fractures")
return Tuple {
code: DiagnosisComponent.code,
poa: DiagnosisComponent.presentOnAdmissionIndicator,
encounterPeriod: EncounterIP.relevantPeriod
}
(["Procedure, Performed": "Hip Replacement Surgery"] union ["Procedure, Performed": "Knee Replacement Surgery"]) ReplacementSurgery
with "Initial Population" EncounterIP
such that Global."NormalizeInterval" ( ReplacementSurgery.relevantDatetime, ReplacementSurgery.relevantPeriod ) during EncounterIP.relevantPeriod
return Tuple {
procedureCode: ReplacementSurgery.code
}
"High Risk Indicator For VTE" or "History of VTE"
["Medication, Active": "Hormone Therapy"] HormoneTherapy
with "Initial Population" EncounterIP
such that (Global."NormalizeInterval" ( HormoneTherapy.relevantDatetime, HormoneTherapy.relevantPeriod ) starts before EncounterIP.relevantPeriod
or Global."NormalizeInterval" ( HormoneTherapy.relevantDatetime, HormoneTherapy.relevantPeriod ) starts during EncounterIP.relevantPeriod)
return Tuple {
medicationCode: HormoneTherapy.code
}
"Initial Population" EncounterIP
let DiagnosisComponent: singleton from(EncounterIP.diagnoses Diagnosis
where Diagnosis.code in "Functional and Mobility Impairment")
return Tuple {
code: DiagnosisComponent.code,
poa: DiagnosisComponent.presentOnAdmissionIndicator
}
exists("Initial Population" EncounterIP with
"SDE Sex" Sex
such that Sex.code ~ "Male (finding)")
"Initial Population" EncounterIP
let DiagnosisComponent: singleton from(EncounterIP.diagnoses Diagnosis
where Diagnosis.code in "Obesity")
return Tuple {
code: DiagnosisComponent.code,
poa: DiagnosisComponent.presentOnAdmissionIndicator
}
["Procedure, Performed": "Respiratory Procedures"] RespiratoryProcedure
with "Initial Population" EncounterIP
such that Global."NormalizeInterval" ( RespiratoryProcedure.relevantDatetime, RespiratoryProcedure.relevantPeriod ) during EncounterIP.relevantPeriod
return Tuple {
procedureCode: RespiratoryProcedure.code
}
"Initial Population" EncounterIP
let DiagnosisComponent: singleton from(EncounterIP.diagnoses Diagnosis
where Diagnosis.code in "Stroke")
return Tuple {
code: DiagnosisComponent.code,
poa: DiagnosisComponent.presentOnAdmissionIndicator
}
"Initial Population" EncounterIP
let DiagnosisComponent: singleton from(EncounterIP.diagnoses Diagnosis
where Diagnosis.code in "Smoking status")
return Tuple {
code: DiagnosisComponent.code,
poa: DiagnosisComponent.presentOnAdmissionIndicator
}
["Procedure, Performed": "Vascular Surgeries ICD10PCS"] VascularSurgery
with "Initial Population" EncounterIP
such that Global."NormalizeInterval" ( VascularSurgery.relevantDatetime, VascularSurgery.relevantPeriod ) during EncounterIP.relevantPeriod
return Tuple {
procedureCode: VascularSurgery.code
}
["Medication, Order": "Rivaroxaban Anticoagulant"] Rivaroxaban
where Rivaroxaban.dosage >= 20 'mg'
and Rivaroxaban.frequency ~ "Once daily (qualifier value)"
or ( Rivaroxaban.dosage >= 15 'mg'
and Rivaroxaban.frequency ~ "Twice a day (qualifier value)"
)
["Patient Characteristic Ethnicity": "Ethnicity"]
["Patient Characteristic Payer": "Payer Type"]
["Patient Characteristic Race": "Race"]
["Patient Characteristic Sex": "Federal Administrative Sex"]
from
"Subsequent Qualifying Encounter" Encounter
where exists ( Encounter.diagnoses EncounterDiagnoses
where EncounterDiagnoses.code in "Venous Thromboembolism"
)
"Subsequent Encounter with VTE Diagnosis"
intersect "Subsequent Encounter with VTE Medication"
"Subsequent Qualifying Encounter" Encounter
with "VTE Medication Ordered or Prescribed" VTEMeds
such that VTEMeds.authorDatetime during Encounter.relevantPeriod
"Encounter with Procedure with Anesthesia in the Operating Room" InpatientEncounter
with "Subsequent Encounter with VTE Diagnosis and VTE Medication" VTE
such that VTE.relevantPeriod starts after end of InpatientEncounter.relevantPeriod
and VTE.relevantPeriod starts 30 days or less after end of Global."NormalizeInterval" ( "FirstProcedure"(InpatientEncounter).relevantDatetime, "FirstProcedure"(InpatientEncounter).relevantPeriod )
( ["Encounter, Performed": "Emergency Department Visit"]
union ["Encounter, Performed": "Encounter Inpatient"]
union ["Encounter, Performed": "Observation Services"] ) ValidEncounter
where ( not exists ( ValidEncounter.diagnoses EncounterDiagnoses
where EncounterDiagnoses.code in "Obstetrics and VTE Obstetrics"
)
)
and AgeInYearsAt(date from start of ValidEncounter.relevantPeriod) >= 18
and ValidEncounter.relevantPeriod ends during day of "Measurement Period"
["Medication, Order": "Non Heparin Anticoagulants for VTE Treatment"]
union ["Medication, Order": "Heparin for VTE Treatment"]
union ["Medication, Discharge": "Non Heparin Anticoagulants for VTE Treatment"]
union ["Medication, Discharge": "Heparin for VTE Treatment"]
from
["Medication, Administered": "Heparin"] HeparinMedication,
["Laboratory Test, Performed": "Anti Factor Xa Assay"] AntiFXaHepMonitoringTest
where Global."NormalizeInterval" ( AntiFXaHepMonitoringTest.relevantDatetime, AntiFXaHepMonitoringTest.relevantPeriod ) 35 hours or less after start of Global."NormalizeInterval" ( HeparinMedication.relevantDatetime, HeparinMedication.relevantPeriod )
and Global."NormalizeInterval" ( AntiFXaHepMonitoringTest.relevantDatetime, AntiFXaHepMonitoringTest.relevantPeriod ) during Global."HospitalizationWithObservationAndOutpatientSurgeryService" ( QualifyingEncounter )
and Global."NormalizeInterval" ( HeparinMedication.relevantDatetime, HeparinMedication.relevantPeriod ) during Global."HospitalizationWithObservationAndOutpatientSurgeryService" ( QualifyingEncounter )
return AntiFXaHepMonitoringTest
First(["Procedure, Performed": "General and Neuraxial Anesthesia"] FirstProc
where Global."NormalizeInterval"(FirstProc.relevantDatetime, FirstProc.relevantPeriod) starts during day of Global."HospitalizationWithObservationAndOutpatientSurgeryService"(Encounter)
sort by start of Global."NormalizeInterval"(relevantDatetime, relevantPeriod)
)
if ( HasStart(period)) then start of period
else
end of period
Earliest(NormalizeInterval(pointInTime, period))
not ( start of period is null
or start of period = minimum DateTime
)
Encounter Visit let ObsVisit: Last(["Encounter, Performed": "Observation Services"] LastObs where LastObs.relevantPeriod ends 1 hour or less on or before start of Visit.relevantPeriod sort by end of relevantPeriod ), VisitStart: Coalesce(start of ObsVisit.relevantPeriod, start of Visit.relevantPeriod), EDVisit: Last(["Encounter, Performed": "Emergency Department Visit"] LastED where LastED.relevantPeriod ends 1 hour or less on or before VisitStart sort by end of relevantPeriod ), VisitStartWithED: Coalesce(start of EDVisit.relevantPeriod, VisitStart), OutpatientSurgeryVisit: Last(["Encounter, Performed": "Outpatient Surgery Service"] LastSurgeryOP where LastSurgeryOP.relevantPeriod ends 1 hour or less on or before VisitStartWithED sort by end of relevantPeriod ) return Interval[Coalesce(start of OutpatientSurgeryVisit.relevantPeriod, VisitStartWithED), end of Visit.relevantPeriod]
difference in days between start of Value and end of Value
if pointInTime is not null then Interval[pointInTime, pointInTime]
else if period is not null then period
else null as Interval<DateTime>
Global."LengthInDays" ( Global."HospitalizationWithObservationAndOutpatientSurgeryService" ( Encounter ) )
from
["Medication, Administered": "Heparin"] HeparinMedication,
["Laboratory Test, Performed": "aPTT Tests"] aPTTHepMonitoringTest
where Global."NormalizeInterval" ( aPTTHepMonitoringTest.relevantDatetime, aPTTHepMonitoringTest.relevantPeriod ) 35 hours or less after start of Global."NormalizeInterval" ( HeparinMedication.relevantDatetime, HeparinMedication.relevantPeriod )
and Global."NormalizeInterval" ( aPTTHepMonitoringTest.relevantDatetime, aPTTHepMonitoringTest.relevantPeriod ) during Global."HospitalizationWithObservationAndOutpatientSurgeryService" ( QualifyingEncounter )
and Global."NormalizeInterval" ( HeparinMedication.relevantDatetime, HeparinMedication.relevantPeriod ) during Global."HospitalizationWithObservationAndOutpatientSurgeryService" ( QualifyingEncounter )
return aPTTHepMonitoringTest
["Patient Characteristic Ethnicity": "Ethnicity"]
["Patient Characteristic Payer": "Payer Type"]
["Patient Characteristic Race": "Race"]
["Patient Characteristic Sex": "Federal Administrative Sex"]
[exists ("Initial Population" EncounterIP
where AgeInYearsAt(date from start of EncounterIP.relevantPeriod) >= 18 and
AgeInYearsAt(date from start of EncounterIP.relevantPeriod) <= 29)]
[exists("Initial Population" EncounterIP
where AgeInYearsAt(date from start of EncounterIP.relevantPeriod) >= 30 and
AgeInYearsAt(date from start of EncounterIP.relevantPeriod) <= 39)]
[exists("Initial Population" EncounterIP
where AgeInYearsAt(date from start of EncounterIP.relevantPeriod) >= 40 and
AgeInYearsAt(date from start of EncounterIP.relevantPeriod) <= 49)]
[exists("Initial Population" EncounterIP
where AgeInYearsAt(date from start of EncounterIP.relevantPeriod) >= 50 and
AgeInYearsAt(date from start of EncounterIP.relevantPeriod) <= 59)]
[exists("Initial Population" EncounterIP
where AgeInYearsAt(date from start of EncounterIP.relevantPeriod) >= 60 and
AgeInYearsAt(date from start of EncounterIP.relevantPeriod) <= 69)]
[exists("Initial Population" EncounterIP
where AgeInYearsAt(date from start of EncounterIP.relevantPeriod) >= 70 and
AgeInYearsAt(date from start of EncounterIP.relevantPeriod) <= 79)]
[exists("Initial Population" EncounterIP
where AgeInYearsAt(date from start of EncounterIP.relevantPeriod) >= 80)]
[exists("Initial Population" EncounterIP with
"SDE Sex" Sex
such that Sex.code ~ "Male (finding)")]
[exists("Initial Population" EncounterIP with
"SDE Sex" Sex
such that Sex.code ~ "Female (finding)")]
["Initial Population" EncounterIP
let DiagnosisComponent: singleton from(EncounterIP.diagnoses Diagnosis
where Diagnosis.code in "Bleeding Disorder")
return Tuple {
code: DiagnosisComponent.code,
poa: DiagnosisComponent.presentOnAdmissionIndicator
}]
["Initial Population" EncounterIP
let DiagnosisComponent: singleton from(EncounterIP.diagnoses Diagnosis
where Diagnosis.code in "Cancer")
return Tuple {
code: DiagnosisComponent.code,
poa: DiagnosisComponent.presentOnAdmissionIndicator
}]
[["Procedure, Performed": "CVC Insertion Procedure"] CatheterInsertion
with "Initial Population" EncounterIP
such that Global."NormalizeInterval" ( CatheterInsertion.relevantDatetime, CatheterInsertion.relevantPeriod ) during EncounterIP.relevantPeriod
return Tuple {
procedureCode: CatheterInsertion.code
}]
["Initial Population" EncounterIP
let DiagnosisComponent: singleton from(EncounterIP.diagnoses Diagnosis
where Diagnosis.code in "Diabetes")
return Tuple {
code: DiagnosisComponent.code,
poa: DiagnosisComponent.presentOnAdmissionIndicator
}]
["Initial Population" EncounterIP
let DiagnosisComponent: singleton from(EncounterIP.diagnoses Diagnosis
where Diagnosis.code in "Fractures")
return Tuple {
code: DiagnosisComponent.code,
poa: DiagnosisComponent.presentOnAdmissionIndicator,
encounterPeriod: EncounterIP.relevantPeriod
}]
[(["Procedure, Performed": "Hip Replacement Surgery"] union ["Procedure, Performed": "Knee Replacement Surgery"]) ReplacementSurgery
with "Initial Population" EncounterIP
such that Global."NormalizeInterval" ( ReplacementSurgery.relevantDatetime, ReplacementSurgery.relevantPeriod ) during EncounterIP.relevantPeriod
return Tuple {
procedureCode: ReplacementSurgery.code
}]
["High Risk Indicator For VTE" or "History of VTE"]
[["Medication, Active": "Hormone Therapy"] HormoneTherapy
with "Initial Population" EncounterIP
such that (Global."NormalizeInterval" ( HormoneTherapy.relevantDatetime, HormoneTherapy.relevantPeriod ) starts before EncounterIP.relevantPeriod
or Global."NormalizeInterval" ( HormoneTherapy.relevantDatetime, HormoneTherapy.relevantPeriod ) starts during EncounterIP.relevantPeriod)
return Tuple {
medicationCode: HormoneTherapy.code
}]
["Initial Population" EncounterIP
let DiagnosisComponent: singleton from(EncounterIP.diagnoses Diagnosis
where Diagnosis.code in "Functional and Mobility Impairment")
return Tuple {
code: DiagnosisComponent.code,
poa: DiagnosisComponent.presentOnAdmissionIndicator
}]
["Initial Population" EncounterIP
let DiagnosisComponent: singleton from(EncounterIP.diagnoses Diagnosis
where Diagnosis.code in "Obesity")
return Tuple {
code: DiagnosisComponent.code,
poa: DiagnosisComponent.presentOnAdmissionIndicator
}]
["Initial Population" EncounterIP
let DiagnosisComponent: singleton from(EncounterIP.diagnoses Diagnosis
where Diagnosis.code in "Stroke")
return Tuple {
code: DiagnosisComponent.code,
poa: DiagnosisComponent.presentOnAdmissionIndicator
}]
["Initial Population" EncounterIP
let DiagnosisComponent: singleton from(EncounterIP.diagnoses Diagnosis
where Diagnosis.code in "Smoking status")
return Tuple {
code: DiagnosisComponent.code,
poa: DiagnosisComponent.presentOnAdmissionIndicator
}]
[["Procedure, Performed": "Vascular Surgeries ICD10PCS"] VascularSurgery
with "Initial Population" EncounterIP
such that Global."NormalizeInterval" ( VascularSurgery.relevantDatetime, VascularSurgery.relevantPeriod ) during EncounterIP.relevantPeriod
return Tuple {
procedureCode: VascularSurgery.code
}]
[["Procedure, Performed": "Respiratory Procedures"] RespiratoryProcedure
with "Initial Population" EncounterIP
such that Global."NormalizeInterval" ( RespiratoryProcedure.relevantDatetime, RespiratoryProcedure.relevantPeriod ) during EncounterIP.relevantPeriod
return Tuple {
procedureCode: RespiratoryProcedure.code
}]
| Measure Set |
|
||
|---|---|---|---|