FHIR Chat · Problem with fhirpath expression · implementers

Stream: implementers

Topic: Problem with fhirpath expression


view this post on Zulip Katarina (Mar 18 2022 at 11:14):

Hi,

I need a constraint that forbids numbers in names.
I wrote the following fhirpath expression:

(name.family.matches('.\\d.')=false) and (name.given.matches('.\\d.') =false)

It doesn't seem to work when I test a patient with 2 given names. It works with one given name. What did I wrong?

view this post on Zulip Lloyd McKenzie (Mar 18 2022 at 17:01):

Try name.family.where($this.matches('.\\d.')).exists().not()


Last updated: Apr 12 2022 at 19:14 UTC