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
-
CalculateNewsJob
- Implements
-
IJob
- Inherited Members
- Extension Methods
Properties
ConfigObservationService
public static IConfigObservationService ConfigObservationService { get; set; }
Property Value
ExpiresIn
public static int ExpiresIn { 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 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
contextIJobExecutionContextThe Quartz job execution context provided by the scheduler.