FHIR Chat · RegEx Pattern in Patient name element · implementers

Stream: implementers

Topic: RegEx Pattern in Patient name element


view this post on Zulip Krishna Moorthi (Jun 22 2021 at 14:11):

Hi,
I have a question regarding RegEx pattern.
How would you implement RegEx in Patient.name.family element?
For RegEx example : Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿ
Any help or suggestions is very much appreciated

Thanks

view this post on Zulip David Pyke (Jun 22 2021 at 14:30):

Your regex example shows up as corrupted text to me.

view this post on Zulip Krishna Moorthi (Jun 22 2021 at 14:46):

@David Pyke sorry, Is there any documentation to add regex in the profile elements ?

view this post on Zulip David Pyke (Jun 22 2021 at 14:54):

There is a regex validation extension here that can be applied via a profile

view this post on Zulip Krishna Moorthi (Jun 29 2021 at 10:33):

Hi @David Pyke/ all - I have created a constraint in patient profile as regex-1 with severity "error" and expression as Patient.name.family.matches("a?b+$"). I try to validate with invalid value for family name , it doesn't throw any error.

can you please provide any suggestions ?

view this post on Zulip Krishna Moorthi (Jun 29 2021 at 12:25):

Finally, this issue is resolved instead of Patient.name.family.matches("a?b+$") to $this.matches("a?b+$")


Last updated: Apr 12 2022 at 19:14 UTC