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

ETL MPR needs assessments #50

Closed
sachsk opened this issue Jun 23, 2022 · 2 comments
Closed

ETL MPR needs assessments #50

sachsk opened this issue Jun 23, 2022 · 2 comments
Assignees

Comments

@vinayvenu
Copy link
Member

The old and new report numbers do not match.

@nupoorkhandelwal nupoorkhandelwal self-assigned this Jun 29, 2022
@sachsk
Copy link
Member Author

sachsk commented Jun 29, 2022

Number of Home visits by ASHA worker to all Eligible couples
select count(distinct ind.id) from ihmp.individual ind left outer join ihmp.individual_eligible_couple_needs_assessment enc on enc.individual_id = ind.id left outer join ihmp.individual_eligible_couple enl on enl.individual_id = ind.id where ind."Whether sterilized" notnull and encounter_date_time notnull and enl.program_exit_date_time isnull and ind.is_voided = false and enl.is_voided = false and encounter_date_time::date between '04/01/2022'::date and '06/29/2022'::date ;

Number of Home visits by ASHA worker to all sterilized Eligible couples
`select count(distinct ind.id)
from ihmp.individual ind
left join ihmp.individual_eligible_couple enl on enl.individual_id = ind.id

where ind."Whether sterilized" notnull
-- and encounter_date_time notnull
and enl.program_exit_date_time isnull
and ind.is_voided = false
and enl.is_voided = false
and ind.gender = 'Female'
and ind."Marital status" = 'Currently married'
and extract('years' from age(ind.date_of_birth)) <= 49`

@arjunk arjunk assigned sachsk and unassigned nupoorkhandelwal Jul 16, 2022
@nupoorkhandelwal nupoorkhandelwal self-assigned this Aug 3, 2022
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

No branches or pull requests

3 participants