ga4gh-discovery / data-connect

Standard for describing and searching biomedical data developed by the Global Alliance for Genomics & Health.
Apache License 2.0
24 stars 14 forks source link

Review approach to pagination of Search results #61

Closed ianfore closed 9 months ago

ianfore commented 3 years ago

PRC review raised the question of how pagination works. Discussed in the PRC report here.

The responses there note that a number of approaches exist to do pagination in REST services, but no standard.

Investigated how FHIR does pagination of search results.

This is from the NCPI FHIR server which uses the following approach.

 "link": [ {
   "relation": "self",
   "url": "http://localhost:8000/Patient?gender=female"
 }, {
   "relation": "next",
   "url": "http://localhost:8000?_getpages=141093b6-8c4b-4fa5-8b9f-a302914572eb&_getpagesoffset=50&_count=50&_bundletype=searchset"
 } ]

That server uses FHIR HAPI as an implementation. Requires follow up as to whether the approach taken is part of the FHIR spec or part of the HAPI implementation.

mcupak commented 3 years ago

TASC is working on this, let's hold off until it's resolved there.

mcupak commented 9 months ago

This has been superseded by work in TASC, closing.