AFG-Polio-Data / APMIS-Project

APMIS (Afghanistan Polio Management Information System) is an supplemental Immunization Activities management system to manage the vaccination activities in the country.
https://test.afghanistan-apmis.com
GNU General Public License v3.0
4 stars 8 forks source link

Cluster API endpoint that returns all clusters #740

Open lbaertlein1 opened 1 day ago

lbaertlein1 commented 1 day ago

Situation Description

For analytics, we want to be able to retrieve a dataset of all clusters in the database - both active and archived, along with their characteristics. This would be similar to the current 'districts' API endpoint. It will be used to monitor data completeness - or the percent of active clusters that have reported in a given SIA.

Feature Description

The endpoint should function similar to the districts endpoint ("https://afghanistan-apmis.com/sormas-rest/districts/all_/0"), except returning clusters - including cluster code, cluster name, archived status, float status, and metadata like creation date / change date.

lbaertlein1 commented 1 day ago

"https://afghanistan-apmis.com/sormas-rest/communities/allClusters/0" has now been created as an endpoint. However, it is not yet correctly pulling the cluster characteristics. Necessary cluster characteristics include: 'archived' (i.e. "Active Status"), "Float Status", cluster name, cluster number, cluster code, cluster uuid, and associated district uuid. Archived and Float Status are not yet correct on the live server.