Index: firmware/App/Services/TxParams.h =================================================================== diff -u -ra12f3ce494cd2a18aee31659c17d8a619fc70f7d -rf37218b76c088f6143ad4ad89081ce8a9eaa991b --- firmware/App/Services/TxParams.h (.../TxParams.h) (revision a12f3ce494cd2a18aee31659c17d8a619fc70f7d) +++ firmware/App/Services/TxParams.h (.../TxParams.h) (revision f37218b76c088f6143ad4ad89081ce8a9eaa991b) @@ -146,6 +146,27 @@ U32 bolusVolume; ///< Requested bolus volume (in mL). } BOLUS_VOLUME_CHANGE_REQUEST_PAYLOAD_T; +/// Payload record structure for vitals settings change request. +typedef struct +{ + U32 systolicBpLowAlarmLimit; ///< Requested systolic BP low alarm limit in mmHg. + U32 systolicBpHighAlarmLimit; ///< Requested systolic BP high alarm limit in mmHg. + U32 heartRateLowAlarmLimit; ///< Requested heart rate low alarm limit in BPM. + U32 heartRateHighAlarmLimit; ///< Requested heart rate high alarm limit in BPM. + U32 vitalsMeasurementInterval_min; ///< Requested vitals measurement interval in minutes. +} VITALS_ADJUSTMENT_REQUEST_PAYLOAD_T; + +/// Payload record structure for vitals settings change response. +typedef struct +{ + BOOL accepted; ///< Accepted/Rejected. + U32 systolicBpLowAlarmLimitRejectionReason; ///< Rejection reason for systolic BP low alarm limit. + U32 systolicBpHighAlarmLimitRejectionReason; ///< Rejection reason for systolic BP high alarm limit. + U32 heartRateLowAlarmLimitRejectionReason; ///< Rejection reason for heart rate low alarm limit. + U32 heartRateHighAlarmLimitRejectionReason; ///< Rejection reason for heart rate high alarm limit. + U32 vitalsMeasurementIntervalRejectionReason; ///< Rejection reason for vitals measurement interval. +} VITALS_ADJUSTMENT_RESPONSE_PAYLOAD_T; + /// Payload record structure for pressure limit change request. typedef struct { @@ -239,6 +260,7 @@ // Edit Treatment parameter handlers BOOL validateAndSetTreatmentDuration( MESSAGE_T *message ); // User provided treatment duration to be set and validated BOOL validateAndSetBolusVolume( MESSAGE_T *message ); // User provided bolus volume to be set and validated +BOOL vitalsAdjustmentHandleChangeRequest( MESSAGE_T *message ); // User provided vitals settings to be validated and applied BOOL pressureLimitHandleChangeRequest( MESSAGE_T *message ); // User provided pressure limit window values to be validated and applied BOOL validateAndSetUFVolume( MESSAGE_T *message ); // User provided ultrafiltration volume to be set and validated BOOL validateAndSetTreatmentSetPoints( MESSAGE_T *message ); // User provided prescription setting values to be validated and applied