Index: shared/scripts/configuration/config.py =================================================================== diff -u -r0cc92d3b75bfb96dc4ecafd760a9ce15e455033b -rd6518e26df89b43f269338a95d45b708cc37ec3a --- shared/scripts/configuration/config.py (.../config.py) (revision 0cc92d3b75bfb96dc4ecafd760a9ce15e455033b) +++ shared/scripts/configuration/config.py (.../config.py) (revision d6518e26df89b43f269338a95d45b708cc37ec3a) @@ -18,7 +18,6 @@ AUT_NAME = "denaliSquish" COMMON_PATH = os.environ['HOME']+"/Projects" - COLOR_CODES = {"Aqua": "#81ffff", "Blue": "#017dea", "Blue 2": "#1090d5", "Green": "#29fd2d", "Grey": "#d3d3d3", "Lavender": "#db98f5", "Light Blue": "#acd7f1", "Light Teal": "#29f1da","Lime": "#b7fc36", @@ -32,3 +31,154 @@ BLOOD_PRIMING_TEXT = "Blood Priming" SALINE_UNIT = "mL" BLOOD_PRIMING_DEFAULT_VALUE = "0 mL" + +# #post-treatment +# +# PATIENT_DISCONNECTION_TEXT = "Patient Disconnection" +# PATIENT_DISCONNECTION_CONFIRM_BUTTON_TEXT = "CONFIRM" +# +# +# CURRENT_COLOR = '#000000' +# COMPLETE_COLOR = '#4290ec' +# ENABLED_COLOR = '#fcfcfc' +# INCOMPLETE_COLOR = '#607a91' +# INCOMPLETE_COLOR_POST_TREATMENT = '#fcfcfc' +# +# COLOR = '#607a91' +# ENABLED_COLOR_ONE = '#607a91' + + + +#post-treatment + +PATIENT_DISCONNECTION_TEXT = "Patient Disconnection" +REVIEW_TEXT = "Review" +EXPORT_TEXT = "Export" +PATIENT_DISCONNECTION_CONFIRM_BUTTON_TEXT = "CONFIRM" +DISPOSABLE_TEXT = "Disposables" +NEXT_TEXT = "NEXT" +BACK_TEXT = "BACK" +CONFIRM_TEXT = "CONFIRM" +DISPOSABLES_REMOVAL_TEXT = "Disposables Removal" +INCOMPLETE_COLOR_POST_TREATMENT = '#fcfcfc' +CURRENT_COLOR = '#000000' +COMPLETE_COLOR= '#4290ec' +ENABLED_COLOR = '#fcfcfc' +INCOMPLETE_COLOR = '#607a91' + +POST_TREATMENT_SCREENS = ["Disconnection", "Review", "Disposables", "Disinfection"] + +#post treatment review +HEPARIN_TYPE = "UFH 1,000 IU/mL" +ACID_CONCENTRATE = ["Fres. Naturalyte", "08-1251-1", "08-2251-0", "08-3251-9", "08-3251-9"] +BICARBONATE_CONCENTRATE = "Fres. Centrisol" +DIALYZER_TYPE = ["BB Diacap Pro 13H", "BB Diacap Pro 16H", "BB Diacap Pro 19H", "F Optiflux F160NRe", "F Optiflux F180NRe"] + +TREATMENT_LOG_LOCATION = '/home/denali/Desktop/sd-card/treatment/*.log' +TREATMENT_REVIEW_TITLE_TEXT = "Treatment Review" +VISIBLE = True + +POST_TREATMENT_REVIEW_SCREEN_PARAMETERS = ["Patient ID", "Heparin Stop", + "Device ID", "Heparin Delivered Volume", + "Blood Flow Rate", "Treatment Start DateTime", + "Dialysate Flow Rate", "Treatment End DateTime", + "Treatment Duration", "Water Sample Test Result", + "Actual Treatment Duration", "Dialysate Volume Used", + "Acid ConcentrateType", "Prescribed UF Volume", + "Bicarbonate Concentrate Type", "Target UF Volume", + "Potassium Concentration", "Actual UF Volume", + "Calcium Concentration", "Prescribed UF Rate", + "Bicarbonate Concentration", "Target UF Rate", + "Sodium Concentration", "Actual UF Rate", + "Dialysate Temperature", "Saline Bolus Volume", + "Dialyzer Type", "Average Blood Flow", + "Heparin Type", "Average Dialysate Flow", + "Heparin Concentration", "Average Dialysate Temp", + "Heparin Bolus Volume", "Average Arterial Pressure", + "Heparin Dispense Rate", "Average Venous Pressure"] + + +POST_TREATMENT_REVIEW_SCREEN_UNITS = { + "Patient ID" : "", + "Device ID" : "", + "Blood Flow Rate" : "mL/min", + "Dialysate Flow Rate" : "mL/min", + "Treatment Duration" : "min", + "Actual Treatment Duration":"min", + "Acid ConcentrateType" : "", + "Bicarbonate Concentrate Type" : "", + "Heparin Stop" : "min", + "Heparin Bolus Volume": "mL", + "Heparin Delivered Volume": "mL", + "Treatment Start DateTime" : "", + "Treatment End DateTime" : "", + "Water Sample Test Result": "", + "Dialysate Volume Used" : "L", + "Prescribed UF Volume" : "L", + "Target UF Volume" : "L", + "Potassium Concentration" : "mEg/L", + "Calcium Concentration" :"mEg/L", + "Bicarbonate Concentration" : "mEg/L", + "Sodium Concentration" : "mEg/L", + "Average Blood Flow" : "mL/min", + "Saline Bolus Volume" : "mL", + "Average Dialysate Flow" : "mL/min", + "Average Arterial Pressure" : "mmHg", + "Average Venous Pressure" : "mmHg", + "Dialysate Temperature" :"°C", + "Dialyzer Type" : "", + "Heparin Type" : "IU/mL", + "Heparin Concentration" : "IU/mL", + "Actual UF Volume" : "L", + "Prescribed UF Rate" : "mL/min", + "Target UF Rate": "mL/min", + "Actual UF Rate": "mL/min", + "Heparin Dispense Rate" : "mL/hr", + "Average Dialysate Flow" : "mL/min", + "Average Dialysate Temp" : "°C", + + } + + +#dictionary consist of review parameters values of post treatment +POST_TREATMENT_REVIEW_PARAMETER_RANGE = { + "Patient ID": ["abcd", "xyz", "qwerty", "dghjf", "cdtys"], + "Heparin Stop": [0, 101, 205, 307, 470], + "Device ID": [1234, 1234, 1234, 1234, 1234], + "Heparin Delivered Volume": [10.1, 10.5, 15.4, 18.9, 20.0], + "Blood Flow Rate": [100, 125, 150, 175, 500], + "Treatment Start DateTime": [1623382321, 1623382321, 1623382321, 1623382321, 1623382321], + "Dialysate Flow Rate": [100, 150, 200, 250, 600], + "Treatment End DateTime": [1623382321, 1623382321, 1623382321, 1623382321, 1623382321], + "Treatment Duration": [60, 75, 90, 105, 330, 480], + "Water Sample Test Result": [0, 1, 1, 1, 1], + "Actual Treatment Duration": [2, 6, 14, 67, 100], + "Dialysate Volume Used": [4.0, 6.0, 54.0, 67.0, 81.0], + "Acid ConcentrateType": [0, 1, 2, 3, 3], + "Prescribed UF Volume": [0.3, 0.5, 0.6, 10.0, 0.8, 5.8, 6.4], + "Bicarbonate Concentrate Type": [0, 0, 0, 0, 0], + "Target UF Volume": [10.1, 10.5, 15.4, 18.9, 20.0], + "Potassium Concentration": [60, 75, 90, 105, 330, 465, 480], + "Actual UF Volume": [0.3, 0.5, 0.6, 10.0, 0.8, 5.8, 6.4], + "Calcium Concentration": [3, 56, 100, 154, 67], + "Prescribed UF Rate": [0.1, 0.55, 0.9, 5.1, 6.7], + "Bicarbonate Concentration": [14, 50, 67, 156, 1], + "Target UF Rate": [0.2, 0.56, 0.45, 2.56, 10.93], + "Sodium Concentration": [4, 6, 54, 67, 81, 100], + "Actual UF Rate": [0.5, 0.6, 10.0, 0.8, 5.8, 6.4], + "Dialysate Temperature": [35.0, 35.5, 36.0, 36.5, 37.0], + "Saline Bolus Volume": [300, 250, 200, 150, 300], + "Dialyzer Type": [0, 1, 2, 3, 4], + "Average Blood Flow": [54.3, 67.3, 65.89, 75.89, 48.76], + "Heparin Type": [0, 0, 0, 0, 0], + "Average Dialysate Flow": [0.6, 0.5, 5.8, 6.4, 10.0, 0.8], + "Average Dialysate Temp": [35.0, 35.5, 36.0, 36.5, 37.0], + "Heparin Bolus Volume": [0.0, 0.1, 1.5, 1.6, 2.0], + "Average Arterial Pressure": [0.0, 11.56, 154.46, 225.57, 300.0], + "Heparin Dispense Rate": [0.0, 0.1, 0.2, 0.9, 1.0], + "Average Venous Pressure": [20.0, 101.45, 394.56, 447.45, 600.00], + + +} + + \ No newline at end of file