Index: dialin/hd/pressure_occlusion.py =================================================================== diff -u -r32e628abcbbd3fd70866505d9f2836a6f732ef06 -r311a14c20d17f2480ff294feedead8ad672e81db --- dialin/hd/pressure_occlusion.py (.../pressure_occlusion.py) (revision 32e628abcbbd3fd70866505d9f2836a6f732ef06) +++ dialin/hd/pressure_occlusion.py (.../pressure_occlusion.py) (revision 311a14c20d17f2480ff294feedead8ad672e81db) @@ -97,8 +97,20 @@ def get_pressure_limits_state(self): """ Gets the current pressure limits state. + Pressure states: + PRESSURE_LIMITS_STATE_OFF = 0 Off - not pressure low/high alarms will be detected) + PRESSURE_LIMITS_STATE_IDLE = 1 Idle - in Treatment mode state where BP is stopped - no pressure low/high alarms + PRESSURE_LIMITS_STATE_WIDE = 2 Wide - in Treatment mode state where BP is running but wide limits apply + PRESSURE_LIMITS_STATE_STABILIZATION = 3 Stabilization - in Treatment mode state where BP is running (dialysis + or stop), but need to stabilize first + PRESSURE_LIMITS_STATE_STABILIZATION_2 = 4 Second stage stabilization - re adjust the pressure that has been + drifted due to UF control etc and limit + windows apply + PRESSURE_LIMITS_STATE_STABLE = 5 Stable - in Treatment mode state where BP is running (dialysis or stop) and + limit windows apply - @return: (int) The pressure limits state (0=stabilization, 1=stable) + + @return: (int) The pressure limits state """ return self.pressure_limits_state