FhirEngineConfiguration

data class FhirEngineConfiguration(enableEncryptionIfSupported: Boolean, databaseErrorStrategy: DatabaseErrorStrategy, serverConfiguration: ServerConfiguration?, testMode: Boolean)

A configuration which describes the database setup and error recovery.

Database encryption is only available on API 23 or above. If enableEncryptionIfSupported is true, FHIR SDK will only enable database encryption on API 23 or above.

WARNING: Your app may try to decrypt an unencrypted database from a device which was previously on API 22 but later upgraded to API 23. When this happens, an IllegalStateException is thrown.

Constructors

FhirEngineConfiguration
Link copied to clipboard
fun FhirEngineConfiguration(enableEncryptionIfSupported: Boolean = false, databaseErrorStrategy: DatabaseErrorStrategy = UNSPECIFIED, serverConfiguration: ServerConfiguration? = null, testMode: Boolean = false)

Properties

databaseErrorStrategy
Link copied to clipboard
val databaseErrorStrategy: DatabaseErrorStrategy
enableEncryptionIfSupported
Link copied to clipboard
val enableEncryptionIfSupported: Boolean = false
serverConfiguration
Link copied to clipboard
val serverConfiguration: ServerConfiguration? = null
testMode
Link copied to clipboard
val testMode: Boolean = false

Sources

androidJvm source
Link copied to clipboard