Skip to content

Commit

Permalink
fix: visit encounter logic update for cqm438 and cqm420
Browse files Browse the repository at this point in the history
  • Loading branch information
utsavpaudel committed Jan 3, 2025
1 parent 59bc3a7 commit aeea766
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,13 @@ with patients_with_ascvd as (
and coalesce(encounter.encounter_start_date,encounter.encounter_end_date) <= pp.performance_period_end
where lower(encounter_type) in (
'home health'
, 'office visit'
, 'outpatient'
, 'outpatient rehabilitation'
, 'telehealth'
)

or lower(encounter_group) in (
'office based'
, 'outpatient'
)

)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@ with visit_codes as (
inner join {{ ref('quality_measures__int_nqf0420__performance_period') }} as pp
on coalesce(encounter.encounter_end_date, encounter.encounter_start_date) >= pp.performance_period_begin
and coalesce(encounter.encounter_start_date, encounter.encounter_end_date) <= pp.performance_period_end
where lower(encounter_type) in (
'home health'
, 'office visit'
, 'outpatient'
, 'outpatient rehabilitation'
where lower(encounter_type) = 'home health'
or lower(encounter_group) in (
'office based'
, 'outpatient'
)

)
Expand Down

0 comments on commit aeea766

Please sign in to comment.