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

BUGFIX: Correct union logic for shared exclusions in Quality Measures #437

Merged
merged 1 commit into from
Apr 16, 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 @@ -145,9 +145,9 @@ with patients_with_frailty as (
|| ' and '
|| condition_exclusions.concept_name
as exclusion_reason
, null as procedure_date
, med_claim_exclusions.claim_start_date
, med_claim_exclusions.claim_end_date
, cast(null as date) as procedure_date
from patients_with_frailty
inner join med_claim_exclusions
on patients_with_frailty.patient_id = med_claim_exclusions.patient_id
Expand All @@ -166,8 +166,8 @@ with patients_with_frailty as (
|| ' and '
|| condition_exclusions.concept_name
as exclusion_reason
, null as claim_start_date
, null as claim_end_date
, cast(null as date) as claim_start_date
, cast(null as date) as claim_end_date
, procedure_exclusions.procedure_date
from patients_with_frailty
inner join procedure_exclusions
Expand All @@ -193,9 +193,9 @@ with patients_with_frailty as (
|| ' and '
|| condition_exclusions.concept_name
as exclusion_reason
, null as procedure_date
, med_claim_exclusions.claim_start_date
, med_claim_exclusions.claim_end_date
, cast(null as date) as procedure_date
from patients_with_frailty
inner join med_claim_exclusions
on patients_with_frailty.patient_id = med_claim_exclusions.patient_id
Expand All @@ -220,8 +220,8 @@ with patients_with_frailty as (
|| ' and '
|| condition_exclusions.concept_name
as exclusion_reason
, null as claim_start_date
, null as claim_end_date
, cast(null as date) as claim_start_date
, cast(null as date) as claim_end_date
, procedure_exclusions.procedure_date
from patients_with_frailty
inner join procedure_exclusions
Expand Down
Loading