Package com.google.android.fhir.sync

Types

Link copied to clipboard
interface Authenticator

FhirEngine depends on the developer app to handle user's authentication. The developer application may provide the implementation during the FhirEngine initial setup to obtain authToken to the engine for successful calls.

Link copied to clipboard
data class BackoffCriteria(backoffPolicy: <ERROR CLASS>, backoffDelay: Long, timeUnit: TimeUnit)

The criteria for FhirSyncWorker failure retry based on androidx.work.WorkRequest.Builder.setBackoffCriteria

Link copied to clipboard
interface DownloadWorkManager

Manager that generates the FHIR requests and handles the FHIR responses of a download job.

Link copied to clipboard
abstract class FhirSyncWorker(appContext: <ERROR CLASS>, workerParams: <ERROR CLASS>)

A WorkManager Worker that handles periodic sync.

Link copied to clipboard
typealias ParamMap = Map<String, String>

Class that holds what type of resources we need to synchronise and what are the parameters of that type. e.g. we only want to synchronise patients that live in United States ResourceSyncParams(ResourceType.Patient, mapOf("address-country" to "United States")

Link copied to clipboard
class PeriodicSyncConfiguration(syncConstraints: <ERROR CLASS>, repeat: RepeatInterval, retryConfiguration: RetryConfiguration?)

Configuration for period synchronisation

Link copied to clipboard
data class RepeatInterval(interval: Long, timeUnit: TimeUnit)
Link copied to clipboard
data class ResourceSyncException(resourceType: <ERROR CLASS>, exception: Exception)
Link copied to clipboard
sealed class Result
Link copied to clipboard
data class RetryConfiguration(backoffCriteria: BackoffCriteria, maxRetries: Int)

Configuration for synchronization retry

Link copied to clipboard
sealed class State
Link copied to clipboard
object Sync
Link copied to clipboard
object SyncDataParams
Link copied to clipboard
interface SyncJob
Link copied to clipboard
class SyncJobImpl(context: <ERROR CLASS>) : SyncJob
Link copied to clipboard
enum SyncWorkType : Enum<SyncWorkType>

Defines different types of synchronisation workers: download and upload

Functions

Link copied to clipboard
fun ParamMap.concatParams(): String

Properties

Link copied to clipboard
val defaultRetryConfiguration: RetryConfiguration