FHIR Chat · Invariant on complex string value · IG creation

Stream: IG creation

Topic: Invariant on complex string value


view this post on Zulip David Pyke (Oct 01 2020 at 18:59):

I'm trying to put an invariant on a valueString on a complex extension to force that string to be one of two possible values and my FHIRPath ability is still low

What I want is to have extension[A].extension[sub].valueString to be "We" or "They". How do I FHIRPath that?

view this post on Zulip Grahame Grieve (Oct 01 2020 at 20:26):

extension('A').extension('sub').value in ('We' | 'They')

view this post on Zulip David Pyke (Oct 02 2020 at 12:14):

Thank you!


Last updated: Apr 12 2022 at 19:14 UTC