CDCgov / dibbs-query-connector

A FHIR client allowing public health agencies to query health care organizations directly or via a TEFCA QHIN
Creative Commons Zero v1.0 Universal
4 stars 0 forks source link

Rework name regex on patient search page #56

Closed fzhao99 closed 3 weeks ago

fzhao99 commented 4 weeks ago

Why are we doing this?

The regex on the first / last name form fields of the patient search form are of type /g^[A-Za-z ]+$/, which invalidates things like apostrophes and em dashes that might be valid in patient names. We'll need to discuss what a better set of regex would be (or if we should be sanitizing the values outside of this frontend form field in the first place) and implement accordingly

image

Action Requested

Do a bit of research for how we should be sanitizing name input for frontend form fields Change / remove the regex accordingly

Acceptance Criteria

Patient form field accepts a reasonable (up to the dev to determine what reasonable means!) set of patient names, which would include dashes / apostrophes etc. that might show up in a name

Additional Context

No response

linear[bot] commented 4 weeks ago

QUE-16 Rework name regex on patient search page