Index: firmware/App/Modes/ModeTreatmentParams.c =================================================================== diff -u -r1a36e9bd718b40ceaee21dd12eca2da353828e30 -r2ec63f115c0c07825fe21899058872d6ca70746b --- firmware/App/Modes/ModeTreatmentParams.c (.../ModeTreatmentParams.c) (revision 1a36e9bd718b40ceaee21dd12eca2da353828e30) +++ firmware/App/Modes/ModeTreatmentParams.c (.../ModeTreatmentParams.c) (revision 2ec63f115c0c07825fe21899058872d6ca70746b) @@ -47,6 +47,7 @@ #define INSTIT_MAX_INLET_WATER_COND_ALARM_USPCM 300.0F ///< Institutional record max inlet water conductivity alarm in uS/cm. #define INSTIT_MAX_MIN_VEN_PRES_WIDE_LIMIT_MMHG 400 ///< Institutional record max min venous pressure wide limit in mmHg. #define INSTIT_MIN_MIN_VEN_PRES_WIDE_LIMIT_MMHG 0 ///< Institutional record min min venous pressure wide limit in mmHg. +#define RINSEBACK_MIN_VEN_PRESSURE_MMHG -100 ///< Minimum venous pressure (in mmHg) while in rinseback state. /// Record for range and default of treatment parameters. typedef struct @@ -959,9 +960,19 @@ * @details Outputs: none * @return the min venous pressure wide limit window in mmHg. *************************************************************************/ -S32 getMinVenousPressureWideValueMMHG( void ) +S32 getMinVenousPressureWideValueMMHG( void ) { - return hdInstitutionalRecord.minVenPressWideLimitWindowMMHG; + S32 minVenPressureLimit = hdInstitutionalRecord.minVenPressWideLimitWindowMMHG; + HD_OP_MODE_T opMode = getCurrentOperationMode(); + TREATMENT_STATE_T curTxState = getTreatmentState(); + + // while in rinseback state of treatment mode, the minimum venous pressure limit is reduced + if ( ( MODE_TREA == opMode ) && ( TREATMENT_RINSEBACK_STATE == curTxState ) ) + { + minVenPressureLimit = RINSEBACK_MIN_VEN_PRESSURE_MMHG; + } + + return minVenPressureLimit; } /*********************************************************************//**