# Class CalculateNewsJob

Namespace
  adas_core.Application.Services

Assembly
  adas-core.Application.dll

Job for calculate NEWS based on FR, SPo2, Temperature, Tas and FC

    [DisallowConcurrentExecution]
    public class CalculateNewsJob : IJob

Inheritance
  object
  CalculateNewsJob

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?)

## Properties

### ConfigObservationService

    public static IConfigObservationService ConfigObservationService { get; set; }

#### Property Value

IConfigObservationService

### ExpiresIn

    public static int ExpiresIn { get; set; }

#### Property Value

int

### 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 calculates the National Early Warning Score (NEWS) for each patient located in an active Point of Care, based on the most recent vital sign observations (respiratory rate, SpO2, temperature, systolic blood pressure, and heart rate). Observations flagged as expired or whose configured expiration time has elapsed are skipped, and the resulting aggregate score is stored as a new NEWS observation for the patient when the latest underlying observation is not expired.

    public Task Execute(IJobExecutionContext context)

#### Parameters

`context` IJobExecutionContext

  The Quartz job execution context provided by the scheduler.

#### Returns

Task