Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Creating new patient - validation messages not appropriate #2699

@savanrajkotiya

Description

@savanrajkotiya

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛bugissue/pull request that documents/fixes a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions