-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Create/Edit Patient inputs are not validated #1976
Comments
Should text fields also be validated to avoid numeric inputs? For example:
|
And perhaps address could be validated somehow? I could take a look at that if someone would assign me. Should I create a new issue or is here okay? |
@lucasbn I think validating addresses may be difficult due to needing to support any address format for any location in the world; however I have not looked into it. I think we can just tack it on to this one. |
@BrunaKimura I think that preventing numeric inputs is reasonable except for Occupation. |
Yeah I also thought that might be a problem. I'm going to look into it anyway as I'd like to contribute somewhat - will let you know if I get anywhere. (I'll look at avoiding numeric inputs whilst I'm at it). |
sounds great! |
When creating and editing a patient, only the required
givenName
is validated. The email and tel inputs can be anything and the date of birth can be a day greater than today.🐛 Bug Report
Input fields from Editing/Creating Patients are not validated.
To Reproduce
Input a text in the telephone field
Input a text that is not an email in the email field
Input a date in 2021 in the date of birth field
The components already give a way to add validation feedback to the user, but it is not used at the time.
The text was updated successfully, but these errors were encountered: