Stream: hapi
Topic: not limited by count
Srinath ramarathnam (Aug 23 2017 at 23:01):
Hello,
I'm very new to HAPI fhir.. When I make the following call
Collection<Observation> obs = session
.getContextSTU3()
.getPatientContext()
.find(Observation.class, Observation.DATE.after().day(dt)); // dt set to 1/1/2007
I get back only 10 observations - how can I get all or increase the count?
Thanks,
-sri
Igor Sirkovich (Aug 24 2017 at 04:53):
@Srinath ramarathnam , if you are using your own copy of HAPI server, look at the DSTU3 config file. From the answer of James to a similar question: "If you want your client to get a huge page size, call "setMaximumPageSize(5000)" and then include "&_count=5000" in your URL. Alternately you could certainly disable paging entirely on the server if you wanted by calling "setPagingProvider(null)". You're taking a risk then, since if a given search returns a million results the server will load them all into memory and potentially run out, but if you are controlling the entire stack that might not be a concern."
Last updated: Apr 12 2022 at 19:14 UTC