Index: shared/scripts/names.py =================================================================== diff -u -r2dc140932c71c9b21e2c60410ec0ca58e04d9771 -r9304d64222c02f0dc812ff86dc945c8deba46440 --- shared/scripts/names.py (.../names.py) (revision 2dc140932c71c9b21e2c60410ec0ca58e04d9771) +++ shared/scripts/names.py (.../names.py) (revision 9304d64222c02f0dc812ff86dc945c8deba46440) @@ -16,6 +16,71 @@ DIALIN_LINK = True AUT_NAME = "denaliSquish" # Squish +AlarmPriory = [ 0, 1, 2, 3, 4 ] # 4 is out of range check +AlarmTextMap = [ + "", + "Software Error.", + "Indication for when no alarms is a possible situation.", + "FPGA POST failure.", + "Watchdog POST failure.", + "UI communication POST failure.", + "Blood pump failed motor controller current check.", + "Blood pump failed motor off check. \nMeasured speed while commanded off.", + "Blood pump failed motor controller direction check.", + "Blood pump failed rotor speed check.", + "Dialysis inlet pump failed motor controller current check.", + "Dialysis inlet pump failed motor off check. \nMeasured speed while commanded off.", + "Dialysis inlet pump failed motor controller direction check.", + "Dialysis inlet pump failed rotor speed check.", + "Dialysis outlet pump failed motor controller current check.", + "Dialysis outlet pump failed motor off check. \nMeasured speed while commanded off.", + "Dialysis outlet pump failed motor controller direction check.", + "Dialysis outlet pump failed rotor speed check.", + "Watchdog expired error.", + "Real-time clock communication error.", + "Real-time clock configuration error.", + "Dialysate generator communication timeout.", + "User interface communication timeout.", + "Too many bad CRCs detected on received system messages.", + "Treatment stopped by user action - pressed stop button.", + "Blood sitting too long warning (>4 min).", + "Blood sitting too long alarm (>5 min).", + "Blood sitting too long alarm (>10 min).", + "System message needing acknowledgment was not acknowledged.", + "Blood pump occlusion detected.", + "Dialysate inlet pump occlusion detected.", + "Dialysate outlet pump occlusion detected.", + "Arterial pressure too low during treatment.", + "Arterial pressure too high during treatment.", + "Venous pressure too low during treatment.", + "Venous pressure too high during treatment.", + "Ultrafiltration rate is too high error during treatment.", + "Ultrafiltration volume accuracy error during treatment.", + "RTC battery low.", + "RTC or MCU timer inaccurate.", + "RTC or RAM operations failure (read or write).", + "EEPRON operations (read, write, erase) failure.", + "Manufacturing record CRC failure.", + "Service record CRC failure.", + "Calibration record CRC failure.", + "HW usage data failure.", + "Last disinfection date CRC error.", + "Pressure at outlet of RO pump is out of range.", + "DG temperature sensors fault.", + "DG temperature sensors values are inconsistent.", + "HD communication timeout.", + "FPGA not accepting commanded valve states.", + "Blood pump failed flow vs. motor speed check. \nMismatch with flow rate and rate implied by motor speed.", + "Dialysate inlet pump failed flow vs. motor speed check. \nMismatch with flow rate and rate implied by motor speed.", + "Dialysate outlet pump failed flow vs. motor speed check. \nMismatch with flow rate and rate implied by motor speed.", + "Blood pump failed motor speed check. Measured vs. commanded.", + "Dialysate inlet pump failed motor speed check. Measured vs. commanded.", + "Dialysate outlet pump failed motor speed check. Measured vs. commanded.", + "Blood pump rotor speed too high.", + "Inlet water conductivity too low.", + "ALARM_ID_UNDEFINED" +] + # Top Parents o_QQuickView = { "type": "QQuickView"} o_Overlay = {"container": o_QQuickView, "type": "Overlay" } @@ -230,6 +295,16 @@ o_settingsHome_TreatmentStatesData_UFState = {"container": o_settingsHome, "objectName": "_TreatmentStatesData1", "type": "Text"} o_settingsHome_TreatmentStatesData_SalineState = {"container": o_settingsHome, "objectName": "_TreatmentStatesData2", "type": "Text"} +# Treatment Time Section +o_treatmentStart_treatmentTime_section = {"container": o_treatmentStart_TreatmentStart , "id": "_treatmentTime", "type": "Rectangle" } +o_treatmentStart_treatmentTime_arrowImage = {"container": o_treatmentStart_treatmentTime_section , "id": "_arrowImage", "source": "qrc:/images/iArrow", "type": "Image"} +o_treatmentStart_treatmentTime_second = {"container": o_treatmentStart_treatmentTime_section , "objectName": "_TimeText_second", "type": "Text" } +o_treatmentStart_treatmentTime_notification = {"container": o_treatmentStart_treatmentTime_section , "objectName": "NotificationBar", "type": "NotificationBarSmall"} + +# Ultrafiltration Section +o_treatmentStart_ultrafiltration_section = {"container": o_treatmentStart_TreatmentStart , "id": "_ultrafiltrationTouchArea", "type": "TreatmentUltrafiltration"} +o_treatmentStart_ultrafiltration_notification = {"container": o_treatmentStart_ultrafiltration_section, "objectName": "NotificationBar" , "type": "NotificationBarSmall" } + # PressureOcclusionData o_settingsHome_PressureOcclusionData_ArterialPressure = {"container": o_settingsHome, "objectName": "_PressureOcclusionData0", "type": "Text"} o_settingsHome_PressureOcclusionData_VenousPressure = {"container": o_settingsHome, "objectName": "_PressureOcclusionData1", "type": "Text"} @@ -247,82 +322,18 @@ o_settingsHome_OutletFlowData_PWMDtCycle = {"container": o_settingsHome, "objectName": "_OutletFlowData6", "type": "Text"} # Saline Bolus -o_treatmentStart_SalineSection = {"container": o_treatmentStart_TreatmentStart, "id": "_SalineTouchArea" , "type": "TreatmentFluid" } -o_treatmentStart_SalineCumulative = {"container": o_treatmentStart_TreatmentStart, "id": "_cumulativeValue" , "type": "Text" } -o_treatmentStart_SalineDelivered = {"container": o_treatmentStart_TreatmentStart, "id": "_fluidValue" , "type": "Text" } -o_treatmentStart_SalineTarget = {"container": o_treatmentStart_TreatmentStart, "id": "_fluidTarget" , "type": "Text" } -o_treatmentStart_SalineStart = {"container": o_treatmentStart_TreatmentStart, "id": "_startFluidButton", "type": "TouchRect" } +o_treatmentStart_SalineSection = {"container": o_treatmentStart_TreatmentStart, "id": "_SalineTouchArea" , "type": "TreatmentFluid" } +o_treatmentStart_SalineCumulative = {"container": o_treatmentStart_SalineSection , "id": "_cumulativeValue" , "type": "Text" } +o_treatmentStart_SalineDelivered = {"container": o_treatmentStart_SalineSection , "id": "_fluidValue" , "type": "Text" } +o_treatmentStart_SalineTarget = {"container": o_treatmentStart_SalineSection , "id": "_fluidTarget" , "type": "Text" } +o_treatmentStart_SalineStart = {"container": o_treatmentStart_SalineSection , "id": "_startFluidButton", "type": "TouchRect" } +o_treatmentStart_SalineNotification = {"container": o_treatmentStart_SalineSection , "objectName": "NotificationBar", "type": "NotificationBarSmall"} + # Setting CANBusFaultCountText o_settingsHome_canbusFaultCount = {"container": o_settingsHome, "id": "_canbusFaultCountText", "type": "Text" } # Alarm System o_NotificationDialog_Description_Text = {"container": o_Overlay, "objectName": "_NotificationDialog_Description", "type": "Text"} o_NotificationDialog_OKAY = {"container": o_Overlay, "text": "OKAY", "type": "Text"} -AlarmPriory = [ 0, 1, 2, 3, 4 ] # 4 is out of range check - -AlarmTextMap = [ - "", - "Software Error.", - "Indication for when no alarms is a possible situation.", - "FPGA POST failure.", - "Watchdog POST failure.", - "UI communication POST failure.", - "Blood pump failed motor controller current check.", - "Blood pump failed motor off check. \nMeasured speed while commanded off.", - "Blood pump failed motor controller direction check.", - "Blood pump failed rotor speed check.", - "Dialysis inlet pump failed motor controller current check.", - "Dialysis inlet pump failed motor off check. \nMeasured speed while commanded off.", - "Dialysis inlet pump failed motor controller direction check.", - "Dialysis inlet pump failed rotor speed check.", - "Dialysis outlet pump failed motor controller current check.", - "Dialysis outlet pump failed motor off check. \nMeasured speed while commanded off.", - "Dialysis outlet pump failed motor controller direction check.", - "Dialysis outlet pump failed rotor speed check.", - "Watchdog expired error.", - "Real-time clock communication error.", - "Real-time clock configuration error.", - "Dialysate generator communication timeout.", - "User interface communication timeout.", - "Too many bad CRCs detected on received system messages.", - "Treatment stopped by user action - pressed stop button.", - "Blood sitting too long warning (>4 min).", - "Blood sitting too long alarm (>5 min).", - "Blood sitting too long alarm (>10 min).", - "System message needing acknowledgment was not acknowledged.", - "Blood pump occlusion detected.", - "Dialysate inlet pump occlusion detected.", - "Dialysate outlet pump occlusion detected.", - "Arterial pressure too low during treatment.", - "Arterial pressure too high during treatment.", - "Venous pressure too low during treatment.", - "Venous pressure too high during treatment.", - "Ultrafiltration rate is too high error during treatment.", - "Ultrafiltration volume accuracy error during treatment.", - "RTC battery low.", - "RTC or MCU timer inaccurate.", - "RTC or RAM operations failure (read or write).", - "EEPRON operations (read, write, erase) failure.", - "Manufacturing record CRC failure.", - "Service record CRC failure.", - "Calibration record CRC failure.", - "HW usage data failure.", - "Last disinfection date CRC error.", - "Pressure at outlet of RO pump is out of range.", - "DG temperature sensors fault.", - "DG temperature sensors values are inconsistent.", - "HD communication timeout.", - "FPGA not accepting commanded valve states.", - "Blood pump failed flow vs. motor speed check. \nMismatch with flow rate and rate implied by motor speed.", - "Dialysate inlet pump failed flow vs. motor speed check. \nMismatch with flow rate and rate implied by motor speed.", - "Dialysate outlet pump failed flow vs. motor speed check. \nMismatch with flow rate and rate implied by motor speed.", - "Blood pump failed motor speed check. Measured vs. commanded.", - "Dialysate inlet pump failed motor speed check. Measured vs. commanded.", - "Dialysate outlet pump failed motor speed check. Measured vs. commanded.", - "Blood pump rotor speed too high.", - "Inlet water conductivity too low.", - "ALARM_ID_UNDEFINED" -] -