Stream: implementers
Topic: Query resources without a profile
Abby George (Mar 04 2020 at 14:53):
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)
Paul Church (Mar 04 2020 at 15:43):
Yes, that search looks correct. _profile can also be used at the base url level to search across all resource types at once.
Abby George (Mar 04 2020 at 16:30):
_profile:missing=true
doesn't seem to return results - for example, using HAPI: http://hapi.fhir.org/baseR4/Patient?_profile:missing=true&_summary=count
returns all Patients
even though some of them have profiles.
Paul Church (Mar 04 2020 at 17:04):
Yeah, it's a little hard to tell exactly what each server supports without testing it.
Last updated: Apr 12 2022 at 19:14 UTC