########################################################################### # # Copyright (c) 2019-2021 Diality Inc. - All Rights Reserved. # # THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN # WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. # # @file utils.py # # @author (last) Joseph varghese # @date (last) 18-Jan-2022 # ############################################################################ import os from configuration.strings import * 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", "Magenta":"#fd28fd", "Orange": "#f2721c", "Peach":"#f1979a", "Red": "#c53b33", "Rose":"#fc178d", "Slate blue":"#7f7ffa", "Violet": "#6435c9", "White": "#ffffff", "Yellow": "#fcfc4d"} #standby mode GOODMORNING_START_TIME_SEC = 0 GOODEVENING_START_TIME_SEC = 43200 BLOOD_PRIMING_TEXT = "Blood Priming" SALINE_UNIT = "mL" BLOOD_PRIMING_DEFAULT_VALUE = "0 mL" #post-treatment INCOMPLETE_COLOR_POST_TREATMENT = '#fcfcfc' CURRENT_COLOR = '#000000' COMPLETE_COLOR= '#4290ec' ENABLED_COLOR = '#fcfcfc' INCOMPLETE_COLOR = '#607a91' #post treatment review TREATMENT_LOG_LOCATION = '/home/denali/Desktop/sd-card/treatment/*.log' VISIBLE = True #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], }