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

Filtering out invalid VLs from suppression computation #511

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

Marymary-dev
Copy link
Contributor

No description provided.

@@ -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,
Copy link
Contributor

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

Copy link
Contributor Author

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,
Copy link
Contributor

@nobert-mumo nobert-mumo Oct 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants