This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
'Add Related Person' search field crashes if a matched patient is returned that has no DoB #2195
Labels
🐛bug
issue/pull request that documents/fixes a bug
in progress
indicates that issue/pull request is currently being worked on
patients
issue/pull request that interacts with patients module
Milestone
🐛 Bug Report
When searching for an existing patient to add as a Related Person (Patients > View Patient > Related Persons tab), if any matching names are found that are of a patient with no date of birth on record, an error is thrown.
To Reproduce
Steps to reproduce the behavior:
Ensure your patient list has a patient record with no DoB set.
Navigate to a different patient's record, then go to the Related Persons tab.
Click 'Add Related Person' and type in the first few characters of the name of the record with no date of birth.
The program attempts to display the DoB alongside the matching name, but crashes on fail.
Paste your code here:
Expected behavior
The crash should not happen.
Error catching should be in place.
DoB field should either be mandatory, or have a safe default value assigned when not known.
The text was updated successfully, but these errors were encountered: