avniproject / calcutta-kids

0 stars 0 forks source link

Dashboard report 5th - 9th #63

Closed salilsamanvay closed 3 months ago

salilsamanvay commented 1 year ago

Context:

This dashboard part is to monitor the vaccination and babies delivered either at home or institutional

for logic requirement document confirmed by client refer below link: https://docs.google.com/spreadsheets/d/1AzSqMT0ksZAes29qxpWAINOIDE3mrFv3/edit?usp=drive_link&ouid=111559638012526864678&rtpof=true&sd=true

for dashboard layout please refer: https://drive.google.com/file/d/11byBuuykwd5EWllVRb9cilKrpeV4FV-z/view?usp=drive_link

above report are to be added to Dashboard which is created for CK: https://reporting.avniproject.org/dashboard/222-dashboard-reports

nupoorkhandelwal commented 6 months ago

Tech Notes

Here is the base query to get the each vaccination's due date and completion date --

  1. To get due vaccines in a particular year or any date ranges, just add the filter on the calculated due date.
  2. And to get the completion of any vaccine in the due range, add the same year/date filter on the completion date.
  3. Also, after applying filter on the above data then under vaccine coverage only those individuals will be considered, whose all the due vaccines got completed in the same filter. Even if one vaccine is remaining in that duration, then that individual wont be considered.
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;
vedfordev commented 6 months ago

@salilsamanvay Following Details are not cleared

  1. babies born logic is not clear.
  2. program exit should be consider or not that not mentioned.
  3. reference report was not given for first report.
vedfordev commented 5 months ago

@nupoorkhandelwal Please find issue below :

  1. Child program: Percentage of child which are fully vaccinated area wise (Bar graph)

issue : tried with both way with aggregating query and with using summaries. for aggregating we are not using date that's why filter is not accessible for that. for summaries I find articles that we can't provide filter at two level of summaries.Link1 Link2

  1. Child program: Percentage of child which are fully vaccinated (Pie chart)

issue : same as above

  1. Child program: Percentage of child which are fully vaccinated month wise (Bar graph)

issue : first we have to fix month and year filter issue then we can proceed with that and may be have same filter issue

vedfordev commented 5 months ago

@salilsamanvay moving card to on hold with following issue. @sachsk / @nupoorkhandelwal please check above issue.

salilsamanvay commented 5 months ago

Moving this card to ready lane as for year filter we can only provide date range options, whoever picks this card can check once if range filter is applied to all the indicators and report is completed or not as per requirement, before giving it to QA.

vedfordev commented 5 months ago

@vaijayanthisundaram check above tech notes

AnjaliBhagabati commented 5 months ago

@sachsk can you check on this. @vedfordev is having issue on applying the filter

AnjaliBhagabati commented 5 months ago

@sachsk can you check on this. @vedfordev is having issue on applying the filter

vedfordev commented 4 months ago

@sachsk created linelist Report. Please check.