'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.



Solution 1:[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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mirjam Baltus