Table of Contents

Class AlarmServiceTest

Namespace
adas_core.Test.Services
Assembly
adas-core.Test.dll

Contains unit tests for verifying the behavior and functionality of the AlarmService class.

public class AlarmServiceTest
Inheritance
AlarmServiceTest
Inherited Members
Extension Methods

Constructors

AlarmServiceTest()

public AlarmServiceTest()

Methods

CheckObservationAlarm_Alarm_EventPEEP_PEEP_bajo_create_Event()

Verifies that when checking observation alarms for a patient observation with an "Event_PEEP_Low" configuration (coding system "ADAS_EVENT", description "EVT_LO and EVT_EXTR_LO"), the alarm service does not insert a new observation, as indicated by the verification that InsertObservation is never invoked.

[Test]
public Task CheckObservationAlarm_Alarm_EventPEEP_PEEP_bajo_create_Event()

Returns

Task

CheckObservationAlarm_Should_Launch_Red_Alarm_And_Set_BeaconColor_Red()

Verifies that CheckObservationAlarm(PatientObservation) processes a patient observation matching a configured rule (name "EVT_LO" with required value "PEEP") by inserting a new observation with the original value preserved (e.g., "PEEP High") while the alarm configuration handles the red beacon signaling.

[Test]
public Task CheckObservationAlarm_Should_Launch_Red_Alarm_And_Set_BeaconColor_Red()

Returns

Task

ProcessAlarmObservations_Should_Insert_Alarm_Observations()

Verifies that ProcessAlarmObservations(List<PatientObservationAlarm>, List<PatientObservation>, Patient, DateTime, ObservationData?) inserts the provided alarm observations into the alarm repository.

[Test]
public Task ProcessAlarmObservations_Should_Insert_Alarm_Observations()

Returns

Task

SaveRequest_Oru_R40_Type_Without_Alarms_Dont_Insert()

Verifies that when an ORU_R40 type request is processed without any alarms, the patient is located but the observation is not persisted.

[Test]
public Task SaveRequest_Oru_R40_Type_Without_Alarms_Dont_Insert()

Returns

Task