FHIR Chat · equivalent to SQL not in operator · fhirpath

Stream: fhirpath

Topic: equivalent to SQL not in operator


view this post on Zulip Tim Harsch (Jun 11 2020 at 00:53):

Is there an equivalent in fhirpath to SQL 'not in' e.g. (resourceType not in ('Observation', 'AllergyIntolerance', 'Procedure' ). I could try where( resourceType != 'AllergyIntolerance' and resourceType != 'Obseration'). Would that be the same?

view this post on Zulip Grahame Grieve (Jun 11 2020 at 01:17):

(resourceType in ('Observation' | 'AllergyIntolerance' | 'Procedure')).not()

view this post on Zulip Tim Harsch (Jun 11 2020 at 02:09):

Grahame Grieve said:

(resourceType in ('Observation' | 'AllergyIntolerance' | 'Procedure')).not()

Thank you! I'll give it a try in fhirpath.js


Last updated: Apr 12 2022 at 19:14 UTC