Index: NVDataMgmtHDRecords.h =================================================================== diff -u -red0b0d9fd80ba2e66bf6566ef47197812aec2b7a -rd22ac2e16310e6ac50119305805af0aa9a5447d8 --- NVDataMgmtHDRecords.h (.../NVDataMgmtHDRecords.h) (revision ed0b0d9fd80ba2e66bf6566ef47197812aec2b7a) +++ NVDataMgmtHDRecords.h (.../NVDataMgmtHDRecords.h) (revision d22ac2e16310e6ac50119305805af0aa9a5447d8) @@ -35,6 +35,29 @@ #define MAX_TOP_LEVEL_PN_CHARS 10U ///< Max number of characters for top level part number. #define MAX_TOP_LEVEL_SN_CHARS 20U ///< Max number of characters for top level serial number. +// Institutional record defaults +#define DEFAULT_MIN_BLOOD_FLOW_MLPM 100 +#define DEFAULT_MAX_BLOOD_FLOW_MLPM 500 +#define DEFAULT_MIN_DIALYSATE_FLOW_MLPM 100 +#define DEFAULT_MAX_DIALYSATE_FLOW_MLPM 600 +#define DEFAULT_MIN_TX_DURATION_MIN 60 +#define DEFAULT_MAX_TX_DURATION_MIN 480 +#define DEFAULT_HEPARIN_ENABLE 1 +#define DEFAULT_MIN_STOP_HEP_DISP_BEFORE_TX_END 0 +#define DEFAULT_MAX_STOP_HEP_DISP_BEFORE_TX_END 480 +#define DEFAULT_MIN_SALINE_BOLUS_VOLUME_ML 100 +#define DEFAULT_MAX_SALINE_BOLUS_VOLUME_ML 300 +#define DEFAULT_MIN_DIALYSATE_TEMPERATURE_C 35.0F +#define DEFAULT_MAX_DIALYSATE_TEMPERATURE_C 37.0F +#define DEFAULT_MIN_ART_PRESS_LIMIT_WINDOW_MMHG 120 +#define DEFAULT_MAX_ART_PRESS_LIMIT_WINDOW_MMHG 200 +#define DEFAULT_MIN_VEN_PRESS_LIMIT_WINDOW_MMHG 100 +#define DEFAULT_MAX_VEN_PRESS_LIMIT_WINDOW_MMHG 200 +#define DEFAULT_MIN_VEN_ASYM_PRESS_LIMIT_WINDOW_MMHG 20 +#define DEFAULT_MAX_VEN_ASYM_PRESS_LIMIT_WINDOW_MMHG 35 +#define DEFAULT_MIN_UF_VOLUME_ML 0 +#define DEFAULT_MAX_UF_VOLUME_ML 8 + #ifndef _RELEASE_ /// Software configuration enums typedef enum software_configurations @@ -101,6 +124,7 @@ GET_SYS_RECORD, ///< Get system record data. GET_SRV_RECORD, ///< Get service record data. GET_USAGE_RECORD, ///< Get usage record. + GET_INSTITUTIONAL_RECORD, ///< Get institutional record. NUM_OF_NV_HD_DATA ///< Number of non-volatile data. } NV_DATA_T; @@ -265,6 +289,34 @@ U16 crc; ///< CRC for the HD service record structure. } HD_SERVICE_RECORD_T; +/// HD institutional record structure +typedef struct +{ + U32 minBloodFlowMLPM; + U32 maxBloodFlowMLPM; + U32 minDialysateFlowMLPM; + U32 maxDialysateFlowMLPM; + U32 minTxDurationMin; + U32 maxTxDurationMin; + U32 heparinEnable; + U32 minStopHeparinDispBeforeTxEnd; + U32 maxStopHeparinDispBeforeTxEnd; + U32 minSalineBolusVolumeML; + U32 maxSalineBolusVolumeML; + F32 minDialysateTempC; + F32 maxDialysateTempC; + U32 minArtPressLimitWindowMMHG; + U32 maxArtPressLimitWindowMMHG; + U32 minVenPressLimitWindowMMHG; + U32 maxVenPressLimitWindowMMHG; + U32 minVenAsymPressLimitMMHG; + U32 maxVenAsymPressLimitMMHG; + U32 minUFVolumeML; + U32 maxUFVolumeML; + U32 calibrationTime; + U16 crc; +} HD_INSTITUTIONAL_RECORD_T; + /// HD usage info structure. typedef struct {