FHIR Chat · FhirCursorBundle and List · cql

Stream: cql

Topic: FhirCursorBundle and List


view this post on Zulip Michael Riley (Jun 17 2021 at 20:20):

I'm writing a handler to the cql-execution-service interface, and would someone explain how the FhirCursorBundle returnType resolves with the other set definitions?
Let's say I pull 2 medications in set A and set B with the FHIR library. They return as FhirBundleCursors. But when I union the sets together, they're no longer bundlecursors. They're now a full list. Did the bundle cursors get automatically expanded when I did a set union if the cursor needed to pull more pages than what's available in memory?

view this post on Zulip Bryn Rhodes (Jun 17 2021 at 21:20):

Yes, the FHIRCursorBundle only retrieves the next page when some operation downstream asks for the data. In the case o a union, it needs to evaluate everything so it pulls all the data from the cursor, which pages through the results.


Last updated: Apr 12 2022 at 19:14 UTC