Index: firmware/App/Modes/ModeTreatmentParams.c =================================================================== diff -u -r3721992a3919c89841c7dc2bd847fd130ff629a3 -racff6b01c7f6ed1c206953849214e0c31961d89e --- firmware/App/Modes/ModeTreatmentParams.c (.../ModeTreatmentParams.c) (revision 3721992a3919c89841c7dc2bd847fd130ff629a3) +++ firmware/App/Modes/ModeTreatmentParams.c (.../ModeTreatmentParams.c) (revision acff6b01c7f6ed1c206953849214e0c31961d89e) @@ -45,6 +45,8 @@ #define INSTIT_CHEM_DISINFECT_ENABLE_RANGE 1 ///< Institutional record chemical disinfect enable/disable allowable range #define INSTIT_MIN_RO_REJECTION_RATIO_MAX_PCT 99 ///< Institutional record min RO rejection ratio maximum in percent. #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. /// Record for range and default of treatment parameters. typedef struct @@ -951,6 +953,19 @@ /*********************************************************************//** * @brief + * The getMinVenousPressureWideValueMMHG function returns the min venous + * pressure wide limit window in mmHg. + * @details Inputs: hdInstitutionalRecord + * @details Outputs: none + * @return the min venous pressure wide limit window in mmHg. + *************************************************************************/ +S32 getMinVenousPressureWideValueMMHG( void ) +{ + return hdInstitutionalRecord.minVenPressWideLimitWindowMMHG; +} + +/*********************************************************************//** + * @brief * The isNVInstitutionalRecordInRange function checks whether all the * institutional NV records are valid and within range or not. * @details Inputs: none @@ -1032,6 +1047,8 @@ result &= ( ( nvInstRcrd->minRORejectionRatioPCT <= INSTIT_MIN_RO_REJECTION_RATIO_MAX_PCT ) ? TRUE : FALSE ); result &= ( ( nvInstRcrd->minInletWaterCondAlarmLimitUSPCM >= 0.0F ) && ( nvInstRcrd->minInletWaterCondAlarmLimitUSPCM <= INSTIT_MAX_INLET_WATER_COND_ALARM_USPCM ) ? TRUE : FALSE ); + result &= ( ( nvInstRcrd->minVenPressWideLimitWindowMMHG <= INSTIT_MAX_MIN_VEN_PRES_WIDE_LIMIT_MMHG ) && + ( nvInstRcrd->minVenPressWideLimitWindowMMHG >= INSTIT_MIN_MIN_VEN_PRES_WIDE_LIMIT_MMHG ) ? TRUE : FALSE ); return result; }