/*! * * 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 VPostTreatmentAdjustTreatmentLog.cpp * \author (last) Behrouz NematiPour * \date (last) 11-Apr-2021 * \author (original) Behrouz NematiPour * \date (original) 11-Apr-2021 * */ #include "VPostTreatmentAdjustTreatmentLog.h" // Project #include "GuiController.h" VIEW_DEF_CLASS_ADJUSTMENT(VPostTreatmentAdjustmentTreatmentLog) /*! \brief Connection Initializer \details All the class signal/slot connections are defined here. */ void View::VPostTreatmentAdjustmentTreatmentLog::initConnections() { ADJUST_VIEW_CONNECTION(AdjustTreatmentLogRequestData); ACTION_VIEW_CONNECTION(AdjustTreatmentLogResponseData); } /*! * \brief VPostTreatmentAdjustmentUltrafiltrationInit::onActionReceive * \details received response model data handler * \param vData - model data */ void View::VPostTreatmentAdjustmentTreatmentLog::onActionReceive(const AdjustTreatmentLogResponseData &vData) { adjustment_Accepted ( vData.mAccepted ); adjustment_Reason ( vData.mReason ); bloodFlowRate ( vData.mBloodFlowRate ); dialysateFlowRate ( vData.mDialysateFlowRate ); treatmentDuration ( vData.mTreatmentDuration ); actualTreatmentDuration ( vData.mActualTreatmentDuration ); acidConcentrateType ( vData.mAcidConcentrateType ); bicarbonateConcentrateType ( vData.mBicarbonateConcentrateType ); potassiumConcentration ( vData.mPotassiumConcentration ); calciumConcentration ( vData.mCalciumConcentration ); bicarbonateConcentration ( vData.mBicarbonateConcentration ); sodiumConcentration ( vData.mSodiumConcentration ); dialysateTemperature ( vData.mDialysateTemperature ); dialyzerType ( vData.mDialyzerType ); treatmentDateTime ( vData.mTreatmentDateTime ); averageBloodFlow ( vData.mAverageBloodFlow ); averageDialysateFlow ( vData.mAverageDialysateFlow ); dialysateVolumeUsed ( vData.mDialysateVolumeUsed ); averageDialysateTemp ( vData.mAverageDialysateTemp ); targetUFVolume ( vData.mTargetUFVolume ); actualUFVolume ( vData.mActualUFVolume ); targetUFRate ( vData.mTargetUFRate ); actualUFRate ( vData.mActualUFRate ); salineBolusVolume ( vData.mSalineBolusVolume ); heparinType ( vData.mHeparinType ); heparinConcentration ( vData.mHeparinConcentration ); heparinBolusVolume ( vData.mHeparinBolusVolume ); heparinDispenseRate ( vData.mHeparinDispenseRate ); heparinPreStop ( vData.mHeparinPreStop ); heparinDeliveredVolume ( vData.mHeparinDeliveredVolume ); averageArterialPressure ( vData.mAverageArterialPressure ); averageVenousPressure ( vData.mAverageVenousPressure ); endTreatmentEarlyAlarm ( vData.mEndTreatmentEarlyAlarm ); deviceID ( vData.mDeviceID ); waterSampleTestResult ( vData.mWaterSampleTestResult ); // *** has to be the last to let the information to be set and then emit the signal *** // *** otherwise will use the Previous values before being set. *** adjustment ( true ); } /*! * \brief View::VPostTreatmentAdjustmentTreatmentLog::doConfirm * \details the invocable slot to send user's Disposables Removal confirm */ void View::VPostTreatmentAdjustmentTreatmentLog::doRequest() { AdjustTreatmentLogRequestData data; emit didAdjustment(data); }