Skip to content

fix: include all patient visit status counts in analytics routes

DALIBOINA SATISH requested to merge analytics-status into develop

Currently, the analytics API only returns counts for limited patient visit statuses such as:

patients_registered

patients_done_vitals

However, other important visit statuses are not included in the response, which results in incomplete analytics data on dashboards.

This update modifies the analytics route to also return counts for all patient visit workflow stages, including:

Doctor Assignment

Medicines Prescribed

Medicine Verification

Counseling Done

Merge request reports

Loading