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
suspend fun emitSnackBarState(snackBarMessageConfig: SnackBarMessageConfig)
Link copied to clipboard
Link copied to clipboard
fun getImageBitmap(reference: String): Bitmap?
Link copied to clipboard
fun onEvent(event: ProfileEvent)
Link copied to clipboard
fun retrieveProfileUiState(profileId: String, resourceId: String, fhirResourceConfig: FhirResourceConfig? = null, paramsList: Array<ActionParameter>? = emptyArray())