Fhir Sync Worker
abstract class FhirSyncWorker(appContext: Context, workerParams: WorkerParameters) : CoroutineWorker
Handles FHIR data synchronization between local database and remote server.
Extend this abstract CoroutineWorker and implement the abstract methods to define your specific synchronization behavior. The custom worker class can then be used to schedule periodic synchronization jobs using Sync.
Functions
Link copied to clipboard
Link copied to clipboard
Returns the ConflictResolver instance that defines how to handle conflicts between local and remote data during synchronization.
Link copied to clipboard
Returns the DownloadWorkManager instance that manages the download process.
Link copied to clipboard
Returns the FhirEngine instance used for interacting with the local FHIR data store.
Link copied to clipboard
Returns the UploadStrategy instance that defines how local changes are uploaded to the server.