Index: shared/scripts/configuration/config.py =================================================================== diff -u -r4600f283754a585a60993c0f3acbf631f8568364 -r4dac665c981c03c0fd16b20090c82e6031d6cba2 --- shared/scripts/configuration/config.py (.../config.py) (revision 4600f283754a585a60993c0f3acbf631f8568364) +++ shared/scripts/configuration/config.py (.../config.py) (revision 4dac665c981c03c0fd16b20090c82e6031d6cba2) @@ -16,8 +16,6 @@ import os from configuration.strings import * -from configuration.strings import * - AUT_NAME = "denaliSquish" COMMON_PATH = os.environ['HOME']+"/Projects" @@ -419,3 +417,10 @@ "Average Venous Pressure": [20.0, 101.45], } +BLOOD_PRIMING_TEXT = "Blood Priming" +SALINE_UNIT = "mL" +BLOOD_PRIMING_DEFAULT_VALUE = "0 mL" + +#main-treatment heparin +NUM_OF_REQUEST_REJECT_REASONS = 43 + Index: shared/scripts/configuration/strings.py =================================================================== diff -u -r4600f283754a585a60993c0f3acbf631f8568364 -r4dac665c981c03c0fd16b20090c82e6031d6cba2 --- shared/scripts/configuration/strings.py (.../strings.py) (revision 4600f283754a585a60993c0f3acbf631f8568364) +++ shared/scripts/configuration/strings.py (.../strings.py) (revision 4dac665c981c03c0fd16b20090c82e6031d6cba2) @@ -1,5 +1,5 @@ - # -*- coding: utf-8 -*- + ########################################################################### # # Copyright (c) 2019-2021 Diality Inc. - All Rights Reserved. @@ -10,19 +10,16 @@ # @file strings.py # # @author (last) Joseph varghese +# @author (last) LTTS # @date (last) 18-Jan-2022 # ############################################################################ + PRE_TREATMENT_SCREENS = ["Create" , "Sample" , "Consumables" , "Disposables" , "Prime" , "Ultrafiltration" , "BP/HR" , "Connection" , "Start"] POST_TREATMENT_SCREENS = ["Disconnection", "Review", "Disposables", "Disinfection"] -# @file utils.py -# -# @author (last) Joseph varghese -# @date (last) 10-june-2022 -# -############################################################################ + BLOOD_PRIMING_TEXT = "Blood Priming" SALINE_UNIT = "mL" BLOOD_PRIMING_DEFAULT_VALUE = "0 mL" @@ -37,6 +34,20 @@ LOW_TEXT = "LOW" HIGH_TEXT = "HIGH" + +#main-treatment heparin +HEPARIN_UNIT = "mL" +HEPARIN_DELIVERY_TEXT = "HEPARIN DELIVERY" +HEPARIN_DELIVERY_OFF_TEXT = "OFF" +HEPARIN_STOP_TEXT = "Delivery Stopped" +HEPARIN_RESUME_DELIVERY_TEXT = "RESUME DELIVERY" +HEPARIN_BOLUS_ACTIVE_TEXT = "Bolus Active" +HEPARIN_BOLUS_DISPENSING_TEXT = "Dispensing Active" +HEPARIN_PAUSE_DELIVERY_TEXT = "PAUSE DELIVERY" +HEPARIN_MAXIMUM_VOLUME_DELIVERED_TEXT = "Maximum Cumulative Heparin Volume Delivered" +HEPARIN_SYRINGE_EMPTY_TEXT = "Syringe Empty" + + # dictionary of rejection reason from application source code. # message location -> denali-> Headers-> common-> MsgDefs.h REJECTION_REASON = { @@ -86,6 +97,7 @@ 43: "REQUEST_REJECT_REASON_SYRINGE_NOT_PRESENT", # Syringe is not present } + ALARM_ID_AND_MESSAGES = { 1: "Stuck button POST failure.\nStop or Off button detected to be pressed for at least 1 second during test shortly after power up.", 2: "HD FPGA POST failure.", @@ -617,3 +629,4 @@ 3 : "Connect arterial and venous cartridge lines to your patient access lines." } + Index: tst_main_treatment_heparin/test.py =================================================================== diff -u -ra9d70d9d297041433ae012d165d04a49853f3c09 -r4dac665c981c03c0fd16b20090c82e6031d6cba2 --- tst_main_treatment_heparin/test.py (.../test.py) (revision a9d70d9d297041433ae012d165d04a49853f3c09) +++ tst_main_treatment_heparin/test.py (.../test.py) (revision 4dac665c981c03c0fd16b20090c82e6031d6cba2) @@ -13,10 +13,9 @@ from dialin.ui.hd_simulator import HDSimulator from configuration.utility import expected_heparin_value, rejection_msg from dialin.ui.utils import waitForGUI -from configuration.config import REJECTION_REASON -from urllib3.util.request import ACCEPT_ENCODING + HIGHER_RANGE = 20 STEP_VALUE = 1 LOWER_RANGE = 0