Index: shared/scripts/names.py =================================================================== diff -u -r2eadee44ce8be006bae5ae6692b54e33e64c5086 -r08e394d6afe01356f9ab4da613180112ff86f32d --- shared/scripts/names.py (.../names.py) (revision 2eadee44ce8be006bae5ae6692b54e33e64c5086) +++ shared/scripts/names.py (.../names.py) (revision 08e394d6afe01356f9ab4da613180112ff86f32d) @@ -16,6 +16,71 @@ DIALIN_LINK = True AUT_NAME = "denaliSquish" # Squish +AlarmPriority = [ 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" } @@ -26,6 +91,7 @@ o_treatmentHome_startTreatment = {"container": o_treatmentHome, "id": "_startTreatmentRect" , "type": "TouchRect" , "unnamed": 1, "visible": True} o_treatmentHome_createTreatment = {"container": o_treatmentHome, "id": "_createTreatmentRect", "type": "TouchRect" , "unnamed": 1, "visible": True} + # Main Menu o_mainMenu = {"container": o_QQuickView, "id": "_mainMenu" , "type": "MainMenu" , "unnamed": 1 , "visible": True} o_mainMenu_treatment = {"container": o_mainMenu , "id": "_touchRect", "type": "TouchRect", "objectName": "_touchRect0", "visible": True} @@ -96,7 +162,6 @@ o_alarm_dialog = {"container": o_Overlay, "id": "_backgroundRect", "type": "Rectangle", "unnamed": 1, "visible": True} o_okay_alarm = {"container": o_Overlay, "id": "_okay", "type": "TouchRect", "unnamed": 1, "visible": True} o_alarm_bar = {"container": o_qquickview_alarm, "objectName": "NotificationBar", "type": "NotificationBar"} -o_treatmentStart_SalineTouchArea_TreatmentFluid = {"container": o_treatmentStart_TreatmentStart, "id": "_SalineTouchArea", "type": "TreatmentFluid", "unnamed": 1, "visible": True} o_treatmentStart_heparinTouchArea_TreatmentFluid = {"container": o_treatmentStart_TreatmentStart, "id": "_heparinTouchArea", "type": "TreatmentFluid", "unnamed": 1, "visible": True} o_dismiss_alarm = {"container": o_Overlay, "id": "_dismiss", "type": "TouchRect", "unnamed": 1, "visible": True} o_treatmentStart_TimeText_TimeText = {"container": o_treatmentStart_TreatmentStart, "objectName": "_TimeText", "type": "TimeText", "visible": True} @@ -187,15 +252,15 @@ o_managerHome_DGDrainPumpData_DACValue = {"container": o_managerHome, "objectName": "_DGDrainPumpData1", "type": "Text"} # DGOperationMode -o_managerHome_DGOperationModeData_DGOpMode = {"container": o_managerHome, "objectName": "_DGOperationModeData", "type": "Text"} +o_managerHome_DGOperationModeData_DGOpMode = {"container": o_managerHome, "objectName": "_DGOperationModeData0", "type": "Text"} # DGReservoirData o_managerHome_DGReservoirData_ActiveReservoir = {"container": o_managerHome, "objectName": "_DGReservoirData0", "type": "Text"} o_managerHome_DGReservoirData_FillToVolML = {"container": o_managerHome, "objectName": "_DGReservoirData1", "type": "Text"} o_managerHome_DGReservoirData_DrainToVolML = {"container": o_managerHome, "objectName": "_DGReservoirData2", "type": "Text"} # DGValvesStates -o_managerHome_DGValvesStatesData_ValvesStates = {"container": o_managerHome, "objectName": "_DGValvesStatesData", "type": "Text"} +o_managerHome_DGValvesStatesData_ValvesStates = {"container": o_managerHome, "objectName": "_DGValvesStatesData0", "type": "Text"} # DGHeatersData o_managerHome_DGHeatersData_MainPriMaryDC = {"container": o_managerHome, "objectName": "_DGHeatersData0", "type": "Text"} @@ -223,102 +288,73 @@ o_managerHome_DGTemperaturesData_TrimmerHeaterInternalTemperature = {"container": o_managerHome, "objectName": "_DGTemperaturesData11", "type": "Text"} # HDOperationModeData -o_settingsHome_HDOperationModeData_OpMode = {"container": o_settingsHome, "objectName": "_HDOperationModeData", "type": "Text"} +o_managerHome_HDOperationModeData_OpMode = {"container": o_managerHome, "objectName": "_HDOperationModeData0", "type": "Text"} # TreatmentStatesData o_settingsHome_TreatmentStatesData_SubMode = {"container": o_settingsHome, "objectName": "_TreatmentStatesData0", "type": "Text"} 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"} -o_settingsHome_PressureOcclusionData_BloodPumpOcclusion = {"container": o_settingsHome, "objectName": "_PressureOcclusionData2", "type": "Text"} -o_settingsHome_PressureOcclusionData_DialysateInletPumpOcclusion = {"container": o_settingsHome, "objectName": "_PressureOcclusionData3", "type": "Text"} -o_settingsHome_PressureOcclusionData_DialysateOutletPumpOcclusion = {"container": o_settingsHome, "objectName": "_PressureOcclusionData4", "type": "Text"} +o_managerHome_PressureOcclusionData_ArterialPressure = {"container": o_managerHome, "objectName": "_PressureOcclusionData0", "type": "Text"} +o_managerHome_PressureOcclusionData_VenousPressure = {"container": o_managerHome, "objectName": "_PressureOcclusionData1", "type": "Text"} +o_managerHome_PressureOcclusionData_BloodPumpOcclusion = {"container": o_managerHome, "objectName": "_PressureOcclusionData2", "type": "Text"} +o_managerHome_PressureOcclusionData_DialysateInletPumpOcclusion = {"container": o_managerHome, "objectName": "_PressureOcclusionData3", "type": "Text"} +o_managerHome_PressureOcclusionData_DialysateOutletPumpOcclusion = {"container": o_managerHome, "objectName": "_PressureOcclusionData4", "type": "Text"} +# BloodFlowData +o_managerHome_BloodFlowData_FlowSetPoint = {"container": o_managerHome, "objectName": "_HDBloodFlowData0" , "type": "Text"} +o_managerHome_BloodFlowData_MeasuredFlow = {"container": o_managerHome, "objectName": "_HDBloodFlowData1" , "type": "Text"} +o_managerHome_BloodFlowData_RotorSpeed = {"container": o_managerHome, "objectName": "_HDBloodFlowData2" , "type": "Text"} +o_managerHome_BloodFlowData_MotorSpeed = {"container": o_managerHome, "objectName": "_HDBloodFlowData3" , "type": "Text"} +o_managerHome_BloodFlowData_MotorCtlSpeed = {"container": o_managerHome, "objectName": "_HDBloodFlowData4" , "type": "Text"} +o_managerHome_BloodFlowData_MotorCtlCurrent = {"container": o_managerHome, "objectName": "_HDBloodFlowData5" , "type": "Text"} +o_managerHome_BloodFlowData_PWMDutyCycle = {"container": o_managerHome, "objectName": "_HDBloodFlowData6" , "type": "Text"} + +# InletFlowData +o_managerHome_InletFlowData_FlowSetPoint = {"container": o_managerHome, "objectName": "_HDInletFlowData0" , "type": "Text"} +o_managerHome_InletFlowData_MeasuredFlow = {"container": o_managerHome, "objectName": "_HDInletFlowData1" , "type": "Text"} +o_managerHome_InletFlowData_RotorSpeed = {"container": o_managerHome, "objectName": "_HDInletFlowData2" , "type": "Text"} +o_managerHome_InletFlowData_MotorSpeed = {"container": o_managerHome, "objectName": "_HDInletFlowData3" , "type": "Text"} +o_managerHome_InletFlowData_MotorCtlSpeed = {"container": o_managerHome, "objectName": "_HDInletFlowData4" , "type": "Text"} +o_managerHome_InletFlowData_MotorCtlCurrent = {"container": o_managerHome, "objectName": "_HDInletFlowData5" , "type": "Text"} +o_managerHome_InletFlowData_PWMDutyCycle = {"container": o_managerHome, "objectName": "_HDInletFlowData6" , "type": "Text"} + # OutletFlowData -o_settingsHome_OutletFlowData_RefUFVol = {"container": o_settingsHome, "objectName": "_OutletFlowData0", "type": "Text"} -o_settingsHome_OutletFlowData_MeasUFVol = {"container": o_settingsHome, "objectName": "_OutletFlowData1", "type": "Text"} -o_settingsHome_OutletFlowData_RotorSpeed = {"container": o_settingsHome, "objectName": "_OutletFlowData2", "type": "Text"} -o_settingsHome_OutletFlowData_MotorSpeed = {"container": o_settingsHome, "objectName": "_OutletFlowData3", "type": "Text"} -o_settingsHome_OutletFlowData_MotorCtlSpeed = {"container": o_settingsHome, "objectName": "_OutletFlowData4", "type": "Text"} -o_settingsHome_OutletFlowData_MotorCtlCurrent = {"container": o_settingsHome, "objectName": "_OutletFlowData5", "type": "Text"} -o_settingsHome_OutletFlowData_PWMDtCycle = {"container": o_settingsHome, "objectName": "_OutletFlowData6", "type": "Text"} +o_managerHome_OutletFlowData_RefUFVol = {"container": o_managerHome, "objectName": "_HDOutletFlowData0", "type": "Text"} +o_managerHome_OutletFlowData_MeasUFVol = {"container": o_managerHome, "objectName": "_HDOutletFlowData1", "type": "Text"} +o_managerHome_OutletFlowData_RotorSpeed = {"container": o_managerHome, "objectName": "_HDOutletFlowData2", "type": "Text"} +o_managerHome_OutletFlowData_MotorSpeed = {"container": o_managerHome, "objectName": "_HDOutletFlowData3", "type": "Text"} +o_managerHome_OutletFlowData_MotorCtlSpeed = {"container": o_managerHome, "objectName": "_HDOutletFlowData4", "type": "Text"} +o_managerHome_OutletFlowData_MotorCtlCurrent = {"container": o_managerHome, "objectName": "_HDOutletFlowData5", "type": "Text"} +o_managerHome_OutletFlowData_PWMDtCycle = {"container": o_managerHome, "objectName": "_HDOutletFlowData6", "type": "Text"} +# Saline Bolus +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" } +o_managerHome_canbusFaultCount = {"container": o_managerHome, "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" -] - o_create_treatment_button = {"container": o_treatmentHome, "text": "CREATE TREATMENT", "type": "Text", "unnamed": 1 } o_create_treatment_container = {"container": o_qquickview_alarm, "objectName": "TreatmentCreate", "type": "TreatmentCreate" } o_create_treatment_flickable = {"container": o_create_treatment_container, "id": "_flickable", "type": "Flickable", "unnamed": 1 }