I am using the fetchAll function on an instance of an FHIR Client (specifically, I'm using the HAPI FHIR server). I am trying to collect all observations with a certain LOINC code.
From my understanding, a request is sent to the server telling it to create a bundle with all observations that match the LOINC code (this search seems to be handled server side). The results are then sent back, However, the server only sends back 20 results at a time. There are ~14,000 observations, so the time to receive the ~700 bundles from the server is ~2 minutes (I'm using chrome which is limited to I believe 6 connections to the server -- other browsers are similar).
I would like to do this kind of request faster if possible. Is there a way to do so? I think there is some way to get the bundles to contain 500 items; does anyone know how to do this in a search parameter?
Thanks!