0

How do i search Organizations by Organization types e.g prov,dep,gov on FHIR server. i want to display only prov Organizations from a list of orgnizations that contains prov,gov,dep.

Tried this "GET [base]/Organization?type=prov" and did not return any results.

Codee
  • 17
  • 2

1 Answers1

1

Your query looks good, so possibly:

  • the server does not have any Organizations with the type code being 'prov'
  • the server does not support the 'type' search parameter

In the first case you would get an empty Bundle - no results, which is not an error(!). In the second case you could get an OperationOutcome detailing why the search failed.

Mirjam Baltus
  • 2,035
  • 9
  • 13
  • 1
    Also, best practice is to specify the code system along with the code as, in theory, there can be codes from different code systems with the same code value and different meaning. – Lloyd McKenzie Jan 25 '22 at 20:57
  • for the second case you can check by getting the server's capability statement – bogdan ioan Apr 09 '22 at 17:28