onaio / fhir-web

A web based interface for administering FHIR based digital health solutions
https://ona.io/home/introducing-quest-fhir-native-case-management/
Other
18 stars 20 forks source link

[Bug Report]: [GIZ EIR] The bulk import feature has an error that prevents the imports from being uploaded #1470

Open Naima-Bashir opened 1 month ago

Naima-Bashir commented 1 month ago

Affected Project

GIZ EIR

How to replicate

  1. Login to the fhir web
  2. Click on the Bulk Upload button
  3. Use the template provided
  4. Make changes in some of the csvs e.g add careteam. Ensure you use the same format as the template
  5. Click on each section and start the upload E.g Upload users, locations careteams
  6. Click on the Start Import button and observe the error.

EXPECTED RESULTS The bulk import feature should work successfully and upload the new data on to fhir web

ACTUAL RESULTS: An error pops up each time a user tries to import. See screenshot below: Screenshot from 2024-09-16 12-08-01 image

Acceptance criteria

The bulk import feature should work successfully and upload the new data on to fhir web

Project Contact

Maggie

Relevant Information

No response

peterMuriuki commented 1 month ago

This happens when one also attempts to upload products. This is because the product list id is not configured for this instance resulting in the whole bulk upload step failing. This errors does not seem to be handled correctly and causes the applicaiton process to exit.

Solutions:

  1. Update error handling on web's backed to capture exception such that the application process does not forcefully exit.
  2. disable inventory and product for instances where these fields are not needed.
Naima-Bashir commented 1 month ago

@MargaretNjenga