beda-software / fhir-py

FHIR Client for python
MIT License
168 stars 31 forks source link

Make fetch/fetch_all lazy #35

Closed mkizesov closed 1 year ago

mkizesov commented 4 years ago

Sometimes we need to iterate over thousands of entries and I think it will be very useful if we can have fetch_all() as a generator. Now if we call fetch_all for thousands of entries we firstly wait until all entries are fetched.

Consider implementing lazy fetch for searchset iterating.

mkizesov commented 4 years ago

Done. But we need to add some tests.