Buddhika Ariyaratne
Buddhika Ariyaratne

Reputation: 2433

FHIR resource for No Data

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

Answers (1)

Nik Klassen
Nik Klassen

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

Related Questions