CatchTheTornado / doctor-dok

Doctor Dok is an AI based medical data framework. Parse any health related PDF/Image to JSON and then use Chat GPT / LLama to discuss it!
http://doctordok.com
MIT License
8 stars 2 forks source link

[feat] Add sorting and pagination + append option to patients record provider #22

Open pkarw opened 2 months ago

pkarw commented 2 months ago

Extend generic API handlers for pagination and sorting

Extend the PatientsRecordProvider by the append option to add new records bottom to the list + include offset index to let it dynamically load next pages of records

This is an option to optimize the loading times because WebCrypto takes significant amount of time decoding the db encrypted values - so we could display first few records and asynchronously get more of we have these paging and appending capabilities in place

pkarw commented 2 months ago

Before implementing pagination - sorting should be done client side