Reputation: 2433
My FHIR Rest API can search and return FHIR resources like [Patient] and [Encounter]. When a search for resources is done, there are instances where no data is found. In such cases, what is the FHIR resource I can send to specify that there is NO data for the search?
Upvotes: 0
Views: 344
Reputation: 711
The response to a FHIR search should be a Bundle
resource with "type": "searchset"
. You can find the relevant section of the spec here. If the search has no results you should simply return a Bundle with an empty entry
list, and "total": 0
Upvotes: 3