FHIR Chat · Search for multiple profiles · implementers

Stream: implementers

Topic: Search for multiple profiles


view this post on Zulip Jakob Lindblad (Oct 15 2018 at 12:03):

Hi,
Is it "ok" to be able to search with multiple profiles in one search?
For example: https://myserver/Device?_profile=oneProfile,anotherProfile

Cant find anything in the fhir specification adressing this.

Thanks

view this post on Zulip Grahame Grieve (Oct 15 2018 at 12:09):

it's ok

view this post on Zulip Jakob Lindblad (Oct 15 2018 at 13:13):

Thank you

view this post on Zulip David Simons (Mar 15 2021 at 18:27):

Interesting, so

_profile=oneProfile,anotherProfile => oneProfile OR anotherProfile
_profile=oneProfile&_profile=anotherProfile => oneProfile AND anotherProfile)

Could not find it other than here:
https://www.hl7.org/fhir/search.html#escaping
"GET [base]/Observation?code=a,b is a request for any Observation that has a code of either a or b, whereas:"
and here
https://www.hl7.org/fhir/search.html#has
"Or" searches are allowed"

Thanks!

view this post on Zulip Daniel Venton (Mar 16 2021 at 20:23):

I believe a "TokenAndListParam" or the string variety allows:
_profile=a,b&_profile=c,d
Profile is (a or b) AND (c or d)

That would be HAPI data types....


Last updated: Apr 12 2022 at 19:14 UTC