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
Properties
Functions
Link copied to clipboard
Link copied to clipboard
fun changeManagingEntity(event: ProfileEvent.OverflowMenuClick, managingEntity: ManagingEntityConfig?)
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun retrieveProfileUiState(profileId: String, resourceId: String, fhirResourceConfig: FhirResourceConfig? = null, paramsList: Array<ActionParameter>? = emptyArray())