Beispiel #1
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgFancySoapEditorPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.TAB_TRAVERSAL
		wx.Panel.__init__(self, *args, **kwds)
		from Gnumed.wxpython.gmTextCtrl import cTextCtrl
		self._TCTRL_rfe = cTextCtrl(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmCodingWidgets import cGenericCodesPhraseWheel
		self._PRW_rfe_codes = cGenericCodesPhraseWheel(self, wx.ID_ANY, "")
		self._TCTRL_aoe = cTextCtrl(self, wx.ID_ANY, "")
		self._PRW_aoe_codes = cGenericCodesPhraseWheel(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmNarrativeWidgets import cSoapNoteInputNotebook
		self._NB_soap_editors = cSoapNoteInputNotebook(self, wx.ID_ANY, style=0)
		self.notebook_1_pane_1 = wx.Panel(self._NB_soap_editors, wx.ID_ANY)
		self._BTN_new_editor = wx.Button(self, wx.ID_ANY, _("&New"), style=wx.BU_EXACTFIT)
		self._BTN_clear_editor = wx.Button(self, wx.ID_ANY, _("&Clear"), style=wx.BU_EXACTFIT)
		self._BTN_discard_editor = wx.Button(self, wx.ID_ANY, _("&Discard"), style=wx.BU_EXACTFIT)
		self._BTN_save_note = wx.Button(self, wx.ID_ANY, _("&Save"), style=wx.BU_EXACTFIT)
		self._BTN_save_note_under = wx.Button(self, wx.ID_ANY, _("Save &under"), style=wx.BU_EXACTFIT)
		self._BTN_image = wx.Button(self, wx.ID_ANY, _("&Image"), style=wx.BU_EXACTFIT)
		self._BTN_save_encounter = wx.Button(self, wx.ID_ANY, _("Save"), style=wx.BU_EXACTFIT)
		self._BTN_save_all = wx.Button(self, wx.ID_ANY, _("Save &all"), style=wx.BU_EXACTFIT)

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_BUTTON, self._on_new_editor_button_pressed, self._BTN_new_editor)
		self.Bind(wx.EVT_BUTTON, self._on_clear_editor_button_pressed, self._BTN_clear_editor)
		self.Bind(wx.EVT_BUTTON, self._on_discard_editor_button_pressed, self._BTN_discard_editor)
		self.Bind(wx.EVT_BUTTON, self._on_save_note_button_pressed, self._BTN_save_note)
		self.Bind(wx.EVT_BUTTON, self._on_save_note_under_button_pressed, self._BTN_save_note_under)
		self.Bind(wx.EVT_BUTTON, self._on_image_button_pressed, self._BTN_image)
		self.Bind(wx.EVT_BUTTON, self._on_save_encounter_button_pressed, self._BTN_save_encounter)
		self.Bind(wx.EVT_BUTTON, self._on_save_all_button_pressed, self._BTN_save_all)
Beispiel #2
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)
Beispiel #3
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgNewPatientEAPnl.__init__
		kwds["style"] = wx.NO_BORDER | wx.TAB_TRAVERSAL
		wx.Panel.__init__(self, *args, **kwds)
		self._PRW_lastname = cLastnamePhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._PRW_firstnames = cFirstnamePhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._PRW_dob = cDateInputPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._CHBOX_estimated_dob = wx.CheckBox(self, wx.ID_ANY, _("Estimated"))
		self._TCTRL_tob = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._LBL_person_exists = wx.StaticText(self, wx.ID_ANY, "")
		self._PRW_gender = cGenderSelectionPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._PRW_nickname = cNicknamePhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._PRW_title = cTitlePhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._PRW_address_searcher = cAddressPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._PRW_zip = cZipcodePhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._PRW_street = cStreetPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._TCTRL_number = cTextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._TCTRL_unit = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._PRW_urb = cUrbPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._PRW_region = cStateSelectionPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._PRW_country = cCountryPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._PRW_type = cAddressTypePhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._PRW_channel_type = cCommChannelTypePhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._TCTRL_phone = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._PRW_primary_provider = cProviderPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._PRW_external_id_type = cExternalIDTypePhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._TCTRL_external_id_value = cTextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._LBL_id_exists = wx.StaticText(self, wx.ID_ANY, "")
		self._PRW_occupation = cOccupationPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._TCTRL_comment = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER)

		self.__set_properties()
		self.__do_layout()
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxgDynamicHintListDlg.__init__
        kwds[
            "style"] = wx.DEFAULT_DIALOG_STYLE | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX | wx.RESIZE_BORDER
        wx.Dialog.__init__(self, *args, **kwds)
        self._TCTRL_header = wx.TextCtrl(self,
                                         wx.ID_ANY,
                                         _("Dynamic hints"),
                                         style=wx.BORDER_NONE | wx.TE_CENTRE
                                         | wx.TE_READONLY)
        self._LCTRL_hints = cReportListCtrl(self,
                                            wx.ID_ANY,
                                            style=wx.BORDER_SIMPLE
                                            | wx.LC_REPORT | wx.LC_SINGLE_SEL)
        self._TCTRL_hint = wx.TextCtrl(self,
                                       wx.ID_ANY,
                                       "",
                                       style=wx.TE_MULTILINE | wx.TE_READONLY
                                       | wx.TE_WORDWRAP)
        self._TCTRL_source = wx.TextCtrl(self,
                                         wx.ID_ANY,
                                         _("<hint source>"),
                                         style=wx.BORDER_NONE | wx.TE_CENTRE
                                         | wx.TE_READONLY)
        self._URL_info = wx.HyperlinkCtrl(self,
                                          wx.ID_ANY,
                                          _("Further information"),
                                          _("http://www.duckduckgo.com"),
                                          style=wx.HL_DEFAULT_STYLE)
        self._TCTRL_rationale = cTextCtrl(self,
                                          wx.ID_ANY,
                                          "",
                                          style=wx.BORDER_NONE
                                          | wx.TE_MULTILINE | wx.TE_WORDWRAP)
        self._LBL_previous_rationale = wx.StaticText(self, wx.ID_ANY,
                                                     _("Previous\nrationale"))
        self._TCTRL_previous_rationale = cTextCtrl(
            self,
            wx.ID_ANY,
            "",
            style=wx.BORDER_NONE | wx.TE_MULTILINE | wx.TE_READONLY
            | wx.TE_WORDWRAP)
        self._BTN_OK = wx.Button(self, wx.ID_OK, "")
        self._BTN_suppress = wx.Button(self, wx.ID_ANY, _("&Suppress"))
        self._BTN_manage_hints = wx.Button(self,
                                           wx.ID_ANY,
                                           _("&Manage"),
                                           style=wx.BU_EXACTFIT)

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self._on_suppress_button_pressed,
                  self._BTN_suppress)
        self.Bind(wx.EVT_BUTTON, self._on_manage_hints_button_pressed,
                  self._BTN_manage_hints)
Beispiel #5
0
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxgNewPatientEAPnl.__init__
        kwds["style"] = kwds.get("style",
                                 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
        wx.Panel.__init__(self, *args, **kwds)
        from Gnumed.wxpython.gmDemographicsWidgets import cLastnamePhraseWheel
        self._PRW_lastname = cLastnamePhraseWheel(self, wx.ID_ANY, "")
        from Gnumed.wxpython.gmDemographicsWidgets import cFirstnamePhraseWheel
        self._PRW_firstnames = cFirstnamePhraseWheel(self, wx.ID_ANY, "")
        from Gnumed.wxpython.gmDateTimeInput import cDateInputPhraseWheel
        self._PRW_dob = cDateInputPhraseWheel(self, wx.ID_ANY, "")
        self._CHBOX_estimated_dob = wx.CheckBox(self, wx.ID_ANY,
                                                _("Estimated"))
        self._TCTRL_tob = wx.TextCtrl(self, wx.ID_ANY, "")
        self._LBL_person_exists = wx.StaticText(self, wx.ID_ANY, "")
        from Gnumed.wxpython.gmDemographicsWidgets import cGenderSelectionPhraseWheel
        self._PRW_gender = cGenderSelectionPhraseWheel(self, wx.ID_ANY, "")
        from Gnumed.wxpython.gmDemographicsWidgets import cNicknamePhraseWheel
        self._PRW_nickname = cNicknamePhraseWheel(self, wx.ID_ANY, "")
        from Gnumed.wxpython.gmDemographicsWidgets import cTitlePhraseWheel
        self._PRW_title = cTitlePhraseWheel(self, wx.ID_ANY, "")
        from Gnumed.wxpython.gmAddressWidgets import cAddressPhraseWheel
        self._PRW_address_searcher = cAddressPhraseWheel(self, wx.ID_ANY, "")
        from Gnumed.wxpython.gmAddressWidgets import cZipcodePhraseWheel
        self._PRW_zip = cZipcodePhraseWheel(self, wx.ID_ANY, "")
        from Gnumed.wxpython.gmAddressWidgets import cStreetPhraseWheel
        self._PRW_street = cStreetPhraseWheel(self, wx.ID_ANY, "")
        from Gnumed.wxpython.gmTextCtrl import cTextCtrl
        self._TCTRL_number = cTextCtrl(self, wx.ID_ANY, "")
        self._TCTRL_unit = wx.TextCtrl(self, wx.ID_ANY, "")
        from Gnumed.wxpython.gmAddressWidgets import cUrbPhraseWheel
        self._PRW_urb = cUrbPhraseWheel(self, wx.ID_ANY, "")
        from Gnumed.wxpython.gmAddressWidgets import cStateSelectionPhraseWheel
        self._PRW_region = cStateSelectionPhraseWheel(self, wx.ID_ANY, "")
        from Gnumed.wxpython.gmAddressWidgets import cCountryPhraseWheel
        self._PRW_country = cCountryPhraseWheel(self, wx.ID_ANY, "")
        from Gnumed.wxpython.gmAddressWidgets import cAddressTypePhraseWheel
        self._PRW_type = cAddressTypePhraseWheel(self, wx.ID_ANY, "")
        from Gnumed.wxpython.gmContactWidgets import cCommChannelTypePhraseWheel
        self._PRW_channel_type = cCommChannelTypePhraseWheel(
            self, wx.ID_ANY, "")
        self._TCTRL_phone = wx.TextCtrl(self, wx.ID_ANY, "")
        from Gnumed.wxpython.gmStaffWidgets import cProviderPhraseWheel
        self._PRW_primary_provider = cProviderPhraseWheel(self, wx.ID_ANY, "")
        from Gnumed.wxpython.gmDemographicsWidgets import cExternalIDTypePhraseWheel
        self._PRW_external_id_type = cExternalIDTypePhraseWheel(
            self, wx.ID_ANY, "")
        self._TCTRL_external_id_value = cTextCtrl(self, wx.ID_ANY, "")
        self._LBL_id_exists = wx.StaticText(self, wx.ID_ANY, "")
        from Gnumed.wxpython.gmDemographicsWidgets import cOccupationPhraseWheel
        self._PRW_occupation = cOccupationPhraseWheel(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: wxgConsumableSubstanceEAPnl.__init__
		kwds["style"] = wx.NO_BORDER | wx.TAB_TRAVERSAL
		wx.ScrolledWindow.__init__(self, *args, **kwds)
		self._TCTRL_substance = cTextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._TCTRL_amount = cTextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._PRW_unit = cUnitPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._HL_atc_list = wx.HyperlinkCtrl(self, wx.ID_ANY, _("ATC Code"), _("http://www.whocc.no/atc_ddd_index/"), style=wx.HL_ALIGN_CENTRE | wx.HL_CONTEXTMENU | wx.HL_DEFAULT_STYLE)
		self._PRW_atc = cATCPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)

		self.__set_properties()
		self.__do_layout()
Beispiel #7
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgPACSPluginPnl.__init__
		kwds["style"] = wx.BORDER_NONE | wx.TAB_TRAVERSAL
		wx.Panel.__init__(self, *args, **kwds)
		self._TCTRL_host = cTextCtrl(self, wx.ID_ANY, "", style=wx.BORDER_NONE)
		self._TCTRL_port = cTextCtrl(self, wx.ID_ANY, "", style=wx.BORDER_NONE)
		self._TCTRL_user = cTextCtrl(self, wx.ID_ANY, "", style=wx.BORDER_NONE)
		self._TCTRL_password = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.BORDER_NONE | wx.TE_PASSWORD)
		self._BTN_connect = wx.Button(self, wx.ID_ANY, _("&Connect"), style=wx.BU_EXACTFIT)
		self._LBL_PACS_identification = wx.StaticText(self, wx.ID_ANY, _("<not connected>"))
		self._LBL_patient_identification = wx.StaticText(self, wx.ID_ANY, "")
		self._LCTRL_studies = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_REPORT)
		self._LCTRL_series = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_REPORT)
		self._TCTRL_details = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.BORDER_NONE | wx.TE_BESTWRAP | wx.TE_MULTILINE | wx.TE_READONLY)
		self._BMP_preview = wx.lib.statbmp.GenStaticBitmap(self, wx.ID_ANY, wx.EmptyBitmap(50, 50), style=wx.BORDER_SIMPLE)
		self._BTN_previous_image = wx.Button(self, wx.ID_ANY, _(u"\u25c4"), style=wx.BU_EXACTFIT)
		self._BTN_next_image = wx.Button(self, wx.ID_ANY, _(u"\u25ba"), style=wx.BU_EXACTFIT)
		self._BTN_image_export = wx.Button(self, wx.ID_ANY, _("E&xport"), style=wx.BU_EXACTFIT)
		self._BTN_browse_study = wx.Button(self, wx.ID_ANY, _("Browse"), style=wx.BU_EXACTFIT)
		self._BTN_browse_patient = wx.Button(self, wx.ID_ANY, _("Browse"), style=wx.BU_EXACTFIT)
		self._BTN_browse_pacs = wx.Button(self, wx.ID_ANY, _("Browse"), style=wx.BU_EXACTFIT)
		self._BTN_image_show_dicom = wx.Button(self, wx.ID_ANY, _("&Show (D)"), style=wx.BU_EXACTFIT)
		self._BTN_save_image_as_dicom = wx.Button(self, wx.ID_ANY, _("Save (&D)"), style=wx.BU_EXACTFIT)
		self._BTN_save_studies_as_dicom_dir = wx.Button(self, wx.ID_ANY, _("Save (D)"), style=wx.BU_EXACTFIT)
		self._BTN_save_patient_as_dicom_dir = wx.Button(self, wx.ID_ANY, _("Save (D)"), style=wx.BU_EXACTFIT)
		self._BTN_upload = wx.Button(self, wx.ID_ANY, _("&Upload"), style=wx.BU_EXACTFIT)
		self._BTN_image_show = wx.Button(self, wx.ID_ANY, _("Show (&P)"), style=wx.BU_EXACTFIT)
		self._BTN_save_image_preview = wx.Button(self, wx.ID_ANY, _("Save"), style=wx.BU_EXACTFIT)
		self._BTN_save_studies_as_zip = wx.Button(self, wx.ID_ANY, _("Save (Z)"), style=wx.BU_EXACTFIT)
		self._BTN_save_patient_as_zip = wx.Button(self, wx.ID_ANY, _("Save (Z)"), style=wx.BU_EXACTFIT)
		self._BTN_modify_orthanc_content = wx.Button(self, wx.ID_ANY, _("Edit"), style=wx.BU_EXACTFIT)

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_BUTTON, self._on_connect_button_pressed, self._BTN_connect)
		self.Bind(wx.EVT_BUTTON, self._on_previous_image_button_pressed, self._BTN_previous_image)
		self.Bind(wx.EVT_BUTTON, self._on_next_image_button_pressed, self._BTN_next_image)
		self.Bind(wx.EVT_BUTTON, self._on_button_image_export_pressed, self._BTN_image_export)
		self.Bind(wx.EVT_BUTTON, self._on_browse_study_button_pressed, self._BTN_browse_study)
		self.Bind(wx.EVT_BUTTON, self._on_browse_patient_button_pressed, self._BTN_browse_patient)
		self.Bind(wx.EVT_BUTTON, self._on_browse_pacs_button_pressed, self._BTN_browse_pacs)
		self.Bind(wx.EVT_BUTTON, self._on_button_image_show_dicom_pressed, self._BTN_image_show_dicom)
		self.Bind(wx.EVT_BUTTON, self._on_save_image_as_dicom_button_pressed, self._BTN_save_image_as_dicom)
		self.Bind(wx.EVT_BUTTON, self._on_save_studies_as_dicom_dir_button_pressed, self._BTN_save_studies_as_dicom_dir)
		self.Bind(wx.EVT_BUTTON, self._on_save_patient_as_dicom_dir_button_pressed, self._BTN_save_patient_as_dicom_dir)
		self.Bind(wx.EVT_BUTTON, self._on_upload_button_pressed, self._BTN_upload)
		self.Bind(wx.EVT_BUTTON, self._on_button_image_show_pressed, self._BTN_image_show)
		self.Bind(wx.EVT_BUTTON, self._on_save_image_preview_button_pressed, self._BTN_save_image_preview)
		self.Bind(wx.EVT_BUTTON, self._on_save_studies_as_zip_button_pressed, self._BTN_save_studies_as_zip)
		self.Bind(wx.EVT_BUTTON, self._on_save_patient_as_zip_button_pressed, self._BTN_save_patient_as_zip)
		self.Bind(wx.EVT_BUTTON, self._on_modify_orthanc_content_button_pressed, self._BTN_modify_orthanc_content)
Beispiel #8
0
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxgAutoHintEAPnl.__init__
        kwds["style"] = wx.BORDER_NONE | wx.TAB_TRAVERSAL
        wx.ScrolledWindow.__init__(self, *args, **kwds)
        self._TCTRL_title = cTextCtrl(self,
                                      wx.ID_ANY,
                                      "",
                                      style=wx.BORDER_NONE)
        self._TCTRL_hint = cTextCtrl(self,
                                     wx.ID_ANY,
                                     "",
                                     style=wx.BORDER_NONE | wx.TE_MULTILINE)
        self._TCTRL_source = cTextCtrl(self,
                                       wx.ID_ANY,
                                       "",
                                       style=wx.BORDER_NONE)
        self._TCTRL_query = cTextCtrl(self,
                                      wx.ID_ANY,
                                      "",
                                      style=wx.BORDER_NONE | wx.TE_MULTILINE)
        self._TCTRL_recommendation_query = cTextCtrl(self,
                                                     wx.ID_ANY,
                                                     "",
                                                     style=wx.BORDER_NONE
                                                     | wx.TE_MULTILINE)
        self._TCTRL_url = wx.TextCtrl(self,
                                      wx.ID_ANY,
                                      "",
                                      style=wx.BORDER_NONE | wx.TE_AUTO_URL)
        self._BTN_check_url = wx.Button(self,
                                        wx.ID_ANY,
                                        _("Chec&k"),
                                        style=wx.BU_EXACTFIT)
        self._CHBOX_is_active = wx.CheckBox(self,
                                            wx.ID_ANY,
                                            _("&Active"),
                                            style=wx.CHK_2STATE)
        self._CHBOX_highlight = wx.CheckBox(self,
                                            wx.ID_ANY,
                                            _("&Highlight"),
                                            style=wx.CHK_2STATE)
        self._RBTN_popup_none = wx.RadioButton(self, wx.ID_ANY, _("None"))
        self._RBTN_popup_single = wx.RadioButton(self, wx.ID_ANY,
                                                 _("Individual"))
        self._RBTN_popup_multiple = wx.RadioButton(self, wx.ID_ANY,
                                                   _("Aggregate"))

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self._on_check_url_button_pressed,
                  self._BTN_check_url)
Beispiel #9
0
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxgSubstanceEAPnl.__init__
        kwds["style"] = wx.BORDER_NONE | wx.TAB_TRAVERSAL
        wx.ScrolledWindow.__init__(self, *args, **kwds)
        self._TCTRL_substance = cTextCtrl(self,
                                          wx.ID_ANY,
                                          "",
                                          style=wx.BORDER_NONE)
        self._HL_atc_list = wx.HyperlinkCtrl(
            self,
            wx.ID_ANY,
            _("ATC Code"),
            _("http://www.whocc.no/atc_ddd_index/"),
            style=wx.HL_DEFAULT_STYLE)
        self._PRW_atc = cATCPhraseWheel(self,
                                        wx.ID_ANY,
                                        "",
                                        style=wx.BORDER_NONE)
        self._TCTRL_instructions = cTextCtrl(self,
                                             wx.ID_ANY,
                                             "",
                                             style=wx.BORDER_NONE)
        self._HL_loinc_list = wx.HyperlinkCtrl(self,
                                               wx.ID_ANY,
                                               _("LOINCs"),
                                               _("https://search.loinc.org"),
                                               style=wx.HL_DEFAULT_STYLE)
        self._PRW_loinc = cLOINCPhraseWheel(self,
                                            wx.ID_ANY,
                                            "",
                                            style=wx.BORDER_NONE)
        self._BTN_add_loinc = wx.Button(self,
                                        wx.ID_ANY,
                                        _("Add"),
                                        style=wx.BU_EXACTFIT)
        self._LCTRL_loincs = cReportListCtrl(self,
                                             wx.ID_ANY,
                                             style=wx.BORDER_NONE
                                             | wx.LC_REPORT)
        self._BTN_remove_loincs = wx.Button(self,
                                            wx.ID_ANY,
                                            _("Remove"),
                                            style=wx.BU_EXACTFIT)

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self._on_add_loinc_button_pressed,
                  self._BTN_add_loinc)
        self.Bind(wx.EVT_BUTTON, self._on_remove_loincs_button_pressed,
                  self._BTN_remove_loincs)
Beispiel #10
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgPACSPluginPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
		wx.Panel.__init__(self, *args, **kwds)
		self.__lbl_host = wx.StaticText(self, wx.ID_ANY, _("Host:"))
		self._TCTRL_host = cTextCtrl(self, wx.ID_ANY, "")
		self.__lbl_port = wx.StaticText(self, wx.ID_ANY, _("Port:"))
		self._TCTRL_port = cTextCtrl(self, wx.ID_ANY, "")
		self.__lbl_user = wx.StaticText(self, wx.ID_ANY, _("User:"******"")
		self.__lbl_password = wx.StaticText(self, wx.ID_ANY, _("Password"))
		self._TCTRL_password = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_PASSWORD)
		self._BTN_connect = wx.Button(self, wx.ID_ANY, _("&Connect"), style=wx.BU_EXACTFIT)
		self._LBL_PACS_identification = wx.StaticText(self, wx.ID_ANY, _("<not connected>"))
		self._LBL_patient_identification = wx.StaticText(self, wx.ID_ANY, "")
		self._LCTRL_studies = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_REPORT)
		self._LCTRL_series = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_REPORT)
		self._LCTRL_details = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_REPORT)
		self._BMP_preview = wx.lib.statbmp.GenStaticBitmap(self, wx.ID_ANY, wx.Bitmap(50, 50), style=wx.BORDER_SIMPLE)
		self._BTN_previous_image = wx.Button(self, wx.ID_ANY, _(u"\u25c4"), style=wx.BU_EXACTFIT)
		self._BTN_next_image = wx.Button(self, wx.ID_ANY, _(u"\u25ba"), style=wx.BU_EXACTFIT)
		self._BTN_image_show = wx.Button(self, wx.ID_ANY, _("&Show"))
		self._BTN_image_export = wx.Button(self, wx.ID_ANY, _("E&xport area"))
		self._BTN_browse_study = wx.Button(self, wx.ID_ANY, _("Browse"), style=wx.BORDER_NONE | wx.BU_EXACTFIT)
		self._BTN_studies_show = wx.Button(self, wx.ID_ANY, _("Show"))
		self._BTN_studies_export = wx.Button(self, wx.ID_ANY, _("Export area"))
		self._BTN_browse_patient = wx.Button(self, wx.ID_ANY, _("Browse"), style=wx.BORDER_NONE | wx.BU_EXACTFIT)
		self._BTN_verify_patient_data = wx.Button(self, wx.ID_ANY, _("Verify"))
		self._BTN_browse_pacs = wx.Button(self, wx.ID_ANY, _("Browse"), style=wx.BORDER_NONE | wx.BU_EXACTFIT)
		self._BTN_upload = wx.Button(self, wx.ID_ANY, _("&Upload"))
		self._BTN_modify_orthanc_content = wx.Button(self, wx.ID_ANY, _("Edit"))

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_BUTTON, self._on_connect_button_pressed, self._BTN_connect)
		self.Bind(wx.EVT_BUTTON, self._on_previous_image_button_pressed, self._BTN_previous_image)
		self.Bind(wx.EVT_BUTTON, self._on_next_image_button_pressed, self._BTN_next_image)
		self.Bind(wx.EVT_BUTTON, self._on_image_show_button_pressed, self._BTN_image_show)
		self.Bind(wx.EVT_BUTTON, self._on_image_export_button_pressed, self._BTN_image_export)
		self.Bind(wx.EVT_BUTTON, self._on_browse_study_button_pressed, self._BTN_browse_study)
		self.Bind(wx.EVT_BUTTON, self._on_studies_show_button_pressed, self._BTN_studies_show)
		self.Bind(wx.EVT_BUTTON, self._on_studies_export_button_pressed, self._BTN_studies_export)
		self.Bind(wx.EVT_BUTTON, self._on_browse_patient_button_pressed, self._BTN_browse_patient)
		self.Bind(wx.EVT_BUTTON, self._on_verify_patient_data_button_pressed, self._BTN_verify_patient_data)
		self.Bind(wx.EVT_BUTTON, self._on_browse_pacs_button_pressed, self._BTN_browse_pacs)
		self.Bind(wx.EVT_BUTTON, self._on_upload_button_pressed, self._BTN_upload)
		self.Bind(wx.EVT_BUTTON, self._on_modify_orthanc_content_button_pressed, self._BTN_modify_orthanc_content)
Beispiel #11
0
	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)
Beispiel #12
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)
Beispiel #13
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)
Beispiel #14
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgSimpleSoapPluginPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
		wx.ScrolledWindow.__init__(self, *args, **kwds)
		self.SetSize(wx.DLG_UNIT(self, wx.Size(400, 216)))
		self._splitter_main = wx.SplitterWindow(self, wx.ID_ANY, style=wx.SP_3D | wx.SP_BORDER)
		self.__pnl_left = wx.Panel(self._splitter_main, wx.ID_ANY, style=wx.BORDER_NONE | wx.TAB_TRAVERSAL)
		from Gnumed.wxpython.gmListWidgets import cReportListCtrl
		self._LCTRL_problems = cReportListCtrl(self.__pnl_left, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_NO_HEADER | wx.LC_REPORT | wx.LC_SINGLE_SEL)
		self._BTN_add_problem = wx.Button(self.__pnl_left, wx.ID_ANY, _("&Add"), style=wx.BU_EXACTFIT)
		self._BTN_edit_problem = wx.Button(self.__pnl_left, wx.ID_ANY, _("&Edit"), style=wx.BU_EXACTFIT)
		self._BTN_delete_problem = wx.Button(self.__pnl_left, wx.ID_ANY, _("&Delete"), style=wx.BU_EXACTFIT)
		from Gnumed.wxpython.gmTextCtrl import cTextCtrl
		self._TCTRL_soap_problem = wx.TextCtrl(self.__pnl_left, wx.ID_ANY, _("<above, double-click problem to start entering SOAP note>"), style=wx.TE_READONLY)
		self._TCTRL_soap = cTextCtrl(self.__pnl_left, wx.ID_ANY, "", style=wx.TE_MULTILINE | wx.TE_WORDWRAP)
		self._BTN_save_soap = wx.Button(self.__pnl_left, wx.ID_ANY, _("&Save"), style=wx.BU_EXACTFIT)
		self._BTN_clear_soap = wx.Button(self.__pnl_left, wx.ID_ANY, _("&Clear"), style=wx.BU_EXACTFIT)
		self.__pnl_right = wx.Panel(self._splitter_main, wx.ID_ANY, style=wx.BORDER_NONE | wx.TAB_TRAVERSAL)
		self._CHBOX_filter_by_problem = wx.CheckBox(self.__pnl_right, wx.ID_ANY, _("&Filter by problem"))
		self._TCTRL_journal = wx.TextCtrl(self.__pnl_right, wx.ID_ANY, "", style=wx.TE_MULTILINE | wx.TE_READONLY)

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_LIST_ITEM_SELECTED, self._on_list_item_selected, self._LCTRL_problems)
		self.Bind(wx.EVT_BUTTON, self._on_add_problem_button_pressed, self._BTN_add_problem)
		self.Bind(wx.EVT_BUTTON, self._on_edit_problem_button_pressed, self._BTN_edit_problem)
		self.Bind(wx.EVT_BUTTON, self._on_delete_problem_button_pressed, self._BTN_delete_problem)
		self.Bind(wx.EVT_BUTTON, self._on_save_soap_button_pressed, self._BTN_save_soap)
		self.Bind(wx.EVT_BUTTON, self._on_clear_soap_button_pressed, self._BTN_clear_soap)
		self.Bind(wx.EVT_CHECKBOX, self._on_filter_by_problem_checked, self._CHBOX_filter_by_problem)
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxgEMRJournalPluginPnl.__init__
        kwds["style"] = kwds.get("style",
                                 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
        wx.ScrolledWindow.__init__(self, *args, **kwds)
        self._RBTN_by_encounter = wx.RadioButton(self, wx.ID_ANY,
                                                 _("&Encounter"))
        self._RBTN_by_last_modified = wx.RadioButton(
            self, wx.ID_ANY, _("&Last modification time"))
        self._BTN_search = wx.Button(self,
                                     wx.ID_FIND,
                                     "",
                                     style=wx.BU_EXACTFIT)
        self._SLINE_top = wx.StaticLine(self, wx.ID_ANY)
        self._TCTRL_journal = cTextCtrl(self,
                                        wx.ID_ANY,
                                        "",
                                        style=wx.TE_MULTILINE | wx.TE_READONLY)

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_RADIOBUTTON, self._on_order_by_encounter_selected,
                  self._RBTN_by_encounter)
        self.Bind(wx.EVT_RADIOBUTTON, self._on_order_by_last_mod_selected,
                  self._RBTN_by_last_modified)
        self.Bind(wx.EVT_BUTTON, self._on_button_find_pressed,
                  self._BTN_search)
Beispiel #16
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgDataMiningPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
		wx.ScrolledWindow.__init__(self, *args, **kwds)
		self._splitter = wx.SplitterWindow(self, wx.ID_ANY, style=wx.SP_3D | wx.SP_BORDER)
		self.splitter_top_panel = wx.Panel(self._splitter, wx.ID_ANY, style=wx.BORDER_NONE | wx.TAB_TRAVERSAL)
		self._PRW_report_name = cPhraseWheel(self.splitter_top_panel, wx.ID_ANY, "")
		self._TCTRL_query = cTextCtrl(self.splitter_top_panel, wx.ID_ANY, "", style=wx.TE_MULTILINE | wx.TE_WORDWRAP)
		self._BTN_run = wx.Button(self.splitter_top_panel, wx.ID_ANY, _("&Run"), style=wx.BU_EXACTFIT)
		self._BTN_clear = wx.Button(self.splitter_top_panel, wx.ID_ANY, _("Clear"), style=wx.BU_EXACTFIT)
		self._BTN_save = wx.Button(self.splitter_top_panel, wx.ID_ANY, _("Save"), style=wx.BU_EXACTFIT)
		self._BTN_delete = wx.Button(self.splitter_top_panel, wx.ID_ANY, _("Delete"), style=wx.BU_EXACTFIT)
		self._BTN_contribute = wx.Button(self.splitter_top_panel, wx.ID_ANY, _("Contribute"), style=wx.BU_EXACTFIT)
		self._BTN_visualize = wx.Button(self.splitter_top_panel, wx.ID_ANY, _("Plot"), style=wx.BU_EXACTFIT)
		self._BTN_waiting_list = wx.Button(self.splitter_top_panel, wx.ID_ANY, _("Wait.List"), style=wx.BU_EXACTFIT)
		self._BTN_save_results = wx.Button(self.splitter_top_panel, wx.ID_ANY, _("Save"), style=wx.BU_EXACTFIT)
		self._BTN_schema = wx.Button(self.splitter_top_panel, wx.ID_ANY, _("Schema"), style=wx.BU_EXACTFIT)
		self._splitter_bottom_panel = wx.Panel(self._splitter, wx.ID_ANY, style=wx.BORDER_NONE | wx.TAB_TRAVERSAL)
		self._LCTRL_result = cPatientListingCtrl(self._splitter_bottom_panel, wx.ID_ANY, style=wx.BORDER_SIMPLE | wx.LC_REPORT | wx.LC_SINGLE_SEL)

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_BUTTON, self._on_run_button_pressed, self._BTN_run)
		self.Bind(wx.EVT_BUTTON, self._on_clear_button_pressed, self._BTN_clear)
		self.Bind(wx.EVT_BUTTON, self._on_save_button_pressed, self._BTN_save)
		self.Bind(wx.EVT_BUTTON, self._on_delete_button_pressed, self._BTN_delete)
		self.Bind(wx.EVT_BUTTON, self._on_contribute_button_pressed, self._BTN_contribute)
		self.Bind(wx.EVT_BUTTON, self._on_visualize_button_pressed, self._BTN_visualize)
		self.Bind(wx.EVT_BUTTON, self._on_waiting_list_button_pressed, self._BTN_waiting_list)
		self.Bind(wx.EVT_BUTTON, self._on_save_results_button_pressed, self._BTN_save_results)
		self.Bind(wx.EVT_BUTTON, self._on_schema_button_pressed, self._BTN_schema)
Beispiel #17
0
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxgModifyOrthancContentDlg.__init__
        kwds["style"] = kwds.get(
            "style", 0
        ) | wx.CAPTION | wx.CLOSE_BOX | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX | wx.RESIZE_BORDER
        wx.Dialog.__init__(self, *args, **kwds)
        self._TCTRL_search_term = cTextCtrl(self, wx.ID_ANY, "")
        self._BTN_search_patients = wx.Button(self,
                                              wx.ID_ANY,
                                              _("&Search"),
                                              style=wx.BU_EXACTFIT)
        self._LCTRL_patients = cReportListCtrl(self,
                                               wx.ID_ANY,
                                               style=wx.BORDER_NONE
                                               | wx.LC_REPORT)
        self._TCTRL_new_patient_id = wx.TextCtrl(self, wx.ID_ANY, "")
        self._BTN_suggest_patient_id = wx.Button(self,
                                                 wx.ID_ANY,
                                                 _("Suggest"),
                                                 style=wx.BU_EXACTFIT)
        self._BTN_set_patient_id = wx.Button(self,
                                             wx.ID_ANY,
                                             _("Set"),
                                             style=wx.BU_EXACTFIT)

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self._on_search_patients_button_pressed,
                  self._BTN_search_patients)
        self.Bind(wx.EVT_BUTTON, self._on_suggest_patient_id_button_pressed,
                  self._BTN_suggest_patient_id)
        self.Bind(wx.EVT_BUTTON, self._on_set_patient_id_button_pressed,
                  self._BTN_set_patient_id)
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgSubstanceAbuseEAPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
		wx.ScrolledWindow.__init__(self, *args, **kwds)
		self._RBTN_tobacco = wx.RadioButton(self, wx.ID_ANY, _("&Nicotine"))
		self._RBTN_c2 = wx.RadioButton(self, wx.ID_ANY, _("&Alcohol"))
		self._RBTN_other_substance = wx.RadioButton(self, wx.ID_ANY, _("&Other:"))
		from Gnumed.wxpython.gmSubstanceMgmtWidgets import cSubstancePhraseWheel
		self._PRW_substance = cSubstancePhraseWheel(self, wx.ID_ANY, "")
		self._RBTN_nonharmful_use = wx.RadioButton(self, wx.ID_ANY, _("&Non-harmful use"), style=wx.RB_GROUP)
		self._RBTN_harmful_use = wx.RadioButton(self, wx.ID_ANY, _("&Harmful use"))
		self._RBTN_presently_addicted = wx.RadioButton(self, wx.ID_ANY, _("Presently &addicted"))
		self._RBTN_previously_addicted = wx.RadioButton(self, wx.ID_ANY, _("Previously &addicted"))
		from Gnumed.wxpython.gmTextCtrl import cTextCtrl
		self._TCTRL_comment = cTextCtrl(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmDateTimeInput import cDateInputPhraseWheel
		self._DPRW_quit_when = cDateInputPhraseWheel(self, wx.ID_ANY, "")
		self._LBL_confirm_date = wx.StaticText(self, wx.ID_ANY, _("?"))
		self._CHBOX_confirm = wx.CheckBox(self, wx.ID_ANY, _("&Reconfirm as of today"))

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_RADIOBUTTON, self._on_substance_rbutton_selected, self._RBTN_tobacco)
		self.Bind(wx.EVT_RADIOBUTTON, self._on_substance_rbutton_selected, self._RBTN_c2)
		self.Bind(wx.EVT_RADIOBUTTON, self._on_substance_rbutton_selected, self._RBTN_other_substance)
Beispiel #19
0
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxgMultilineTextEntryDlg.__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((600, 641))
        self._LBL_msg = wx.StaticText(self, wx.ID_ANY, "")
        self._TCTRL_data = wx.TextCtrl(self,
                                       wx.ID_ANY,
                                       "",
                                       style=wx.TE_MULTILINE | wx.TE_READONLY
                                       | wx.TE_WORDWRAP)
        from Gnumed.wxpython.gmTextCtrl import cTextCtrl
        self._TCTRL_text = cTextCtrl(self,
                                     wx.ID_ANY,
                                     "",
                                     style=wx.TE_MULTILINE | wx.TE_WORDWRAP)
        self._CHBOX_is_already_formatted = wx.CheckBox(
            self, wx.ID_ANY, _("Do not reformat text"))
        self._BTN_save = wx.Button(self, wx.ID_SAVE, "")
        self._BTN_clear = wx.Button(self, wx.ID_CLEAR, "")
        self._BTN_restore = wx.Button(self, wx.ID_REVERT_TO_SAVED, "")
        self._BTN_cancel = wx.Button(self, wx.ID_CANCEL, "")

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self._on_save_button_pressed, self._BTN_save)
        self.Bind(wx.EVT_BUTTON, self._on_clear_button_pressed,
                  self._BTN_clear)
        self.Bind(wx.EVT_BUTTON, self._on_restore_button_pressed,
                  self._BTN_restore)
Beispiel #20
0
	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)
Beispiel #21
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgAutoHintEAPnl.__init__
		kwds["style"] = wx.NO_BORDER | wx.TAB_TRAVERSAL
		wx.ScrolledWindow.__init__(self, *args, **kwds)
		self._TCTRL_title = cTextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._TCTRL_hint = cTextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE | wx.NO_BORDER)
		self._TCTRL_query = cTextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE | wx.NO_BORDER)
		self._TCTRL_source = cTextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._TCTRL_url = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_AUTO_URL | wx.NO_BORDER)
		self._BTN_check_url = wx.Button(self, wx.ID_ANY, _("Chec&k"), style=wx.BU_EXACTFIT)
		self._CHBOX_is_active = wx.CheckBox(self, wx.ID_ANY, _("is &active"))

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_BUTTON, self._on_check_url_button_pressed, self._BTN_check_url)
Beispiel #22
0
    def __init__(self, *args, **kwds):

        from Gnumed.wxpython.gmMedicationWidgets import cSubstancePreparationPhraseWheel

        # begin wxGlade: wxgSingleComponentGenericDrugEAPnl.__init__
        kwds["style"] = wx.BORDER_NONE | wx.TAB_TRAVERSAL
        wx.ScrolledWindow.__init__(self, *args, **kwds)
        self._LBL_drug_name = wx.StaticText(self, wx.ID_ANY, "")
        self._PRW_substance = cSubstancePhraseWheel(self,
                                                    wx.ID_ANY,
                                                    "",
                                                    style=wx.BORDER_NONE)
        self._TCTRL_amount = cTextCtrl(self,
                                       wx.ID_ANY,
                                       "",
                                       style=wx.BORDER_NONE)
        self._PRW_unit = cUnitPhraseWheel(self,
                                          wx.ID_ANY,
                                          "",
                                          style=wx.BORDER_NONE)
        self._PRW_dose_unit = cUnitPhraseWheel(self,
                                               wx.ID_ANY,
                                               "",
                                               style=wx.BORDER_NONE)
        self._PRW_preparation = cSubstancePreparationPhraseWheel(
            self, wx.ID_ANY, "", style=wx.BORDER_NONE)

        self.__set_properties()
        self.__do_layout()
Beispiel #23
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)
Beispiel #24
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)
Beispiel #25
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgSubstanceEAPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
		wx.ScrolledWindow.__init__(self, *args, **kwds)
		self._TCTRL_substance = cTextCtrl(self, wx.ID_ANY, "")
		self._HL_atc_list = wx.adv.HyperlinkCtrl(self, wx.ID_ANY, _("ATC Code"), _("http://www.whocc.no/atc_ddd_index/"), style=wx.adv.HL_DEFAULT_STYLE)
		self._PRW_atc = cATCPhraseWheel(self, wx.ID_ANY, "")
		self._TCTRL_instructions = cTextCtrl(self, wx.ID_ANY, "")
		self._HL_loinc_list = wx.adv.HyperlinkCtrl(self, wx.ID_ANY, _("LOINCs"), _("https://search.loinc.org"), style=wx.adv.HL_DEFAULT_STYLE)
		self._PRW_loinc = cLOINCPhraseWheel(self, wx.ID_ANY, "")
		self._BTN_add_loinc = wx.Button(self, wx.ID_ANY, _("Add"), style=wx.BU_EXACTFIT)
		self._LCTRL_loincs = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_REPORT)
		self._BTN_remove_loincs = wx.Button(self, wx.ID_ANY, _("Remove"), style=wx.BU_EXACTFIT)

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_BUTTON, self._on_add_loinc_button_pressed, self._BTN_add_loinc)
		self.Bind(wx.EVT_BUTTON, self._on_remove_loincs_button_pressed, self._BTN_remove_loincs)
Beispiel #26
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgAutoHintEAPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
		wx.ScrolledWindow.__init__(self, *args, **kwds)
		self._TCTRL_title = cTextCtrl(self, wx.ID_ANY, "")
		self._TCTRL_hint = cTextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE)
		self._TCTRL_source = cTextCtrl(self, wx.ID_ANY, "")
		self._TCTRL_query = cTextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE)
		self._TCTRL_recommendation_query = cTextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE)
		self._TCTRL_url = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_AUTO_URL)
		self._BTN_check_url = wx.Button(self, wx.ID_ANY, _("Chec&k"), style=wx.BU_EXACTFIT)
		self._CHBOX_is_active = wx.CheckBox(self, wx.ID_ANY, _("&Active"), style=wx.CHK_2STATE)
		self._CHBOX_highlight = wx.CheckBox(self, wx.ID_ANY, _("&Highlight"), style=wx.CHK_2STATE)
		self._RBTN_popup_none = wx.RadioButton(self, wx.ID_ANY, _("None"))
		self._RBTN_popup_single = wx.RadioButton(self, wx.ID_ANY, _("Individual"))
		self._RBTN_popup_multiple = wx.RadioButton(self, wx.ID_ANY, _("Aggregate"))

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_BUTTON, self._on_check_url_button_pressed, self._BTN_check_url)
Beispiel #27
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgSubstanceDoseEAPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
		wx.ScrolledWindow.__init__(self, *args, **kwds)
		self._PRW_substance = cSubstancePhraseWheel(self, wx.ID_ANY, "")
		self._TCTRL_amount = cTextCtrl(self, wx.ID_ANY, "")
		self._PRW_unit = cUnitPhraseWheel(self, wx.ID_ANY, "")
		self._PRW_dose_unit = cUnitPhraseWheel(self, wx.ID_ANY, "")
		self._LBL_info = wx.StaticText(self, wx.ID_ANY, "")

		self.__set_properties()
		self.__do_layout()
Beispiel #28
0
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxgSubstanceDoseEAPnl.__init__
        kwds["style"] = kwds.get("style",
                                 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
        wx.ScrolledWindow.__init__(self, *args, **kwds)
        self._PRW_substance = cSubstancePhraseWheel(self, wx.ID_ANY, "")
        self._TCTRL_amount = cTextCtrl(self, wx.ID_ANY, "")
        self._PRW_unit = cUnitPhraseWheel(self, wx.ID_ANY, "")
        self._PRW_dose_unit = cUnitPhraseWheel(self, wx.ID_ANY, "")
        self._LBL_info = wx.StaticText(self, wx.ID_ANY, "")

        self.__set_properties()
        self.__do_layout()
Beispiel #29
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgDynamicHintListDlg.__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((400, 615))
		self._TCTRL_header = wx.TextCtrl(self, wx.ID_ANY, _("Dynamic hints"), style=wx.TE_CENTRE | wx.TE_READONLY)
		self._LCTRL_hints = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_SIMPLE | wx.LC_REPORT | wx.LC_SINGLE_SEL)
		self._TCTRL_hint = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE | wx.TE_READONLY | wx.TE_WORDWRAP)
		self._TCTRL_source = wx.TextCtrl(self, wx.ID_ANY, _("<hint source>"), style=wx.TE_CENTRE | wx.TE_READONLY)
		self._URL_info = wx.adv.HyperlinkCtrl(self, wx.ID_ANY, _("Further information"), _("http://www.duckduckgo.com"), style=wx.adv.HL_DEFAULT_STYLE)
		self._TCTRL_rationale = cTextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE | wx.TE_WORDWRAP)
		self._LBL_previous_rationale = wx.StaticText(self, wx.ID_ANY, _("Previous\nrationale"))
		self._TCTRL_previous_rationale = cTextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE | wx.TE_READONLY | wx.TE_WORDWRAP)
		self._BTN_OK = wx.Button(self, wx.ID_OK, "")
		self._BTN_suppress = wx.Button(self, wx.ID_ANY, _("&Suppress"))
		self._BTN_manage_hints = wx.Button(self, wx.ID_ANY, _("&Manage"), style=wx.BU_EXACTFIT)

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_BUTTON, self._on_suppress_button_pressed, self._BTN_suppress)
		self.Bind(wx.EVT_BUTTON, self._on_manage_hints_button_pressed, self._BTN_manage_hints)
Beispiel #30
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgSmokingEAPnl.__init__
		kwds["style"] = wx.BORDER_NONE | wx.TAB_TRAVERSAL
		wx.ScrolledWindow.__init__(self, *args, **kwds)
		self._RBTN_unknown_smoking_status = wx.RadioButton(self, wx.ID_ANY, _("&Unknown"))
		self._RBTN_never_smoked = wx.RadioButton(self, wx.ID_ANY, _("&Never smoked"))
		self._RBTN_smokes = wx.RadioButton(self, wx.ID_ANY, _("&Smokes or smoked"))
		self._TCTRL_comment = cTextCtrl(self, wx.ID_ANY, "", style=wx.BORDER_NONE)
		self._DPRW_quit_when = cDateInputPhraseWheel(self, wx.ID_ANY, "", style=wx.BORDER_NONE)
		self._DPRW_last_confirmed = cDateInputPhraseWheel(self, wx.ID_ANY, "", style=wx.BORDER_NONE)

		self.__set_properties()
		self.__do_layout()
Beispiel #31
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgEMRJournalPluginPnl.__init__
		kwds["style"] = wx.BORDER_NONE | wx.TAB_TRAVERSAL
		wx.ScrolledWindow.__init__(self, *args, **kwds)
		self._RBTN_by_encounter = wx.RadioButton(self, wx.ID_ANY, _("&Encounter"))
		self._RBTN_by_last_modified = wx.RadioButton(self, wx.ID_ANY, _("&Last modification time"))
		self._BTN_search = wx.Button(self, wx.ID_FIND, "", style=wx.BU_EXACTFIT)
		self._SLINE_top = wx.StaticLine(self, wx.ID_ANY)
		self._TCTRL_journal = cTextCtrl(self, wx.ID_ANY, "", style=wx.BORDER_NONE | wx.TE_MULTILINE | wx.TE_READONLY)

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_RADIOBUTTON, self._on_order_by_encounter_selected, self._RBTN_by_encounter)
		self.Bind(wx.EVT_RADIOBUTTON, self._on_order_by_last_mod_selected, self._RBTN_by_last_modified)
		self.Bind(wx.EVT_BUTTON, self._on_button_find_pressed, self._BTN_search)
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgSingleComponentGenericDrugEAPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
		wx.ScrolledWindow.__init__(self, *args, **kwds)
		self._LBL_drug_name = wx.StaticText(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmSubstanceMgmtWidgets import cSubstancePhraseWheel
		self._PRW_substance = cSubstancePhraseWheel(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmTextCtrl import cTextCtrl
		self._TCTRL_amount = cTextCtrl(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmMeasurementWidgets import cUnitPhraseWheel
		self._PRW_unit = cUnitPhraseWheel(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmMeasurementWidgets import cUnitPhraseWheel
		self._PRW_dose_unit = cUnitPhraseWheel(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmMedicationWidgets import cSubstancePreparationPhraseWheel
		self._PRW_preparation = cSubstancePreparationPhraseWheel(self, wx.ID_ANY, "")

		self.__set_properties()
		self.__do_layout()
Beispiel #33
0
    def __init__(self, *args, **kwds):

        from Gnumed.wxpython import gmTextCtrl

        # begin wxGlade: wxgMultilineTextEntryDlg.__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_msg = wx.StaticText(self, -1, "")
        self._TCTRL_data = wx.TextCtrl(self, -1, "", style=wx.TE_MULTILINE | wx.TE_READONLY | wx.TE_WORDWRAP | wx.NO_BORDER)
        self._TCTRL_text = gmTextCtrl.cTextCtrl(self, -1, "", style=wx.TE_MULTILINE | wx.TE_WORDWRAP)
        self._CHBOX_is_already_formatted = wx.CheckBox(self, -1, _("Do not reformat text"))
        self._BTN_save = wx.Button(self, wx.ID_SAVE, "")
        self._BTN_clear = wx.Button(self, wx.ID_CLEAR, "")
        self._BTN_restore = wx.Button(self, wx.ID_REVERT_TO_SAVED, "")
        self._BTN_cancel = wx.Button(self, wx.ID_CANCEL, "")

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self._on_save_button_pressed, self._BTN_save)
        self.Bind(wx.EVT_BUTTON, self._on_clear_button_pressed, self._BTN_clear)
        self.Bind(wx.EVT_BUTTON, self._on_restore_button_pressed, self._BTN_restore)
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgMultilineTextEntryDlg.__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((600, 641))
		self._LBL_msg = wx.StaticText(self, wx.ID_ANY, "")
		self._TCTRL_data = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE | wx.TE_READONLY | wx.TE_WORDWRAP)
		from Gnumed.wxpython.gmTextCtrl import cTextCtrl
		self._TCTRL_text = cTextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE | wx.TE_WORDWRAP)
		self._CHBOX_is_already_formatted = wx.CheckBox(self, wx.ID_ANY, _("Do not reformat text"))
		self._HCTRL_ReST = wx.adv.HyperlinkCtrl(self, wx.ID_ANY, _("Formatting help"), _("http://docutils.sourceforge.net/docs/user/rst/quickref.html"))
		self._BTN_save = wx.Button(self, wx.ID_SAVE, "")
		self._BTN_clear = wx.Button(self, wx.ID_CLEAR, "")
		self._BTN_restore = wx.Button(self, wx.ID_REVERT_TO_SAVED, "")
		self._BTN_cancel = wx.Button(self, wx.ID_CANCEL, "")

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_BUTTON, self._on_save_button_pressed, self._BTN_save)
		self.Bind(wx.EVT_BUTTON, self._on_clear_button_pressed, self._BTN_clear)
		self.Bind(wx.EVT_BUTTON, self._on_restore_button_pressed, self._BTN_restore)
Beispiel #35
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgDynamicHintDlg.__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((400, 400))
		self._TCTRL_title = wx.TextCtrl(self, wx.ID_ANY, _("<hint title>"), style=wx.TE_CENTRE | wx.TE_READONLY)
		self._TCTRL_hint = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE | wx.TE_READONLY | wx.TE_WORDWRAP)
		self._TCTRL_source = wx.TextCtrl(self, wx.ID_ANY, _("<hint source>"), style=wx.TE_CENTRE | wx.TE_READONLY)
		self._URL_info = wx.adv.HyperlinkCtrl(self, wx.ID_ANY, _("Further information"), _("http://www.duckduckgo.com"), style=wx.adv.HL_DEFAULT_STYLE)
		self._TCTRL_rationale = cTextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE | wx.TE_WORDWRAP)
		self._LBL_previous_rationale = wx.StaticText(self, wx.ID_ANY, _("Previous\nrationale"))
		self._TCTRL_previous_rationale = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_BESTWRAP | wx.TE_MULTILINE | wx.TE_READONLY)
		self._BTN_transfer_previous_rationale = wx.Button(self, wx.ID_ANY, _(u"\u2934"), style=wx.BU_EXACTFIT)
		self._BTN_OK = wx.Button(self, wx.ID_OK, "")
		self._BTN_suppress = wx.Button(self, wx.ID_ANY, _("&Suppress"))
		self._BTN_manage_hints = wx.Button(self, wx.ID_ANY, _("&Manage"), style=wx.BU_EXACTFIT)

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_BUTTON, self._on_transfer_previous_rationale_button_pressed, self._BTN_transfer_previous_rationale)
		self.Bind(wx.EVT_BUTTON, self._on_suppress_button_pressed, self._BTN_suppress)
		self.Bind(wx.EVT_BUTTON, self._on_manage_hints_button_pressed, self._BTN_manage_hints)
Beispiel #36
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)
Beispiel #37
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)
Beispiel #38
0
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxgPACSPluginPnl.__init__
        kwds["style"] = kwds.get("style",
                                 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
        wx.Panel.__init__(self, *args, **kwds)
        self.__lbl_host = wx.StaticText(self, wx.ID_ANY, _("Host:"))
        self._TCTRL_host = cTextCtrl(self, wx.ID_ANY, "")
        self.__lbl_port = wx.StaticText(self, wx.ID_ANY, _("Port:"))
        self._TCTRL_port = cTextCtrl(self, wx.ID_ANY, "")
        self.__lbl_user = wx.StaticText(self, wx.ID_ANY, _("User:"******"")
        self.__lbl_password = wx.StaticText(self, wx.ID_ANY, _("Password"))
        self._TCTRL_password = wx.TextCtrl(self,
                                           wx.ID_ANY,
                                           "",
                                           style=wx.TE_PASSWORD)
        self._BTN_connect = wx.Button(self,
                                      wx.ID_ANY,
                                      _("&Connect"),
                                      style=wx.BU_EXACTFIT)
        self._LBL_PACS_identification = wx.StaticText(self, wx.ID_ANY,
                                                      _("<not connected>"))
        self._LBL_patient_identification = wx.StaticText(self, wx.ID_ANY, "")
        self._LCTRL_studies = cReportListCtrl(self,
                                              wx.ID_ANY,
                                              style=wx.BORDER_NONE
                                              | wx.LC_REPORT)
        self._LCTRL_series = cReportListCtrl(self,
                                             wx.ID_ANY,
                                             style=wx.BORDER_NONE
                                             | wx.LC_REPORT)
        self._LCTRL_details = cReportListCtrl(self,
                                              wx.ID_ANY,
                                              style=wx.BORDER_NONE
                                              | wx.LC_REPORT)
        self._BMP_preview = wx.lib.statbmp.GenStaticBitmap(
            self, wx.ID_ANY, wx.Bitmap(50, 50), style=wx.BORDER_SIMPLE)
        self._BTN_previous_image = wx.Button(self,
                                             wx.ID_ANY,
                                             _(u"\u25c4"),
                                             style=wx.BU_EXACTFIT)
        self._BTN_next_image = wx.Button(self,
                                         wx.ID_ANY,
                                         _(u"\u25ba"),
                                         style=wx.BU_EXACTFIT)
        self._BTN_image_show = wx.Button(self, wx.ID_ANY, _("&Show"))
        self._BTN_image_export = wx.Button(self, wx.ID_ANY, _("E&xport area"))
        self._BTN_browse_study = wx.Button(self,
                                           wx.ID_ANY,
                                           _("Browse"),
                                           style=wx.BORDER_NONE
                                           | wx.BU_EXACTFIT)
        self._BTN_studies_show = wx.Button(self, wx.ID_ANY, _("Show"))
        self._BTN_studies_export = wx.Button(self, wx.ID_ANY, _("Export area"))
        self._BTN_browse_patient = wx.Button(self,
                                             wx.ID_ANY,
                                             _("Browse"),
                                             style=wx.BORDER_NONE
                                             | wx.BU_EXACTFIT)
        self._BTN_verify_patient_data = wx.Button(self, wx.ID_ANY, _("Verify"))
        self._BTN_browse_pacs = wx.Button(self,
                                          wx.ID_ANY,
                                          _("Browse"),
                                          style=wx.BORDER_NONE
                                          | wx.BU_EXACTFIT)
        self._BTN_upload = wx.Button(self, wx.ID_ANY, _("&Upload"))
        self._BTN_modify_orthanc_content = wx.Button(self, wx.ID_ANY,
                                                     _("Edit"))

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self._on_connect_button_pressed,
                  self._BTN_connect)
        self.Bind(wx.EVT_BUTTON, self._on_previous_image_button_pressed,
                  self._BTN_previous_image)
        self.Bind(wx.EVT_BUTTON, self._on_next_image_button_pressed,
                  self._BTN_next_image)
        self.Bind(wx.EVT_BUTTON, self._on_image_show_button_pressed,
                  self._BTN_image_show)
        self.Bind(wx.EVT_BUTTON, self._on_image_export_button_pressed,
                  self._BTN_image_export)
        self.Bind(wx.EVT_BUTTON, self._on_browse_study_button_pressed,
                  self._BTN_browse_study)
        self.Bind(wx.EVT_BUTTON, self._on_studies_show_button_pressed,
                  self._BTN_studies_show)
        self.Bind(wx.EVT_BUTTON, self._on_studies_export_button_pressed,
                  self._BTN_studies_export)
        self.Bind(wx.EVT_BUTTON, self._on_browse_patient_button_pressed,
                  self._BTN_browse_patient)
        self.Bind(wx.EVT_BUTTON, self._on_verify_patient_data_button_pressed,
                  self._BTN_verify_patient_data)
        self.Bind(wx.EVT_BUTTON, self._on_browse_pacs_button_pressed,
                  self._BTN_browse_pacs)
        self.Bind(wx.EVT_BUTTON, self._on_upload_button_pressed,
                  self._BTN_upload)
        self.Bind(wx.EVT_BUTTON,
                  self._on_modify_orthanc_content_button_pressed,
                  self._BTN_modify_orthanc_content)
Beispiel #39
0
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxgDataMiningPnl.__init__
        kwds["style"] = wx.NO_BORDER | wx.TAB_TRAVERSAL
        wx.ScrolledWindow.__init__(self, *args, **kwds)
        self._splitter = wx.SplitterWindow(self,
                                           wx.ID_ANY,
                                           style=wx.SP_3D | wx.SP_BORDER)
        self.splitter_top_panel = wx.Panel(self._splitter,
                                           wx.ID_ANY,
                                           style=wx.NO_BORDER
                                           | wx.TAB_TRAVERSAL)
        self._PRW_report_name = gmPhraseWheel.cPhraseWheel(
            self.splitter_top_panel, wx.ID_ANY, "", style=wx.NO_BORDER)
        self._TCTRL_query = cTextCtrl(self.splitter_top_panel,
                                      wx.ID_ANY,
                                      "",
                                      style=wx.TE_MULTILINE | wx.TE_WORDWRAP
                                      | wx.NO_BORDER)
        self._BTN_run = wx.Button(self.splitter_top_panel,
                                  wx.ID_ANY,
                                  _("&Run"),
                                  style=wx.BU_EXACTFIT)
        self._BTN_clear = wx.Button(self.splitter_top_panel,
                                    wx.ID_ANY,
                                    _("Clear"),
                                    style=wx.BU_EXACTFIT)
        self._BTN_save = wx.Button(self.splitter_top_panel,
                                   wx.ID_ANY,
                                   _("Save"),
                                   style=wx.BU_EXACTFIT)
        self._BTN_delete = wx.Button(self.splitter_top_panel,
                                     wx.ID_ANY,
                                     _("Delete"),
                                     style=wx.BU_EXACTFIT)
        self._BTN_contribute = wx.Button(self.splitter_top_panel,
                                         wx.ID_ANY,
                                         _("Contribute"),
                                         style=wx.BU_EXACTFIT)
        self._BTN_visualize = wx.Button(self.splitter_top_panel,
                                        wx.ID_ANY,
                                        _("Plot"),
                                        style=wx.BU_EXACTFIT)
        self._BTN_waiting_list = wx.Button(self.splitter_top_panel,
                                           wx.ID_ANY,
                                           _("Wait.List"),
                                           style=wx.BU_EXACTFIT)
        self._BTN_save_results = wx.Button(self.splitter_top_panel,
                                           wx.ID_ANY,
                                           _("Save"),
                                           style=wx.BU_EXACTFIT)
        self._BTN_schema = wx.Button(self.splitter_top_panel,
                                     wx.ID_ANY,
                                     _("Schema"),
                                     style=wx.BU_EXACTFIT)
        self._splitter_bottom_panel = wx.Panel(self._splitter,
                                               wx.ID_ANY,
                                               style=wx.NO_BORDER
                                               | wx.TAB_TRAVERSAL)
        self._LCTRL_result = cPatientListingCtrl(
            self._splitter_bottom_panel,
            wx.ID_ANY,
            style=wx.LC_REPORT | wx.LC_SINGLE_SEL | wx.SIMPLE_BORDER)

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self._on_run_button_pressed, self._BTN_run)
        self.Bind(wx.EVT_BUTTON, self._on_clear_button_pressed,
                  self._BTN_clear)
        self.Bind(wx.EVT_BUTTON, self._on_save_button_pressed, self._BTN_save)
        self.Bind(wx.EVT_BUTTON, self._on_delete_button_pressed,
                  self._BTN_delete)
        self.Bind(wx.EVT_BUTTON, self._on_contribute_button_pressed,
                  self._BTN_contribute)
        self.Bind(wx.EVT_BUTTON, self._on_visualize_button_pressed,
                  self._BTN_visualize)
        self.Bind(wx.EVT_BUTTON, self._on_waiting_list_button_pressed,
                  self._BTN_waiting_list)
        self.Bind(wx.EVT_BUTTON, self._on_save_results_button_pressed,
                  self._BTN_save_results)
        self.Bind(wx.EVT_BUTTON, self._on_schema_button_pressed,
                  self._BTN_schema)
Beispiel #40
0
    def __init__(self, *args, **kwds):

        from Gnumed.wxpython.gmListWidgets import cReportListCtrl
        from Gnumed.wxpython.gmTextCtrl import cTextCtrl

        # begin wxGlade: wxgSimpleSoapPluginPnl.__init__
        kwds["style"] = wx.NO_BORDER | wx.TAB_TRAVERSAL
        wx.ScrolledWindow.__init__(self, *args, **kwds)
        self._splitter_main = wx.SplitterWindow(self,
                                                -1,
                                                style=wx.SP_3D | wx.SP_BORDER)
        self.__pnl_left = wx.Panel(self._splitter_main,
                                   -1,
                                   style=wx.NO_BORDER | wx.TAB_TRAVERSAL)
        self._LCTRL_problems = cReportListCtrl(
            self.__pnl_left,
            -1,
            style=wx.LC_REPORT | wx.LC_NO_HEADER | wx.LC_SINGLE_SEL
            | wx.NO_BORDER)
        self._BTN_add_problem = wx.Button(self.__pnl_left,
                                          -1,
                                          _("&Add"),
                                          style=wx.BU_EXACTFIT)
        self._BTN_edit_problem = wx.Button(self.__pnl_left,
                                           -1,
                                           _("&Edit"),
                                           style=wx.BU_EXACTFIT)
        self._BTN_delete_problem = wx.Button(self.__pnl_left,
                                             -1,
                                             _("&Delete"),
                                             style=wx.BU_EXACTFIT)
        self._TCTRL_soap_problem = wx.TextCtrl(
            self.__pnl_left,
            -1,
            _("<above, double-click problem to start entering SOAP note>"),
            style=wx.TE_READONLY | wx.NO_BORDER)
        self._TCTRL_soap = cTextCtrl(self.__pnl_left,
                                     -1,
                                     "",
                                     style=wx.TE_MULTILINE | wx.TE_WORDWRAP
                                     | wx.NO_BORDER)
        self._BTN_save_soap = wx.Button(self.__pnl_left,
                                        -1,
                                        _("&Save"),
                                        style=wx.BU_EXACTFIT)
        self._BTN_clear_soap = wx.Button(self.__pnl_left,
                                         -1,
                                         _("&Clear"),
                                         style=wx.BU_EXACTFIT)
        self.__pnl_right = wx.Panel(self._splitter_main,
                                    -1,
                                    style=wx.NO_BORDER | wx.TAB_TRAVERSAL)
        self._CHBOX_filter_by_problem = wx.CheckBox(self.__pnl_right, -1,
                                                    _("&Filter by problem"))
        self._TCTRL_journal = wx.TextCtrl(self.__pnl_right,
                                          -1,
                                          "",
                                          style=wx.TE_MULTILINE
                                          | wx.TE_READONLY | wx.NO_BORDER)

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_LIST_ITEM_SELECTED, self._on_list_item_selected,
                  self._LCTRL_problems)
        self.Bind(wx.EVT_BUTTON, self._on_add_problem_button_pressed,
                  self._BTN_add_problem)
        self.Bind(wx.EVT_BUTTON, self._on_edit_problem_button_pressed,
                  self._BTN_edit_problem)
        self.Bind(wx.EVT_BUTTON, self._on_delete_problem_button_pressed,
                  self._BTN_delete_problem)
        self.Bind(wx.EVT_BUTTON, self._on_save_soap_button_pressed,
                  self._BTN_save_soap)
        self.Bind(wx.EVT_BUTTON, self._on_clear_soap_button_pressed,
                  self._BTN_clear_soap)
        self.Bind(wx.EVT_CHECKBOX, self._on_filter_by_problem_checked,
                  self._CHBOX_filter_by_problem)
Beispiel #41
0
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxgFancySoapEditorPnl.__init__
        kwds["style"] = kwds.get("style", 0) | wx.TAB_TRAVERSAL
        wx.Panel.__init__(self, *args, **kwds)
        from Gnumed.wxpython.gmTextCtrl import cTextCtrl
        self._TCTRL_rfe = cTextCtrl(self, wx.ID_ANY, "")
        from Gnumed.wxpython.gmCodingWidgets import cGenericCodesPhraseWheel
        self._PRW_rfe_codes = cGenericCodesPhraseWheel(self, wx.ID_ANY, "")
        self._TCTRL_aoe = cTextCtrl(self, wx.ID_ANY, "")
        self._PRW_aoe_codes = cGenericCodesPhraseWheel(self, wx.ID_ANY, "")
        from Gnumed.wxpython.gmNarrativeWidgets import cSoapNoteInputNotebook
        self._NB_soap_editors = cSoapNoteInputNotebook(self,
                                                       wx.ID_ANY,
                                                       style=0)
        self.notebook_1_pane_1 = wx.Panel(self._NB_soap_editors, wx.ID_ANY)
        self._BTN_new_editor = wx.Button(self,
                                         wx.ID_ANY,
                                         _("&New"),
                                         style=wx.BU_EXACTFIT)
        self._BTN_clear_editor = wx.Button(self,
                                           wx.ID_ANY,
                                           _("&Clear"),
                                           style=wx.BU_EXACTFIT)
        self._BTN_discard_editor = wx.Button(self,
                                             wx.ID_ANY,
                                             _("&Discard"),
                                             style=wx.BU_EXACTFIT)
        self._BTN_save_note = wx.Button(self,
                                        wx.ID_ANY,
                                        _("&Save"),
                                        style=wx.BU_EXACTFIT)
        self._BTN_save_note_under = wx.Button(self,
                                              wx.ID_ANY,
                                              _("Save &under"),
                                              style=wx.BU_EXACTFIT)
        self._BTN_image = wx.Button(self,
                                    wx.ID_ANY,
                                    _("&Image"),
                                    style=wx.BU_EXACTFIT)
        self._BTN_save_encounter = wx.Button(self,
                                             wx.ID_ANY,
                                             _("Save"),
                                             style=wx.BU_EXACTFIT)
        self._BTN_save_all = wx.Button(self,
                                       wx.ID_ANY,
                                       _("Save &all"),
                                       style=wx.BU_EXACTFIT)

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self._on_new_editor_button_pressed,
                  self._BTN_new_editor)
        self.Bind(wx.EVT_BUTTON, self._on_clear_editor_button_pressed,
                  self._BTN_clear_editor)
        self.Bind(wx.EVT_BUTTON, self._on_discard_editor_button_pressed,
                  self._BTN_discard_editor)
        self.Bind(wx.EVT_BUTTON, self._on_save_note_button_pressed,
                  self._BTN_save_note)
        self.Bind(wx.EVT_BUTTON, self._on_save_note_under_button_pressed,
                  self._BTN_save_note_under)
        self.Bind(wx.EVT_BUTTON, self._on_image_button_pressed,
                  self._BTN_image)
        self.Bind(wx.EVT_BUTTON, self._on_save_encounter_button_pressed,
                  self._BTN_save_encounter)
        self.Bind(wx.EVT_BUTTON, self._on_save_all_button_pressed,
                  self._BTN_save_all)
Beispiel #42
0
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxgNewPatientEAPnl.__init__
        kwds["style"] = wx.NO_BORDER | wx.TAB_TRAVERSAL
        wx.Panel.__init__(self, *args, **kwds)
        self._PRW_lastname = cLastnamePhraseWheel(self,
                                                  wx.ID_ANY,
                                                  "",
                                                  style=wx.NO_BORDER)
        self._PRW_firstnames = cFirstnamePhraseWheel(self,
                                                     wx.ID_ANY,
                                                     "",
                                                     style=wx.NO_BORDER)
        self._PRW_dob = cDateInputPhraseWheel(self,
                                              wx.ID_ANY,
                                              "",
                                              style=wx.NO_BORDER)
        self._CHBOX_estimated_dob = wx.CheckBox(self, wx.ID_ANY,
                                                _("Estimated"))
        self._TCTRL_tob = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER)
        self._LBL_person_exists = wx.StaticText(self, wx.ID_ANY, "")
        self._PRW_gender = cGenderSelectionPhraseWheel(self,
                                                       wx.ID_ANY,
                                                       "",
                                                       style=wx.NO_BORDER)
        self._PRW_nickname = cNicknamePhraseWheel(self,
                                                  wx.ID_ANY,
                                                  "",
                                                  style=wx.NO_BORDER)
        self._PRW_title = cTitlePhraseWheel(self,
                                            wx.ID_ANY,
                                            "",
                                            style=wx.NO_BORDER)
        self._PRW_address_searcher = cAddressPhraseWheel(self,
                                                         wx.ID_ANY,
                                                         "",
                                                         style=wx.NO_BORDER)
        self._PRW_zip = cZipcodePhraseWheel(self,
                                            wx.ID_ANY,
                                            "",
                                            style=wx.NO_BORDER)
        self._PRW_street = cStreetPhraseWheel(self,
                                              wx.ID_ANY,
                                              "",
                                              style=wx.NO_BORDER)
        self._TCTRL_number = cTextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER)
        self._TCTRL_unit = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER)
        self._PRW_urb = cUrbPhraseWheel(self,
                                        wx.ID_ANY,
                                        "",
                                        style=wx.NO_BORDER)
        self._PRW_region = cStateSelectionPhraseWheel(self,
                                                      wx.ID_ANY,
                                                      "",
                                                      style=wx.NO_BORDER)
        self._PRW_country = cCountryPhraseWheel(self,
                                                wx.ID_ANY,
                                                "",
                                                style=wx.NO_BORDER)
        self._PRW_type = cAddressTypePhraseWheel(self,
                                                 wx.ID_ANY,
                                                 "",
                                                 style=wx.NO_BORDER)
        self._PRW_channel_type = cCommChannelTypePhraseWheel(
            self, wx.ID_ANY, "", style=wx.NO_BORDER)
        self._TCTRL_phone = wx.TextCtrl(self,
                                        wx.ID_ANY,
                                        "",
                                        style=wx.NO_BORDER)
        self._PRW_primary_provider = cProviderPhraseWheel(self,
                                                          wx.ID_ANY,
                                                          "",
                                                          style=wx.NO_BORDER)
        self._PRW_external_id_type = cExternalIDTypePhraseWheel(
            self, wx.ID_ANY, "", style=wx.NO_BORDER)
        self._TCTRL_external_id_value = cTextCtrl(self,
                                                  wx.ID_ANY,
                                                  "",
                                                  style=wx.NO_BORDER)
        self._LBL_id_exists = wx.StaticText(self, wx.ID_ANY, "")
        self._PRW_occupation = cOccupationPhraseWheel(self,
                                                      wx.ID_ANY,
                                                      "",
                                                      style=wx.NO_BORDER)
        self._TCTRL_comment = wx.TextCtrl(self,
                                          wx.ID_ANY,
                                          "",
                                          style=wx.NO_BORDER)

        self.__set_properties()
        self.__do_layout()