GoldWaterFall / Chat-Health

chat health - empowering health management through clinical AI
Apache License 2.0
3 stars 1 forks source link

Ensuring Personal Info in Digital Medical Card Valid #5

Open Celesteyh opened 1 year ago

Celesteyh commented 1 year ago

When patients enter their personal information to create digital medical cards, it's essential to validate the data provided. For instance, gender should be have options. The ID number must adhere to a standard format, and the telephone number must be valid.

We addressed the issue using regular expressions. Gender and date of birth can be chosen from predefined options. The ID number must match the format of Chinese identity card number. The name is restricted to English letters and spaces. The phone number must begin with specific digits.