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

added safe cast for obs+lab result eval #632

Merged
merged 2 commits into from
Oct 24, 2024
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -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

)

Expand All @@ -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

)

Expand Down
Loading