Codee
Codee

Reputation: 17

How do i search Organizations by type in FHIR

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.

Upvotes: 0

Views: 380

Answers (1)

Mirjam Baltus
Mirjam Baltus

Reputation: 2299

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.

Upvotes: 1

Related Questions