/*! * * Copyright (c) 2021-2025 Diality Inc. - All Rights Reserved. * \copyright * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * \file MTreatmentAdjustSetPointsResponse.h * \author (last) Stephen Quong * \date (last) 18-Nov-2025 * \author (original) Stephen Quong * \date (original) 18-Nov-2025 * */ #pragma once // Qt #include // Project #include "MAbstract.h" #include "types.h" // forward declarations class tst_models; namespace Model { /*! * \brief The MAdjustSetPointsResponse class * \details The SetPoints Bolus adjustment response model * * | MSG | CAN ID | Type | Ack | Src | Dest | Description | * |:----:|:------:|:----:|:---:|:---:|:----:|:----------------------------:| * |0x9400| 0x020 | Rsp | Y | TD | UI | Adjust Set Points Response | * * | Payload || * | || * | #1:(U32) | \ref Data::mAccepted | * | #2:(U32) | \ref Data::mReason | * | #1:(U32) | \ref Data::mBloodFlowRate | * | #2:(U32) | \ref Data::mDialysateFlowRate | * | #3:(F32) | \ref Data::mDialysateTemperature | * | #4:(U32) | \ref Data::mAcidConcentrate | * | #5:(U32) | \ref Data::mBicarbConcentrate | * * \sa Data * \sa MAdjustSetPointsReq : Adjust Set Points Request * \sa MTreatmentSetPoints : Adjust Set Points Data * *

Logging info

* | || * | || * | typeText | Event | * | unitText | HD | * | infoText | AdjustSetPoints | * */ class MAdjustSetPointsResponse : public MAbstract { // friends friend class ::tst_models; QVariantList parameters() const override; struct { Types::U32 mAccepted ; Types::U32 mReason ; Types::U32 mBloodFlowRate ; Types::U32 mDialysateFlowRate ; Types::F32 mDialysateTemperature ; Types::U32 mAcidConcentrate ; Types::U32 mBicarbConcentrate ; } _data; public: Type_Enum typeText () const override { return Type_Enum::eEvent ; } Unit_Enum unitText () const override { return Unit_Enum::eTD ; } QString infoText () const override { return QString("AdjustSetPoints") ; } struct Data { bool mAccepted = 0; /*!< Accepted value of type quint32 extracted out */ quint32 mReason = 0; /*!< Reason value of type quint32 extracted out */ quint32 mBloodFlowRate = 0; /*!< Blood Flow Rate value of type quint32 extracted out */ quint32 mDialysateFlowRate = 0; /*!< Dialysate Flow Rate value of type quint32 extracted out */ float mDialysateTemperature = 0; /*!< Dialysate Temperature value of type float extracted out */ quint32 mAcidConcentrate = 0; /*!< Acid Concentrate value of type quint32 extracted out */ quint32 mBicarbConcentrate = 0; /*!< Bicarbonate Concentrate value of type quint32 extracted out */ }; MAdjustSetPointsResponse () { } bool fromByteArray (const QByteArray &vByteArray , int *vIndex = nullptr) override; Data data ( ) const ; }; } typedef Model::MAdjustSetPointsResponse::Data AdjustSetPointsResponseData;