FhirEngineProvider

Provides access to the FhirEngine instance.

Use init to initialize the engine with a custom configuration. Otherwise, the default configuration will be used. Call getInstance to retrieve the engine instance.

Functions

Link copied to clipboard
Link copied to clipboard

Returns the cached FhirEngine instance. Creates a new instance from the supplied Context if it doesn't exist.

Link copied to clipboard
fun init(fhirEngineConfiguration: FhirEngineConfiguration)

Initializes the FhirEngine singleton with a custom FhirEngineConfiguration. This must be done only once; we recommend doing this in the onCreate() function of your Application class.