The allergy field in the Allergy UI allows the user to enter a numeric value, considering allergies cannot have numeric name, we must validate the input string before allowing the user to procced further
REPRODUCING BUG :
- Register a new patient or edit an existing one
- In the patient screen, click on the edit icon on 'ALLERGIES' tab
- Click on add new allergy button
- On the allergy UI, in the add new allergy field try adding a numeric value
- Click on the save button
The system allows the user to save numeric values to the database for allergy field.