smart-on-fhir/ehi-app

Add Job Detail Page

Closed this issue · 0 comments

As part of the admin UI we need a page that will show the full information about any selected job and will allow the administrator to perform some actions.

The app can fetch from https://ehi-server.herokuapp.com/jobs/jobId. The response should be a JSON object of type https://github.com/smart-on-fhir/ehi-server/blob/main/index.d.ts#L200-L236. In case of error you should get back a status code >= 400 and an OperationOutcome JSON object. You can concatenate issue[0].severity and issue[0].diagnostics using ": " to produce a human-friendly error message.

The possible actions are not yet implemented on the server side, thus we will discuss them later. However, we can still mock up some UI for some of them:

  • approve or reject - Export will not start on its own, but will wait for admins to approve or reject it
  • addAttachments - Admin can select (or drag&drop) one or more files to be added to the exported FHIR data
  • removeAttachments - Admin should see the list of added attachments (if any) and and be able to remove any of them
  • customize - TBD. Some additional parameters or filers can be set to narrow down the exported data

P.S. The comment at https://github.com/smart-on-fhir/ehi-server/blob/main/index.d.ts#L164-L192 could help understanding the job lifetime states.