Syncing Patients Using Simple Patients API - DateTStamp Sorting and Error Handling
Posted: Thu Sep 19, 2024 7:03 am
I'm working with the Simple Patients API to sync patient data, and I have a couple of questions regarding the handling of `DateTStamp` and record fetching.
1. Fetching in DateTStamp Order:
Is there a search parameter or any other way to fetch patient records in an ordered manner by `DateTStamp`? Currently, I am fetching patient data using the following API:
But there doesn't seem to be a way to ensure the results are returned in the order of `DateTStamp`. This presents an issue when trying to sync patients. If one of the records in the middle fails to fetch, I’m unsure how to proceed with syncing the rest of the records, as they are not in the order of `DateTStamp`. Is there a recommended way to handle this?
2. DateTStamp Filter for Inserted/Updated Records:
When using the `DateTStamp` parameter to fetch records updated or inserted after a certain date (e.g., for syncing records from a specific point in time), will this ensure that all records are returned in chronological order of `DateTStamp`? For example:
In this case, does the API guarantee that the results are sorted by `DateTStamp`, or do we need to handle the sorting on our end? It seems challenging to sync records without having them returned in this order.
Any guidance or best practices on syncing large datasets with `DateTStamp` filtering would be greatly appreciated!
1. Fetching in DateTStamp Order:
Is there a search parameter or any other way to fetch patient records in an ordered manner by `DateTStamp`? Currently, I am fetching patient data using the following API:
Code: Select all
https://api.opendental.com/api/v1/patients/Simple?Limit=100&Offset=0
2. DateTStamp Filter for Inserted/Updated Records:
When using the `DateTStamp` parameter to fetch records updated or inserted after a certain date (e.g., for syncing records from a specific point in time), will this ensure that all records are returned in chronological order of `DateTStamp`? For example:
Code: Select all
https://api.opendental.com/api/v1/patients/Simple?DateTStamp=2024-09-19%2005%3A30%3A00&Limit=100&Offset=0
Any guidance or best practices on syncing large datasets with `DateTStamp` filtering would be greatly appreciated!