/*! * * 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 VPostTreatmentAdjustTreatmentLog.h * \author (last) Dara Navaei * \date (last) 18-Mar-2025 * \author (original) Behrouz NematiPour * \date (original) 11-Apr-2021 * */ #pragma once #include // Qt #include // Project #include "main.h" // Doxygen : do not remove #include "VAdjustmentResponseBase.h" #include "TreatmentLog.h" // Model MPostTreatmentAdjustTreatmentLogResponse included in this controller header #include "MTreatmentLogAvrgeData.h" #include "MTreatmentLogAlarmData.h" #include "MTreatmentLogEventData.h" namespace View { /*! * \brief The VPostTreatmentAdjustmentTreatmentLog class * \details View for Model's Data representation. * * \sa Model::MAdjustTreatmentLogResponse * */ class VPostTreatmentAdjustmentTreatmentLog : public VAdjustmentResponseBase { Q_OBJECT // friends friend class ::tst_views; // disabled coco begin validated: // The property adjustment_Triggered has to be always true // and to always trigger the change event to work as a notifier for GUI // has been manually tested that it works perfectly fine TRIGGER( bool , adjustment , 0) // disabled coco end PROPERTY(bool , heparinDispensingRateOff , true) PROPERTY(bool , heparinBolusVolumeOff , true) PROPERTY(QString , patientID , "") PROPERTY(quint32 , bloodFlowRate , 0 ) PROPERTY(quint32 , dialysateFlowRate , 0 ) PROPERTY(quint32 , treatmentDuration , 0 ) PROPERTY(quint32 , actualTreatmentDuration , 0 ) PROPERTY(quint32 , acidConcentrateType , 0 ) PROPERTY(quint32 , bicarbonateConcentrateType , 0 ) PROPERTY(float , potassiumConcentration , 0 ) PROPERTY(float , calciumConcentration , 0 ) PROPERTY(quint32 , bicarbonateConcentration , 0 ) PROPERTY(quint32 , sodiumConcentration , 0 ) PROPERTY(float , dialysateTemperature , 0 ) PROPERTY(quint32 , dialyzerType , 0 ) PROPERTY(quint32 , treatmentStartEpoch , 0 ) PROPERTY(quint32 , treatmentEndEpoch , 0 ) PROPERTY(float , averageBloodFlow , 0 ) PROPERTY(float , averageDialysateFlow , 0 ) PROPERTY(float , dialysateVolumeUsed , 0 ) PROPERTY(float , averageDialysateTemp , 0 ) PROPERTY(float , originUFVolume , 0 ) PROPERTY(float , targetUFVolume , 0 ) PROPERTY(float , actualUFVolume , 0 ) PROPERTY(float , originUFRate , 0 ) PROPERTY(float , targetUFRate , 0 ) PROPERTY(float , actualUFRate , 0 ) PROPERTY(quint32 , salineBolusVolume , 0 ) PROPERTY(float , heparinBolusVolume , 0 ) PROPERTY(float , heparinDispenseRate , 0 ) PROPERTY(quint32 , heparinStop , 0 ) PROPERTY(float , heparinDeliveredVolume , 0 ) PROPERTY(float , averageArterialPressure , 0 ) PROPERTY(float , averageVenousPressure , 0 ) PROPERTY(quint32 , deviceID , 0 ) PROPERTY(quint32 , waterSampleTestResult , 0 ) PROPERTY(quint32 , heparinType , 0 ) PROPERTY(quint32 , heparinConcentration , 0 ) PROPERTY(QStringList , parametersTitle , _TreatmentLog.titles()) PROPERTY(QStringList , parametersUnit , _TreatmentLog.units ()) PROPERTY(QStringList , parametersText , {}) PROPERTY(QString , txCode , "") PROPERTY(QString , notification , "") PROPERTY(bool , isIdle , true ) PROPERTY(bool , isReady , false ) VIEW_DEC_CLASS (VPostTreatmentAdjustmentTreatmentLog) VIEW_DEC_SLOT (AdjustTreatmentLogResponseData) VIEW_DEC_SLOT (TreatmentLogAvrgeData) VIEW_DEC_SLOT (TreatmentLogAlarmData) VIEW_DEC_SLOT (TreatmentLogEventData) public slots: void doRequest (); void doExport (); signals: /*! * \brief didAdjustment * \details the notification signal to send the user's Disposables Removal confirm * \param vData - data model includes request information */ void didAdjustment(const AdjustTreatmentLogRequestData &vData); }; }