Fhir Engine
interface FhirEngine
Content copied to clipboard
The FHIR Engine interface that handles the local storage of FHIR resources.
Functions
clearDatabase
Link copied to clipboard
abstract suspend fun clearDatabase()
Content copied to clipboard
delete
Link copied to clipboard
get
Link copied to clipboard
getLastSyncTimeStamp
Link copied to clipboard
getLocalChange
Link copied to clipboard
abstract suspend fun getLocalChange(type: ResourceType, id: String): LocalChange?
Content copied to clipboard
Retrieve LocalChange for Resource with given type and id, which can be used to purge resource from database.
purge
Link copied to clipboard
abstract suspend fun purge(type: ResourceType, id: String, forcePurge: Boolean = false)
Content copied to clipboard
syncDownload
Link copied to clipboard
abstract suspend fun syncDownload(conflictResolver: ConflictResolver, download: suspend (SyncDownloadContext) -> Flow<List<Resource>>)
Content copied to clipboard
Synchronizes the download result in the database.
syncUpload
Link copied to clipboard
abstract suspend fun syncUpload(upload: suspend (List<LocalChange>) -> Flow<Pair<LocalChangeToken, Resource>>)
Content copied to clipboard
Synchronizes the upload result in the database.
Extensions
Sources
androidJvm source
Link copied to clipboard