MeasureReportMonthPeriodWorker

class MeasureReportMonthPeriodWorker @AssistedInject constructor(@Assisted val context: Context, @Assisted workerParams: WorkerParameters, val fhirEngine: FhirEngine, fhirOperator: FhirOperator, val defaultRepository: DefaultRepository, val dispatcherProvider: DispatcherProvider, measureReportRepository: MeasureReportRepository, val configurationRegistry: ConfigurationRegistry) : CoroutineWorker

Constructors

Link copied to clipboard
@AssistedInject
constructor(@Assisted context: Context, @Assisted workerParams: WorkerParameters, fhirEngine: FhirEngine, fhirOperator: FhirOperator, defaultRepository: DefaultRepository, dispatcherProvider: DispatcherProvider, measureReportRepository: MeasureReportRepository, configurationRegistry: ConfigurationRegistry)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
open val coroutineContext: CoroutineDispatcher
Link copied to clipboard
Link copied to clipboard
val fhirEngine: FhirEngine

Functions

Link copied to clipboard
open suspend override fun doWork(): ListenableWorker.Result

This method always sets the start and end date of the month to be the first and last day of the current month. If you are using this worker to generate monthly reports it enqueue a new worker at least every 24 hours.

Link copied to clipboard
open suspend fun getForegroundInfo(): ForegroundInfo
Link copied to clipboard
override fun getForegroundInfoAsync(): ListenableFuture<ForegroundInfo>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@RequiresApi(value = 31)
fun getStopReason(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
override fun onStopped()
Link copied to clipboard
suspend fun setForeground(foregroundInfo: ForegroundInfo)
Link copied to clipboard
fun setForegroundAsync(@NonNull foregroundInfo: ForegroundInfo): ListenableFuture<Void>
Link copied to clipboard
suspend fun setProgress(data: Data)
Link copied to clipboard
open fun setProgressAsync(@NonNull data: Data): ListenableFuture<Void>
Link copied to clipboard
Link copied to clipboard
override fun startWork(): ListenableFuture<ListenableWorker.Result>
Link copied to clipboard