Index: shared/scripts/configuration/strings.py =================================================================== diff -u -r24823f5bcd89337f1626a648865a83de9095f1e4 -r92f5682918aea98813b61e980ea72ad3d2311716 --- shared/scripts/configuration/strings.py (.../strings.py) (revision 24823f5bcd89337f1626a648865a83de9095f1e4) +++ shared/scripts/configuration/strings.py (.../strings.py) (revision 92f5682918aea98813b61e980ea72ad3d2311716) @@ -398,11 +398,11 @@ 4: "HD Watchdog POST failure.", 5: "DG Watchdog POST failure.", 6: "UI communication POST failure.\nUI failed to communicate within a reasonable time after power up.", - 7: "Real-time clock configuration error.", + 7: "HD RTC battery low.", 8: "HD accelerometer failed POST.", 9: "DG accelerometer failed POST." , - 10: "RTC or MCU timer inaccurate.", - 11: "DG heaters failed POST.", + 10: "Alarm ID available for use.", + 11: "Alarm ID available for use.", 12: "HD firmware image integrity POST test failed.", 13: "DG firmware image integrity POST test failed.", 14: "HD blood flow invalid calibration.", @@ -434,9 +434,9 @@ 40: "Dialysis outlet pump failed motor off check.\nMeasured speed while commanded off.", 41: "Dialysis outlet pump failed motor direction check.\nMeasured vs commanded.", 42: "Dialysis outlet pump failed rotor speed check.\nMismatch with rotor and motor speeds.", - 43: "Watchdog expired error.\nWatchdog was not \"pet\" within the appropriate time.", + 43: "HD blood leak self test fault.", 44: "User interface communication timeout.", - 45: "Too many bad CRCs detected on received system messages.", + 45: "HD too many bad communications CRC.", 46: "System message that required acknowledgment was not acknowledged.", 47: "Ultrafiltration rate is too high error during treatment.", 48: "Ultrafiltration volume accuracy error during treatment.", @@ -465,7 +465,7 @@ 71: "HD venous pressure self-test failure alarm.", 72: "HD blood flow meter status check self-test failure alarm.", 73: "HD dialysate flow meter status check self-test failure alarm.", - 74: "HD blood leak detector self-test failure alarm.", + 74: "HD blood leak detector self-test transmit timeout.", 75: "HD syringe pump self-test failure alarm.", 76: "HD monitored voltage is out of range.", 77: "DG monitored voltage is out of range.", @@ -481,37 +481,37 @@ 87: "DG heating invalid calibration record.", 88: "DG concentrate pumps hall sensor out of range.", 89: "HD BP occlusion sensor error.", - 90: "This alarm ID is available for use.", + 90: "DG load cells FPGA read error.", 91: "HD No dialysate flow data receive in the last 3 seconds.", 92: "DG conductivity sensor bad status.", - 93: "This alarm ID is available for use.", - 94: "This alarm ID is available for use.", - 95: "This alarm ID is available for use.", + 93: "DG outlet primary conductivity out of range.", + 94: "DG pressure out of range.", + 95: "DG watchdog expired.", 96: "Inlet water temperature in high range.", 97: "Fill conductivity out of range.", 98: "HD battery communication fault.", 99: "HD syringe pump stall alarm.", 100: "HD no cartridge self-test timeout.", 101: "HD dry self-test timeout.", - 102: "Real-time clock communication error.", + 102: "DG heat disinfect temperature gradient out of range.", 103: "HD non-volatile calibration group invalid record CRC.", 104: "Air trap level sensors reporting illegal combination of air/fluid.", 105: "DG non-volatile system group invalid record CRC.", - 106: "DG inlet water conductivity is greater than threshold.", + 106: "Unused.", 107: "HD reports DG restarted fault.", 108: "HD syringe pump ADC error.", 109: "HD syringe pump volume check error.", 110: "HD syringe pump speed check error.", 111: "HD syringe pump not stopped in off state error.", - 112: "HD blood leak detector fault.", - 113: "HD arterial air bubble detector self-test failure.", + 112: "HD blood leak zero command transmit timeout.", + 113: "HD blood leak zero command fault.", 114: "HD venous air bubble detector self-test failure.", 115: "DG temperature sensor out of range.", 116: "DG temperature sensor ADC out of range.", - 117: "DG primary heater internal temperature out of range.", - 118: "DG primary heater cold junction temperature out of range.", - 119: "DG trimmer heater internal temperature out of range.", - 120: "DG trimmer heater cold junction temperature out of range.", + 117: "DG CAN message not acked.", + 118: "DG RTC config error.", + 119: "DG RTC battery low error.", + 120: "HD pre-treatment mode wet self-test prime check failure.", 121: "DG main primary heater voltage out of range.", 122: "DG small primary heater voltage out of range.", 123: "DG trimmer heater voltage out of range.", @@ -534,26 +534,26 @@ 140: "Dialysate generator communication timeout.", 141: "Air trap fill timeout during treatment.", 142: "Blood pump occlusion detected.", - 143: "DG dialysate temperature sensors drift timeout.", - 144: "DG software configuration record invalid CRC.", + 143: "DG dialysate temperature sensors out of range.", + 144: "Alarm ID available for use.", 145: "Concentrate conductivity after adding acid out of range alarm.", - 146: "Dialysate conductivity out of range.", + 146: "DG RTC or timer accuracy failure.", 147: "Wait for the DG to produce dialysate.", 148: "Inlet water temperature too high.", - 149: "Alarm ID available for use.", + 149: "HD watchdog expired.", 150: "Inlet water conductivity in high range.", 151: "Inlet water conductivity in low range.", 152: "Inlet water pressure in low range.", 153: "HD prime completed high priority alarm.", 154: "EEPROM operations (read, write, erase) failure.", - 155: "DG software configuration record invalid CRC.", - 156: "HW usage data (treatment time in HD and total consumed water in DG) failure.", + 155: "Alarm ID available for use.", + 156: "Alarm ID available for use.", 157: "DG chemical disinfect prime acid line timeout.", 158: "Inlet water temperature is in the low range.", 159: "Dialysate inlet pump failed flow vs motor speed check.", 160: "Blood pump rotor speed too high.", - 161: "This alarm ID is available for use.", - 162: "This alarm ID is available for use.", + 161: "DG comm too many bad CRCs.", + 162: "DG FPGA clock speed check failure.", 163: "HD sees primary load cell for reservoir 1 change too much too fast.", 164: "HD sees primary load cell for reservoir 2 change too much too fast.", 165: "HD in treatment rinseback operation timeout.", @@ -564,8 +564,8 @@ 170: "HD syringe empty alarm.", 171: "HD syringe pump occlusion alarm.", 172: "HD syringe pump not enough Heparin alarm.", - 173: "HD arterial air bubble detected alarm.", - 174: "HD arterial air bubble detected rinseback alarm.", + 173: "HD RTC configuration error.", + 174: "HD RTC or timer accuracy failure.", 175: "HD pump direction status error.", 176: "HD active reservoir is full during treatment and DG not ready to switch reservoirs.", 177: "DG software fault.\nSoftware found itself in an unexpected state.", @@ -584,22 +584,22 @@ 190: "DG drain pump off fault.", 191: "DG flow rate out of upper range.", 192: "DG flow rate out of lower range.", - 193: "RO pump flow rate out of range.", + 193: ".", 194: "DG RO pump duty cycle out of range.", 195: "DG RO pump pressure out of range.", 196: "DG temperature sensor error flag fault.", 197: "DG temperature sensors ADC fault.", - 198: "DG heaters cold junction temperature out of range.", - 199: "DG heaters fault.", + 198: "Alarm ID available for use.", + 199: ".", 200: "DG thermistors/sensors temperature out of range.", - 201: "Inlet water quality is bad (temperature, conductivity, pressure).", - 202: "Inlet water pressure fault.", + 201: "HD pre-treatment mode wet self-test lc vs FMD failure.", + 202: "HD pre-treatment mode dry pressure normal self-test failure.", 203: "Pressure sensor fault.", 204: "RO rejection ratio out of range.", 205: "Conductivity sensor fault.", 206: "DG dialysate fill runs out of time.", 207: "DG flow meter check failure alarm.", - 208: "DG primary heater on with no flow time out.", + 208: "Alarm ID available for use.", 209: "DG drain circulation line timeout.", 210: "HD battery pack detected an error.", 211: "Blood sitting too long warning (>4 min).", @@ -622,9 +622,9 @@ 228: "HD time out on prime sub-mode purge air state.", 229: "HD prime dialysate dialyzer time out alarm.", 230: "HD prime dialysate bypass time out alarm.", - 231: "HD pre-treatment mode dry self-tests failure.", - 232: "HD pre-treatment mode wet self-tests failure.", - 233: "RTC battery low.", + 231: "HD pre-treatment mode dry pressure self-test failure.", + 232: "HD pre-treatment mode wet self-test LC vs LC failure.", + 233: "Alarm ID available for use.", 234: "RTC (i.e read time) or RAM operations failure (read or write).", 235: "HD in treatment stopped sub-mode after rinseback completed (no escalation).", 236: "HD needs new cartridge to be installed.", @@ -679,32 +679,63 @@ 285: "HD treatment recirculate timeout warning.", 286: "HD treatment rinseback complete timeout warning.", 287: "HD processor clock speed checks against FPGA clock failure.", - 288: "DG trimmer heater on with flow timeout.", - 289: "DG dialysate or concentrate caps not closed." + 288: "HD load cells primary/back up drift out of range.", + 289: "DG dialysate or concentrate caps not closed.", + 290: "DG flow too low while heater is on." } ALARM_PRIORITIES = {1: "LOW", 2: "MEDIUM", 3: "HIGH"} ALARM_LIST_TITLE = "Alarm list" -UNDEFINED_ALARM_ID_MSG = "ALARM_ID_UNDEFINED" -ALARM_TITLE = "Alarm" -ALARM_PRIORITY_OPTIONS = { - 0 : 'ALARM_PRIORITY_NONE' , - 1 : 'ALARM_PRIORITY_LOW' , - 2 : 'ALARM_PRIORITY_MEDIUM', - 3 : 'ALARM_PRIORITY_HIGH', -} +REJECTION_REASON = { + 0: "No Active Alarm List", + 1: "REQUEST_REJECT_REASON_NOT_ALLOWED_IN_CURRENT_MODE", # Request is not allowed in the current operating mode + 2: "REQUEST_REJECT_REASON_TIMEOUT_WAITING_FOR_USER_CONFIRM", # Validated request was not confirmed by user in reasonable time + 3: "REQUEST_REJECT_REASON_NOT_IN_TREATMENT_MODE", # Request is not allowed if not in treatment mode + 4: "REQUEST_REJECT_REASON_INVALID_TREATMENT_STATE", # Request is not allowed in current treatment state + 5: "REQUEST_REJECT_REASON_TREATMENT_TOO_CLOSE_TO_FINISHED", # Request is not allowed so near end of treatment + 6: "REQUEST_REJECT_REASON_TREATMENT_TIME_OUT_OF_RANGE", # Treatment duration is out of range + 7: "REQUEST_REJECT_REASON_TREATMENT_TIME_LESS_THAN_CURRENT", # Treatment time change is less than currently elapsed treatment time + 8: "REQUEST_REJECT_REASON_BLOOD_FLOW_OUT_OF_RANGE", # Blood flow is out of range + 9: "REQUEST_REJECT_REASON_DIAL_FLOW_OUT_OF_RANGE", # Dialysate flow is out of range + 10: "REQUEST_REJECT_REASON_DIAL_VOLUME_OUT_OF_RANGE", # Dialysate flow rate or treatment duration causes dialysate volume to exceed limit + 11: "REQUEST_REJECT_REASON_UF_VOLUME_OUT_OF_RANGE", # Ultrafiltration volume is out of range + 12: "REQUEST_REJECT_REASON_UF_RATE_OUT_OF_RANGE", # Ultrafiltration rate is out of range + 13: "REQUEST_REJECT_REASON_TREATMENT_TIME_LESS_THAN_MINIMUM", # Treatment time change is less than minimum treatment time + 14: "REQUEST_REJECT_REASON_UF_NOT_IN_PROGESS", # Ultrafiltration is not currently in progress + 15: "REQUEST_REJECT_REASON_UF_NOT_PAUSED", # Ultrafiltration is not currently paused + 16: "REQUEST_REJECT_REASON_SALINE_BOLUS_IN_PROGRESS", # A saline bolus is in progress + 17: "REQUEST_REJECT_REASON_PARAM_OUT_OF_RANGE", # A treatment parameter is out of range + 18: "REQUEST_REJECT_REASON_HEPARIN_PRESTOP_EXCEEDS_DURATION", # The Heparin pre-stop setting is greater than the treatment duration + 19: "REQUEST_REJECT_REASON_ARTERIAL_PRESSURE_LOW_VS_HIGH", # Arterial pressure low and high alarm limits are not inconsistent + 20: "REQUEST_REJECT_REASON_VENOUS_PRESSURE_LOW_VS_HIGH", # Venous pressure low and high alarm limits are inconsistent + 21: "REQUEST_REJECT_REASON_SALINE_MAX_VOLUME_REACHED", # Saline bolus volume maximum has been reached - no more saline allowed + 22: "REQUEST_REJECT_REASON_SALINE_BOLUS_NOT_IN_PROGRESS", # A saline bolus is not in progress + 23: "REQUEST_REJECT_REASON_ACTION_DISABLED_IN_CURRENT_STATE", # Requested user action is disabled in current state + 24: "REQUEST_REJECT_REASON_ALARM_IS_ACTIVE", # Requested user action not allowed while alarm is active + 25: "REQUEST_REJECT_REASON_INVALID_COMMAND", # Requested user action invalid + 26: "REQUEST_REJECT_REASON_TREATMENT_IS_COMPLETED", # The treatment has been completed + 27: "REQUEST_REJECT_REASON_ADDL_RINSEBACK_MAX_VOLUME_REACHED", # Rinseback additional volume maximum has been reached - no more additional rinsebacks allowed + 28: "REQUEST_REJECT_REASON_UF_VOLUME_NOT_SET", # Ultrafiltration volume is not set yet + 29: "REQUEST_REJECT_REASON_NO_PATIENT_CONNECTION_CONFIRM", # The user has not confirmed patient connection + 30: "REQUEST_REJECT_REASON_HEPARIN_PAUSE_INVALID_IN_THIS_STATE", # Heparin cannot be paused if not currently deliverying Heparin + 31: "REQUEST_REJECT_REASON_HEPARIN_NOT_PAUSED", # Heparin cannot be resumed if not paused + 32: "REQUEST_REJECT_REASON_DG_COMM_LOST", # Treatment cannot initiate if DG comm is lost + 33: "REQUEST_REJECT_REASON_DRAIN_NOT_COMPLETE", # Post-treatment reservoirs drain not complete + 34: "REQUEST_REJECT_REASON_DG_NOT_IN_STANDBY_IDLE_STATE", # Treatment cannot initiate if DG is not in standby idle state + 35: "REQUEST_REJECT_REASON_INVALID_REQUEST_FORMAT", # Request message not formatted properly + 36: "REQUEST_REJECT_REASON_INVALID_DATE_OR_TIME", # Given date/time is invalid + 37: "REQUEST_REJECT_REASON_", # Not used - available for use + 38: "REQUEST_REJECT_REASON_BATTERY_IS_NOT_CHARGED", # Battery does not have enough charge to start treatment + 39: "REQUEST_REJECT_REASON_RINSEBACK_NOT_COMPLETED", # Cannot move on to recirculate without completing full rinseback. + 40: "REQUEST_REJECT_REASON_RESERVOIR_ONE_IS_NOT_READY", # Reservoir one fill is not complete + 41: "REQUEST_REJECT_REASON_PUMP_TRACK_NOT_CLOSED", # Pump track is not ready / closed + 42: "REQUEST_REJECT_REASON_DOOR_NOT_CLOSED", # Door is not closed + 43: "REQUEST_REJECT_REASON_SYRINGE_NOT_PRESENT", # Syringe is not present + 44: "REQUEST_REJECT_REASON_DG_DIALYSATE_CAP_OPEN", # Dialysate cap open + 45: "REQUEST_REJECT_REASON_DG_CONCENTRATE_CAP_OPEN", #Concentrate cap open + } + -PRESSURE_TITLE = "PRESSURES" -ARTERIAL_TITLE = "Arterial" -VENOUS_TITLE = "Venous" -VENOUS_UOM = "mmHg" -ARTERIAL_UOM = "mmHg" -LOW_TEXT = "LOW" -HIGH_TEXT = "HIGH" -FLOW_UNIT = "mL/min" -BLOOD_FLOW_TEXT = "blood" -DIALYSATE_FLOW_TEXT = "dialysate" -