At this point in harness.state I’ve reports attached, via the fields.place_id property, to the chw_area_id contact and others reports attached to the supervisor_area_id. In a more général case I could have reports attached with other object keys like, place_uuid, patient_id or others.
Is there another way to get from harness the reports of the contact supervisor_area_id, something like harness.getReports('supervisor_area_id') ?
Our contact summary gets the latest stock_receipt, from this report the sp_count variable value is obtained and assigned to the stock_monitoring_sp_qty in the context,
I do not understand how the report with fields.place_id = ‘chw_area_id’ and sp_count = 15 is considered in the summary of ‘supervisor_area_id’, the contact.reports of supervisor_area_id are in this case, reports with fields.place_id equal to ‘supervisor_area_id’ and the reports belonging to supervisors (children) of supervisor_area_id, or where am I wrong ?
Hi @kenn
with the 272-reports-no-child-place branch I get now always 35 as expected, getContactSummary('supervisor_area_id')
only use reports related to ‘supervisor_area_id’