def _on_problem_activated(self, event): data = self._LCTRL_problems.get_selected_item_data(only_one = True) if data is not None: # <ctrl> down ? if wx.GetKeyState(wx.WXK_CONTROL): emr = gmPerson.gmCurrentPatient().emr if data['type'] == 'issue': gmEMRStructWidgets.edit_health_issue(parent = self, issue = emr.problem2issue(data)) return if data['type'] == 'episode': gmEMRStructWidgets.edit_episode(parent = self, episode = emr.problem2episode(data)) return gmDispatcher.send(signal = 'display_widget', name = 'gmEMRBrowserPlugin')
def _on_edit_episode(self, evt): gmEMRStructWidgets.edit_episode(parent = self, episode = self.__focussed_problem.get_as_episode())
def _on_edit_problem_button_pressed(self, event): event.Skip() epi = self._LCTRL_problems.get_selected_item_data(only_one = True) if epi is None: return gmEMRStructWidgets.edit_episode(parent = self, episode = epi)
def edit_episode(episode): return gmEMRStructWidgets.edit_episode(parent=parent, episode=episode)
def edit_episode(episode): return gmEMRStructWidgets.edit_episode(parent = parent, episode = episode)