def __init__(self, *args, **kwds): from Gnumed.wxpython import gmEMRStructWidgets, gmDateTimeInput, gmDocumentWidgets # begin wxGlade: wxgReviewDocPartDlg.__init__ kwds["style"] = wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.MAXIMIZE_BOX|wx.MINIMIZE_BOX|wx.THICK_FRAME wx.Dialog.__init__(self, *args, **kwds) self.__szr_box_review_staticbox = wx.StaticBox(self, -1, _("Your review")) self.__szr_reviews_staticbox = wx.StaticBox(self, -1, _("Reviews by others")) self._PhWheel_episode = gmEMRStructWidgets.cEpisodeSelectionPhraseWheel(self, -1, style=wx.NO_BORDER) self._PhWheel_doc_type = gmDocumentWidgets.cDocumentTypeSelectionPhraseWheel(self, -1, style=wx.NO_BORDER) self._PRW_doc_comment = gmDocumentWidgets.cDocumentCommentPhraseWheel(self, -1, "", style=wx.NO_BORDER) self._PhWheel_doc_date = gmDateTimeInput.cFuzzyTimestampInput(self, -1, style=wx.NO_BORDER) self._TCTRL_reference = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER) self._TCTRL_filename = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER) self._SPINCTRL_seq_idx = wx.SpinCtrl(self, -1, "", min=0, max=10000, style=wx.SP_ARROW_KEYS|wx.SP_WRAP|wx.TE_AUTO_URL|wx.TE_NOHIDESEL|wx.NO_BORDER) self._LCTRL_existing_reviews = wx.ListCtrl(self, -1, style=wx.LC_REPORT|wx.LC_ALIGN_LEFT|wx.LC_SINGLE_SEL|wx.LC_HRULES|wx.LC_VRULES|wx.NO_BORDER) self._TCTRL_responsible = wx.TextCtrl(self, -1, _("(you are/are not the primary reviewer)"), style=wx.TE_READONLY|wx.NO_BORDER) self._ChBOX_review = wx.CheckBox(self, -1, _("review document")) self._ChBOX_abnormal = wx.CheckBox(self, -1, _("technically abnormal")) self._ChBOX_responsible = wx.CheckBox(self, -1, _("take over responsibility")) self._ChBOX_relevant = wx.CheckBox(self, -1, _("clinically relevant")) self._ChBOX_sign_all_pages = wx.CheckBox(self, -1, _("sign all pages")) self._BTN_save = wx.Button(self, wx.ID_OK, _("Save")) self._BTN_cancel = wx.Button(self, wx.ID_CANCEL, _("Cancel")) self.__set_properties() self.__do_layout() self.Bind(wx.EVT_CHECKBOX, self._on_reviewed_box_checked, self._ChBOX_review) self.Bind(wx.EVT_BUTTON, self._on_save_button_pressed, id=wx.ID_OK)
def __init__(self, *args, **kwds): # begin wxGlade: wxgProcedureEAPnl.__init__ kwds["style"] = wx.BORDER_NONE | wx.TAB_TRAVERSAL wx.ScrolledWindow.__init__(self, *args, **kwds) self._PRW_procedure = cPhraseWheel(self, wx.ID_ANY, "", style=wx.BORDER_NONE) self._DPRW_date = cFuzzyTimestampInput(self, wx.ID_ANY, "", style=wx.BORDER_NONE) self._DPRW_end = cFuzzyTimestampInput(self, wx.ID_ANY, "", style=wx.BORDER_NONE) self._CHBOX_ongoing = wx.CheckBox(self, wx.ID_ANY, _("Ongoing")) self.static_line_1 = wx.StaticLine(self, wx.ID_ANY) self._PRW_location = cOrgUnitPhraseWheel(self, wx.ID_ANY, "", style=wx.BORDER_NONE) self._BTN_add_location = wx.Button(self, wx.ID_ANY, _("+"), style=wx.BU_EXACTFIT) self._PRW_episode = cEpisodeSelectionPhraseWheel(self, wx.ID_ANY, "", style=wx.BORDER_NONE) self.static_line_2 = wx.StaticLine(self, wx.ID_ANY) self._PRW_hospital_stay = cHospitalStayPhraseWheel( self, wx.ID_ANY, "", style=wx.BORDER_NONE) self._BTN_add_stay = wx.Button(self, wx.ID_ANY, _("+"), style=wx.BU_EXACTFIT) self._LBL_hospital_details = wx.StaticText(self, wx.ID_ANY, "") self._TCTRL_comment = cTextCtrl(self, wx.ID_ANY, "", style=wx.BORDER_NONE) self._PRW_document = cDocumentPhraseWheel(self, wx.ID_ANY, "", style=wx.BORDER_NONE) self._PRW_codes = cGenericCodesPhraseWheel(self, wx.ID_ANY, "", style=wx.BORDER_NONE) self.__set_properties() self.__do_layout() self.Bind(wx.EVT_CHECKBOX, self._on_ongoing_checkbox_checked, self._CHBOX_ongoing) self.Bind(wx.EVT_BUTTON, self._on_add_location_button_pressed, self._BTN_add_location) self.Bind(wx.EVT_BUTTON, self._on_add_hospital_stay_button_pressed, self._BTN_add_stay)
def __init__(self, *args, **kwds): # begin wxGlade: wxgFormDisposalDlg.__init__ kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER wx.Dialog.__init__(self, *args, **kwds) self.SetSize((609, 500)) self._LBL_msg = wx.StaticText(self, wx.ID_ANY, _("What would you like to do with the following document(s) ?")) self._LCTRL_forms = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_REPORT) self._BTN_show_forms = wx.Button(self, wx.ID_OPEN, "", style=wx.BU_EXACTFIT) self._BTN_delete_forms = wx.Button(self, wx.ID_DELETE, "", style=wx.BU_EXACTFIT) self._CHBOX_export = wx.CheckBox(self, wx.ID_ANY, _("to patient export area")) self._PRW_episode = cEpisodeSelectionPhraseWheel(self, wx.ID_ANY, "") self._TCTRL_soap = cTextCtrl(self, wx.ID_ANY, "") self._BTN_print = wx.Button(self, wx.ID_PRINT, "") self._BTN_remote_print = wx.Button(self, wx.ID_ANY, _("Print &queue")) self._BTN_export = wx.Button(self, wx.ID_ANY, _("&Export only")) self._BTN_archive = wx.Button(self, wx.ID_ANY, _("&Archive only")) self._BTN_cancel = wx.Button(self, wx.ID_CANCEL, "") self.__set_properties() self.__do_layout() self.Bind(wx.EVT_BUTTON, self._on_show_forms_button_pressed, self._BTN_show_forms) self.Bind(wx.EVT_BUTTON, self._on_delete_forms_button_pressed, self._BTN_delete_forms) self.Bind(wx.EVT_BUTTON, self._on_print_button_pressed, self._BTN_print) self.Bind(wx.EVT_BUTTON, self._on_remote_print_button_pressed, self._BTN_remote_print) self.Bind(wx.EVT_BUTTON, self._on_export_button_pressed, self._BTN_export) self.Bind(wx.EVT_BUTTON, self._on_archive_button_pressed, self._BTN_archive)
def __init__(self, *args, **kwds): from Gnumed.wxpython import gmPhraseWheel from Gnumed.wxpython import gmEMRStructWidgets from Gnumed.wxpython import gmDateTimeInput from Gnumed.wxpython import gmOrganizationWidgets from Gnumed.wxpython.gmCodingWidgets import cGenericCodesPhraseWheel # begin wxGlade: wxgProcedureEAPnl.__init__ kwds["style"] = wx.NO_BORDER | wx.TAB_TRAVERSAL wx.ScrolledWindow.__init__(self, *args, **kwds) self._PRW_procedure = gmPhraseWheel.cPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._DPRW_date = gmDateTimeInput.cFuzzyTimestampInput(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._DPRW_end = gmDateTimeInput.cFuzzyTimestampInput(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._CHBOX_ongoing = wx.CheckBox(self, wx.ID_ANY, _("Ongoing")) self.static_line_1 = wx.StaticLine(self, wx.ID_ANY) self._PRW_location = gmOrganizationWidgets.cOrgUnitPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._BTN_add_location = wx.Button(self, wx.ID_ANY, _("+"), style=wx.BU_EXACTFIT) self._PRW_episode = gmEMRStructWidgets.cEpisodeSelectionPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self.static_line_2 = wx.StaticLine(self, wx.ID_ANY) self._PRW_hospital_stay = gmEMRStructWidgets.cHospitalStayPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._BTN_add_stay = wx.Button(self, wx.ID_ANY, _("+"), style=wx.BU_EXACTFIT) self._LBL_hospital_details = wx.StaticText(self, wx.ID_ANY, "") self._PRW_codes = cGenericCodesPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self.__set_properties() self.__do_layout() self.Bind(wx.EVT_CHECKBOX, self._on_ongoing_checkbox_checked, self._CHBOX_ongoing) self.Bind(wx.EVT_BUTTON, self._on_add_location_button_pressed, self._BTN_add_location) self.Bind(wx.EVT_BUTTON, self._on_add_hospital_stay_button_pressed, self._BTN_add_stay)
def __init__(self, *args, **kwds): # begin wxGlade: wxgFormDisposalDlg.__init__ kwds["style"] = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER | wx.THICK_FRAME wx.Dialog.__init__(self, *args, **kwds) self._LBL_msg = wx.StaticText(self, wx.ID_ANY, _("What would you like to do with the following document(s) ?")) self._LCTRL_forms = cReportListCtrl(self, wx.ID_ANY, style=wx.LC_REPORT | wx.NO_BORDER) self._BTN_show_forms = wx.Button(self, wx.ID_OPEN, "", style=wx.BU_EXACTFIT) self._BTN_delete_forms = wx.Button(self, wx.ID_DELETE, "", style=wx.BU_EXACTFIT) self._CHBOX_export = wx.CheckBox(self, wx.ID_ANY, _("to patient export area")) self._PRW_episode = cEpisodeSelectionPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._TCTRL_soap = cTextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._BTN_print = wx.Button(self, wx.ID_PRINT, "") self._BTN_remote_print = wx.Button(self, wx.ID_ANY, _("Print &remotely")) self._BTN_export = wx.Button(self, wx.ID_ANY, _("&Export only")) self._BTN_archive = wx.Button(self, wx.ID_ANY, _("&Archive only")) self._BTN_cancel = wx.Button(self, wx.ID_CANCEL, "") self.__set_properties() self.__do_layout() self.Bind(wx.EVT_BUTTON, self._on_show_forms_button_pressed, self._BTN_show_forms) self.Bind(wx.EVT_BUTTON, self._on_delete_forms_button_pressed, self._BTN_delete_forms) self.Bind(wx.EVT_BUTTON, self._on_print_button_pressed, self._BTN_print) self.Bind(wx.EVT_BUTTON, self._on_remote_print_button_pressed, self._BTN_remote_print) self.Bind(wx.EVT_BUTTON, self._on_export_button_pressed, self._BTN_export) self.Bind(wx.EVT_BUTTON, self._on_archive_button_pressed, self._BTN_archive)
def __init__(self, *args, **kwds): #from Gnumed.wxpython.gmFamilyHistoryWidgets import cFamilyHistoryRelationType from Gnumed.wxpython.gmEMRStructWidgets import cEpisodeSelectionPhraseWheel from Gnumed.wxpython.gmDateTimeInput import cIntervalPhraseWheel from Gnumed.wxpython.gmDateTimeInput import cDateInputPhraseWheel from Gnumed.wxpython.gmGuiHelpers import cThreeValuedLogicPhraseWheel from Gnumed.wxpython.gmPhraseWheel import cPhraseWheel from Gnumed.wxpython.gmFamilyHistoryWidgets import cRelationshipTypePhraseWheel from Gnumed.wxpython.gmCodingWidgets import cGenericCodesPhraseWheel # begin wxGlade: wxgFamilyHistoryEAPnl.__init__ kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL wx.ScrolledWindow.__init__(self, *args, **kwds) self._PRW_relationship = cRelationshipTypePhraseWheel(self, -1, "", style=wx.NO_BORDER) self._PRW_condition = cPhraseWheel(self, -1, "", style=wx.NO_BORDER) self._PRW_codes = cGenericCodesPhraseWheel(self, -1, "", style=wx.NO_BORDER) self._TCTRL_age_of_onset = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER) self._PRW_died_of_this = cThreeValuedLogicPhraseWheel(self, -1, "", style=wx.NO_BORDER) self._PRW_age_of_death = cIntervalPhraseWheel(self, -1, "", style=wx.NO_BORDER) self._PRW_episode = cEpisodeSelectionPhraseWheel(self, -1, "", style=wx.NO_BORDER) self._TCTRL_name = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER) self._PRW_dob = cDateInputPhraseWheel(self, -1, "", style=wx.NO_BORDER) self._TCTRL_comment = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER) self.__set_properties() self.__do_layout()
def __init__(self, *args, **kwds): # begin wxGlade: wxgProcedureEAPnl.__init__ kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL wx.ScrolledWindow.__init__(self, *args, **kwds) from Gnumed.wxpython.gmPhraseWheel import cPhraseWheel self._PRW_procedure = cPhraseWheel(self, wx.ID_ANY, "") from Gnumed.wxpython.gmDateTimeInput import cFuzzyTimestampInput self._DPRW_date = cFuzzyTimestampInput(self, wx.ID_ANY, "") self._DPRW_end = cFuzzyTimestampInput(self, wx.ID_ANY, "") self._CHBOX_ongoing = wx.CheckBox(self, wx.ID_ANY, _("Ongoing")) self.static_line_1 = wx.StaticLine(self, wx.ID_ANY) from Gnumed.wxpython.gmOrganizationWidgets import cOrgUnitPhraseWheel self._PRW_location = cOrgUnitPhraseWheel(self, wx.ID_ANY, "") self._BTN_add_location = wx.Button(self, wx.ID_ANY, _("+"), style=wx.BU_EXACTFIT) from Gnumed.wxpython.gmEMRStructWidgets import cEpisodeSelectionPhraseWheel self._PRW_episode = cEpisodeSelectionPhraseWheel(self, wx.ID_ANY, "") self.static_line_2 = wx.StaticLine(self, wx.ID_ANY) from Gnumed.wxpython.gmHospitalStayWidgets import cHospitalStayPhraseWheel self._PRW_hospital_stay = cHospitalStayPhraseWheel(self, wx.ID_ANY, "") self._BTN_add_stay = wx.Button(self, wx.ID_ANY, _("+"), style=wx.BU_EXACTFIT) self._LBL_hospital_details = wx.StaticText(self, wx.ID_ANY, "") from Gnumed.wxpython.gmTextCtrl import cTextCtrl self._TCTRL_comment = cTextCtrl(self, wx.ID_ANY, "") from Gnumed.wxpython.gmDocumentWidgets import cDocumentPhraseWheel self._PRW_document = cDocumentPhraseWheel(self, wx.ID_ANY, "") from Gnumed.wxpython.gmCodingWidgets import cGenericCodesPhraseWheel self._PRW_codes = cGenericCodesPhraseWheel(self, wx.ID_ANY, "") self.__set_properties() self.__do_layout() self.Bind(wx.EVT_CHECKBOX, self._on_ongoing_checkbox_checked, self._CHBOX_ongoing) self.Bind(wx.EVT_BUTTON, self._on_add_location_button_pressed, self._BTN_add_location) self.Bind(wx.EVT_BUTTON, self._on_add_hospital_stay_button_pressed, self._BTN_add_stay)
def __init__(self, *args, **kwds): # begin wxGlade: wxgHospitalStayEditAreaPnl.__init__ kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL wx.Panel.__init__(self, *args, **kwds) from Gnumed.wxpython.gmHospitalStayWidgets import cHospitalWardPhraseWheel self._PRW_hospital = cHospitalWardPhraseWheel(self, wx.ID_ANY, "") from Gnumed.wxpython.gmEMRStructWidgets import cEpisodeSelectionPhraseWheel self._PRW_episode = cEpisodeSelectionPhraseWheel(self, wx.ID_ANY, "") from Gnumed.wxpython.gmDateTimeInput import cDateInputPhraseWheel self._PRW_admission = cDateInputPhraseWheel(self, wx.ID_ANY, "") self._PRW_discharge = cDateInputPhraseWheel(self, wx.ID_ANY, "") self._TCTRL_comment = wx.TextCtrl(self, wx.ID_ANY, "") self.__set_properties() self.__do_layout()
def __init__(self, *args, **kwds): # begin wxGlade: wxgMoveNarrativeDlg.__init__ kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_DIALOG_STYLE | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX | wx.RESIZE_BORDER wx.Dialog.__init__(self, *args, **kwds) self.SetSize((500, 650)) self.LBL_encounter = wx.StaticText(self, wx.ID_ANY, "") self.LBL_source_episode = wx.StaticText(self, wx.ID_ANY, "") self._PRW_episode_selector = cEpisodeSelectionPhraseWheel(self, wx.ID_ANY, "") self.LBL_narrative = wx.StaticText(self, wx.ID_ANY, "") self.__BTN_move = wx.Button(self, wx.ID_YES, _("Move")) self.__BTN_cancel = wx.Button(self, wx.ID_CANCEL, _("Cancel")) self.__set_properties() self.__do_layout() self.Bind(wx.EVT_BUTTON, self._on_move_button_pressed, id=wx.ID_YES)
def __init__(self, *args, **kwds): # begin wxGlade: wxgMoveNarrativeDlg.__init__ kwds[ "style"] = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX | wx.THICK_FRAME wx.Dialog.__init__(self, *args, **kwds) self.LBL_encounter = wx.StaticText(self, wx.ID_ANY, "") self.LBL_source_episode = wx.StaticText(self, wx.ID_ANY, "") self._PRW_episode_selector = cEpisodeSelectionPhraseWheel( self, wx.ID_ANY, "", style=wx.NO_BORDER) self.LBL_narrative = wx.StaticText(self, wx.ID_ANY, "") self.__BTN_move = wx.Button(self, wx.ID_YES, _("Move")) self.__BTN_cancel = wx.Button(self, wx.ID_CANCEL, _("Cancel")) self.__set_properties() self.__do_layout() self.Bind(wx.EVT_BUTTON, self._on_move_button_pressed, id=wx.ID_YES)
def __init__(self, *args, **kwds): # begin wxGlade: wxgScanIdxPnl.__init__ kwds["style"] = kwds.get("style", 0) | wx.TAB_TRAVERSAL wx.Panel.__init__(self, *args, **kwds) from Gnumed.wxpython.gmDocumentWidgets import cDocumentTypeSelectionPhraseWheel from Gnumed.wxpython.gmDocumentWidgets import cDocumentCommentPhraseWheel from Gnumed.wxpython.gmListWidgets import cReportListCtrl from Gnumed.wxpython.gmPhraseWheel import cPhraseWheel from Gnumed.wxpython import gmDateTimeInput from Gnumed.wxpython import gmEMRStructWidgets from Gnumed.wxpython import gmOrganizationWidgets self.__btn_scan = wx.Button(self, wx.ID_ANY, _("&Scan page(s)")) self.__btn_load = wx.Button(self, wx.ID_ANY, _("Pick &file(s)")) self.__btn_clipboard = wx.Button(self, wx.ID_ANY, _("&Clipboard")) self._PhWheel_doc_type = cDocumentTypeSelectionPhraseWheel(self, wx.ID_ANY) self._PhWheel_doc_date = gmDateTimeInput.cFuzzyTimestampInput(self, wx.ID_ANY) self._PhWheel_episode = gmEMRStructWidgets.cEpisodeSelectionPhraseWheel(self, wx.ID_ANY) self._PhWheel_source = gmOrganizationWidgets.cOrgUnitPhraseWheel(self, wx.ID_ANY) self._RBTN_org_is_source = wx.RadioButton(self, wx.ID_ANY, _("Source")) self._RBTN_org_is_receiver = wx.RadioButton(self, wx.ID_ANY, _("Receiver")) self._PRW_doc_comment = cDocumentCommentPhraseWheel(self, wx.ID_ANY, "") self.__lbl_reviewer = wx.StaticText(self, wx.ID_ANY, _("Intended reviewer:")) self._PhWheel_reviewer = cPhraseWheel(self, wx.ID_ANY) self._ChBOX_reviewed = wx.CheckBox(self, wx.ID_ANY, _("&review and sign")) self._ChBOX_abnormal = wx.CheckBox(self, wx.ID_ANY, _("&technically abnormal")) self._ChBOX_relevant = wx.CheckBox(self, wx.ID_ANY, _("&clinically relevant")) self._TBOX_description = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_CHARWRAP | wx.TE_MULTILINE | wx.TE_WORDWRAP) self._LCTRL_doc_pages = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_REPORT) self.__btn_show_page = wx.Button(self, wx.ID_ANY, _("Show")) self.__btn_del_page = wx.Button(self, wx.ID_ANY, _("Remove part")) self.__btn_save = wx.Button(self, wx.ID_ANY, _("Save")) self.__btn_discard = wx.Button(self, wx.ID_ANY, _("Discard")) self._TCTRL_metadata = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE | wx.TE_READONLY | wx.TE_WORDWRAP) self.__set_properties() self.__do_layout() self.Bind(wx.EVT_BUTTON, self._scan_btn_pressed, self.__btn_scan) self.Bind(wx.EVT_BUTTON, self._load_btn_pressed, self.__btn_load) self.Bind(wx.EVT_BUTTON, self._clipboard_btn_pressed, self.__btn_clipboard) self.Bind(wx.EVT_CHECKBOX, self._reviewed_box_checked, self._ChBOX_reviewed) self.Bind(wx.EVT_LIST_ITEM_SELECTED, self._on_part_selected, self._LCTRL_doc_pages) self.Bind(wx.EVT_BUTTON, self._show_btn_pressed, self.__btn_show_page) self.Bind(wx.EVT_BUTTON, self._del_btn_pressed, self.__btn_del_page) self.Bind(wx.EVT_BUTTON, self._save_btn_pressed, self.__btn_save) self.Bind(wx.EVT_BUTTON, self._startover_btn_pressed, self.__btn_discard)
def __init__(self, *args, **kwds): from Gnumed.wxpython.gmMeasurementWidgets import cMeasurementTypePhraseWheel from Gnumed.wxpython.gmMeasurementWidgets import cUnitPhraseWheel from Gnumed.wxpython.gmMeasurementWidgets import cTestResultIndicatorPhraseWheel from Gnumed.wxpython.gmEMRStructWidgets import cEpisodeSelectionPhraseWheel from Gnumed.wxpython.gmDateTimeInput import cFuzzyTimestampInput from Gnumed.wxpython.gmStaffWidgets import cProviderPhraseWheel # begin wxGlade: wxgMeasurementEditAreaPnl.__init__ kwds["style"] = wx.NO_BORDER | wx.TAB_TRAVERSAL wx.Panel.__init__(self, *args, **kwds) self._PRW_test = cMeasurementTypePhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._BTN_test_info = wx.Button(self, wx.ID_ANY, _("Info"), style=wx.BU_EXACTFIT) self._TCTRL_loinc = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_READONLY | wx.NO_BORDER) self._TCTRL_previous_value = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_READONLY | wx.NO_BORDER) self._TCTRL_result = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._PRW_units = cUnitPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._PRW_abnormality_indicator = cTestResultIndicatorPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._DPRW_evaluated = cFuzzyTimestampInput(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._TCTRL_note_test_org = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._PRW_intended_reviewer = cProviderPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._PRW_problem = cEpisodeSelectionPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._BTN_manage_episodes = wx.Button(self, wx.ID_ANY, _("&Manage"), style=wx.BU_EXACTFIT) self._TCTRL_narrative = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._CHBOX_review = wx.CheckBox(self, wx.ID_ANY, _("&Sign")) self._CHBOX_abnormal = wx.CheckBox(self, wx.ID_ANY, _("&Abnormal")) self._CHBOX_relevant = wx.CheckBox(self, wx.ID_ANY, _("&Relevant")) self._TCTRL_review_comment = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._TCTRL_normal_min = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._TCTRL_normal_max = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._TCTRL_normal_range = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._TCTRL_target_min = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._TCTRL_target_max = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._TCTRL_target_range = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._TCTRL_norm_ref_group = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER) self.__set_properties() self.__do_layout() self.Bind(wx.EVT_BUTTON, self._on_test_info_button_pressed, self._BTN_test_info) self.Bind(wx.EVT_BUTTON, self._on_manage_episodes_button_pressed, self._BTN_manage_episodes) self.Bind(wx.EVT_CHECKBOX, self._on_review_box_checked, self._CHBOX_review)
def __init__(self, *args, **kwds): # begin wxGlade: wxgMeasurementEditAreaPnl.__init__ kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL wx.Panel.__init__(self, *args, **kwds) self.SetSize((640, 525)) from Gnumed.wxpython.gmMeasurementWidgets import cMeasurementTypePhraseWheel self._PRW_test = cMeasurementTypePhraseWheel(self, wx.ID_ANY, "") self._BTN_test_info = wx.Button(self, wx.ID_ANY, _("Info"), style=wx.BU_EXACTFIT) self._TCTRL_loinc = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_READONLY) self._TCTRL_previous_value = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_READONLY) self._TCTRL_result = wx.TextCtrl(self, wx.ID_ANY, "") from Gnumed.wxpython.gmMeasurementWidgets import cUnitPhaseWheel self._PRW_units = cUnitPhraseWheel(self, wx.ID_ANY, "") from Gnumed.wxpython.gmMeasurementWidgets import cTestResultIndicatorPhraseWheel self._PRW_abnormality_indicator = cTestResultIndicatorPhraseWheel(self, wx.ID_ANY, "") from Gnumed.wxpython.gmDateTimeInput import cFuzzyTimestampInput self._DPRW_evaluated = cFuzzyTimestampInput(self, wx.ID_ANY, "") self._TCTRL_note_test_org = wx.TextCtrl(self, wx.ID_ANY, "") from Gnumed.wxpython.gmStaffWidgets import cProviderPhraseWheel self._PRW_intended_reviewer = cProviderPhraseWheel(self, wx.ID_ANY, "") from Gnumed.wxpython.gmEMRStructWidgets import cEpisodeSelectionPhraseWheel self._PRW_problem = cEpisodeSelectionPhraseWheel(self, wx.ID_ANY, "") self._BTN_manage_episodes = wx.Button(self, wx.ID_ANY, _("&Manage"), style=wx.BU_EXACTFIT) self._TCTRL_narrative = wx.TextCtrl(self, wx.ID_ANY, "") self._CHBOX_review = wx.CheckBox(self, wx.ID_ANY, _("&Sign")) self._CHBOX_abnormal = wx.CheckBox(self, wx.ID_ANY, _("&Abnormal")) self._CHBOX_relevant = wx.CheckBox(self, wx.ID_ANY, _("&Relevant")) self._TCTRL_review_comment = wx.TextCtrl(self, wx.ID_ANY, "") self._TCTRL_normal_min = wx.TextCtrl(self, wx.ID_ANY, "") self._TCTRL_normal_max = wx.TextCtrl(self, wx.ID_ANY, "") self._TCTRL_normal_range = wx.TextCtrl(self, wx.ID_ANY, "") self._TCTRL_target_min = wx.TextCtrl(self, wx.ID_ANY, "") self._TCTRL_target_max = wx.TextCtrl(self, wx.ID_ANY, "") self._TCTRL_target_range = wx.TextCtrl(self, wx.ID_ANY, "") self._TCTRL_norm_ref_group = wx.TextCtrl(self, wx.ID_ANY, "") self.__set_properties() self.__do_layout() self.Bind(wx.EVT_BUTTON, self._on_test_info_button_pressed, self._BTN_test_info) self.Bind(wx.EVT_BUTTON, self._on_manage_episodes_button_pressed, self._BTN_manage_episodes) self.Bind(wx.EVT_CHECKBOX, self._on_review_box_checked, self._CHBOX_review)
def __init__(self, *args, **kwds): # begin wxGlade: wxgCurrentMedicationEAPnl.__init__ kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL wx.ScrolledWindow.__init__(self, *args, **kwds) self._LBL_allergies = wx.StaticText(self, wx.ID_ANY, "") self._PRW_drug = cSubstanceIntakeObjectPhraseWheel(self, wx.ID_ANY, "") self._LBL_drug_details = wx.StaticText(self, wx.ID_ANY, "") self._BTN_heart = wx.Button(self, wx.ID_ANY, _(u"\u2665"), style=wx.BU_EXACTFIT) self._BTN_kidneys = wx.Button(self, wx.ID_ANY, _("Kidneys"), style=wx.BU_EXACTFIT) self._BTN_manage_products = wx.Button(self, wx.ID_ANY, _("Drugs"), style=wx.BU_EXACTFIT) self._BTN_manage_component = wx.Button(self, wx.ID_ANY, _("Components"), style=wx.BU_EXACTFIT) self._BTN_manage_doses = wx.Button(self, wx.ID_ANY, _("Doses"), style=wx.BU_EXACTFIT) self._BTN_manage_substance = wx.Button(self, wx.ID_ANY, _("Substances"), style=wx.BU_EXACTFIT) self._CHBOX_start_unknown = wx.CheckBox(self, wx.ID_ANY, _("&Unknown - or Date:")) self._DP_started = cDateInputPhraseWheel(self, wx.ID_ANY, "") self._PRW_start_certainty = cPhraseWheel(self, wx.ID_ANY, "") self._CHBOX_approved = wx.CheckBox(self, wx.ID_ANY, _("Approved of")) self._PRW_episode = cEpisodeSelectionPhraseWheel(self, wx.ID_ANY, "") self._PRW_schedule = cSubstanceSchedulePhraseWheel(self, wx.ID_ANY, "") self._PRW_duration = cIntervalPhraseWheel(self, wx.ID_ANY, "") self._CHBOX_long_term = wx.CheckBox(self, wx.ID_ANY, _("Long-term")) self._PRW_aim = cSubstanceAimPhraseWheel(self, wx.ID_ANY, "") self._PRW_notes = cPhraseWheel(self, wx.ID_ANY, "") self._DP_discontinued = cDateInputPhraseWheel(self, wx.ID_ANY, "") self._BTN_discontinued_as_planned = wx.Button(self, wx.ID_ANY, _("Per plan"), style=wx.BU_EXACTFIT) self._LBL_reason = wx.StaticText(self, wx.ID_ANY, _("... Reason")) self._PRW_discontinue_reason = cPhraseWheel(self, wx.ID_ANY, "") self.__set_properties() self.__do_layout() self.Bind(wx.EVT_BUTTON, self._on_heart_button_pressed, self._BTN_heart) self.Bind(wx.EVT_BUTTON, self._on_kidneys_button_pressed, self._BTN_kidneys) self.Bind(wx.EVT_BUTTON, self._on_manage_drug_products_button_pressed, self._BTN_manage_products) self.Bind(wx.EVT_BUTTON, self._on_manage_components_button_pressed, self._BTN_manage_component) self.Bind(wx.EVT_BUTTON, self._on_manage_doses_button_pressed, self._BTN_manage_doses) self.Bind(wx.EVT_BUTTON, self._on_manage_substances_button_pressed, self._BTN_manage_substance) self.Bind(wx.EVT_CHECKBOX, self._on_start_unknown_checked, self._CHBOX_start_unknown) self.Bind(wx.EVT_CHECKBOX, self._on_chbox_long_term_checked, self._CHBOX_long_term) self.Bind(wx.EVT_BUTTON, self._on_discontinued_as_planned_button_pressed, self._BTN_discontinued_as_planned)
def __init__(self, *args, **kwds): # begin wxGlade: wxgVaccinationEAPnl.__init__ kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL wx.ScrolledWindow.__init__(self, *args, **kwds) self._PRW_date_given = cDateInputPhraseWheel(self, wx.ID_ANY, "") self._CHBOX_anamnestic = wx.CheckBox(self, wx.ID_ANY, _("Anamnestic")) self._PRW_vaccine = cVaccinePhraseWheel(self, wx.ID_ANY, "") self._BTN_add_vaccine = wx.Button(self, wx.ID_ANY, _(" + "), style=wx.BU_EXACTFIT) self._TCTRL_indications = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE | wx.TE_READONLY) self._PRW_batch = cBatchNoPhraseWheel(self, wx.ID_ANY, "") self._PRW_episode = cEpisodeSelectionPhraseWheel(self, wx.ID_ANY, "") self._PRW_site = cPhraseWheel(self, wx.ID_ANY, "") self._PRW_provider = cProviderPhraseWheel(self, wx.ID_ANY, "") self._PRW_reaction = cPhraseWheel(self, wx.ID_ANY, "") self._BTN_report = wx.Button(self, wx.ID_ANY, _("ADR"), style=wx.BU_EXACTFIT) self._TCTRL_comment = wx.TextCtrl(self, wx.ID_ANY, "") self.__set_properties() self.__do_layout() self.Bind(wx.EVT_BUTTON, self._on_add_vaccine_button_pressed, self._BTN_add_vaccine) self.Bind(wx.EVT_BUTTON, self._on_report_button_pressed, self._BTN_report)
def __init__(self, *args, **kwds): # begin wxGlade: wxgCurrentMedicationEAPnl.__init__ kwds["style"] = wx.NO_BORDER | wx.TAB_TRAVERSAL wx.ScrolledWindow.__init__(self, *args, **kwds) self._LBL_allergies = wx.StaticText(self, wx.ID_ANY, "") self._PRW_drug = cBrandOrSubstancePhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._TCTRL_drug_details = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_READONLY | wx.NO_BORDER) self._BTN_heart = wx.Button(self, wx.ID_ANY, _(u"\u2665"), style=wx.BU_EXACTFIT) self._BTN_kidneys = wx.Button(self, wx.ID_ANY, _("Kidneys"), style=wx.BU_EXACTFIT) self._BTN_database_brand = wx.Button(self, wx.ID_ANY, _("Brands"), style=wx.BU_EXACTFIT) self._BTN_database_substance = wx.Button(self, wx.ID_ANY, _("Substances"), style=wx.BU_EXACTFIT) self._LBL_preparation = wx.StaticText(self, wx.ID_ANY, _("Preparation")) self._PRW_preparation = cSubstancePreparationPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._CHBOX_start_unknown = wx.CheckBox(self, wx.ID_ANY, _("&Unknown or date:")) self._DP_started = cDateInputPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._PRW_start_certainty = cPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._CHBOX_approved = wx.CheckBox(self, wx.ID_ANY, _("Approved of")) self._PRW_episode = cEpisodeSelectionPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._PRW_schedule = cSubstanceSchedulePhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._PRW_duration = cIntervalPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._CHBOX_long_term = wx.CheckBox(self, wx.ID_ANY, _("Long-term")) self._PRW_aim = cSubstanceAimPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._PRW_notes = cPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._DP_discontinued = cDateInputPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._BTN_discontinued_as_planned = wx.Button(self, wx.ID_ANY, _("Per plan"), style=wx.BU_EXACTFIT) self._LBL_reason = wx.StaticText(self, wx.ID_ANY, _("... Reason")) self._PRW_discontinue_reason = cPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self.__set_properties() self.__do_layout() self.Bind(wx.EVT_BUTTON, self._on_heart_button_pressed, self._BTN_heart) self.Bind(wx.EVT_BUTTON, self._on_kidneys_button_pressed, self._BTN_kidneys) self.Bind(wx.EVT_BUTTON, self._on_manage_brands_button_pressed, self._BTN_database_brand) self.Bind(wx.EVT_BUTTON, self._on_manage_substances_button_pressed, self._BTN_database_substance) self.Bind(wx.EVT_CHECKBOX, self._on_start_unknown_checked, self._CHBOX_start_unknown) self.Bind(wx.EVT_CHECKBOX, self._on_chbox_long_term_checked, self._CHBOX_long_term) self.Bind(wx.EVT_BUTTON, self._on_discontinued_as_planned_button_pressed, self._BTN_discontinued_as_planned)
def __init__(self, *args, **kwds): # begin wxGlade: wxgReviewDocPartDlg.__init__ kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_DIALOG_STYLE | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX | wx.RESIZE_BORDER wx.Dialog.__init__(self, *args, **kwds) from Gnumed.wxpython.gmEMRStructWidgets import cEpisodeSelectionPhraseWheel self._PhWheel_episode = cEpisodeSelectionPhraseWheel(self, wx.ID_ANY, style=wx.NO_BORDER) from Gnumed.wxpython.gmDocumentWidgets import cDocumentTypeSelectionPhraseWheel self._PhWheel_doc_type = cDocumentTypeSelectionPhraseWheel(self, wx.ID_ANY, style=wx.NO_BORDER) from Gnumed.wxpython.gmOrganizationWidgets import cOrgUnitPhraseWheel self._PRW_org = cOrgUnitPhraseWheel(self, wx.ID_ANY, "") self._RBTN_org_is_source = wx.RadioButton(self, wx.ID_ANY, _("Source")) self._RBTN_org_is_receiver = wx.RadioButton(self, wx.ID_ANY, _("Receiver")) from Gnumed.wxpython.gmHospitalStayWidgets import cHospitalStayPhraseWheel self._PRW_hospital_stay = cHospitalStayPhraseWheel(self, wx.ID_ANY, "") from Gnumed.wxpython.gmDocumentWidgets import cDocumentCommentPhraseWheel self._PRW_doc_comment = cDocumentCommentPhraseWheel(self, wx.ID_ANY, "") from Gnumed.wxpython.gmDateTimeInput import cFuzzyTimestampInput self._PhWheel_doc_date = cFuzzyTimestampInput(self, wx.ID_ANY, style=wx.NO_BORDER) self._TCTRL_reference = wx.TextCtrl(self, wx.ID_ANY, "") self._TCTRL_filename = wx.TextCtrl(self, wx.ID_ANY, "") self._SPINCTRL_seq_idx = wx.SpinCtrl(self, wx.ID_ANY, "", min=0, max=10000, style=wx.SP_ARROW_KEYS | wx.SP_WRAP | wx.TE_AUTO_URL | wx.TE_NOHIDESEL) self._LCTRL_existing_reviews = wx.ListCtrl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_ALIGN_LEFT | wx.LC_HRULES | wx.LC_REPORT | wx.LC_SINGLE_SEL | wx.LC_VRULES) self._TCTRL_responsible = wx.TextCtrl(self, wx.ID_ANY, _("(you are/are not the primary reviewer)"), style=wx.TE_READONLY) self._ChBOX_review = wx.CheckBox(self, wx.ID_ANY, _("review document")) self._ChBOX_abnormal = wx.CheckBox(self, wx.ID_ANY, _("technically abnormal")) self._ChBOX_responsible = wx.CheckBox(self, wx.ID_ANY, _("take over responsibility")) self._ChBOX_relevant = wx.CheckBox(self, wx.ID_ANY, _("clinically relevant")) self._ChBOX_sign_all_pages = wx.CheckBox(self, wx.ID_ANY, _("sign all pages")) self._BTN_save = wx.Button(self, wx.ID_OK, _("Save")) self._BTN_cancel = wx.Button(self, wx.ID_CANCEL, _("Cancel")) self.__set_properties() self.__do_layout() self.Bind(wx.EVT_CHECKBOX, self._on_reviewed_box_checked, self._ChBOX_review) self.Bind(wx.EVT_BUTTON, self._on_save_button_pressed, id=wx.ID_OK)
def __init__(self, *args, **kwds): from Gnumed.wxpython import gmDocumentWidgets from Gnumed.wxpython import gmPhraseWheel from Gnumed.wxpython import gmDateTimeInput from Gnumed.wxpython import gmEMRStructWidgets from Gnumed.wxpython import gmOrganizationWidgets from Gnumed.wxpython import gmListWidgets # begin wxGlade: wxgScanIdxPnl.__init__ kwds["style"] = wx.TAB_TRAVERSAL wx.Panel.__init__(self, *args, **kwds) self.__btn_scan = wx.Button(self, wx.ID_ANY, _("&Scan page(s)")) self.__btn_load = wx.Button(self, wx.ID_ANY, _("Pick &file(s)")) self.__btn_clipboard = wx.Button(self, wx.ID_ANY, _("&Clipboard")) self._PhWheel_doc_type = gmDocumentWidgets.cDocumentTypeSelectionPhraseWheel( self, wx.ID_ANY) self._PhWheel_doc_date = gmDateTimeInput.cFuzzyTimestampInput( self, wx.ID_ANY) self._PhWheel_episode = gmEMRStructWidgets.cEpisodeSelectionPhraseWheel( self, wx.ID_ANY) self._PhWheel_source = gmOrganizationWidgets.cOrgUnitPhraseWheel( self, wx.ID_ANY) self._RBTN_org_is_source = wx.RadioButton(self, wx.ID_ANY, _("Source")) self._RBTN_org_is_receiver = wx.RadioButton(self, wx.ID_ANY, _("Receiver")) self._PRW_doc_comment = gmDocumentWidgets.cDocumentCommentPhraseWheel( self, wx.ID_ANY, "") self.__lbl_reviewer = wx.StaticText(self, wx.ID_ANY, _("Intended reviewer:")) self._PhWheel_reviewer = gmPhraseWheel.cPhraseWheel(self, wx.ID_ANY) self._ChBOX_reviewed = wx.CheckBox(self, wx.ID_ANY, _("&review and sign")) self._ChBOX_abnormal = wx.CheckBox(self, wx.ID_ANY, _("&technically abnormal")) self._ChBOX_relevant = wx.CheckBox(self, wx.ID_ANY, _("&clinically relevant")) self._TBOX_description = wx.TextCtrl( self, wx.ID_ANY, "", style=wx.TE_CHARWRAP | wx.TE_MULTILINE | wx.TE_WORDWRAP) self._LCTRL_doc_pages = gmListWidgets.cReportListCtrl( self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_REPORT) self.__btn_show_page = wx.Button(self, wx.ID_ANY, _("Show")) self.__btn_del_page = wx.Button(self, wx.ID_ANY, _("Remove part")) self.__btn_save = wx.Button(self, wx.ID_ANY, _("Save")) self.__btn_discard = wx.Button(self, wx.ID_ANY, _("Discard")) self._TCTRL_metadata = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE | wx.TE_READONLY | wx.TE_WORDWRAP) self.__set_properties() self.__do_layout() self.Bind(wx.EVT_BUTTON, self._scan_btn_pressed, self.__btn_scan) self.Bind(wx.EVT_BUTTON, self._load_btn_pressed, self.__btn_load) self.Bind(wx.EVT_BUTTON, self._clipboard_btn_pressed, self.__btn_clipboard) self.Bind(wx.EVT_CHECKBOX, self._reviewed_box_checked, self._ChBOX_reviewed) self.Bind(wx.EVT_LIST_ITEM_SELECTED, self._on_part_selected, self._LCTRL_doc_pages) self.Bind(wx.EVT_BUTTON, self._show_btn_pressed, self.__btn_show_page) self.Bind(wx.EVT_BUTTON, self._del_btn_pressed, self.__btn_del_page) self.Bind(wx.EVT_BUTTON, self._save_btn_pressed, self.__btn_save) self.Bind(wx.EVT_BUTTON, self._startover_btn_pressed, self.__btn_discard)
def __init__(self, *args, **kwds): # begin wxGlade: wxgReviewDocPartDlg.__init__ kwds["style"] = kwds.get( "style", 0 ) | wx.DEFAULT_DIALOG_STYLE | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX | wx.RESIZE_BORDER wx.Dialog.__init__(self, *args, **kwds) from Gnumed.wxpython.gmEMRStructWidgets import cEpisodeSelectionPhraseWheel self._PhWheel_episode = cEpisodeSelectionPhraseWheel( self, wx.ID_ANY, style=wx.NO_BORDER) from Gnumed.wxpython.gmDocumentWidgets import cDocumentTypeSelectionPhraseWheel self._PhWheel_doc_type = cDocumentTypeSelectionPhraseWheel( self, wx.ID_ANY, style=wx.NO_BORDER) from Gnumed.wxpython.gmOrganizationWidgets import cOrgUnitPhraseWheel self._PRW_org = cOrgUnitPhraseWheel(self, wx.ID_ANY, "") self._RBTN_org_is_source = wx.RadioButton(self, wx.ID_ANY, _("Source")) self._RBTN_org_is_receiver = wx.RadioButton(self, wx.ID_ANY, _("Receiver")) from Gnumed.wxpython.gmHospitalStayWidgets import cHospitalStayPhraseWheel self._PRW_hospital_stay = cHospitalStayPhraseWheel(self, wx.ID_ANY, "") from Gnumed.wxpython.gmDocumentWidgets import cDocumentCommentPhraseWheel self._PRW_doc_comment = cDocumentCommentPhraseWheel( self, wx.ID_ANY, "") from Gnumed.wxpython.gmDateTimeInput import cFuzzyTimestampInput self._PhWheel_doc_date = cFuzzyTimestampInput(self, wx.ID_ANY, style=wx.NO_BORDER) self._TCTRL_reference = wx.TextCtrl(self, wx.ID_ANY, "") self._TCTRL_filename = wx.TextCtrl(self, wx.ID_ANY, "") self._SPINCTRL_seq_idx = wx.SpinCtrl(self, wx.ID_ANY, "", min=0, max=10000, style=wx.SP_ARROW_KEYS | wx.SP_WRAP | wx.TE_AUTO_URL | wx.TE_NOHIDESEL) self._LCTRL_existing_reviews = wx.ListCtrl( self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_ALIGN_LEFT | wx.LC_HRULES | wx.LC_REPORT | wx.LC_SINGLE_SEL | wx.LC_VRULES) self._TCTRL_responsible = wx.TextCtrl( self, wx.ID_ANY, _("(you are/are not the primary reviewer)"), style=wx.TE_READONLY) self._ChBOX_review = wx.CheckBox(self, wx.ID_ANY, _("review document")) self._ChBOX_abnormal = wx.CheckBox(self, wx.ID_ANY, _("technically abnormal")) self._ChBOX_responsible = wx.CheckBox(self, wx.ID_ANY, _("take over responsibility")) self._ChBOX_relevant = wx.CheckBox(self, wx.ID_ANY, _("clinically relevant")) self._ChBOX_sign_all_pages = wx.CheckBox(self, wx.ID_ANY, _("sign all pages")) self._BTN_save = wx.Button(self, wx.ID_OK, _("Save")) self._BTN_cancel = wx.Button(self, wx.ID_CANCEL, _("Cancel")) self.__set_properties() self.__do_layout() self.Bind(wx.EVT_CHECKBOX, self._on_reviewed_box_checked, self._ChBOX_review) self.Bind(wx.EVT_BUTTON, self._on_save_button_pressed, id=wx.ID_OK)