dicomweb-server icon indicating copy to clipboard operation
dicomweb-server copied to clipboard

QIDO-RS does not respect limit and offset parameters

Open swederik opened this issue 5 years ago • 2 comments

From @pieper, it looks like the limit and offset parameters are not being applied.

swederik avatar Sep 30 '19 14:09 swederik

This causing an issue at various places:

  • Slicer's DICOMwebBrowser queries list of studies in batches, increasing the offset by the number of studies received, until no new studies are received. This loop runs infinitely, as the offset parameter is ignored.
  • OHIF viewer can only shows the first 25 studies (max 100, if you set rows per page to 100), clicking "Next" has no effect at all

This essentially renders the OHIF viewer unusable for any data collection that contain more than 100 studies.

lassoan avatar Nov 04 '20 19:11 lassoan

Looks like we just need to fix the slice call here: https://github.com/dcmjs-org/dicomweb-server/blob/6bfcb26dabf2b7c4f114b627a87eb4915b18f7cc/plugins/CouchDB.js#L270

swederik avatar Nov 10 '20 12:11 swederik