From 16178fe2d2357bbc61b1cf9fe2343bbd5fb40ef2 Mon Sep 17 00:00:00 2001 From: Forrest Beckwith <100245109+tuvaforrest@users.noreply.github.com> Date: Wed, 23 Oct 2024 13:50:58 -0400 Subject: [PATCH] added safe cast for obs+lab result eval --- .../quality_measures__int_cqm236_numerator.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/models/quality_measures/intermediate/cqm236_controlling_blood_pressure/quality_measures__int_cqm236_numerator.sql b/models/quality_measures/intermediate/cqm236_controlling_blood_pressure/quality_measures__int_cqm236_numerator.sql index 4a0a1e1e2..4c6ccfd31 100644 --- a/models/quality_measures/intermediate/cqm236_controlling_blood_pressure/quality_measures__int_cqm236_numerator.sql +++ b/models/quality_measures/intermediate/cqm236_controlling_blood_pressure/quality_measures__int_cqm236_numerator.sql @@ -60,6 +60,7 @@ with controlled_bp_codes as ( '99473' -- Self-measured blood pressure using a device validated for clinical accuracy; patient education/training and device calibration , '99474' -- Separate self-measurements of two readings one minute apart, twice daily over a 30-day period (minimum of 12 readings), collection of data reported by the patient and/or caregiver to the physician or other qualified health care professional, with report of average systolic and diastolic pressures and subsequent communication of a treatment plan to the patient ) + and {{ dbt.safe_cast("result", api.Column.translate_type("numeric")) }} is not null ) @@ -77,6 +78,7 @@ with controlled_bp_codes as ( ,'8462-4') --diastolic and normalized_code_type = 'loinc' + and {{ dbt.safe_cast("result", api.Column.translate_type("numeric")) }} is not null )