Skip to content

Resolve "Ensure Patient ID does not contain any spaces"

What does this MR do?

This MR adds a validation to the patient ID, to check for whitespaces (space/tab) anywhere in the ID (leading/trailing/sandwiched?). This did require some changes to the annotations used in the PatientCreateDto, as some annotations were not valid, e.g. @NotBlank on a non String or @NotBlank on token that is always blank when creating a patient, the token is generated afterwards.

Screenshots

after

add_patient

edit_patient

no_tab

dutch

Does this MR meet the acceptance criteria?

  • I have added tests to validate the new functionality.
  • I have updated the documentation accordingly.
  • I have added translations for all new client-side text.
  • I have updated the changelog accordingly. Closes #231 (closed)
Edited by Kevin Chong

Merge request reports