Пример #1
0
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxgExternalCareEAPnl.__init__
        kwds["style"] = kwds.get("style",
                                 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
        wx.ScrolledWindow.__init__(self, *args, **kwds)
        from Gnumed.wxpython.gmEMRStructWidgets import cIssueSelectionPhraseWheel
        self._PRW_issue = cIssueSelectionPhraseWheel(self, wx.ID_ANY, "")
        from Gnumed.wxpython.gmOrganizationWidgets import cOrgUnitPhraseWheel
        self._PRW_care_location = cOrgUnitPhraseWheel(self, wx.ID_ANY, "")
        self._BTN_manage_orgs = wx.Button(self,
                                          wx.ID_ANY,
                                          _("&Manage"),
                                          style=wx.BU_EXACTFIT)
        from Gnumed.wxpython.gmTextCtrl import cTextCtrl
        self._TCTRL_provider = cTextCtrl(self, wx.ID_ANY, "")
        self._TCTRL_comment = cTextCtrl(self, wx.ID_ANY, "")
        self._CHBOX_inactive = wx.CheckBox(self,
                                           wx.ID_ANY,
                                           _("&Inactive"),
                                           style=wx.CHK_2STATE)

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self._on_manage_orgs_button_pressed,
                  self._BTN_manage_orgs)
Пример #2
0
	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)
Пример #3
0
    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)
Пример #4
0
    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)
Пример #5
0
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxgReceiverSelectionDlg.__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(wx.DLG_UNIT(self, wx.Size(360, 255)))
        self._LBL_message_top = wx.StaticText(
            self, wx.ID_ANY, _("Select the paperwork receiver:"))
        from Gnumed.wxpython.gmTextCtrl import cTextCtrl
        self._TCTRL_final_name = cTextCtrl(self, wx.ID_ANY, "")
        from Gnumed.wxpython.gmAddressWidgets import cAddressPhraseWheel
        self._PRW_other_address = cAddressPhraseWheel(self, wx.ID_ANY, "")
        self._BTN_manage_addresses = wx.Button(self,
                                               wx.ID_ANY,
                                               _("&Manage"),
                                               style=wx.BU_EXACTFIT)
        self._LBL_address_details = wx.StaticText(self, wx.ID_ANY, "")
        self._TCTRL_org_unit_details = wx.TextCtrl(self,
                                                   wx.ID_ANY,
                                                   "",
                                                   style=wx.TE_MULTILINE
                                                   | wx.TE_READONLY)
        self._LBL_final_name = wx.StaticText(self, wx.ID_ANY, "")
        self._LBL_final_country = wx.StaticText(self, wx.ID_ANY, "")
        self._LBL_final_region = wx.StaticText(self, wx.ID_ANY, "")
        self._LBL_final_zip = wx.StaticText(self, wx.ID_ANY, "")
        self._LBL_final_location = wx.StaticText(self, wx.ID_ANY, "")
        self._LBL_final_street = wx.StaticText(self, wx.ID_ANY, "")
        self._LBL_final_number = wx.StaticText(self, wx.ID_ANY, "")
        from Gnumed.wxpython.gmListWidgets import cReportListCtrl
        self._LCTRL_candidates = cReportListCtrl(
            self,
            wx.ID_ANY,
            style=wx.BORDER_NONE | wx.LC_REPORT | wx.LC_SINGLE_SEL)
        from Gnumed.wxpython.gmOrganizationWidgets import cOrgUnitPhraseWheel
        self._PRW_org_unit = cOrgUnitPhraseWheel(self, wx.ID_ANY, "")
        self._BTN_manage_orgs = wx.Button(self,
                                          wx.ID_ANY,
                                          _("&Manage"),
                                          style=wx.BU_EXACTFIT)
        self._LCTRL_addresses = cReportListCtrl(
            self,
            wx.ID_ANY,
            style=wx.BORDER_NONE | wx.LC_REPORT | wx.LC_SINGLE_SEL)
        self._BTN_OK = wx.Button(self, wx.ID_OK, _("&OK"))
        self._BTN_cancel = wx.Button(self, wx.ID_CANCEL, "")

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self._on_manage_addresses_button_pressed,
                  self._BTN_manage_addresses)
        self.Bind(wx.EVT_LIST_ITEM_SELECTED, self._on_candidate_selected,
                  self._LCTRL_candidates)
        self.Bind(wx.EVT_BUTTON, self._on_manage_orgs_button_pressed,
                  self._BTN_manage_orgs)
        self.Bind(wx.EVT_BUTTON, self._on_ok_button_pressed, id=wx.ID_OK)
Пример #6
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgOrgUnitEAPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
		wx.ScrolledWindow.__init__(self, *args, **kwds)
		from Gnumed.wxpython.gmOrganizationWidgets import cOrganizationPhraseWheel
		self._PRW_org = cOrganizationPhraseWheel(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmOrganizationWidgets import cOrgUnitPhraseWheel
		self._PRW_unit = cOrgUnitPhraseWheel(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmOrganizationWidgets import cOrgCategoryPhraseWheel
		self._PRW_category = cOrgCategoryPhraseWheel(self, wx.ID_ANY, "")

		self.__set_properties()
		self.__do_layout()
Пример #7
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgMeasurementOrgEAPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
		wx.ScrolledWindow.__init__(self, *args, **kwds)
		from Gnumed.wxpython.gmOrganizationWidgets import cOrgUnitPhraseWheel
		self._PRW_org_unit = cOrgUnitPhraseWheel(self, wx.ID_ANY, "")
		self._BTN_manage_orgs = wx.Button(self, wx.ID_ANY, _("&Manage orgs"), style=wx.BU_EXACTFIT)
		self._TCTRL_contact = wx.TextCtrl(self, wx.ID_ANY, "")
		self._TCTRL_comment = wx.TextCtrl(self, wx.ID_ANY, "")

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_BUTTON, self._on_manage_orgs_button_pressed, self._BTN_manage_orgs)
Пример #8
0
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxgOrgUnitEAPnl.__init__
        kwds["style"] = kwds.get("style",
                                 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
        wx.ScrolledWindow.__init__(self, *args, **kwds)
        from Gnumed.wxpython.gmOrganizationWidgets import cOrganizationPhraseWheel
        self._PRW_org = cOrganizationPhraseWheel(self, wx.ID_ANY, "")
        from Gnumed.wxpython.gmOrganizationWidgets import cOrgUnitPhraseWheel
        self._PRW_unit = cOrgUnitPhraseWheel(self, wx.ID_ANY, "")
        from Gnumed.wxpython.gmOrganizationWidgets import cOrgCategoryPhraseWheel
        self._PRW_category = cOrgCategoryPhraseWheel(self, wx.ID_ANY, "")

        self.__set_properties()
        self.__do_layout()
Пример #9
0
    def __init__(self, *args, **kwds):

        from Gnumed.wxpython.gmOrganizationWidgets import cOrganizationPhraseWheel
        from Gnumed.wxpython.gmOrganizationWidgets import cOrgUnitPhraseWheel
        from Gnumed.wxpython.gmOrganizationWidgets import cOrgCategoryPhraseWheel

        # begin wxGlade: wxgOrgUnitEAPnl.__init__
        kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL
        wx.ScrolledWindow.__init__(self, *args, **kwds)
        self._PRW_org = cOrganizationPhraseWheel(self, -1, "", style=wx.NO_BORDER)
        self._PRW_unit = cOrgUnitPhraseWheel(self, -1, "", style=wx.NO_BORDER)
        self._PRW_category = cOrgCategoryPhraseWheel(self, -1, "", style=wx.NO_BORDER)

        self.__set_properties()
        self.__do_layout()
Пример #10
0
	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)
Пример #11
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgExternalCareEAPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
		wx.ScrolledWindow.__init__(self, *args, **kwds)
		from Gnumed.wxpython.gmEMRStructWidgets import cIssueSelectionPhraseWheel
		self._PRW_issue = cIssueSelectionPhraseWheel(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmOrganizationWidgets import cOrgUnitPhraseWheel
		self._PRW_care_location = cOrgUnitPhraseWheel(self, wx.ID_ANY, "")
		self._BTN_manage_orgs = wx.Button(self, wx.ID_ANY, _("&Manage"), style=wx.BU_EXACTFIT)
		from Gnumed.wxpython.gmTextCtrl import cTextCtrl
		self._TCTRL_provider = cTextCtrl(self, wx.ID_ANY, "")
		self._TCTRL_comment = cTextCtrl(self, wx.ID_ANY, "")
		self._CHBOX_inactive = wx.CheckBox(self, wx.ID_ANY, _("&Inactive"), style=wx.CHK_2STATE)

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_BUTTON, self._on_manage_orgs_button_pressed, self._BTN_manage_orgs)
Пример #12
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgReceiverSelectionDlg.__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(wx.DLG_UNIT(self, wx.Size(360, 255)))
		self._LBL_message_top = wx.StaticText(self, wx.ID_ANY, _("Select the paperwork receiver:"))
		from Gnumed.wxpython.gmTextCtrl import cTextCtrl
		self._TCTRL_final_name = cTextCtrl(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmAddressWidgets import cAddressPhraseWheel
		self._PRW_other_address = cAddressPhraseWheel(self, wx.ID_ANY, "")
		self._BTN_manage_addresses = wx.Button(self, wx.ID_ANY, _("&Manage"), style=wx.BU_EXACTFIT)
		self._LBL_address_details = wx.StaticText(self, wx.ID_ANY, "")
		self._TCTRL_org_unit_details = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE | wx.TE_READONLY)
		self._LBL_final_name = wx.StaticText(self, wx.ID_ANY, "")
		self._LBL_final_country = wx.StaticText(self, wx.ID_ANY, "")
		self._LBL_final_region = wx.StaticText(self, wx.ID_ANY, "")
		self._LBL_final_zip = wx.StaticText(self, wx.ID_ANY, "")
		self._LBL_final_location = wx.StaticText(self, wx.ID_ANY, "")
		self._LBL_final_street = wx.StaticText(self, wx.ID_ANY, "")
		self._LBL_final_number = wx.StaticText(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmListWidgets import cReportListCtrl
		self._LCTRL_candidates = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_REPORT | wx.LC_SINGLE_SEL)
		from Gnumed.wxpython.gmOrganizationWidgets import cOrgUnitPhraseWheel
		self._PRW_org_unit = cOrgUnitPhraseWheel(self, wx.ID_ANY, "")
		self._BTN_manage_orgs = wx.Button(self, wx.ID_ANY, _("&Manage"), style=wx.BU_EXACTFIT)
		self._LCTRL_addresses = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_REPORT | wx.LC_SINGLE_SEL)
		self._BTN_OK = wx.Button(self, wx.ID_OK, _("&OK"))
		self._BTN_cancel = wx.Button(self, wx.ID_CANCEL, "")

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_BUTTON, self._on_manage_addresses_button_pressed, self._BTN_manage_addresses)
		self.Bind(wx.EVT_LIST_ITEM_SELECTED, self._on_candidate_selected, self._LCTRL_candidates)
		self.Bind(wx.EVT_BUTTON, self._on_manage_orgs_button_pressed, self._BTN_manage_orgs)
		self.Bind(wx.EVT_BUTTON, self._on_ok_button_pressed, id=wx.ID_OK)
Пример #13
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgReceiverSelectionDlg.__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_message_top = wx.StaticText(self, wx.ID_ANY, _("Select the paperwork receiver:"))
		self._TCTRL_final_name = cTextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._PRW_other_address = cAddressPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._LBL_address_details = wx.StaticText(self, wx.ID_ANY, "")
		self.__szr_info_staticbox = wx.StaticBox(self, wx.ID_ANY, "")
		self._BTN_manage_addresses = wx.Button(self, wx.ID_ANY, _("&Addresses"), style=wx.BU_EXACTFIT)
		self._BTN_manage_orgs = wx.Button(self, wx.ID_ANY, _("Or&Ganizations"), style=wx.BU_EXACTFIT)
		self._LCTRL_candidates = cReportListCtrl(self, wx.ID_ANY, style=wx.LC_REPORT | wx.LC_SINGLE_SEL | wx.NO_BORDER)
		self._PRW_org_unit = cOrgUnitPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._LCTRL_addresses = cReportListCtrl(self, wx.ID_ANY, style=wx.LC_REPORT | wx.LC_SINGLE_SEL | wx.NO_BORDER)
		self._BTN_OK = wx.Button(self, wx.ID_OK, _("&OK"))
		self._BTN_cancel = wx.Button(self, wx.ID_CANCEL, "")

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_BUTTON, self._on_manage_addresses_button_pressed, self._BTN_manage_addresses)
		self.Bind(wx.EVT_BUTTON, self._on_manage_orgs_button_pressed, self._BTN_manage_orgs)
		self.Bind(wx.EVT_LIST_ITEM_SELECTED, self._on_candidate_selected, self._LCTRL_candidates)
		self.Bind(wx.EVT_BUTTON, self._on_ok_button_pressed, id=wx.ID_OK)
Пример #14
0
	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)
Пример #15
0
    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)
Пример #16
0
    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)