Skip to content

Add New Patient -> Don't reset patient form if there's an error #307

@saratheneale

Description

@saratheneale

When there is an error creating the new patient, it would be good to keep showing the patient information instead of resetting everything.

Example Case 1:

  1. Click add new patient
  2. Note that the focused field highlighted is the Given Name. I thought perhaps ID was autogenerated and I did not fill it out.
  3. fill out names, sex, age
  4. Click OK

Result: Server Error 500 that didn't create user. All patient info I entered is gone. I need to re-enter everything via the Add New Patient button.
Expected: Some kind of form validation to indicate I need to fill it out ID field. Or at least, keep the patient box up with the info I typed.

Example Case 2:
This is also applicable when I create a patient with the same ID as an existing patient.

Metadata

Metadata

Assignees

Labels

P2Issues not fitting P0, P1, or P3featureNew or improved functionalityhelp-wantedReady for a volunteer to work on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions