0
votes

Is it possible to search for a parameter in all the resources on a FHIR based server (currently using HAPI)?

{{url}}/Basic?_id=1

Returns the correct Basic resource but I want to be able to search through all resource types (Basic, Patient, Observation, etc.). I was hoping that there would be a way to do something like this:

{{url}}/ALL?_id=1

Thanks, Stephen

1

1 Answers

1
votes

You can search system wide by performing a search with this syntax

  GET [base]?[parameters]{&_format=[mime-type]}

so in your case that would be

  GET [base]?_id=1

Note that this only works for parameters defined on all resources, like _id. See http://hl7.org/fhir/DSTU2/search.html for more search syntax and explanation/examples.