medic / cht-core

The CHT Core Framework makes it faster to build responsive, offline-first digital health apps that equip health workers to provide better care in their communities. It is a central resource of the Community Health Toolkit.
https://communityhealthtoolkit.org
GNU Affero General Public License v3.0
468 stars 218 forks source link

Store responses from outbound push tasks in couch #6159

Open michaelkohn opened 5 years ago

michaelkohn commented 5 years ago

As a system admin, I want to see the API responses for an outbound push task in couch so I can monitor (and potentially action upon*) the results of certain tasks.

An example use case for this is pushing dataSets to DHIS2. Even when the transmission is successful, the response gives us useful information about things like how many values were overwritten, if values were ignored, etc...

Another use case for this might be creating person and patient records in OpenMRS, whereby the response to the API call will include (amongst other things) the OpenMRS ID of the created person or patient.

*When I say “action upon”, an example would be to store the returned OpenMRS Patient ID against the user in the CHT.

SCdF commented 5 years ago

Related to #6158 in terms of decisions around extending outbound push functionality