Index: NVDataMgmt.c =================================================================== diff -u -ra12d69fe75c0d080d1c05b796edab41c68b4b814 -r467a2d033a805c53a63bf3ded067a74c7c9ba0fe --- NVDataMgmt.c (.../NVDataMgmt.c) (revision a12d69fe75c0d080d1c05b796edab41c68b4b814) +++ NVDataMgmt.c (.../NVDataMgmt.c) (revision 467a2d033a805c53a63bf3ded067a74c7c9ba0fe) @@ -131,6 +131,7 @@ #define DEFAULT_BLOOD_LEAK_SET_POINT 20 ///< Blood leak default set point. #define DEFAULT_HEPARIN_PUMP_VOLTAGE 0.15F ///< Heparin pump default voltage. #define DEFAULT_ENABLE_CHEM_DISINFECT 0 ///< Disable chemical disinfect in institutional record. +#define DEFAULT_MAX_RO_REJECTION_RATIO 0.1F ///< Max RO rejection ratio. #endif // DG specific defines @@ -1543,6 +1544,21 @@ return status; } + +/*********************************************************************//** + * @brief + * The getMaxRORejectionRatioInInstitRecord returns the value of the max RO + * rejection ratio in institutional record + * @details Inputs: hdInstitutionalGroup + * Output: none + * @return the max RO rejection ratio in institutional record + *************************************************************************/ +F32 getMaxRORejectionRatioInInstitRecord( void ) +{ + F32 maxRORejectionRatio = hdInstitutionalGroup.hdInstitutionalRecord.maxRORejectionRatio; + + return maxRORejectionRatio; +} #endif #ifdef _DG_ /*********************************************************************//** @@ -3941,6 +3957,7 @@ hdInstitutionalGroup.hdInstitutionalRecord.minHeparinBolusVolumeML = getF32DefaultTreatmentParamEdge( TREATMENT_PARAM_HEPARIN_BOLUS_VOLUME, TRUE ); hdInstitutionalGroup.hdInstitutionalRecord.maxHeparinBolusVolumeML = getF32DefaultTreatmentParamEdge( TREATMENT_PARAM_HEPARIN_BOLUS_VOLUME, FALSE ); hdInstitutionalGroup.hdInstitutionalRecord.enableChemicalDisinfect = DEFAULT_ENABLE_CHEM_DISINFECT; + hdInstitutionalGroup.hdInstitutionalRecord.maxRORejectionRatio = DEFAULT_MAX_RO_REJECTION_RATIO; hdInstitutionalGroup.hdInstitutionalRecord.calibrationTime = getRTCTimestamp(); hdInstitutionalGroup.hdInstitutionalRecord.crc = crc16 ( (U08*)&hdInstitutionalGroup.hdInstitutionalRecord, sizeof( HD_INSTITUTIONAL_RECORD_T ) - sizeof( U16 ) );