From 6389289af6d1f4ce184c183d58d29e17a2740743 Mon Sep 17 00:00:00 2001 From: Sean <> Date: Thu, 13 Jun 2024 08:33:13 -0400 Subject: [PATCH] Updates to QA Routines Added Count to all the routines to avoid namespace issue --- input/cql/CovidConditions.cql | 16 ++++----- input/cql/CovidEncounters.cql | 10 +++--- input/cql/CovidLabResults.cql | 59 +++++++++++++++++----------------- input/cql/CovidMedications.cql | 2 +- input/cql/CovidProcedures.cql | 4 +-- input/cql/CovidVitalSigns.cql | 21 ++++++------ 6 files changed, 55 insertions(+), 57 deletions(-) diff --git a/input/cql/CovidConditions.cql b/input/cql/CovidConditions.cql index 304e0d5..b946d76 100644 --- a/input/cql/CovidConditions.cql +++ b/input/cql/CovidConditions.cql @@ -12,14 +12,14 @@ context Patient /// Report QA analysis with count of resources, no PHI. define ReportConditionsQA: { - "All Conditions": Count(UE."All Conditions"), - "Active Problem List": Count(UE."Active Problem List Items"), - "Inactive Problem List": Count("Inactive Problem List"), - "Encounter Diagnoses": Count(UE."All Encounter Diagnoses"), - "Uncategorized Conditions": Count("Uncategorized Conditions"), - "Conditions Without Preferred Code": Count("Conditions Without Preferred Code"), - "Conditions With SNOMED Code": Count(UE."All Conditions".snomedCodes()), - "Conditions With ICD-10 Code": Count(UE."All Conditions".icd10Codes()) + "All Conditions Count": Count(UE."All Conditions"), + "Active Problem List Count": Count(UE."Active Problem List Items"), + "Inactive Problem List Count": Count("Inactive Problem List"), + "Encounter Diagnoses Count": Count(UE."All Encounter Diagnoses"), + "Uncategorized Conditions Count": Count("Uncategorized Conditions"), + "Conditions Without Preferred Code Count": Count("Conditions Without Preferred Code"), + "Conditions With SNOMED Code Count": Count(UE."All Conditions".snomedCodes()), + "Conditions With ICD-10 Code Count": Count(UE."All Conditions".icd10Codes()) } /// Report boolean values for input to ML model. Also list of codes for active problem list items. diff --git a/input/cql/CovidEncounters.cql b/input/cql/CovidEncounters.cql index 5e4a1a2..1dec3f1 100644 --- a/input/cql/CovidEncounters.cql +++ b/input/cql/CovidEncounters.cql @@ -40,11 +40,11 @@ context Patient define ReportEncounters: { - "Outpatient": Count("Outpatient Encounters"), - "Inpatient": Count("Inpatient Encounters"), - "EmergencyDepartment": Count("Emergency Department Encounters"), - "Encounters with Reason": Count("Encounters with Reason"), - "All": Count("All Encounters") + "Outpatient Count": Count("Outpatient Encounters"), + "Inpatient Count": Count("Inpatient Encounters"), + "EmergencyDepartment Count": Count("Emergency Department Encounters"), + "Encounters with Reason Count": Count("Encounters with Reason"), + "All Count": Count("All Encounters") } define "Outpatient Encounters": diff --git a/input/cql/CovidLabResults.cql b/input/cql/CovidLabResults.cql index e371001..c8403a4 100644 --- a/input/cql/CovidLabResults.cql +++ b/input/cql/CovidLabResults.cql @@ -13,37 +13,36 @@ context Patient define ReportLabResultsQA: { "Lab Results Count": Count(UE."All Laboratory Results"), - "Lab Results Without Preferred Code": Count("Lab Results Without Preferred Code"), - - "COVID19 Lab Tests": Count("COVID19 Lab Tests"), - "Hemoglobin A1C": Count("Hemoglobin A1C"), - "Blood Urea Nitrogen": Count("Blood Urea Nitrogen"), - "Bilirubin lab test": Count("Bilirubin lab test"), - "Troponin Lab Test": Count("Troponin Lab Test"), - "Ferritin": Count("Ferritin"), - "Glucose Tolerance Testing": Count("Glucose Tolerance Testing"), - "Cerebral Spinal Fluid (CSF) Analysis": Count("Cerebral Spinal Fluid (CSF) Analysis"), - - "Arterial Blood Gas": Count("Arterial Blood Gas"), - "Comprehensive Metabolic Panel": Count("Comprehensive Metabolic Panel"), - "Calcium in Blood, Serum or Plasma": Count("Calcium in Blood, Serum or Plasma"), - "Magnesium in Blood, Serum or Plasma": Count("Magnesium in Blood, Serum or Plasma"), - "Magnesium in Urine": Count("Magnesium in Urine"), - "Chloride, Urine": Count("Chloride, Urine"), - "Chloride, Blood, Serum, or Plasma": Count("Chloride, Blood, Serum, or Plasma"), - "Creatinine, Urine": Count("Creatinine, Urine"), - "Creatinine, Blood, Serum, or Plasma": Count("Creatinine, Blood, Serum, or Plasma"), + "Lab Results Without Preferred Code Count": Count("Lab Results Without Preferred Code"), + + "COVID19 Lab Tests Count": Count("COVID19 Lab Tests"), + "Hemoglobin A1C Count": Count("Hemoglobin A1C"), + "Blood Urea Nitrogen Count": Count("Blood Urea Nitrogen"), + "Bilirubin lab test Count": Count("Bilirubin lab test"), + "Troponin Lab Test Count": Count("Troponin Lab Test"), + "Ferritin Count": Count("Ferritin"), + "Glucose Tolerance Testing Count": Count("Glucose Tolerance Testing"), + "Cerebral Spinal Fluid (CSF) Analysis Count": Count("Cerebral Spinal Fluid (CSF) Analysis"), + "Arterial Blood Gas Count": Count("Arterial Blood Gas"), + "Comprehensive Metabolic Panel Count": Count("Comprehensive Metabolic Panel"), + "Calcium in Blood, Serum or Plasma Count": Count("Calcium in Blood, Serum or Plasma"), + "Magnesium in Blood, Serum or Plasma Count": Count("Magnesium in Blood, Serum or Plasma"), + "Magnesium in Urine Count": Count("Magnesium in Urine"), + "Chloride, Urine Count": Count("Chloride, Urine"), + "Chloride, Blood, Serum, or Plasma Count": Count("Chloride, Blood, Serum, or Plasma"), + "Creatinine, Urine Count": Count("Creatinine, Urine"), + "Creatinine, Blood, Serum, or Plasma Count": Count("Creatinine, Blood, Serum, or Plasma"), "Phosphate Blood, Serum, or Plasma": Count("Phosphate Blood, Serum, or Plasma"), - "Coagulation Assay": Count("Coagulation Assay"), - "Complete Blood Count": Count("Complete Blood Count"), - "Creatine Kinase Blood, Serum, or Plasma": Count("Creatine Kinase Blood, Serum, or Plasma"), - "D Dimer Test": Count("D Dimer Test"), - "Electrolytes Panel Blood, Serum, or Plasma": Count("Electrolytes Panel Blood, Serum, or Plasma"), - "Inflammatory Markers (CRP) Blood, Serum, or Plasma": Count("Inflammatory Markers (CRP) Blood, Serum, or Plasma"), - "Lipid Serum, or Plasma": Count("Lipid Serum, or Plasma"), - "Sputum Culture": Count("Sputum Culture"), - "Urine Collection 24 Hours": Count("Urine Collection 24 Hours"), - "Urine Routine": Count("Urine Routine") + "Coagulation Assay Count": Count("Coagulation Assay"), + "Complete Blood Count Count": Count("Complete Blood Count"), + "Creatine Kinase Blood, Serum, or Plasma Count": Count("Creatine Kinase Blood, Serum, or Plasma"), + "D Dimer Test Count": Count("D Dimer Test"), + "Electrolytes Panel Blood, Serum, or Plasma Count": Count("Electrolytes Panel Blood, Serum, or Plasma"), + "Inflammatory Markers (CRP) Blood, Serum, or Plasma Count": Count("Inflammatory Markers (CRP) Blood, Serum, or Plasma"), + "Lipid Serum, or Plasma Count": Count("Lipid Serum, or Plasma"), + "Sputum Culture Count": Count("Sputum Culture"), + "Urine Collection 24 Hours Count": Count("Urine Collection 24 Hours"), + "Urine Routine Count": Count("Urine Routine") } // Most recent FHIR Observation for each laboratory data element. diff --git a/input/cql/CovidMedications.cql b/input/cql/CovidMedications.cql index f3b34a9..1d95967 100644 --- a/input/cql/CovidMedications.cql +++ b/input/cql/CovidMedications.cql @@ -12,7 +12,7 @@ context Patient define ReportMedicationsQA: { "MedicationRequest Count": Count("All Medication Requests"), - "Medications Without Preferred Code": Count("Medications Without Preferred Code") + "Medications Without Preferred Code Count": Count("Medications Without Preferred Code") } /// Report a list of codes for all procedures, using preferred coding system. diff --git a/input/cql/CovidProcedures.cql b/input/cql/CovidProcedures.cql index ec40fd6..bfb0b94 100644 --- a/input/cql/CovidProcedures.cql +++ b/input/cql/CovidProcedures.cql @@ -11,8 +11,8 @@ context Patient /// Report QA analysis with count of resources, no PHI. define ReportProceduresQA: { - "All Procedures": Count("All Procedures"), - "Procedures Without Preferred Code": Count("Procedures Without Preferred Code") + "All Procedures Count": Count("All Procedures"), + "Procedures Without Preferred Code Count": Count("Procedures Without Preferred Code") } /// Report a list of codes for all procedures, using preferred coding system. diff --git a/input/cql/CovidVitalSigns.cql b/input/cql/CovidVitalSigns.cql index d939d55..e14101a 100644 --- a/input/cql/CovidVitalSigns.cql +++ b/input/cql/CovidVitalSigns.cql @@ -12,17 +12,16 @@ context Patient /// Report QA analysis with count of resources, no PHI. define ReportVitalSignsQA: { - "All Vital Signs": Count("All Vital Signs"), - "Blood Pressure": Count("Blood Pressure"), - "Body Weight": Count("Body Weight"), - "Body Height": Count("Body Height"), - "BMI": Count("Body Mass Index"), - "Body Temperature": Count("Body Temperature"), - "Heart Rate": Count("Heart Rate"), - "Oxygen Saturation": Count("Oxygen Saturation"), - "Respiratory Rate": Count("Respiratory Rate"), - - "Vital Signs Without Preferred Code": Count("Vital Signs Without Preferred Code") + "All Vital Signs Count": Count("All Vital Signs"), + "Blood Pressure Count": Count("Blood Pressure"), + "Body Weight Count": Count("Body Weight"), + "Body Height Count": Count("Body Height"), + "BMI Count": Count("Body Mass Index"), + "Body Temperature Count": Count("Body Temperature"), + "Heart Rate Count": Count("Heart Rate"), + "Oxygen Saturation Count": Count("Oxygen Saturation"), + "Respiratory Rate Count": Count("Respiratory Rate"), + "Vital Signs Without Preferred Code Count": Count("Vital Signs Without Preferred Code") } // Most recent FHIR Observation for each vital sign data element.