FhirSyncWorker

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.

Constructors

Link copied to clipboard
constructor(appContext: Context, workerParams: WorkerParameters)

Functions

Link copied to clipboard
open suspend override fun doWork(): ListenableWorker.Result
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
abstract fun getFhirEngine(): FhirEngine

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.