Class CheckHydricBalanceRyCJob
- Namespace
- adas_core.Application.Services
- Assembly
- adas-core.Application.dll
Represents a scheduled job that checks the hydric balance of the RyC component, implemented as a Quartz.NET job.
[DisallowConcurrentExecution]
public class CheckHydricBalanceRyCJob : IJob
- Inheritance
-
CheckHydricBalanceRyCJob
- Implements
-
IJob
- Inherited Members
- Extension Methods
Remarks
The DisallowConcurrentExecution attribute prevents overlapping executions of this job.
Properties
CalculatedObservationsService
public static ICalculatedObservationsService CalculatedObservationsService { get; set; }
Property Value
ObservationService
public static IObservationService ObservationService { get; set; }
Property Value
PatientService
public static IPatientService PatientService { get; set; }
Property Value
Methods
Execute(IJobExecutionContext)
Executes the scheduled job that checks hydric balance for all patients and maps the most recent observation recorded within the current hour window. Iterates over every patient, retrieves the latest "Hydric_Balance" observation before a cutoff time, and forwards it to the calculated observations service when it falls within the current hour. All exceptions raised during processing are caught and logged, allowing the job to finish without interrupting the scheduler.
public Task Execute(IJobExecutionContext context)
Parameters
contextIJobExecutionContextThe Quartz job execution context provided by the scheduler when the job trigger fires.