Index: suite_leahi/shared/scripts/configuration/config.py =================================================================== diff -u -rea332e15d3df5245676b6e5fb6f1a235e990c860 -r4b929ef6eef32479f10e84325b0ad12173474a4d --- suite_leahi/shared/scripts/configuration/config.py (.../config.py) (revision ea332e15d3df5245676b6e5fb6f1a235e990c860) +++ suite_leahi/shared/scripts/configuration/config.py (.../config.py) (revision 4b929ef6eef32479f10e84325b0ad12173474a4d) @@ -1,10 +1,3 @@ -# -S, --disable-sd-card-fail-log-stop disable-sd-card-fail-log-stop -# -k, --enable-check-in-log Enables Check-In Log -# -K, --enable-acknow-log Enables Acknowledgment Log - -AUT_NAME = "leahi -k -K -S -q" -AUT_NAME_ONLY = "leahi" # Need only the AUT name for tst_ui_logs, do not add options - # Configuration application_init.py TMP_DIR = "/tmp/" APP_POST_LOG_LOCATION = "".join([str(TMP_DIR),'/post.log']) @@ -24,10 +17,10 @@ "TD Serial Number", "DD Version", "DD FPGA Version", "DD Serial Number", ] #Device Settings Information Version -INFORMATION_SCREEN_TITLE_TEXT = "Information" -INFORMATION_TITLES = ["Information", "Versions"] +INFORMATION_SCREEN_TITLE_TEXT = "Device Information" +INFORMATION_TITLES = ["Versions", "Service"] VERSION_PARAMETERS = [ - "Information", "UI Version", "TD Version", "TD FPGA Version", + "OS Version", "UI Version", "TD Version", "TD FPGA Version", "TD Serial Number", "DD Version", "DD FPGA Version", "DD Serial Number" ] SERVICES_PARAMETERS = [ @@ -36,6 +29,7 @@ ] SERIVCES_TITLE = "Service" WATER_PARAMETERS = ["Water Configuration", "Water Input"] + # General Alarm Requirements Instruction NUM_OF_ALARM_PRIORITIES = 4 # Total number of alarm priorities ALARM_MUTE_FLAG = 0B0000001000000000 @@ -46,24 +40,28 @@ 2 : 'ALARM_PRIORITY_MEDIUM', 3 : 'ALARM_PRIORITY_HIGH', } +MUTE = "Mute" +UMMUTE = "UnMute" +IMAGE_BELLOFF_STATE = "/images/iBellOff" +IMAGE_BELLON_STATE = "/images/iBellOn" +ALARMS_COLORS_HEADER = { + "ALARM_PRIORITY_NONE" : "#438feb", + "ALARM_PRIORITY_LOW" : "#db8f00", + "ALARM_PRIORITY_MEDIUM" : "#db8f00", + "ALARM_PRIORITY_HIGH" : "#c53b33" +} +ALARM_REJECT_NOTIFICATION_TEMPLATE = "No Active Alarm List [{}]" #HeaderBar WiFi WIFI_POPUP_TEXT = "WiFi Connection Error" +WIFI_IMAGE = "/images/iWifi" # Device Settings WiFi WIFI_TEXT = "Wi-Fi" WIFI_PARAMETERS_TEXTS = ["SSID", "IP Address", "Gateway", "Subnet Mask", "DNS"] WIFI_SCREEN_SCAN_BUTTON_TEXT = "SCAN" DISABLED = False -ALARMS_COLORS_HEADER = { - "ALARM_PRIORITY_NONE" : "#438feb", - "ALARM_PRIORITY_LOW" : "#db8f00", - "ALARM_PRIORITY_MEDIUM" : "#db8f00", - "ALARM_PRIORITY_HIGH" : "#c53b33" -} -ALARM_REJECT_NOTIFICATION_TEMPLATE = "No Active Alarm List [{}]" - #Create Rx ACID_CONCENTRATE = ["1.0 K, 2.50 Ca, 1 Mg","2.0 K, 2.50 Ca, 1 Mg","3.0 K, 2.50 Ca, 1 Mg"] DIALYZER_TYPE = ["Diacap Pro 13H","Diacap Pro 16H", "Diacap Pro 19H", "Optiflux F160NRe", "Optiflux F180NRe", "Optiflux F200NRe","Optiflux F250NRe"] @@ -85,24 +83,40 @@ ACTIVE = 'Active' RESUME = 'Resume' COMPLETE = 'Complete' -HEPARIN = "Heparin" -CREATERX = "Rx" -VALIDATE = "VALIDATE" -CONFIRM = "CONFIRM" -NEXT ="Next" +HEPARIN = 'Heparin' +CREATERX = 'Rx' +VALIDATE = 'VALIDATE' +CONFIRM = 'CONFIRM' +NEXT = 'Next' +AUTO_LOAD = 'Auto Load' +WATER_SAMPLE = 'Water Sample' +START = 'Start' +AUTO_EJECT = 'Auto Eject' + # Settings Service DEFAULT_SERVICE_PASSWORD_RAW = "Atal.Matal.22leh" # TODO need to update if we ever change the default NEW_PASSWORD_RAW = "Test4.Ksah.sk43sa" MANUFACTURING_SCREEN_TITLE_TEXT = "Manufacturing Setup" SERVICE_SCREEN_TITLE_TEXT = "Service" ADVANCED_MODES_SCREEN_TITLE_TEXT = "Advanced Mode" DATE_AND_TIME_SCREEN_TITLE_TEXT = "Date and Time" +TIME = "Time" DATE_AND_TIME_PARAMETERS_TEXTS = ["NTP", "(Network Time Protocol)", "Time", "(HH:mm:ss)", "Date", "(MM/dd/yyyy)"] ENABLE_ROOT_SSH_SCREEN_TITLE_TEXT = "Enable Root SSH" ENABLE_ROOT_SSH_PARAMETERS_TEXTS = ["Enable SSH Login", "Enable Root Login"] FACTORY_RESET_SCREEN_TITLE_TEXT = "Factory Reset" FACTORY_RESET_SCREEN_TEXT = "Do you want to perform the factory reset?" +SET_PASSWORD = "Set Password" +#Blood Set Auto Load +BLOOD_SET_AUTO_LOAD_REJECTION = "[1] Request is not allowed in the current operating mode" +BLOOD_SET_AUTO_EJECT_REJECTION = "[1] Request is not allowed in the current operating mode" + +#Feature Options +FEATURE_CONFIGURATIONS_SCREEN_TITLE_TEXT = "Feature Configurations" +FEATURE_CONFIGURATIONS_PARAMETERS_TEXTS = ["Integrated BP Cuff", "Heparin Syringe Pump", "Chemical Disinfection"] +MEASURE_VITALS = "Measure Vitals" + # Service Institutional INSTITUTIONAL_CONFIGURATIONS_SCREEN_TITLE_TEXT = "Institutional Configurations" ADVANCED_INSTITUTIONAL_SETTINGS_SCREEN_TITLE_TEXT = "Advanced Institutional Settings" @@ -134,3 +148,65 @@ PRESCRIPTIONS = "Prescriptions" TREATMENT = "Treatment" SETTINGS = "Settings" + +# Pre-Treatment Foundation +CONCENTRATES_PAGE_TITLE = "Connect Acid and Bicarbonate Concentrates" +CONCENTRATES_PAGE_CONTENTS = [ + "Remove acid connector and connect to acid concentrate.", + "Connect dry bicarbonate.", +] +INSTALLATION_STEPPER_1_PAGE_TITLE = "Install Blood Tubing Set" +INSTALL_BLOOD_TUBING_SET_CONTENTS = [ + "Open the blood pump door.", + "Insert blood tubing set and ensure it is secure.", + "Push the blood tube into the blood pump.", + "Close the blood pump door.", +] +INSTALLATION_STEPPER_2_PAGE_TITLE = "Install Bloodlines" +INSTALL_BLOODLINES_CONTENTS = [ + "Insert saline line into the first slot.", + "Insert arterial line into the second slot.", + "Ensure the venous line is placed in the bubble detector.", + "Insert the venous line into the third slot.", + "Connect the arterial and venous bloodlines using the recirculation connector.", +] +INSTALLATION_STEPPER_3_PAGE_TITLE = "Install Pressure Lines and Dialyzer" +INSTALL_PRESSURE_LINES_CONTENTS = [ + "Connect the arterial pressure line to the arterial pressure transducer port.", + "Connect the venous pressure line to the venous pressure transducer port.", + "Insert dialyzer into the holder and connect the dialysate lines.", + "Connect the bloodlines to the dialyzer.", + "Clamp the venous chamber line.", + "Clamp the heparin line.", +] +SELF_TESTS_PAGE_CONTENTS = [ + "Auto-Load Blood Tubing", + "Cartridge Install Checks", + "Pressure Leak Check", +] +SALINE_PAGE_TITLE = "Connect Saline Bag" +SALINE_PAGE_CONTENTS = [ + "Hang saline bag on the hook.", + "Clamp saline line.", + "Use the saline line to spike saline bag.", + "Unclamp saline line.", +] +PRIME_PAGE_CONTENTS = ["Blood Tubing Circuit Priming", "Dialysate Circuit Priming"] +CONNECT_PAGE_TITLE = "Connect Bloodlines to the Patient" +CONNECT_PAGE_CONTENTS = [ + "Clamp arterial and venous bloodlines (2 clamps).", + "Remove recirculation connector from the bloodlines.", + "Connect bloodlines to patient access lines.", + "Unclamp arterial and venous bloodlines (2 clamps).", +] +DISCONNECT_PAGE_TITLE = "Remove Concentrates and Blood Tubing Set" +DISCONNECT_PAGE_CONTENTS = [ + "Remove blood tubing set and dialyzer.", + "Remove acid and bicarbonate concentrates.", +] +INSTALLATION_PAGE_TITLE = "Install Concentrates and Blood Tubing Set" +INSTALLATION_PAGE_CONTENTS = [ + "Install acid and bicarbonate concentrates.", + "Install blood tubing set and dialyzer.", +] +START_TREATMENT_REJECTION_NOTIFICATION = "[1] Request is not allowed in the current operating mode" Index: suite_leahi/shared/scripts/configuration/utility.py =================================================================== diff -u -rea332e15d3df5245676b6e5fb6f1a235e990c860 -r4b929ef6eef32479f10e84325b0ad12173474a4d --- suite_leahi/shared/scripts/configuration/utility.py (.../utility.py) (revision ea332e15d3df5245676b6e5fb6f1a235e990c860) +++ suite_leahi/shared/scripts/configuration/utility.py (.../utility.py) (revision 4b929ef6eef32479f10e84325b0ad12173474a4d) @@ -3,19 +3,65 @@ import object import names from leahi_dialin.ui.td_messaging import TD_Messaging -from leahi_dialin.common.td_defs import TDOpModes,TDTreatmentStates -from configuration import config, navigation +from leahi_dialin.common.td_defs import TDOpModes,TDTreatmentStates +from configuration import config, navigation +from leahi_dialin.ui import utils +from builtins import int as pyInt td =TD_Messaging() -from leahi_dialin.ui import utils -from builtins import int as pyInt def aut(*args): """ Joins the executable name and argument into a single command string +* Options: + * -h, --help Displays help on commandline options. + * --help-all Displays help including Qt specific + * options. + * -v, --version Displays version information. + * -c, --canOut Show the Can Frame Output + * -m, --msgOut Show the Message Output + * -l, --logOut Show the Logs Output + * -0, --enable-keep-awake Enable send low priority, empty message + * on the CANBus just to keep UI board CAN + * driver awake + * -i, --fake-interval Test fake message interval(ms) + * -f, --fake-message Test fake message data + * will use default sequenced long fake + * message if set to 00(default) + * will used only if correct integer value + * assigned for interval option + * -b, --fake-message-seq-at-begin Test fake message sequence at the + * beginning of the frame + * -u, --disable-unhandled-report Disable unhandled messages report as an + * error in the log + * -d, --disable-dialin-unhandled Disable the Dialin messages logged as + * unhandled + * -q, --disable-timeout Disables communication timeout + * -a, --disable-alarm-no-minimize Disables alarm no minimize + * -S, --disable-sd-card-fail-log-stop disable-sd-card-fail-log-stop + * -C, --disable-cloudsync-fail-stop disable-cloudsync-fail-stop + * -k, --disable-check-in-log Disables Check-In Log + * -K, --disable-acknow-log Disables Acknowledgment Log + * -D, --enable-dry-demo Enables Dry-Demo Mode + * -A, --active-can-bus Sets the Active CANBus [Shall start with + * 'can' or 'vcan] + * -E, --enable-manufacturing Enables the manufacturing mode to + * configure the system for the first time. + * -R, --use-root-home In case the application is not in + * Manufacturing Setup but needs to use root + * home folder for configurations. + * -U, --enable-update-mode Enables the update mode to update only + * necessary files during the update and + * keep the rest. + * -x, --use-log-long-name Use the log long file name format + * _