Stream: hapi
Topic: Querying resources without a profile
Abby George (Mar 04 2020 at 14:54):
Is there a straight forward way to query all resource types that aren't tagged with a profile? for example: /Patient?_profile:missing=true ?
(My end goal is be able to query only resources that conform to the base type)
James Agnew (Mar 04 2020 at 17:43):
Hmm- Definitely that syntax isn't supported unfortunately. Technically it might be possible to implement this using a custom search parameter with an expression that returns true if the profile list is empty, but that'd be tricky to get working.
Just to confirm though- Technically any resources that conform to a profile will also conform to the base type. Really all you'd be accomplishing here is to find resources that don't declare conformance to any profiles.
Last updated: Apr 12 2022 at 19:14 UTC