Index: firmware/App/Modes/ModeTreatmentParams.c =================================================================== diff -u -r592af09c58d6270e3f6b3ebc3ce87147ba9ea3c1 -r8c8ac9430cbd0a836b51d16a02457575861c5990 --- firmware/App/Modes/ModeTreatmentParams.c (.../ModeTreatmentParams.c) (revision 592af09c58d6270e3f6b3ebc3ce87147ba9ea3c1) +++ firmware/App/Modes/ModeTreatmentParams.c (.../ModeTreatmentParams.c) (revision 8c8ac9430cbd0a836b51d16a02457575861c5990) @@ -45,6 +45,7 @@ #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 20 ///< Institutional record max min venous pressure wide limit in mmHg. /// Record for range and default of treatment parameters. typedef struct @@ -951,6 +952,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. + *************************************************************************/ +U32 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 +1046,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 ); + // NOTE: min venous and arterial pressure wide limits are not needed to be >= 0 because it is a U32 + result &= ( ( nvInstRcrd->minVenPressWideLimitWindowMMHG <= INSTIT_MAX_MIN_VEN_PRES_WIDE_LIMIT_MMHG ) ? TRUE : FALSE ); return result; }