########################################################################### # # 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 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"], "Heparin Stop": [0, 101], "Device ID": [1234, 1234], "Heparin Delivered Volume": [10.1, 10.5], "Blood Flow Rate": [100, 125], "Treatment Start DateTime": [1654519251, 1623382321], "Dialysate Flow Rate": [100, 150], "Treatment End DateTime": [1654519251, 1623382321], "Treatment Duration": [70, 75], "Water Sample Test Result": [0, 1], "Actual Treatment Duration": [62, 126], "Dialysate Volume Used": [4.0, 6.0], "Acid ConcentrateType": [0, 1], "Prescribed UF Volume": [0.3, 0.5], "Bicarbonate Concentrate Type": [0, 0], "Target UF Volume": [10.1, 10.5], "Potassium Concentration": [60, 75], "Actual UF Volume": [0.3, 0.5], "Calcium Concentration": [3, 56], "Prescribed UF Rate": [0.1, 0.55], "Bicarbonate Concentration": [14, 50], "Target UF Rate": [0.2, 0.56], "Sodium Concentration": [4, 6], "Actual UF Rate": [0.5, 0.6], "Dialysate Temperature": [35.0, 35.5], "Saline Bolus Volume": [300, 250], "Dialyzer Type": [0, 1], "Average Blood Flow": [54.3, 67.3], "Heparin Type": [0, 0], "Average Dialysate Flow": [0.6, 0.5], "Average Dialysate Temp": [35.0, 35.5], "Heparin Bolus Volume": [0.0, 0.1], "Average Arterial Pressure": [0.0, 11.56], "Heparin Dispense Rate": [0.0, 0.1], "Average Venous Pressure": [20.0, 101.45], }