Package com.google.android.fhir

Types

ContentTypes
Link copied to clipboard
object ContentTypes
DatabaseErrorStrategy
Link copied to clipboard
enum DatabaseErrorStrategy : Enum<DatabaseErrorStrategy>
DatastoreUtil
Link copied to clipboard
class DatastoreUtil(context: Context)
DateProvider
Link copied to clipboard
object DateProvider
The DateProvider Instance FhirEngine uses for date/time related operations.
FhirEngine
Link copied to clipboard
interface FhirEngine
The FHIR Engine interface that handles the local storage of FHIR resources.
FhirEngineConfiguration
Link copied to clipboard
data class FhirEngineConfiguration(enableEncryptionIfSupported: Boolean, databaseErrorStrategy: DatabaseErrorStrategy, serverConfiguration: ServerConfiguration?, testMode: Boolean)
A configuration which describes the database setup and error recovery.
FhirEngineProvider
Link copied to clipboard
object FhirEngineProvider
The provider for FhirEngine instance.
LocalChange
Link copied to clipboard
data class LocalChange(resourceType: String, resourceId: String, versionId: String?, timestamp: String, type: LocalChange.Type, payload: String, token: LocalChangeToken)
Data class for squashed local changes for resource
MediaTypes
Link copied to clipboard
object MediaTypes
NetworkConfiguration
Link copied to clipboard
data class NetworkConfiguration(connectionTimeOut: Long, readTimeOut: Long, writeTimeOut: Long)
A configuration to provide the network connection parameters.
OffsetDateTimeTypeAdapter
Link copied to clipboard
class OffsetDateTimeTypeAdapter : TypeAdapter<OffsetDateTime>
ServerConfiguration
Link copied to clipboard
data class ServerConfiguration(baseUrl: String, networkConfiguration: NetworkConfiguration, authenticator: Authenticator?, httpLogger: HttpLogger)
A configuration to provide necessary params for network connection.
SyncDownloadContext
Link copied to clipboard
interface SyncDownloadContext

Functions

delete
Link copied to clipboard
inline suspend fun <R : Resource> FhirEngine.delete(id: String)
Deletes a FHIR resource of type R with id from the local storage.
get
Link copied to clipboard
inline suspend fun <R : Resource> FhirEngine.get(id: String): R
Returns a FHIR resource of type R with id from the local storage.
getResourceClass
Link copied to clipboard
fun <R : Resource> getResourceClass(resourceType: String): Class<R>
Returns the {@link Class} object for the resource type.
fun <R : Resource> getResourceClass(resourceType: ResourceType): Class<R>
Returns the {@link Class} object for the resource type.
getResourceType
Link copied to clipboard
fun <R : Resource> getResourceType(clazz: Class<R>): ResourceType
Returns the FHIR resource type.
isUploadSuccess
Link copied to clipboard
fun Resource.isUploadSuccess(): Boolean
Determines if the upload operation was successful or not.

Properties

dataStore
Link copied to clipboard
val Context.dataStore: DataStore<Preferences>
logicalId
Link copied to clipboard
val Resource.logicalId: String
The logical (unqualified) part of the ID.
ucumUrl
Link copied to clipboard
const val ucumUrl: String
Url for the UCUM system of measures.