MeasureReportViewModel

class MeasureReportViewModel @Inject constructor(val fhirEngine: FhirEngine, val fhirOperator: FhirOperator, val sharedPreferencesHelper: SharedPreferencesHelper, val dispatcherProvider: DefaultDispatcherProvider, val configurationRegistry: ConfigurationRegistry, val registerRepository: RegisterRepository, val measureReportSubjectViewDataMapper: MeasureReportSubjectViewDataMapper, val defaultRepository: DefaultRepository, val resourceDataRulesExecutor: ResourceDataRulesExecutor, measureReportRepository: MeasureReportRepository) : ViewModel

Constructors

Link copied to clipboard
@Inject
constructor(fhirEngine: FhirEngine, fhirOperator: FhirOperator, sharedPreferencesHelper: SharedPreferencesHelper, dispatcherProvider: DefaultDispatcherProvider, configurationRegistry: ConfigurationRegistry, registerRepository: RegisterRepository, measureReportSubjectViewDataMapper: MeasureReportSubjectViewDataMapper, defaultRepository: DefaultRepository, resourceDataRulesExecutor: ResourceDataRulesExecutor, measureReportRepository: MeasureReportRepository)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val fhirEngine: FhirEngine
Link copied to clipboard
val fhirOperator: FhirOperator
Link copied to clipboard
val reportTypeState: MutableState<MeasureReport.MeasureReportType>
Link copied to clipboard

Functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
Link copied to clipboard
suspend fun evaluateMeasure(navController: NavController, practitionerId: String? = null)
Link copied to clipboard
suspend fun formatPopulationMeasureReports(measureReports: List<MeasureReport>, indicators: List<ReportConfiguration> = listOf()): List<MeasureReportPopulationResult>
Link copied to clipboard
Link copied to clipboard

This function @returns a map of year-month for all months falling in given measure period

Link copied to clipboard
fun onEvent(event: MeasureReportEvent, selectedDate: Date? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

This function lists the fixed range selection in months for the entire year

Link copied to clipboard

This function lists the subject selection in report selector

Link copied to clipboard
fun toggleProgressIndicatorVisibility(showProgressIndicator: Boolean = false)