msupply-foundation / mobile

Open source mobile app for medical inventory control
http://msupply.org.nz/mobile
Other
42 stars 27 forks source link

ADR details for a patient is not saved in mobile #4815

Closed nishaDangol-Sussol closed 2 years ago

nishaDangol-Sussol commented 2 years ago

Describe the bug

When adding ADR form for a patient, the records are created and synced as well. But upon checking the ADR details, while fetching data from server, it displays nothing!

To reproduce

Steps to reproduce the behaviour:

  1. In sync setup with a mobile, create or use any patient.
  2. Go to Dispensing>>ADR
  3. Add ADR details. (for example, I definitely saved an ADR form with 'Died' outcome for the patient) and Save
  4. Sync. Notice that created records are syncing as well
  5. Click the ADR again.
  6. Notice the loading message as fetching patient history from server
  7. But afterwards, the previously saved records aren't there anymore. Weird?

Expected behaviour

The previously saved ADR records should display on mobile as well?

Proposed Solution

Leave if you don't know how to fix/implement. Edit this issue description and explain here if you know the best path of implementing the fix within the codebase.

Version and device info

Additional context

Observed while testing #4792

FlorenceChashchina commented 2 years ago

@nisha-dangol From what I can see in the documentation, there's no option to see past ADR in mobile, however, they can be displayed in the dashboard. I'm not sure though how we can see the actual ADRs for the patient.

mark-prins commented 2 years ago

That's right - you cannot see past ADR events in mobile. The ADR form is just a data-entry form at this stage, which then syncs to mSupply. The message about fetching history is because the form has an option for the user to select the relevant vaccination event, and needs to load up the history for that. We have used the dashboard to allow admins to export the data to excel - but there's no UI to view or export history

FlorenceChashchina commented 2 years ago

@mark-prins Thank you for the explanation. I have one more question. How are those ADR notes are being used then? Who receives it after it is submitted?

mark-prins commented 2 years ago

no one really - it was a request when we started with the vaccination process in Tonga, but the rest of the process - how to handle and review, wasn't really considered fully. We also have the online ADR form, but that is not used as far as I know

FlorenceChashchina commented 2 years ago

@nisha-dangol I'm closing this issue as it is not valid