-
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
Added FactHistoricalViralLoad script. Yet to add PBFW logi #454
base: dev
Are you sure you want to change the base?
Conversation
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.
@DennisGibz the logic is incorrect here, you are saying if datediff ordered date and asof <12 and they are adults then they have invalid vls which is wrong, we can link up kesho to discuss this
END As EligibleVL, | ||
CASE | ||
WHEN datediff(month,[OrderedbyDate],@as_of_date) <= 6 and Datediff(year,Patient.DOB,@as_of_date) <= 24 THEN 1 | ||
WHEN datediff(month,[OrderedbyDate],@as_of_date) <= 12 and Datediff(year,Patient.DOB,@as_of_date) > 24 THEN 1 |
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.
@DennisGibz the logic is incorrect here, you are saying if datediff ordered date and asof <12 and they are adults then they have invalid vls which is wrong, we can link up kesho to discuss this
|
||
|
||
|
||
TRUNCATE TABLE ndwh.dbo.FactViralLoad_Hist; |
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.
@DennisGibz just curious, why have two truncate statements for the same table in the script?
No description provided.