DICOM-Web offset parameter is not working

Hi,

I am implementing pagination. So I want to retrieve only limited studies and specific portion out of total number of studies. I am setting a study limit which is working as expected. But when I give offset parameter it seems like it ignores the offset parameter value.

According to DICOM-web official api documentation:

  • limit {n} Return only {n} results
  • offset {n} Skip {n} results

So when study limit and offset is equal then it should return an empty array . But it is returning some response.

Below screenshots demonstrating that despite having offset and study limit has the same value it is returning some results:

Hi @rabahalishah

I have not looked into it yet but, but it seems your statement is wrong, if limit = 10 & offset = 10, it should return 10 entries starting from the 10th.

Alain

1 Like

Hi @alainmazy

Oh, Alright so you mean its going to skip the studies first by looking at offset. Then it is going to send studies according to the study limit. Am I got it right?

yes, at least, that’s what it should do.