data-team-uhn / guid-generator-web

https://data-team-uhn.github.io/guid-generator-web/
MIT License
0 stars 1 forks source link

The patient identifiable information used for generating GUIDs should be validated and sanitized #3

Closed marta- closed 4 years ago

marta- commented 4 years ago

For each line:

Date of birth:

Province code:

Health card number:

For ON:

For other provinces and territories:

If the input is found valid, concatenate the post-processed health card number and date of birth and generate the GUID. If the input is found invalid at any of the verification steps, do not generate a GUID and display the corresponding error message in red instead of a GUID in the list of GUIDs generated as specified by #1.

Example

Input:

2345678904,ON,2020-02-02
2345678913,ON,2020-03-03
2345678920,ON,2020-03-04

Output: $2a$10$SquWSeGnbm78j.ljlahwXunebEo.mEDyiDiShRH0HR4C.tSCL3eWq Health card number 2345678913 is invalid for the province of ON. Please check the number and try again. $2a$10$zTN.dLDCtFr.GzgKkA9FyewMM7dEDsYlXNmbSZjg8EVi53J0BXPFS