Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to QA Routines #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions input/cql/CovidConditions.cql
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
10 changes: 5 additions & 5 deletions input/cql/CovidEncounters.cql
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down
59 changes: 29 additions & 30 deletions input/cql/CovidLabResults.cql
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion input/cql/CovidMedications.cql
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions input/cql/CovidProcedures.cql
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
21 changes: 10 additions & 11 deletions input/cql/CovidVitalSigns.cql
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down