/*! * * Copyright (c) 2019-2020 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 MPostTreatmentTreatmentLogResponse.h * \author (last) Behrouz NematiPour * \date (last) 11-Apr-2021 * \author (original) Behrouz NematiPour * \date (original) 11-Apr-2021 * */ #pragma once // Qt #include // Project #include "MAbstract.h" #include "types.h" // forward declarations class tst_models; namespace Model { /*! * \brief The MAdjustTreatmentLogResponse class * \details The TreatmentLog adjustment response model * * | MSG | CAN ID | M.Box | Type | Ack | Src | Dest | Description | * |:----:|:------:|:-----:|:----:|:---:|:---:|:----:|:---------: | * |0x7600| 0x020 | 6 | Rsp | Y | HD | UI | TreatmentLog Response | * * | Payload || * | || * | # 1:(U32) | \ref Data::mAccepted | | * | # 2:(U32) | \ref Data::mReason | | * | # 3:(U32) | \ref Data::mBloodFlowRate | (mL/min) | * | # 4:(U32) | \ref Data::mDialysateFlowRate | (mL/min) | * | # 5:(U32) | \ref Data::mTreatmentDuration | (min) | * | # 6:(U32) | \ref Data::mActualTreatmentDuration | (min) | * | # 7:(U32) | \ref Data::mAcidConcentrateType | | * | # 8:(U32) | \ref Data::mBicarbonateConcentrateType | | * | # 9:(U32) | \ref Data::mPotassiumConcentration | (mEq/L) | * | #10:(U32) | \ref Data::mCalciumConcentration | (mEq/L) | * | #11:(U32) | \ref Data::mBicarbonateConcentration | (mEq/L) | * | #12:(U32) | \ref Data::mSodiumConcentration | (mEq/L) | * | #13:(F32) | \ref Data::mDialysateTemperature | (Celsius) | * | #14:(U32) | \ref Data::mDialyzerType | | * | #15:(U32) | \ref Data::mTreatmentDateTime | | * | #16:(F32) | \ref Data::mAverageBloodFlow | (mL/min) | * | #17:(F32) | \ref Data::mAverageDialysateFlow | (mL/min) | * | #18:(F32) | \ref Data::mDialysateVolumeUsed | (L) | * | #19:(F32) | \ref Data::mAverageDialysateTemp | (Celsius) | * | #20:(F32) | \ref Data::mTargetUFVolume | (L) | * | #21:(F32) | \ref Data::mActualUFVolume | (L) | * | #22:(F32) | \ref Data::mTargetUFRate | (mL/min) | * | #23:(F32) | \ref Data::mActualUFRate | (mL/min) | * | #24:(U32) | \ref Data::mSalineBolusVolume | (mL) | * | #25:(U32) | \ref Data::mHeparinType | | * | #26:(U32) | \ref Data::mHeparinConcentration | (IU/mL) | * | #27:(F32) | \ref Data::mHeparinBolusVolume | (mL) | * | #28:(F32) | \ref Data::mHeparinDispenseRate | (mL/hr) | * | #29:(U32) | \ref Data::mHeparinStop | (min) | * | #30:(F32) | \ref Data::mHeparinDeliveredVolume | (mL) | * | #31:(F32) | \ref Data::mAverageArterialPressure | (mmHg) | * | #32:(F32) | \ref Data::mAverageVenousPressure | (mmHg) | * | #33:(U32) | \ref Data::mEndTreatmentEarlyAlarm | | * | #34:(U32) | \ref Data::mDeviceID | | * | #35:(U32) | \ref Data::mWaterSampleTestResult | | * \sa Data * \sa MAdjustTreatmentLogReq : TreatmentLog Request * \sa MTreatmentTreatmentLog : TreatmentLog Data * *

Logging info

* | || * | || * | typeText | Event | * | unitText | HD | * | infoText | AdjustTreatmentLog | * */ class MAdjustTreatmentLogResponse : 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::U32 mTreatmentDuration ; Types::U32 mActualTreatmentDuration ; Types::U32 mAcidConcentrateType ; Types::U32 mBicarbonateConcentrateType ; Types::U32 mPotassiumConcentration ; Types::U32 mCalciumConcentration ; Types::U32 mBicarbonateConcentration ; Types::U32 mSodiumConcentration ; Types::F32 mDialysateTemperature ; Types::U32 mDialyzerType ; Types::U32 mTreatmentDateTime ; Types::F32 mAverageBloodFlow ; Types::F32 mAverageDialysateFlow ; Types::F32 mDialysateVolumeUsed ; Types::F32 mAverageDialysateTemp ; Types::F32 mTargetUFVolume ; Types::F32 mActualUFVolume ; Types::F32 mTargetUFRate ; Types::F32 mActualUFRate ; Types::U32 mSalineBolusVolume ; Types::U32 mHeparinType ; Types::U32 mHeparinConcentration ; Types::F32 mHeparinBolusVolume ; Types::F32 mHeparinDispenseRate ; Types::U32 mHeparinStop ; Types::F32 mHeparinDeliveredVolume ; Types::F32 mAverageArterialPressure ; Types::F32 mAverageVenousPressure ; Types::U32 mEndTreatmentEarlyAlarm ; Types::U32 mDeviceID ; Types::U32 mWaterSampleTestResult ; } _data; public: Type_Enum typeText () const override { return Type_Enum::eEvent ; } Unit_Enum unitText () const override { return Unit_Enum::eHD ; } QString infoText () const override { return QString("AdjustTreatmentLog") ; } 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 (mL/min) */ quint32 mDialysateFlowRate = 0; /*!< Dialysate Flow Rate (mL/min) */ quint32 mTreatmentDuration = 0; /*!< Treatment Duration (min) */ quint32 mActualTreatmentDuration = 0; /*!< Actual Treatment Duration (min) */ quint32 mAcidConcentrateType = 0; /*!< Acid Concentrate Type */ quint32 mBicarbonateConcentrateType = 0; /*!< Bicarbonate Concentrate Type */ quint32 mPotassiumConcentration = 0; /*!< Potassium Concentration (mEq/L) */ quint32 mCalciumConcentration = 0; /*!< Calcium Concentration (mEq/L) */ quint32 mBicarbonateConcentration = 0; /*!< Bicarbonate Concentration (mEq/L) */ quint32 mSodiumConcentration = 0; /*!< SodiumConcentration (mEq/L) */ float mDialysateTemperature = 0; /*!< Dialysate Temperature (Celsius) */ quint32 mDialyzerType = 0; /*!< Dialyzer Type */ quint32 mTreatmentDateTime = 0; /*!< Treatment Date and Time */ float mAverageBloodFlow = 0; /*!< Average Blood Flow (mL/min) */ float mAverageDialysateFlow = 0; /*!< Average Dialysate Flow (mL/min) */ float mDialysateVolumeUsed = 0; /*!< Dialysate Volume Used (L) */ float mAverageDialysateTemp = 0; /*!< Average Dialysate Temp (Celsius) */ float mTargetUFVolume = 0; /*!< Target UF Volume (L) */ float mActualUFVolume = 0; /*!< Actual UF Volume (L) */ float mTargetUFRate = 0; /*!< Target UF Rate (mL/min) */ float mActualUFRate = 0; /*!< Actual UF Rate (mL/min) */ quint32 mSalineBolusVolume = 0; /*!< Saline Bolus Volume (mL) */ quint32 mHeparinType = 0; /*!< Heparin Type */ quint32 mHeparinConcentration = 0; /*!< Heparin Concentration (IU/mL) */ float mHeparinBolusVolume = 0; /*!< Heparin Bolus Volume (mL) */ float mHeparinDispenseRate = 0; /*!< Heparin Dispense Rate (mL/hr) */ quint32 mHeparinStop = 0; /*!< Heparin Stop (min) */ float mHeparinDeliveredVolume = 0; /*!< Heparin Delivered Volume (mL) */ float mAverageArterialPressure = 0; /*!< Average Arterial Pressure (mmHg) */ float mAverageVenousPressure = 0; /*!< Average Venous Pressure (mmHg) */ quint32 mEndTreatmentEarlyAlarm = 0; /*!< End Treatment Early Alarm */ quint32 mDeviceID = 0; /*!< Device ID */ quint32 mWaterSampleTestResult = 0; /*!< Water Sample Test Result */ }; MAdjustTreatmentLogResponse () { } bool fromByteArray (const QByteArray &vByteArray , int *vIndex = nullptr) override; Data data ( ) const ; }; } typedef Model::MAdjustTreatmentLogResponse::Data AdjustTreatmentLogResponseData;