Alarms

standard_alarm(dataframe: DataFrame, thresholds: dict = None, delay: dict = None) DataFrame

This function simulate the generation of alarm by standard clinical monitors.

Threshold and delay to trigger the alarms are parametrable. Only BIS, HR and MAP are currently implemented by default. Alarm on other signal can be implemented using the threshold and delay dictionnary.

Parameters:
dataframepd.DataFrame

Dataframe of the patient signal. Must contains the columns Time, BIS, HR, and MAP for default usage.

thresholddict, optional

Threshold to trigger the alarms. Should include the keys: signal_min, and signal_max, where signal are the given signal from wich the alarm are triggered by default : threshold = {‘BIS_min’: 20, ‘BIS_max’: 70, ‘MAP_min’: 60, ‘MAP_max’: 110, ‘HR_min’: 45, ‘HR_max’: 120}.

delaydict, optional

Delay (in seconds) after which the alarm is triggered. Should include all the signal used in threshold as keys.

Returns:
pd.Dataframe

Return a dataframe with columns Time, signal_high, signal_low for each signal given in the parameter.