Closed nupoorkhandelwal closed 4 months ago
https://reporting.avniproject.org/question/2843-do-not-use-etl-child-visit-due-list
@sachsk Need to conform, we see that in old report we see row related to "Doctor Visit Followup at Home". which is not related to child program. Currently I not included it in new etl report.
@sachsk ping
set role calcutta_kids;
select *
from encounter_type where is_voided = false and name = 'Child Home Visit';
-- 33
select *
from program_encounter where encounter_type_id = 33 and individual_id = 891601 and encounter_date_time isnull ;
select *
from program_enrolment where id = 189979;
set role calcutta_kids;
select *
from encounter_type where is_voided = false and name = 'Child Home Visit';
-- 33
select *
from program_encounter where encounter_type_id = 33 and individual_id = 1335874 and encounter_date_time isnull ;
select *
from calcutta_kids.individual_child_child_home_visit where individual_id = 1335874 and encounter_date_time isnull ;
select *
from program_enrolment where individual_id = 1335874;
currently facing issue in Metabase .Raised ticket : https://avni.freshdesk.com/a/tickets/3354
moved report to prerelease : https://reporting.avniproject.org/question/2867-do-not-use-etl-child-visit-due-list-prerelease
@vedfordev please remove commented code from the sql.
@nupoorkhandelwal @sachsk moving card to support ready and unassigned me
[x] When we cancel the visit the cancel date is not updated on the cancel row in the report.
[x] Voided check needs to be handled the individual Test child din01 Jan0201 is voided still shows in the report but voided the db
[x] When applying the filter getting the error message
[x] For age group filter we want the customer to know we have to give the option as a or b instead of number may be we can have the drop down
@Dinesh2019 added A,B,C,D as options in age group filter.
Report showing error
Machi read the error message. It says the date filter is a required parameter. Unless you don't give a date, it won't run.
I am not able to add an encounter_name filter in this report. Need to pair on this with someone, to move the card forward. Hence moving the card in QA failed.
After Nupoor's help, the issue has been fixed. Moving it to QA ready.
Created the data for visit child pnc but data is not reflected in the metabase report
Individual name : Testdin Feb0212
Screenshot from metabase:
Screenshot for app :
Since the encounter is completed, the individuals details are not coming in the report. If the encounter is scheduled and not completed, only those encounters will come in the report. Moving this back to QA ready.
Context
Reference Support ticket - https://avni.freshdesk.com/a/tickets/3271
Currently, this report - https://reporting.avniproject.org/question/207-child-visit-due-list is taking longer time to load. In order to improve the performance need to update it to use ETL table available.
Tech Approach