-
Notifications
You must be signed in to change notification settings - Fork 3
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
Filtering out invalid VLs from suppression computation #511
base: dev
Are you sure you want to change the base?
Filtering out invalid VLs from suppression computation #511
Conversation
@@ -60,7 +60,7 @@ Select distinct | |||
end as ARTOutcomeDescription, | |||
vl.EligibleVL as Eligible4VL, | |||
vl.HasValidVL, | |||
vl.ValidVLSup, | |||
Case when vl.HasValidVL= 1 Then vl.ValidVLSup Else 0 End as ValidVLSup, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Marymary-dev oh interesting, should we do the fix at the fact level? I think if the name of the column is ValidVLSup
then the issue could be on the fact logic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nobert-mumo this has been fixed at the Fact level
@@ -296,7 +296,7 @@ RepeatVlUnSupp as (Select | |||
case when pbfw_clients.PatientPK is not null then 1 else 0 end as IsPBFW, | |||
valid_VL_indicators.ValidVLResultCategory1, | |||
valid_VL_indicators.ValidVLResultCategory2, | |||
case when valid_VL_indicators.ValidVLSup is not null then valid_VL_indicators.ValidVLSup else 0 end as ValidVLSup, | |||
case when valid_VL_indicators.PatientPK is not null and valid_VL_indicators.ValidVLSup is not null then valid_VL_indicators.ValidVLSup else 0 end as ValidVLSup, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Marymary-dev maybe we need to go inside the validVLSup CTE and understand what changed? I see ValidVLSup comes from the CTE on valid_VL_indicators
which contains all valid vls
No description provided.