Index: simulator/plugins/HDOpMode/interface.ui
===================================================================
diff -u -ra11b044673a77150b1d3485d43a5a001340a0feb -ra7674c35d63942e38006f75c3ebe52b0df16ae42
--- simulator/plugins/HDOpMode/interface.ui (.../interface.ui) (revision a11b044673a77150b1d3485d43a5a001340a0feb)
+++ simulator/plugins/HDOpMode/interface.ui (.../interface.ui) (revision a7674c35d63942e38006f75c3ebe52b0df16ae42)
@@ -7,40 +7,57 @@
0
0
745
- 271
+ 274
&1 States/&1 HD Op Mode
-
+
-
-
-
-
- 10
-
-
-
- color: rgb(238, 238, 236);
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 10
+
+
+
+ color: rgb(238, 238, 236);
background-color: rgb(52, 105, 2);
-
-
- HD Op Mode
-
-
- Qt::AlignCenter
-
-
+
+
+ HD Op Mode
+
+
+ Qt::AlignCenter
+
+
+
+ -
+
+
+ reset
+
+
+
+ -
+
+
+ Send
+
+
+
+
- -
-
-
- reset
-
-
-
- -
+
-
-
@@ -419,7 +436,7 @@
- -
+
-
Qt::Vertical
Index: simulator/plugins/HDOpMode/loader.py
===================================================================
diff -u -r12408471ebe8f39c87bd0242a2d5e36f122175d4 -ra7674c35d63942e38006f75c3ebe52b0df16ae42
--- simulator/plugins/HDOpMode/loader.py (.../loader.py) (revision 12408471ebe8f39c87bd0242a2d5e36f122175d4)
+++ simulator/plugins/HDOpMode/loader.py (.../loader.py) (revision a7674c35d63942e38006f75c3ebe52b0df16ae42)
@@ -20,6 +20,7 @@
The HD Op Mode ui loader
"""
tbReset: QtWidgets.QToolButton
+ tbSend: QtWidgets.QToolButton
tblOpMode: QtWidgets.QTableWidget
tblSubMode: QtWidgets.QTableWidget
@@ -32,6 +33,7 @@
:return: none
"""
self.tbReset = self.find_tool_button('tbReset')
+ self.tbSend = self.find_tool_button('tbSend')
self.tblOpMode = self.find_table_widget('tblOpMode')
self.tblSubMode = self.find_table_widget('tblSubMode')
@@ -41,6 +43,7 @@
:return: none
"""
self.tbReset.clicked.connect(self._init_widgets)
+ self.tbSend.clicked.connect(self.do_treatment_states)
self.tblOpMode.currentCellChanged.connect(self.do_treatment_states)
self.tblSubMode.currentCellChanged.connect(self.do_treatment_states)
Index: simulator/plugins/PostTreatment/interface.ui
===================================================================
diff -u
--- simulator/plugins/PostTreatment/interface.ui (revision 0)
+++ simulator/plugins/PostTreatment/interface.ui (revision a7674c35d63942e38006f75c3ebe52b0df16ae42)
@@ -0,0 +1,2312 @@
+
+
+ ui_interface
+
+
+
+ 0
+ 0
+ 1118
+ 776
+
+
+
+ &5 Post-Treatment/&0 Responses
+
+
+
-
+
+
-
+
+
+
+ 10
+
+
+
+ Accept
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 10
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 50
+ 0
+
+
+
+ reason
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 10
+
+
+
+ QFrame::StyledPanel
+
+
+ QFrame::Plain
+
+
+
+
+
+
+ -
+
+
+
+ 10
+
+
+
+ Reject
+
+
+
+ -
+
+
+
+ 10
+
+
+
+ color: rgb(238, 238, 236);
+background-color: rgb(191, 64, 105);
+
+
+ Disposables Removal Confirm Response
+
+
+ Qt::AlignCenter
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 10
+
+
+
+ Accept
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 10
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 50
+ 0
+
+
+
+ reason
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 10
+
+
+
+ color: rgb(238, 238, 236);
+background-color: rgb(191, 64, 105);
+
+
+ Treatment Log Data Response
+
+
+ Qt::AlignCenter
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 10
+
+
+
+ QFrame::StyledPanel
+
+
+ QFrame::Plain
+
+
+
+
+
+
+ -
+
+
+
+ 10
+
+
+
+ Reject
+
+
+
+
+
+ -
+
+
-
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 27 - (F32) Heparin Bolus Volume
+
+
+ leHeparinBolusVolume
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999.999
+
+
+ 25.123
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ (mL)
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 26 - (U32) Heparin Concentration
+
+
+ leHeparinConcentration
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999
+
+
+ 24
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ (IU/mL)
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 33 - (U32) End Treatment Early Alarm
+
+
+ leEndTreatmentEarlyAlarm
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999
+
+
+ 31
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ _
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 15 - (U32) Treatment Date and Time
+
+
+ leTreatmentDateTime
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999
+
+
+ 13
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ _
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 5 - (U32) Treatment Duration
+
+
+ leTreatmentDuration
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999
+
+
+ 3
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ (min)
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 6 - (U32) Actual Treatment Duration
+
+
+ leActualTreatmentDuration
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999
+
+
+ 4
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ (min)
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 10 - (U32) Calcium Concentration
+
+
+ leCalciumConcentration
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999
+
+
+ 8
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ (mEq/L)
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 18 - (F32) Dialysate Volume Used
+
+
+ leDialysateVolumeUsed
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999.999
+
+
+ 16.456
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ (L)
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 4 - (U32) Dialysate Flow Rate
+
+
+ leDialysateFlowRate
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999
+
+
+ 2
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ (mL/min)
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 28 - (F32) Heparin Dispense Rate
+
+
+ leHeparinDispenseRate
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999.999
+
+
+ 26.234
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ (mL/hr)
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 29 - (U32) Heparin Pre-Stop
+
+
+ leHeparinPreStop
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999
+
+
+ 27
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ (min)
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 3 - (U32) Blood Flow Rate
+
+
+ leBloodFlowRate
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999
+
+
+ 1
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ (mL/min)
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 21 - (F32) Actual UF Volume
+
+
+ leActualUFVolume
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999.999
+
+
+ 19.789
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ (L)
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 9 - (U32) Potassium Concentration
+
+
+ lePotassiumConcentration
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999
+
+
+ 7
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ (mEq/L)
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 7 - (U32) Acid Concentrate Type
+
+
+ leAcidConcentrateType
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999
+
+
+ 5
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ _
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 13 - (F32) Dialysate Temperature
+
+
+ leDialysateTemperature
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999.999
+
+
+ 11.123
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ (Celsius)
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 31 - (F32) Average Arterial Pressure
+
+
+ leAverageArterialPressure
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999.999
+
+
+ 29.456
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ (mmHg)
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 14 - (U32) Dialyzer Type
+
+
+ leDialyzerType
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999
+
+
+ 12
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ _
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 35 - (U32) Water Sample Test Result
+
+
+ leWaterSampleTestResult
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999
+
+
+ 33
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ _
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 25 - (U32) Heparin Type
+
+
+ leHeparinType
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999
+
+
+ 23
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ _
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 34 - (U32) Device ID
+
+
+ leDeviceID
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999
+
+
+ 32
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ _
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 17 - (F32) Average Dialysate Flow
+
+
+ leAverageDialysateFlow
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999.999
+
+
+ 15.345
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ (mL/min)
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 24 - (U32) Saline Bolus Volume
+
+
+ leSalineBolusVolume
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999
+
+
+ 22
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ (mL)
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 22 - (F32) Target UF Rate
+
+
+ leTargetUFRate
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999.999
+
+
+ 20.891
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ (mL/min)
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 23 - (F32) Actual UF Rate
+
+
+ leActualUFRate
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999.999
+
+
+ 21.912
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ (mL/min)
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 30 - (F32) Heparin Delivered Volume
+
+
+ leHeparinDeliveredVolume
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999.999
+
+
+ 28.345
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ (mL)
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 8 - (U32) Bicarbonate Concentrate Type
+
+
+ leBicarbonateConcentrateType
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999
+
+
+ 6
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ _
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 11 - (U32) Bicarbonate Concentration
+
+
+ leBicarbonateConcentration
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999
+
+
+ 9
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ (mEq/L)
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 20 - (F32) Target UF Volume
+
+
+ leTargetUFVolume
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999.999
+
+
+ 18.678
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ (L)
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 16 - (F32) Average Blood Flow
+
+
+ leAverageBloodFlow
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999.999
+
+
+ 14.234
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ (mL/min)
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 32 - (F32) Average Venous Pressure
+
+
+ leAverageVenousPressure
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999.999
+
+
+ 30.567
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ (mmHg)
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 19 - (F32) Average Dialysate Temp
+
+
+ leAverageDialysateTemp
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999.999
+
+
+ 17.567
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ (Celsius)
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 350
+ 0
+
+
+
+
+ Courier
+
+
+
+ 12 - (U32) Sodium Concentration
+
+
+ leSodiumConcentration
+
+
+
+ -
+
+
+
+ Courier
+
+
+
+ 99999
+
+
+ 10
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 80
+ 0
+
+
+
+
+ Courier
+
+
+
+ (mEq/L)
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 636
+ 69
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 636
+ 69
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 40
+
+
+
+
+ -
+
+
+
+ 10
+
+
+
+ color: rgb(238, 238, 236);
+background-color: rgb(191, 64, 105);
+
+
+ Post Treatment
+
+
+ Qt::AlignCenter
+
+
+
+
+
+
+ btnAcceptDisposableConfirm
+ btnRejectDisposableConfirm
+ spnReasonDisposableConfirm
+ btnAcceptTxLog
+ btnRejectTxLog
+ spnReasonTxLog
+ leBloodFlowRate
+ leDialysateFlowRate
+ leTreatmentDuration
+ leActualTreatmentDuration
+ leAcidConcentrateType
+ leBicarbonateConcentrateType
+ lePotassiumConcentration
+ leCalciumConcentration
+ leBicarbonateConcentration
+ leSodiumConcentration
+ leDialysateTemperature
+ leDialyzerType
+ leTreatmentDateTime
+ leAverageBloodFlow
+ leAverageDialysateFlow
+ leDialysateVolumeUsed
+ leAverageDialysateTemp
+ leTargetUFVolume
+ leActualUFVolume
+ leTargetUFRate
+ leActualUFRate
+ leSalineBolusVolume
+ leHeparinType
+ leHeparinConcentration
+ leHeparinBolusVolume
+ leHeparinDispenseRate
+ leHeparinPreStop
+ leHeparinDeliveredVolume
+ leAverageArterialPressure
+ leAverageVenousPressure
+ leEndTreatmentEarlyAlarm
+ leDeviceID
+ leWaterSampleTestResult
+
+
+
+
Index: simulator/plugins/PostTreatment/loader.py
===================================================================
diff -u
--- simulator/plugins/PostTreatment/loader.py (revision 0)
+++ simulator/plugins/PostTreatment/loader.py (revision a7674c35d63942e38006f75c3ebe52b0df16ae42)
@@ -0,0 +1,252 @@
+"""
+The ui loader class
+"""
+# Python
+import os
+# Qt
+from PySide2 import QtWidgets
+from PySide2.QtCore import Slot
+# parent
+from simulator.dynamicloader import DynamicLoader
+# hd Simulator
+from dialin.ui.hd_simulator import HDSimulator
+from dialin.ui.hd_simulator import RequestRejectReasons
+
+from dialin.utils.conversions import integer_to_bytearray, float_to_bytearray
+
+# plugin specific
+# -- None --
+
+
+class Loader(DynamicLoader):
+ """
+ The ui loader class
+ """
+ btnAcceptDisposableConfirm: QtWidgets.QPushButton
+ btnRejectDisposableConfirm: QtWidgets.QPushButton
+ spnReasonDisposableConfirm: QtWidgets.QSpinBox
+ lblActionDisposableConfirm: QtWidgets.QLabel
+
+ btnAcceptTxLog: QtWidgets.QPushButton
+ btnRejectTxLog: QtWidgets.QPushButton
+ spnReasonTxLog: QtWidgets.QSpinBox
+ lblActionTxLog: QtWidgets.QLabel
+
+ leBloodFlowRate: QtWidgets.QLineEdit
+ leDialysateFlowRate: QtWidgets.QLineEdit
+ leTreatmentDuration: QtWidgets.QLineEdit
+ leActualTreatmentDuration: QtWidgets.QLineEdit
+ leAcidConcentrateType: QtWidgets.QLineEdit
+ leBicarbonateConcentrateType: QtWidgets.QLineEdit
+ lePotassiumConcentration: QtWidgets.QLineEdit
+ leCalciumConcentration: QtWidgets.QLineEdit
+ leBicarbonateConcentration: QtWidgets.QLineEdit
+ leSodiumConcentration: QtWidgets.QLineEdit
+ leDialysateTemperature: QtWidgets.QLineEdit
+ leDialyzerType: QtWidgets.QLineEdit
+ leTreatmentDateTime: QtWidgets.QLineEdit
+ leAverageBloodFlow: QtWidgets.QLineEdit
+ leAverageDialysateFlow: QtWidgets.QLineEdit
+ leDialysateVolumeUsed: QtWidgets.QLineEdit
+ leAverageDialysateTemp: QtWidgets.QLineEdit
+
+ leTargetUFVolume: QtWidgets.QLineEdit
+ leActualUFVolume: QtWidgets.QLineEdit
+ leTargetUFRate: QtWidgets.QLineEdit
+ leActualUFRate: QtWidgets.QLineEdit
+ leSalineBolusVolume: QtWidgets.QLineEdit
+ leHeparinType: QtWidgets.QLineEdit
+ leHeparinConcentration: QtWidgets.QLineEdit
+ leHeparinBolusVolume: QtWidgets.QLineEdit
+ leHeparinDispenseRate: QtWidgets.QLineEdit
+ leHeparinPreStop: QtWidgets.QLineEdit
+ leHeparinDeliveredVolume: QtWidgets.QLineEdit
+ leAverageArterialPressure: QtWidgets.QLineEdit
+ leAverageVenousPressure: QtWidgets.QLineEdit
+ leEndTreatmentEarlyAlarm: QtWidgets.QLineEdit
+ leDeviceID: QtWidgets.QLineEdit
+ leWaterSampleTestResult: QtWidgets.QLineEdit
+
+ def __init__(self, hd_simulator: HDSimulator):
+ super().__init__(os.path.dirname(__file__), hd_simulator)
+
+ def _init_loader(self):
+ """
+ finds and creates widgets
+ :return: none
+ """
+ self.btnAcceptDisposableConfirm = self.find_button('btnAcceptDisposableConfirm')
+ self.btnRejectDisposableConfirm = self.find_button('btnRejectDisposableConfirm')
+ self.spnReasonDisposableConfirm = self.find_spinbox('spnReasonDisposableConfirm')
+ self.lblActionDisposableConfirm = self.find_label('lblActionDisposableConfirm')
+
+ self.btnAcceptTxLog = self.find_button('btnAcceptTxLog')
+ self.btnRejectTxLog = self.find_button('btnRejectTxLog')
+ self.spnReasonTxLog = self.find_spinbox('spnReasonTxLog')
+ self.lblActionTxLog = self.find_label('lblActionTxLog')
+
+ self.leBloodFlowRate = self.find_line_edit('leBloodFlowRate')
+ self.leDialysateFlowRate = self.find_line_edit('leDialysateFlowRate')
+ self.leTreatmentDuration = self.find_line_edit('leTreatmentDuration')
+ self.leActualTreatmentDuration = self.find_line_edit('leActualTreatmentDuration')
+ self.leAcidConcentrateType = self.find_line_edit('leAcidConcentrateType')
+ self.leBicarbonateConcentrateType = self.find_line_edit('leBicarbonateConcentrateType')
+ self.lePotassiumConcentration = self.find_line_edit('lePotassiumConcentration')
+ self.leCalciumConcentration = self.find_line_edit('leCalciumConcentration')
+ self.leBicarbonateConcentration = self.find_line_edit('leBicarbonateConcentration')
+ self.leSodiumConcentration = self.find_line_edit('leSodiumConcentration')
+ self.leDialysateTemperature = self.find_line_edit('leDialysateTemperature')
+ self.leDialyzerType = self.find_line_edit('leDialyzerType')
+ self.leTreatmentDateTime = self.find_line_edit('leTreatmentDateTime')
+ self.leAverageBloodFlow = self.find_line_edit('leAverageBloodFlow')
+ self.leAverageDialysateFlow = self.find_line_edit('leAverageDialysateFlow')
+ self.leDialysateVolumeUsed = self.find_line_edit('leDialysateVolumeUsed')
+ self.leAverageDialysateTemp = self.find_line_edit('leAverageDialysateTemp')
+
+ self.leTargetUFVolume = self.find_line_edit('leTargetUFVolume')
+ self.leActualUFVolume = self.find_line_edit('leActualUFVolume')
+ self.leTargetUFRate = self.find_line_edit('leTargetUFRate')
+ self.leActualUFRate = self.find_line_edit('leActualUFRate')
+ self.leSalineBolusVolume = self.find_line_edit('leSalineBolusVolume')
+ self.leHeparinType = self.find_line_edit('leHeparinType')
+ self.leHeparinConcentration = self.find_line_edit('leHeparinConcentration')
+ self.leHeparinBolusVolume = self.find_line_edit('leHeparinBolusVolume')
+ self.leHeparinDispenseRate = self.find_line_edit('leHeparinDispenseRate')
+ self.leHeparinPreStop = self.find_line_edit('leHeparinPreStop')
+ self.leHeparinDeliveredVolume = self.find_line_edit('leHeparinDeliveredVolume')
+ self.leAverageArterialPressure = self.find_line_edit('leAverageArterialPressure')
+ self.leAverageVenousPressure = self.find_line_edit('leAverageVenousPressure')
+ self.leEndTreatmentEarlyAlarm = self.find_line_edit('leEndTreatmentEarlyAlarm')
+ self.leDeviceID = self.find_line_edit('leDeviceID')
+ self.leWaterSampleTestResult = self.find_line_edit('leWaterSampleTestResult')
+
+ def _init_widgets(self):
+ """
+ initializes the widgets' properties
+ :return: none
+ """
+ pass
+
+ def _init_connections(self):
+ """
+ initializes the widgets connections
+ :return:
+ """
+ self.btnAcceptDisposableConfirm.clicked.connect(self.do_accept_disposable_confirm)
+ self.btnRejectDisposableConfirm.clicked.connect(self.do_reject_disposable_confirm)
+
+ self.btnAcceptTxLog.clicked.connect(self.do_accept_tx_log)
+ self.btnRejectTxLog.clicked.connect(self.do_reject_tx_log)
+
+ @Slot()
+ def do_accept_disposable_confirm(self):
+ """
+ the slot for accept button
+ :return: none
+ """
+ self.hd_simulator.cmd_send_post_treatment_disposable_removal_confirm_response(True, 0)
+ self.lblActionDisposableConfirm.setText('Accepted ')
+
+ @Slot()
+ def do_reject_disposable_confirm(self):
+ """
+ the slot for reject button
+ :return: none
+ """
+ reason = self.spnReasonDisposableConfirm.value()
+ self.hd_simulator.cmd_send_post_treatment_disposable_removal_confirm_response(False, reason)
+ self.lblActionDisposableConfirm.setText('Rejected ' + "{}".format(reason))
+
+ @Slot()
+ def do_accept_tx_log(self):
+ """
+ the slot for accept button
+ :return: none
+ """
+ parameters = [
+ # column 1
+ integer_to_bytearray(self.leBloodFlowRate.text()),
+ integer_to_bytearray(self.leDialysateFlowRate.text()),
+ integer_to_bytearray(self.leTreatmentDuration.text()),
+ integer_to_bytearray(self.leActualTreatmentDuration.text()),
+ integer_to_bytearray(self.leAcidConcentrateType.text()),
+ integer_to_bytearray(self.leBicarbonateConcentrateType.text()),
+ integer_to_bytearray(self.lePotassiumConcentration.text()),
+ integer_to_bytearray(self.leCalciumConcentration.text()),
+ integer_to_bytearray(self.leBicarbonateConcentration.text()),
+ integer_to_bytearray(self.leSodiumConcentration.text()),
+ float_to_bytearray(self.leDialysateTemperature.text()),
+ integer_to_bytearray(self.leDialyzerType.text()),
+ integer_to_bytearray(self.leTreatmentDateTime.text()),
+ float_to_bytearray(self.leAverageBloodFlow.text()),
+ float_to_bytearray(self.leAverageDialysateFlow.text()),
+ float_to_bytearray(self.leDialysateVolumeUsed.text()),
+ float_to_bytearray(self.leAverageDialysateTemp.text()),
+ # column 2
+ float_to_bytearray(self.leTargetUFVolume.text()),
+ float_to_bytearray(self.leActualUFVolume.text()),
+ float_to_bytearray(self.leTargetUFRate.text()),
+ float_to_bytearray(self.leActualUFRate.text()),
+ integer_to_bytearray(self.leSalineBolusVolume.text()),
+ integer_to_bytearray(self.leHeparinType.text()),
+ integer_to_bytearray(self.leHeparinConcentration.text()),
+ float_to_bytearray(self.leHeparinBolusVolume.text()),
+ float_to_bytearray(self.leHeparinDispenseRate.text()),
+ integer_to_bytearray(self.leHeparinPreStop.text()),
+ float_to_bytearray(self.leHeparinDeliveredVolume.text()),
+ float_to_bytearray(self.leAverageArterialPressure.text()),
+ float_to_bytearray(self.leAverageVenousPressure.text()),
+ integer_to_bytearray(self.leEndTreatmentEarlyAlarm.text()),
+ integer_to_bytearray(self.leDeviceID.text()),
+ integer_to_bytearray(self.leWaterSampleTestResult.text())
+ ]
+
+ self.hd_simulator.cmd_send_post_treatment_log_response(True, 0, parameters)
+ self.lblActionTxLog.setText('Accepted ')
+
+ @Slot()
+ def do_reject_tx_log(self):
+ """
+ the slot for reject button
+ :return: none
+ """
+ parameters = [
+ # column 1
+ integer_to_bytearray(0),
+ integer_to_bytearray(0),
+ integer_to_bytearray(0),
+ integer_to_bytearray(0),
+ integer_to_bytearray(0),
+ integer_to_bytearray(0),
+ integer_to_bytearray(0),
+ integer_to_bytearray(0),
+ integer_to_bytearray(0),
+ integer_to_bytearray(0),
+ float_to_bytearray(0),
+ integer_to_bytearray(0),
+ integer_to_bytearray(0),
+ float_to_bytearray(0),
+ float_to_bytearray(0),
+ float_to_bytearray(0),
+ float_to_bytearray(0),
+ # column 2
+ float_to_bytearray(0),
+ float_to_bytearray(0),
+ float_to_bytearray(0),
+ float_to_bytearray(0),
+ integer_to_bytearray(0),
+ integer_to_bytearray(0),
+ integer_to_bytearray(0),
+ float_to_bytearray(0),
+ float_to_bytearray(0),
+ integer_to_bytearray(0),
+ float_to_bytearray(0),
+ float_to_bytearray(0),
+ float_to_bytearray(0),
+ integer_to_bytearray(0),
+ integer_to_bytearray(0),
+ integer_to_bytearray(0)
+ ]
+ reason = self.spnReasonTxLog.value()
+ self.hd_simulator.cmd_send_post_treatment_log_response(False, reason, parameters)
+ self.lblActionTxLog.setText('Rejected ' + "{}".format(reason))
Fisheye: Tag a7674c35d63942e38006f75c3ebe52b0df16ae42 refers to a dead (removed) revision in file `simulator/plugins/__PostTreatment/interface.ui'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag a7674c35d63942e38006f75c3ebe52b0df16ae42 refers to a dead (removed) revision in file `simulator/plugins/__PostTreatment/loader.py'.
Fisheye: No comparison available. Pass `N' to diff?