Skip to content

Commit

Permalink
Merge pull request #494 from palladiumkenya/Feauture--Adding-New-Pati…
Browse files Browse the repository at this point in the history
…ent-column-in-linelistFactART

Adding new patient column
  • Loading branch information
Marymary-dev authored Aug 28, 2024
2 parents f2d1ecc + e11ba87 commit ffd3d1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Scripts/REPORTING/1_load_Linelist-FACTART.sql
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ Select distinct
ScreenedDepressionDate,
case when ncd.[Mental illness] is null then 0 else ncd.[Mental illness] end as HasMentalIllness,
case when ncd.Dyslipidemia is null then 0 else ncd.Dyslipidemia end as HasDyslipidemia,
Case when startdate.Date >= DATEADD(MONTH, DATEDIFF(MONTH,0, GETDATE()) -1,0) and startdate.Date <DATEADD(MONTH,DATEDIFF(MONTH, 0, GETDATE()), 0) Then 1 Else 0 End as NewPatient,
onMMD,
StabilityAssessment,
AppointmentsCategory,
Expand Down

0 comments on commit ffd3d1a

Please sign in to comment.