Index: TDDefs.h =================================================================== diff -u -rbbb488dc82c160e1fa8a5d6b02f417a2dd398b62 -ra1ab6c3189d4b8c67340f12a7b4ed8835614a473 --- TDDefs.h (.../TDDefs.h) (revision bbb488dc82c160e1fa8a5d6b02f417a2dd398b62) +++ TDDefs.h (.../TDDefs.h) (revision a1ab6c3189d4b8c67340f12a7b4ed8835614a473) @@ -1,17 +1,17 @@ /************************************************************************** * -* Copyright (c) 2024-2024 Diality Inc. - All Rights Reserved. +* Copyright (c) 2024-2025 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 TDDefs.h * -* @author (last) Sean -* @date (last) 30-Jul-2024 +* @author (last) Dara Navaei +* @date (last) 29-Jul-2025 * -* @author (original) Sean -* @date (original) 30-Jul-2024 +* @author (original) Sean Nash +* @date (original) 01-Aug-2024 * ***************************************************************************/ @@ -84,9 +84,8 @@ /// Enumeration of fault mode states. enum TD_Fault_States { - TD_FAULT_STATE_START = 0, ///< TD fault start state - TD_FAULT_STATE_RUN_NV_POSTS, ///< TD fault run NV posts state - TD_FAULT_STATE_COMPLETE, ///< TD fault run complete state + TD_FAULT_ENERGIZED_STATE = 0, ///< Fault mode energized state. + TD_FAULT_DEENERGIZED_STATE, ///< Fault mode deenergized state. NUM_OF_TD_FAULT_STATES ///< Number of fault mode states }; typedef enum TD_Fault_States TD_FAULT_STATE_T; ///< Type for TD fault states enumeration @@ -342,11 +341,14 @@ { TREATMENT_START_STATE = 0, ///< Start treatment - initialize treatment and go to blood prime state TREATMENT_BLOOD_PRIME_STATE, ///< Prime blood-side of dialyzer with gradual ramp for 1 min. while dialyzer is bypassed. No dialysis or UF taking place. No treatment time. - TREATMENT_DIALYSIS_STATE, ///< Perform dialysis. Deliver Heparin as prescribed. Deliver UF as prescribed. Handle saline boluses as requested - TREATMENT_STOP_STATE, ///< Treatment stopped. All pumps off. Dializer bypassed + TREATMENT_DIALYSIS_STATE, ///< Perform dialysis. Deliver UF as prescribed. + TREATMENT_PAUSED_STATE, ///< Treatment paused. All pumps off. Dializer bypassed TREATMENT_RINSEBACK_STATE, ///< Perform rinseback with saline. Dialyzer bypassed. Dialysate recirculating TREATMENT_RECIRC_STATE, ///< Recirculate saline and dialysate while patient disconnected. Blood lines open and shunted. Dialyzer is bypassed TREATMENT_END_STATE, ///< Dialysis has ended. Blood pump slowed. Dialyzer is bypassed. Dialysate is recirculated. User can rinseback + TREATMENT_ISO_UF_STATE, ///< Isolated ultrafiltration. No dialysate flow. Ultrafiltration only. + TREATMENT_SALINE_BOLUS_STATE, ///< Deliver a saline bolus. Blood pump draws from saline bag. Dialyzer bypassed. + TREATMENT_DIALYSATE_PAUSED_STATE, ///< No dialysate flow. Dialyzer bypassed. NUM_OF_TREATMENT_STATES ///< Number of treatment states (sub-modes) }; typedef enum Treatment_States TREATMENT_STATE_T; ///< Type for treatment states enumeration @@ -394,29 +396,18 @@ /// Enumeration of dialysis sub-mode states. enum Dialysis_States { - DIALYSIS_START_STATE = 0, ///< Start state of the dialysis sub-mode state machine - DIALYSIS_UF_STATE, ///< Ultrafiltration state of the dialysis sub-mode state machine - DIALYSIS_SALINE_BOLUS_STATE, ///< Saline bolus state of the dialysis sub-mode state machine + DIALYSIS_UF_STATE = 0, ///< Ultrafiltration state of the dialysis sub-mode state machine + DIALYSIS_UF_PAUSED_STATE, ///< Ultrafiltration Paused state of the dialysis sub-mode state machine NUM_OF_DIALYSIS_STATES ///< Number of dialysis sub-mode states }; typedef enum Dialysis_States DIALYSIS_STATE_T; ///< Type for dialysis states enumeration -/// Enumeration of ultrafiltration states. -enum UF_States -{ - UF_PAUSED_STATE = 0, ///< Paused state of the ultrafiltration state machine - UF_RUNNING_STATE, ///< Running state of the ultrafiltration state machine - NUM_OF_UF_STATES ///< Number of ultrafiltration states -}; -typedef enum UF_States UF_STATE_T; ///< Type for ultrafiltration states enumeration - /// Enumeration of saline bolus states. enum Saline_Bolus_States { SALINE_BOLUS_STATE_IDLE = 0, ///< No saline bolus delivery is in progress SALINE_BOLUS_STATE_WAIT_FOR_PUMPS_STOP, ///< Wait for pumps to stop before starting bolus SALINE_BOLUS_STATE_IN_PROGRESS, ///< A saline bolus delivery is in progress - SALINE_BOLUS_STATE_MAX_DELIVERED, ///< Maximum saline bolus volume reached - no more saline bolus deliveries allowed NUM_OF_SALINE_BOLUS_STATES ///< Number of saline bolus states }; typedef enum Saline_Bolus_States SALINE_BOLUS_STATE_T; ///< Type for saline bolus state enumeration @@ -485,18 +476,18 @@ * @{ */ -/// Enumeration of treatment stop sub-mode states. -enum Treatment_Stop_States +/// Enumeration of treatment paused sub-mode states. +enum Treatment_Paused_States { - TREATMENT_STOP_RECIRC_STATE = 0, ///< Dialysate and Blood re-circulation state of the treatment stop sub-mode state machine - TREATMENT_STOP_RECIRC_DIALYSATE_ONLY_STATE, ///< Re-circulate Dialysate only state of the treatment re-circulate sub-mode state machine - TREATMENT_STOP_RECIRC_BLOOD_ONLY_STATE, ///< Re-circulate Blood only state of the treatment re-circulate sub-mode state machine - TREATMENT_STOP_NO_RECIRC_STATE, ///< No re-circulation state of the treatment stop sub-mode state machine - TREATMENT_STOP_RECOVER_BLOOD_DETECT_STATE, ///< Treatment stop recover blood detect state - NUM_OF_TREATMENT_STOP_STATES ///< Number of treatment stop sub-mode states + TREATMENT_PAUSED_RECIRC_STATE = 0, ///< Dialysate and Blood re-circulation state of the treatment paused sub-mode state machine + TREATMENT_PAUSED_RECIRC_DIALYSATE_ONLY_STATE, ///< Re-circulate Dialysate only state of the treatment paused sub-mode state machine + TREATMENT_PAUSED_RECIRC_BLOOD_ONLY_STATE, ///< Re-circulate Blood only state of the treatment paused sub-mode state machine + TREATMENT_PAUSED_NO_RECIRC_STATE, ///< No re-circulation state of the treatment paused sub-mode state machine + TREATMENT_PAUSED_RECOVER_BLOOD_DETECT_STATE, ///< Treatment paused recover blood detect state + NUM_OF_TREATMENT_PAUSED_STATES ///< Number of treatment paused sub-mode states }; -/// Type for treatment stop states enumeration. -typedef enum Treatment_Stop_States TREATMENT_STOP_STATE_T; +/// Type for treatment paused states enumeration. +typedef enum Treatment_Paused_States TREATMENT_PAUSED_STATE_T; /**@}*/ @@ -624,24 +615,26 @@ TREATMENT_PARAM_FIRST_UINT = TREATMENT_PARAM_BLOOD_FLOW, ///< First unsigned integer treatment parameter TREATMENT_PARAM_DIALYSATE_FLOW, ///< Dialysate flow rate (in mL/min) TREATMENT_PARAM_TREATMENT_DURATION, ///< Treatment duration (in minutes) - TREATMENT_PARAM_HEPARIN_PRE_STOP_TIME, ///< Heparin pre-stop time (in minutes) TREATMENT_PARAM_SALINE_BOLUS_VOLUME, ///< Saline bolus volume (in mL) + TREATMENT_PARAM_HEPARIN_STOP_TIME, ///< Heparin stop time (in minutes) + TREATMENT_PARAM_HEPARIN_TYPE, ///< Heparin type (enum) TREATMENT_PARAM_ACID_CONCENTRATE, ///< Acid concentrate type (enum) TREATMENT_PARAM_BICARB_CONCENTRATE, ///< Bicarbonate concentrate type (enum) TREATMENT_PARAM_DIALYZER_TYPE, ///< Dialysate type (enum) - TREATMENT_PARAM_HEPARIN_TYPE, ///< Heparin type (enum) TREATMENT_PARAM_BP_MEAS_INTERVAL, ///< Blood pressure measurement interval (in minutes) TREATMENT_PARAM_RINSEBACK_FLOW_RATE, ///< Rinseback flow rate (in mL/min) - TREATMENT_PARAM_LAST_UINT = TREATMENT_PARAM_RINSEBACK_FLOW_RATE, ///< Last unsigned integer treatment parameter + TREATMENT_PARAM_RINSEBACK_VOLUME, ///< Rinseback volume (in mL) + TREATMENT_PARAM_LAST_UINT = TREATMENT_PARAM_RINSEBACK_VOLUME, ///< Last unsigned integer treatment parameter TREATMENT_PARAM_ART_PRES_LIMIT_WINDOW, ///< Arterial pressure alarm limit window (in mmHg) TREATMENT_PARAM_FIRST_INT = TREATMENT_PARAM_ART_PRES_LIMIT_WINDOW, ///< First integer treatment parameter TREATMENT_PARAM_VEN_PRES_LIMIT_WINDOW, ///< Venous pressure alarm limit window (in mmHg) TREATMENT_PARAM_VEN_PRES_LIMIT_ASYMMETRIC, ///< Venous pressure alarm limit asymmetric (in mmHg) - TREATMENT_PARAM_LAST_INT = TREATMENT_PARAM_VEN_PRES_LIMIT_ASYMMETRIC,///< Last integer treatment parameter + TREATMENT_PARAM_TMP_PRES_LIMIT_WINDOW, ///< TMP alarm limit window (in mmHg) + TREATMENT_PARAM_LAST_INT = TREATMENT_PARAM_TMP_PRES_LIMIT_WINDOW, ///< Last integer treatment parameter + TREATMENT_PARAM_DIALYSATE_TEMPERATURE, ///< Dialysate temperature (in degC) + TREATMENT_PARAM_FIRST_F32 = TREATMENT_PARAM_DIALYSATE_TEMPERATURE, ///< First floating point treatment parameter TREATMENT_PARAM_HEPARIN_DISPENSE_RATE, ///< Heparin dispense rate (in mL/hr) - TREATMENT_PARAM_FIRST_F32 = TREATMENT_PARAM_HEPARIN_DISPENSE_RATE, ///< First floating point treatment parameter TREATMENT_PARAM_HEPARIN_BOLUS_VOLUME, ///< Heparin bolus volume (in mL) - TREATMENT_PARAM_DIALYSATE_TEMPERATURE, ///< Dialysate temperature (in degC) TREATMENT_PARAM_UF_VOLUME, ///< Ultrafiltration volume (in liters) - provided separately by UI NUM_OF_TREATMENT_PARAMS ///< Total number of treatment parameters }; @@ -656,6 +649,7 @@ DIALYZER_TYPE_FRESENIUS_OPTIFLUX_F160NRE, ///< Fresenius Optiflux F160NRe DIALYZER_TYPE_FRESENIUS_OPTIFLUX_F180NRE, ///< Fresenius Optiflux F180NRe DIALYZER_TYPE_FRESENIUS_OPTIFLUX_F200NRE, ///< Fresenius Optiflux F200NRe + DIALYZER_TYPE_FRESENIUS_OPTIFLUX_F250NRE, ///< Fresenius Optiflux F250NRe NUM_OF_DIALYZER_TYPES ///< Number of dialyzer types }; typedef enum Dialyzer_Types DIALYZER_TYPE_T; ///< Type for dialyzer types enumeration @@ -678,6 +672,14 @@ }; typedef enum Bicarb_Concentrates BICARB_CONCENTRATE_TYPE_T; ///< Type for bicarbonate concentrates enumeration +/// Enumeration of Heparin types. +enum Heparin_Types +{ + HEPARIN_TYPE_FRESENIUS_CENTRISOL = 0, ///< Unfractionated 1,000 IU/mL + NUM_OF_HEPARIN_TYPES ///< Number of bicarbonate concentrates +}; +typedef enum Heparin_Types HEPARIN_TYPE_T; ///< Type for Heparins enumeration + /**@}*/ /** @@ -781,15 +783,16 @@ typedef enum Generic_Confirm_Id GENERIC_CONFIRM_ID_T; ///< Type for generic confirm enumeration /// List of confirmation request status -typedef enum Confirmation_Status +enum Confirmation_Status { CONFIRMATION_REQUEST_STATUS_REJECTED = 0, ///< Confirmation status rejected CONFIRMATION_REQUEST_STATUS_ACCEPTED, ///< Confirmation status accepted CONFIRMATION_REQUEST_STATUS_TIMEOUT, ///< Confirmation status timeout CONFIRMATION_REQUEST_STATUS_PENDING, ///< Confirmation status pending response CONFIRMATION_REQUEST_STATUS_UNUSED, ///< Confirmation status Unused NUM_OF_CONFIRMATION_REQUEST_STATUS ///< Number of confirmation status -} CONFIRMATION_REQUEST_STATUS_T; +}; +typedef enum Confirmation_Status CONFIRMATION_REQUEST_STATUS_T; /**@}*/