Package com.google.android.fhir.sync

Types

Authenticator
Link copied to clipboard
interface Authenticator
FhirEngine depends on the developer app to handle user's authentication.
BackoffCriteria
Link copied to clipboard
data class BackoffCriteria(backoffPolicy: BackoffPolicy, backoffDelay: Long, timeUnit: TimeUnit)
ConflictResolutionResult
Link copied to clipboard
sealed class ConflictResolutionResult
Contains the result of the conflict resolution.
ConflictResolver
Link copied to clipboard
fun fun interface ConflictResolver
Resolves conflicts between the client and remote changes in a Resource.
DownloadWorkManager
Link copied to clipboard
interface DownloadWorkManager
Manager that generates the FHIR requests and handles the FHIR responses of a download job.
FhirSyncWorker
Link copied to clipboard
abstract class FhirSyncWorker(appContext: Context, workerParams: WorkerParameters) : CoroutineWorker
A WorkManager Worker that handles periodic sync.
ParamMap
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")

PeriodicSyncConfiguration
Link copied to clipboard
class PeriodicSyncConfiguration(syncConstraints: Constraints, repeat: RepeatInterval, retryConfiguration: RetryConfiguration?)
Configuration for period synchronisation
RepeatInterval
Link copied to clipboard
data class RepeatInterval(interval: Long, timeUnit: TimeUnit)
Resolved
Link copied to clipboard
data class Resolved(resolved: Resource) : ConflictResolutionResult
ResourceSyncException
Link copied to clipboard
data class ResourceSyncException(resourceType: ResourceType, exception: Exception)
RetryConfiguration
Link copied to clipboard
data class RetryConfiguration(backoffCriteria: BackoffCriteria, maxRetries: Int)
Configuration for synchronization retry
Sync
Link copied to clipboard
object Sync
SyncDataParams
Link copied to clipboard
object SyncDataParams
SyncJobStatus
Link copied to clipboard
sealed class SyncJobStatus
UploadConfiguration
Link copied to clipboard
data class UploadConfiguration(uploadBundleSize: Int)
Configuration for max number of resources to be uploaded in a Bundle.

Functions

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

Properties

AcceptLocalConflictResolver
Link copied to clipboard
val AcceptLocalConflictResolver: ConflictResolver
Accepts the local change and rejects the remote change.
AcceptRemoteConflictResolver
Link copied to clipboard
val AcceptRemoteConflictResolver: ConflictResolver
Accepts the remote change and rejects the local change.
DEFAULT_BUNDLE_SIZE
Link copied to clipboard
const val DEFAULT_BUNDLE_SIZE: Int = 500
Constant for the default number of resource entries in a singe Bundle for upload.
defaultRetryConfiguration
Link copied to clipboard
val defaultRetryConfiguration: RetryConfiguration