You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We also need to return the total number of results as bundle.total but we'll leave this for another ticket
TBD
Use Postman to create >30 Observations for testing - update the ID to use a random string (using Postman {{$randomPassword}} or similar so you can click the SEND button repeatedly without having to change the payload each time
Accept the parameter _count so that GET /fhir/r5/Observation?_count=10 displays only the first 10 results by adding LIMIT 10 to the end of the raw DB query
Accept the parameter _page so that GET /fhir/r5/Observation?_count=10&_page=2 displays results 11-20 by adding OFFSET (page-1)*10)
Lastly, add the link property to the response Bundle with self, previous and next as per FHIR spec - see example below.
@travis-sauer-oltech I should have been more clear - it appears this change has altered the Observations Admin API ❌ (in addition to the Observation FHIR API ✅ )
This is the format/shape of data we're expecting from the Admin API response:
But instead we are getting a FHIR response the same as the /fhir/observation endpoint
Can you please revert the Observation Admin API to the original format/shape so this ticket only effects the FHIR API
Background
LIMIT
andOFFSET
etc)_count
for the page size but does not specify a parameter for the page number (see https://www.hl7.org/fhir/search.html#table)_page
bundle.total
but we'll leave this for another ticketTBD
{{$randomPassword}}
or similar so you can click the SEND button repeatedly without having to change the payload each time_count
so thatGET /fhir/r5/Observation?_count=10
displays only the first 10 results by addingLIMIT 10
to the end of the raw DB query_page
so thatGET /fhir/r5/Observation?_count=10&_page=2
displays results 11-20 by addingOFFSET (page-1)*10)
link
property to the response Bundle withself
,previous
andnext
as per FHIR spec - see example below.Note:
The text was updated successfully, but these errors were encountered: