data-team-uhn / guid-generator-web

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

As a user, I can specify a date format for the data I'm providing #5

Closed marta- closed 4 years ago

marta- commented 4 years ago

Most of the time, users will paste patient information from a spreadsheet into the the form for generating GUIDs. The origin data may contain dates in a different format.

Under the PII input, display a dropdown labeled "Date format for the dates of birth", hint "Please specify the format of the dates of birth by selecting one of the supported formats", with 12 values (expand the expressions to specify different separators):

yyyy-MM-dd should be selected by default.

Dates should be validated against the selected format (update the regexp from #3 to match each entry).

Additionally, update the regexps to ensure that single digit day and month are accepted (e.g. 2010-1-17).