Creating new patient - validation messages not appropriate

Author: savanrajkotiyaCreated Jun 14, 2021Updated Jan 3, 2023
Labels🐛bug

Before you submit an issue we recommend you drop into our Slack workspace and ask any questions you have or mention any problems you've had getting started with HospitalRun.

Please read this entire template before posting any issue. If you ignore these instructions and post an issue here that does not follow the instructions, your issue might be closed, locked, and assigned the missing discussion label.

Bug Report

The validation messages of inputs are not appropriate ex. 'Must be a valid phone number.' but what's a valid phone number pattern.? PFA the Image

To Reproduce

Steps to reproduce the behavior:

  • Try creating a new patient with contact number digits more than 14-15 digits

Expected behavior

A clear and appropriate validation message should appear so that user will get to know what mistake that they made.

Your Environment

  • node version: 10
  • fastify version: >=1.0.0
  • os: Ubuntu 20.0.4
  • any other relevant information

Screenshot from 2021-06-14 21-52-31

Source: HospitalRun/hospitalrun-frontend