Stream: implementers
Topic: Simplifier Paging
Stephen Lloyd (Jun 19 2017 at 14:59):
Hi,
Just wondering if anyone can assist with an issue I'm currently seeing in Simplifier please? We have some data (StructureDefs etc. in STU3) and I'm making a request using the Java API:
Bundle bundle = client.search() .byUrl("/StructureDefinition?")
.returnBundle(Bundle.class)
.execute();
if (results.getLink(Bundle.LINK_NEXT) != null) {
// load next page
final Bundle nextPage = client.loadPage().next(results).execute();
}
I get a HTTP 500 Internal Server Error as it seems that the server is sending back the root address as the LINK_NEXT rather than root address/<projectname>/_skip=20.
Also, if I use postman to get https://stu3.simplifier.net/ELabNetwork/StructureDefinition?_skip=20 manually the skip param seems to be ignored and sends back all the definitions (the java API seems to return 21 out of a larger total).
Thanks.
Grahame Grieve (Jun 19 2017 at 20:10):
@Christiaan Knaap I thnk this is for you
Stephen Lloyd (Jun 22 2017 at 09:16):
@Christiaan Knaap do you have any information on this please?
Martijn Harthoorn (Jun 22 2017 at 10:29):
Hi Stephen, the 500 is a 'known' issue in Simplifier. We are planning to release a fix for this soon.
Martijn Harthoorn (Jun 22 2017 at 10:30):
The skip operation is not implemented yet.
Martijn Harthoorn (Jun 22 2017 at 10:33):
But the bundle should contain all structure definitions in your project.
Martijn Harthoorn (Jun 22 2017 at 10:33):
So there should not be a need to page.
Stephen Lloyd (Jun 22 2017 at 10:35):
@Martijn Harthoorn Thank you very much for the information, much appreciated :)
Christiaan Knaap (Jun 22 2017 at 10:46):
And @Grahame Grieve thanks for mentioning it to us.
Last updated: Apr 12 2022 at 19:14 UTC