ProfileViewModel

class ProfileViewModel @Inject constructor(val registerRepository: RegisterRepository, val configurationRegistry: ConfigurationRegistry, val dispatcherProvider: DispatcherProvider, val fhirPathDataExtractor: FhirPathDataExtractor, val resourceDataRulesExecutor: ResourceDataRulesExecutor) : ViewModel

Constructors

Link copied to clipboard
@Inject
constructor(registerRepository: RegisterRepository, configurationRegistry: ConfigurationRegistry, dispatcherProvider: DispatcherProvider, fhirPathDataExtractor: FhirPathDataExtractor, resourceDataRulesExecutor: ResourceDataRulesExecutor)

Properties

Functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard

This function launches a configurable dialog for selecting new managing entity from the list of Group resource members. This function only works when Group resource is the used as the main resource.

Link copied to clipboard

This function retrieves an image that was synced from the backend as a Binary resource, the content of the Binary resource is a base64 encoding of the actual image. The encoded imaged is then transformed into bitmap for use in an Image Composable (returns null if the referenced resource doesn't exist)

Link copied to clipboard
suspend fun emitSnackBarState(snackBarMessageConfig: SnackBarMessageConfig)
Link copied to clipboard
Link copied to clipboard
fun onEvent(event: ProfileEvent)
Link copied to clipboard
suspend fun retrieveProfileUiState(profileId: String, resourceId: String, fhirResourceConfig: FhirResourceConfig? = null, paramsList: Array<ActionParameter>? = emptyArray())