syncUpload

abstract suspend fun syncUpload(uploadStrategy: UploadStrategy, upload: suspend (List<LocalChange>, List<LocalChangeResourceReference>) -> Flow<UploadRequestResult>): Flow<SyncUploadProgress>

Deprecated

To be deprecated.

Synchronizes upload results with the database.

This function initiates multiple server calls to upload local changes. The results of each call are emitted as UploadRequestResult objects, which can be collected using a Flow.

Return

A Flow that emits the progress of the synchronization process as SyncUploadProgress objects.

Parameters

uploadStrategy

Defines strategies for uploading FHIR resource.

upload

A suspending function that takes a list of LocalChange objects and returns a Flow of UploadRequestResult objects.