#ifndef MTREATMENTPARAMETERS_H #define MTREATMENTPARAMETERS_H // Qt // Project #include "types.h" class tst_models; namespace Model { class TreatmentParameters { friend class::tst_models; public: TreatmentParameters(); struct Data { quint32 bloodFlowRate = 0; // mL/min quint32 dialysateFlowRate = 0; // mL/min quint32 duration = 0; // minutes quint32 heparinDispensingRate = 0; // mL/hr quint32 heparinBolusVolume = 0; // mL quint32 heparinStopTime = 0; // min quint32 salineBolus = 0; // mL quint32 acidConcentrate = 0; // quint32 bicarbonateConcentrate = 0; // quint32 dialyzerType = 0; // quint32 dialysateTemp = 0; // Celsius qint32 arterialPressureLimitLow = 0; // mmHg qint32 arterialPressureLimitHigh = 0; // mmHg qint32 venousPressureLimitLow = 0; // mmHg qint32 venousPressureLimitHigh = 0; // mmHg quint32 bloodPressureMeasureInterval = 0; // minutes quint32 rinsebackFlowRate = 0; // mL/min bool operator == (const Data &other) const { if (other.bloodFlowRate != bloodFlowRate) return false; if (other.dialysateFlowRate != dialysateFlowRate) return false; if (other.duration != duration) return false; if (other.heparinDispensingRate != heparinDispensingRate) return false; if (other.heparinBolusVolume != heparinBolusVolume) return false; if (other.heparinStopTime != heparinStopTime) return false; if (other.salineBolus != salineBolus) return false; if (other.acidConcentrate != acidConcentrate) return false; if (other.bicarbonateConcentrate != bicarbonateConcentrate) return false; if (other.dialyzerType != dialyzerType) return false; if (other.dialysateTemp != dialysateTemp) return false; if (other.arterialPressureLimitLow != arterialPressureLimitLow) return false; if (other.arterialPressureLimitHigh != arterialPressureLimitHigh) return false; if (other.venousPressureLimitLow != venousPressureLimitLow) return false; if (other.venousPressureLimitHigh != venousPressureLimitHigh) return false; if (other.bloodPressureMeasureInterval != bloodPressureMeasureInterval) return false; if (other.rinsebackFlowRate != rinsebackFlowRate) return false; return true; } }; Data data; }; } typedef Model::TreatmentParameters::Data TreatmentData; #endif // MTREATMENTPARAMETERS_H