avniproject / calcutta-kids

0 stars 0 forks source link

[Report] Vaccination coverage #135

Closed sachsk closed 3 months ago

sachsk commented 4 months ago

Context

As we are unable to add this charts in the dashboard due to metabase filter limitations we have decided to create a separate report for each graph with their linelist

Reports

Filters: Date filter on the due date



Sample image

Screenshot 2024-02-27 at 8.40.54 AM.png
vedfordev commented 4 months ago

Folder Link : Link

Reference Query:

select  cicv.program_enrolment_id,
                      c.base_date::date + ((item_detail_status::json->>0)::json->>'end')::int as due_date,
                      completion_date,
                      item_detail_state
from checklist_item_checklist_view cicv
left join checklist c on cicv.checklist_id = c.id
where item_detail_state = 'Due'
order by 1;
sachsk commented 4 months ago

@vedfordev