# 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
  object
  CheckHydricBalanceRyCJob

Implements
  IJob

Inherited Members
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)
  object.ToString()

Extension Methods
  NumberUtils.IsNumber(object)
  NumberUtils.ToDouble(object)
  ObjectUtils.ToStr(object?)

## Remarks

The DisallowConcurrentExecution attribute prevents overlapping executions of this job.

## Properties

### CalculatedObservationsService

    public static ICalculatedObservationsService CalculatedObservationsService { get; set; }

#### Property Value

ICalculatedObservationsService

### ObservationService

    public static IObservationService ObservationService { get; set; }

#### Property Value

IObservationService

### PatientService

    public static IPatientService PatientService { get; set; }

#### Property Value

IPatientService

## 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

`context` IJobExecutionContext

  The Quartz job execution context provided by the scheduler when the job trigger fires.

#### Returns

Task