Index: leahi_dialin/td/proxies/ui_proxy.py =================================================================== diff -u -r63dcccf308248c312b5f82b65f46605e6d90402d -r9a2c2774952a68e8f075f32a28d3f99d77bf6f43 --- leahi_dialin/td/proxies/ui_proxy.py (.../ui_proxy.py) (revision 63dcccf308248c312b5f82b65f46605e6d90402d) +++ leahi_dialin/td/proxies/ui_proxy.py (.../ui_proxy.py) (revision 9a2c2774952a68e8f075f32a28d3f99d77bf6f43) @@ -441,7 +441,7 @@ can_interface = self.can_interface) - def cmd_send_ui_initiate_treatment(self, modality: int=0, accepted:int = ACCEPTED ) -> None: + def cmd_send_ui_initiate_treatment(self, modality: int, accepted:int = ACCEPTED ) -> None: """ Constructs and sends a UI initiate treatment message. @@ -576,33 +576,49 @@ can_interface = self.can_interface) - def cmd_send_ui_cartridge_install_confirm_response (self) -> None: + def cmd_send_ui_cartridge_install_confirm_request (self) -> None: """ - Constructs and sends a UI response for confirming cartridge installation. + Constructs and sends a UI command for confirming cartridge installation. :return: none """ cmd_generic_override(payload = None, reset = None, channel_id = CanChannels.ui_to_td_ch_id, msg_id = MsgIds.MSG_ID_UI_ADJUST_DISPOSABLES_CONFIRM_REQUEST, - entity_name = 'UI Confirm Cartridge Installation response', + entity_name = 'UI Confirm Cartridge Installation request', override_text = 'N/A', logger = self.logger, can_interface = self.can_interface) - def cmd_send_ui_cartridge_removal_confirm_response (self) -> None: + def cmd_send_ui_cartridge_removal_confirm_request (self) -> None: """ - Constructs and sends a UI response for confirming cartridge removal. + Constructs and sends a UI command for confirming cartridge removal. :return: none """ cmd_generic_override(payload = None, reset = None, channel_id = CanChannels.ui_to_td_ch_id, msg_id = MsgIds.MSG_ID_UI_ADJUST_DISPOSABLES_REMOVAL_CONFIRM_REQUEST, - entity_name = 'UI Confirm Cartridge Removal response', + entity_name = 'UI Confirm Cartridge Removal request', override_text = 'N/A', logger = self.logger, can_interface = self.can_interface) + + + def cmd_send_ui_patient_connect_confirm_request (self) -> None: + """ + Constructs and sends a UI command for confirming patient is connected. + + :return: none + """ + cmd_generic_override(payload = None, + reset = None, + channel_id = CanChannels.ui_to_td_ch_id, + msg_id = MsgIds.MSG_ID_UI_SETUP_CONNECTION_CONFIRM_REQUEST, + entity_name = 'UI Confirm Patient Connected request', + override_text = 'N/A', + logger = self.logger, + can_interface = self.can_interface)