Exemple #1
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)
Exemple #2
0
    def __init__(self, *args, **kwds):

        from Gnumed.wxpython import gmPhraseWheel
        from Gnumed.wxpython import gmEMRStructWidgets
        from Gnumed.wxpython import gmDateTimeInput
        from Gnumed.wxpython import gmOrganizationWidgets
        from Gnumed.wxpython.gmCodingWidgets import cGenericCodesPhraseWheel

        # begin wxGlade: wxgProcedureEAPnl.__init__
        kwds["style"] = wx.NO_BORDER | wx.TAB_TRAVERSAL
        wx.ScrolledWindow.__init__(self, *args, **kwds)
        self._PRW_procedure = gmPhraseWheel.cPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
        self._DPRW_date = gmDateTimeInput.cFuzzyTimestampInput(self, wx.ID_ANY, "", style=wx.NO_BORDER)
        self._DPRW_end = gmDateTimeInput.cFuzzyTimestampInput(self, wx.ID_ANY, "", style=wx.NO_BORDER)
        self._CHBOX_ongoing = wx.CheckBox(self, wx.ID_ANY, _("Ongoing"))
        self.static_line_1 = wx.StaticLine(self, wx.ID_ANY)
        self._PRW_location = gmOrganizationWidgets.cOrgUnitPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
        self._BTN_add_location = wx.Button(self, wx.ID_ANY, _("+"), style=wx.BU_EXACTFIT)
        self._PRW_episode = gmEMRStructWidgets.cEpisodeSelectionPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
        self.static_line_2 = wx.StaticLine(self, wx.ID_ANY)
        self._PRW_hospital_stay = gmEMRStructWidgets.cHospitalStayPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
        self._BTN_add_stay = wx.Button(self, wx.ID_ANY, _("+"), style=wx.BU_EXACTFIT)
        self._LBL_hospital_details = wx.StaticText(self, wx.ID_ANY, "")
        self._PRW_codes = cGenericCodesPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_CHECKBOX, self._on_ongoing_checkbox_checked, self._CHBOX_ongoing)
        self.Bind(wx.EVT_BUTTON, self._on_add_location_button_pressed, self._BTN_add_location)
        self.Bind(wx.EVT_BUTTON, self._on_add_hospital_stay_button_pressed, self._BTN_add_stay)
Exemple #3
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)
    def __init__(self, *args, **kwds):

	from Gnumed.wxpython.gmNarrativeWidgets import cSoapNoteInputNotebook
        from Gnumed.wxpython.gmDateTimeInput import cFuzzyTimestampInput
        from Gnumed.wxpython.gmEncounterWidgets import cEncounterTypePhraseWheel
        from Gnumed.wxpython import gmListWidgets

        # begin wxGlade: wxgCardiacDevicePluginPnl.__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|wx.SP_PERMIT_UNSPLIT)
        self.__splitter_main_right_pnl = wx.Panel(self._splitter_main, -1, style=wx.NO_BORDER)
        self._splitter_right = wx.SplitterWindow(self.__splitter_main_right_pnl, -1, style=wx.SP_3D|wx.SP_BORDER|wx.SP_PERMIT_UNSPLIT)
        self.__splitter_right_bottom_pnl = wx.ScrolledWindow(self._splitter_right, -1, style=wx.NO_BORDER)
        self.__splitter_right_top_pnl = wx.Panel(self._splitter_right, -1, style=wx.NO_BORDER)
        self._NB_device_editors = cSoapNoteInputNotebook(self.__splitter_right_top_pnl, -1, style=0)
        self.__splitter_main_left_pnl = wx.Panel(self._splitter_main, -1, style=wx.NO_BORDER|wx.FULL_REPAINT_ON_RESIZE)
        self._splitter_left = wx.SplitterWindow(self.__splitter_main_left_pnl, -1, style=wx.SP_3D|wx.SP_BORDER)
        self.__splitter_left_bottom_pnl = wx.Panel(self._splitter_left, -1, style=wx.NO_BORDER)
        self.__splitter_left_top_pnl = wx.Panel(self._splitter_left, -1)
        self.__szr_bottom_left_staticbox = wx.StaticBox(self.__splitter_left_bottom_pnl, -1, _("Previous Encounters"))
        self.__szr_top_right_staticbox = wx.StaticBox(self.__splitter_right_top_pnl, -1, _("New notes in current encounter"))
        self.__szr_lower_bottom_right_staticbox = wx.StaticBox(self.__splitter_right_bottom_pnl, -1, _("Tips and Hints"))
        self.__szr_top_left_staticbox = wx.StaticBox(self.__splitter_left_top_pnl, -1, _("Active Device Settings"))
        self._TCTRL_current_status = wx.TextCtrl(self.__splitter_left_top_pnl, -1, _("In this area GNUmed will place the status of all cardiac devices and device parts. There can be more than one device at a time\n\nIt potentially looks like this\n----------------------------------------------------------------------------------------------------------------\nDevice: SJM Atlas DR (active)     Battery: 2.4V (MOL)      Implanted:  Feb 09 2008\n\nRA: Medtronic Sprint fidelis (active, flaky, replacement)             Implanted: Feb 09 2008\nSensing: 2 (1.5) mV    Threshold: 0.7/0.5 (1/0.4) V/ms       Impedance: 800 (900) Ohm\n\nRV: Medtronic Sprint fidelis (active, flaky, replacement)             Implanted: Feb 09 2008\nSensing: 7 (15) mV    Threshold: 0.7/0.5 (1/0.4) V/ms       Impedance: 800 (900) Ohm\n\nLV: Medtronic Sprint fidelis (active, flaky, Y-connector)             Implanted: Feb 09 2008\nSensing: 7 ( ?) mV    Threshold: 1/1.5 (1/1) V/ms       Impedance: 800 (900) Ohm\n----------------------------------------------------------------------------------------------------------------\nDevice: Medtronic Relia SR (inactive)     Batttery 2.1V (EOL)   Implanted: Jan 23 2000\n\nDevice: Medtronic Kappa SR (explanted)     Batttery 2.1V (EOL)   Explanted: Jan 23 2000 (Jan 23 1995)\n-----------------------------------------------------------------------------------------------------------------\nRA Lead: Medtronic ? (inactive, capped)             Implanted: Jan 23 2000\nRV Lead: Medtronic ? (explanted)                        Explanted: Feb 09 2008"), style=wx.TE_MULTILINE|wx.TE_READONLY|wx.TE_WORDWRAP|wx.NO_BORDER)
        self._LCTRL_pevious_encounters = gmListWidgets.cReportListCtrl(self.__splitter_left_bottom_pnl, -1, style=wx.LC_REPORT|wx.NO_BORDER|wx.FULL_REPAINT_ON_RESIZE)
        self._PRW_encounter_type = cEncounterTypePhraseWheel(self.__splitter_right_top_pnl, -1, "", style=wx.NO_BORDER)
        self._PRW_encounter_start = cFuzzyTimestampInput(self.__splitter_right_top_pnl, -1, "", style=wx.NO_BORDER)
        self._PRW_encounter_end = cFuzzyTimestampInput(self.__splitter_right_top_pnl, -1, "", style=wx.NO_BORDER)
        self._BTN_new_encounter = wx.Button(self.__splitter_right_top_pnl, -1, _("New"), style=wx.BU_EXACTFIT)
        self._TCTRL_rfe = wx.TextCtrl(self.__splitter_right_top_pnl, -1, "", style=wx.NO_BORDER)
        self.notebook_1_pane_1 = wx.Panel(self._NB_device_editors, -1)
        self._TCTRL_aoe = wx.TextCtrl(self.__splitter_right_top_pnl, -1, "", style=wx.NO_BORDER)
        self._TCTRL_ekg = wx.TextCtrl(self.__splitter_right_top_pnl, -1, "", style=wx.NO_BORDER)
        self._BTN_save_all = wx.Button(self.__splitter_right_top_pnl, -1, _("&All"), style=wx.BU_EXACTFIT)
        self._BTN_save_encounter = wx.Button(self.__splitter_right_top_pnl, -1, _("&Encounter"), style=wx.BU_EXACTFIT)
        self._BTN_save_note = wx.Button(self.__splitter_right_top_pnl, -1, _("&Note"), style=wx.BU_EXACTFIT)
        self._BTN_new_editor = wx.Button(self.__splitter_right_top_pnl, -1, _("&New"), style=wx.BU_EXACTFIT)
        self._BTN_clear_editor = wx.Button(self.__splitter_right_top_pnl, -1, _("&Clear"), style=wx.BU_EXACTFIT)
        self._BTN_discard_editor = wx.Button(self.__splitter_right_top_pnl, -1, _("&Discard"), style=wx.BU_EXACTFIT)
        self._lbl_hints = wx.StaticText(self.__splitter_right_bottom_pnl, -1, _("In this area GNUmed will place hints and tips\nrelated to the current interrogation note and patient.\n\nThose hints will be derived from a variety of\nsources such as classifications (ICD, ...), \nsafety warnings, online resources (Google\nand friends), device databases, etc.\n\nEventually, those hints will be active in that you\ncan click on them and be taken to the relevant\ninformation/an appropriate action be performed."))

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self._on_problem_activated, self._LCTRL_pevious_encounters)
        self.Bind(wx.EVT_BUTTON, self._on_new_encounter_button_pressed, self._BTN_new_encounter)
        self.Bind(wx.EVT_BUTTON, self._on_save_all_button_pressed, self._BTN_save_all)
        self.Bind(wx.EVT_BUTTON, self._on_save_encounter_button_pressed, self._BTN_save_encounter)
        self.Bind(wx.EVT_BUTTON, self._on_save_note_button_pressed, self._BTN_save_note)
        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)
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxgAllergyEditAreaPnl.__init__
        kwds["style"] = kwds.get("style",
                                 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
        wx.ScrolledWindow.__init__(self, *args, **kwds)
        from Gnumed.wxpython.gmDateTimeInput import cFuzzyTimestampInput
        self._DPRW_date_noted = cFuzzyTimestampInput(self, wx.ID_ANY, "")
        from Gnumed.wxpython.gmPhraseWheel import cPhraseWheel
        self._PRW_trigger = cPhraseWheel(self, wx.ID_ANY, "")
        self._TCTRL_product_name = wx.TextCtrl(self, wx.ID_ANY, "")
        self._TCTRL_generic = wx.TextCtrl(self, wx.ID_ANY, "")
        self._ChBOX_generic_specific = wx.CheckBox(
            self, wx.ID_ANY, _("&Tolerates others in class"))
        self._TCTRL_atc_classes = wx.TextCtrl(self, wx.ID_ANY, "")
        self._PRW_reaction = cPhraseWheel(self, wx.ID_ANY, "")
        self._RBTN_type_allergy = wx.RadioButton(self,
                                                 wx.ID_ANY,
                                                 _("&Allergy"),
                                                 style=wx.RB_GROUP)
        self._RBTN_type_sensitivity = wx.RadioButton(self, wx.ID_ANY,
                                                     _("&Sensitivity"))
        self._ChBOX_definite = wx.CheckBox(self, wx.ID_ANY, _("&Definite"))

        self.__set_properties()
        self.__do_layout()
Exemple #6
0
    def __init__(self, *args, **kwds):

        from Gnumed.wxpython import gmEMRStructWidgets, gmDateTimeInput, gmDocumentWidgets

        # begin wxGlade: wxgReviewDocPartDlg.__init__
        kwds["style"] = wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.MAXIMIZE_BOX|wx.MINIMIZE_BOX|wx.THICK_FRAME
        wx.Dialog.__init__(self, *args, **kwds)
        self.__szr_box_review_staticbox = wx.StaticBox(self, -1, _("Your review"))
        self.__szr_reviews_staticbox = wx.StaticBox(self, -1, _("Reviews by others"))
        self._PhWheel_episode = gmEMRStructWidgets.cEpisodeSelectionPhraseWheel(self, -1, style=wx.NO_BORDER)
        self._PhWheel_doc_type = gmDocumentWidgets.cDocumentTypeSelectionPhraseWheel(self, -1, style=wx.NO_BORDER)
        self._PRW_doc_comment = gmDocumentWidgets.cDocumentCommentPhraseWheel(self, -1, "", style=wx.NO_BORDER)
        self._PhWheel_doc_date = gmDateTimeInput.cFuzzyTimestampInput(self, -1, style=wx.NO_BORDER)
        self._TCTRL_reference = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
        self._TCTRL_filename = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
        self._SPINCTRL_seq_idx = wx.SpinCtrl(self, -1, "", min=0, max=10000, style=wx.SP_ARROW_KEYS|wx.SP_WRAP|wx.TE_AUTO_URL|wx.TE_NOHIDESEL|wx.NO_BORDER)
        self._LCTRL_existing_reviews = wx.ListCtrl(self, -1, style=wx.LC_REPORT|wx.LC_ALIGN_LEFT|wx.LC_SINGLE_SEL|wx.LC_HRULES|wx.LC_VRULES|wx.NO_BORDER)
        self._TCTRL_responsible = wx.TextCtrl(self, -1, _("(you are/are not the primary reviewer)"), style=wx.TE_READONLY|wx.NO_BORDER)
        self._ChBOX_review = wx.CheckBox(self, -1, _("review document"))
        self._ChBOX_abnormal = wx.CheckBox(self, -1, _("technically abnormal"))
        self._ChBOX_responsible = wx.CheckBox(self, -1, _("take over responsibility"))
        self._ChBOX_relevant = wx.CheckBox(self, -1, _("clinically relevant"))
        self._ChBOX_sign_all_pages = wx.CheckBox(self, -1, _("sign all pages"))
        self._BTN_save = wx.Button(self, wx.ID_OK, _("Save"))
        self._BTN_cancel = wx.Button(self, wx.ID_CANCEL, _("Cancel"))

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_CHECKBOX, self._on_reviewed_box_checked, self._ChBOX_review)
        self.Bind(wx.EVT_BUTTON, self._on_save_button_pressed, id=wx.ID_OK)
Exemple #7
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgHealthIssueEditAreaPnl.__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_condition = cPhraseWheel(self, wx.ID_ANY, "")
		self._ChBOX_left = wx.CheckBox(self, wx.ID_ANY, _("left"))
		self._ChBOX_right = wx.CheckBox(self, wx.ID_ANY, _("right"))
		from Gnumed.wxpython.gmEMRStructWidgets import cDiagnosticCertaintyClassificationPhraseWheel
		self._PRW_certainty = cDiagnosticCertaintyClassificationPhraseWheel(self, wx.ID_ANY, "")
		self._PRW_grouping = cPhraseWheel(self, wx.ID_ANY, "")
		self._PRW_age_noted = cPhraseWheel(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmDateTimeInput import cFuzzyTimestampInput
		self._PRW_year_noted = cFuzzyTimestampInput(self, wx.ID_ANY, "")
		self._TCTRL_status = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE | wx.TE_WORDWRAP)
		self._ChBOX_active = wx.CheckBox(self, wx.ID_ANY, _("Active"))
		self._ChBOX_relevant = wx.CheckBox(self, wx.ID_ANY, _("Relevant"))
		self._ChBOX_confidential = wx.CheckBox(self, wx.ID_ANY, _("Confidential"))
		self._ChBOX_caused_death = wx.CheckBox(self, wx.ID_ANY, _("Caused death"))
		from Gnumed.wxpython.gmCodingWidgets import cGenericCodesPhraseWheel
		self._PRW_codes = cGenericCodesPhraseWheel(self, wx.ID_ANY, "")
		self._TCTRL_code_details = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE | wx.TE_READONLY)

		self.__set_properties()
		self.__do_layout()
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgEncounterEditAreaPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
		wx.ScrolledWindow.__init__(self, *args, **kwds)
		self._LBL_instructions = wx.StaticText(self, wx.ID_ANY, _("Edit the details for the encounter below:"))
		self._LBL_patient = wx.StaticText(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmEncounterWidgets import cEncounterTypePhraseWheel
		self._PRW_encounter_type = cEncounterTypePhraseWheel(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmPraxisWidgets import cPraxisBranchPhraseWheel
		self._PRW_location = cPraxisBranchPhraseWheel(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmDateTimeInput import cFuzzyTimestampInput
		self._PRW_start = cFuzzyTimestampInput(self, wx.ID_ANY, "")
		self._PRW_end = cFuzzyTimestampInput(self, wx.ID_ANY, "")
		self._TCTRL_rfe = wx.TextCtrl(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmCodingWidgets import cGenericCodesPhraseWheel
		self._PRW_rfe_codes = cGenericCodesPhraseWheel(self, wx.ID_ANY, "")
		self._TCTRL_aoe = wx.TextCtrl(self, wx.ID_ANY, "")
		self._PRW_aoe_codes = cGenericCodesPhraseWheel(self, wx.ID_ANY, "")

		self.__set_properties()
		self.__do_layout()
Exemple #9
0
	def __init__(self, *args, **kwds):

		from Gnumed.wxpython.gmEncounterWidgets import cEncounterTypePhraseWheel
		from Gnumed.wxpython.gmDateTimeInput import cFuzzyTimestampInput
		from Gnumed.wxpython.gmCodingWidgets import cGenericCodesPhraseWheel
		from Gnumed.wxpython.gmPraxisWidgets import cPraxisBranchPhraseWheel

		# begin wxGlade: wxgEncounterEditAreaPnl.__init__
		kwds["style"] = wx.NO_BORDER | wx.TAB_TRAVERSAL
		wx.ScrolledWindow.__init__(self, *args, **kwds)
		self._LBL_instructions = wx.StaticText(self, wx.ID_ANY, _("Edit the details for the encounter below:"))
		self._LBL_patient = wx.StaticText(self, wx.ID_ANY, "")
		self._PRW_encounter_type = cEncounterTypePhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._PRW_location = cPraxisBranchPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._PRW_start = cFuzzyTimestampInput(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._PRW_end = cFuzzyTimestampInput(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._TCTRL_rfe = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._PRW_rfe_codes = cGenericCodesPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._TCTRL_aoe = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._PRW_aoe_codes = cGenericCodesPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)

		self.__set_properties()
		self.__do_layout()
Exemple #10
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgScanIdxPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.TAB_TRAVERSAL
		wx.Panel.__init__(self, *args, **kwds)
		from Gnumed.wxpython.gmDocumentWidgets import cDocumentTypeSelectionPhraseWheel
		from Gnumed.wxpython.gmDocumentWidgets import cDocumentCommentPhraseWheel
		from Gnumed.wxpython.gmListWidgets import cReportListCtrl
		from Gnumed.wxpython.gmPhraseWheel import cPhraseWheel
		from Gnumed.wxpython import gmDateTimeInput
		from Gnumed.wxpython import gmEMRStructWidgets
		from Gnumed.wxpython import gmOrganizationWidgets
		self.__btn_scan = wx.Button(self, wx.ID_ANY, _("&Scan page(s)"))
		self.__btn_load = wx.Button(self, wx.ID_ANY, _("Pick &file(s)"))
		self.__btn_clipboard = wx.Button(self, wx.ID_ANY, _("&Clipboard"))
		self._PhWheel_doc_type = cDocumentTypeSelectionPhraseWheel(self, wx.ID_ANY)
		self._PhWheel_doc_date = gmDateTimeInput.cFuzzyTimestampInput(self, wx.ID_ANY)
		self._PhWheel_episode = gmEMRStructWidgets.cEpisodeSelectionPhraseWheel(self, wx.ID_ANY)
		self._PhWheel_source = gmOrganizationWidgets.cOrgUnitPhraseWheel(self, wx.ID_ANY)
		self._RBTN_org_is_source = wx.RadioButton(self, wx.ID_ANY, _("Source"))
		self._RBTN_org_is_receiver = wx.RadioButton(self, wx.ID_ANY, _("Receiver"))
		self._PRW_doc_comment = cDocumentCommentPhraseWheel(self, wx.ID_ANY, "")
		self.__lbl_reviewer = wx.StaticText(self, wx.ID_ANY, _("Intended reviewer:"))
		self._PhWheel_reviewer = cPhraseWheel(self, wx.ID_ANY)
		self._ChBOX_reviewed = wx.CheckBox(self, wx.ID_ANY, _("&review and sign"))
		self._ChBOX_abnormal = wx.CheckBox(self, wx.ID_ANY, _("&technically abnormal"))
		self._ChBOX_relevant = wx.CheckBox(self, wx.ID_ANY, _("&clinically relevant"))
		self._TBOX_description = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_CHARWRAP | wx.TE_MULTILINE | wx.TE_WORDWRAP)
		self._LCTRL_doc_pages = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_REPORT)
		self.__btn_show_page = wx.Button(self, wx.ID_ANY, _("Show"))
		self.__btn_del_page = wx.Button(self, wx.ID_ANY, _("Remove part"))
		self.__btn_save = wx.Button(self, wx.ID_ANY, _("Save"))
		self.__btn_discard = wx.Button(self, wx.ID_ANY, _("Discard"))
		self._TCTRL_metadata = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE | wx.TE_READONLY | wx.TE_WORDWRAP)

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_BUTTON, self._scan_btn_pressed, self.__btn_scan)
		self.Bind(wx.EVT_BUTTON, self._load_btn_pressed, self.__btn_load)
		self.Bind(wx.EVT_BUTTON, self._clipboard_btn_pressed, self.__btn_clipboard)
		self.Bind(wx.EVT_CHECKBOX, self._reviewed_box_checked, self._ChBOX_reviewed)
		self.Bind(wx.EVT_LIST_ITEM_SELECTED, self._on_part_selected, self._LCTRL_doc_pages)
		self.Bind(wx.EVT_BUTTON, self._show_btn_pressed, self.__btn_show_page)
		self.Bind(wx.EVT_BUTTON, self._del_btn_pressed, self.__btn_del_page)
		self.Bind(wx.EVT_BUTTON, self._save_btn_pressed, self.__btn_save)
		self.Bind(wx.EVT_BUTTON, self._startover_btn_pressed, self.__btn_discard)
Exemple #11
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgAllergyEditAreaPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
		wx.ScrolledWindow.__init__(self, *args, **kwds)
		from Gnumed.wxpython.gmDateTimeInput import cFuzzyTimestampInput
		self._DPRW_date_noted = cFuzzyTimestampInput(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmPhraseWheel import cPhraseWheel
		self._PRW_trigger = cPhraseWheel(self, wx.ID_ANY, "")
		self._TCTRL_product_name = wx.TextCtrl(self, wx.ID_ANY, "")
		self._TCTRL_generic = wx.TextCtrl(self, wx.ID_ANY, "")
		self._ChBOX_generic_specific = wx.CheckBox(self, wx.ID_ANY, _("&Tolerates others in class"))
		self._TCTRL_atc_classes = wx.TextCtrl(self, wx.ID_ANY, "")
		self._PRW_reaction = cPhraseWheel(self, wx.ID_ANY, "")
		self._RBTN_type_allergy = wx.RadioButton(self, wx.ID_ANY, _("&Allergy"), style=wx.RB_GROUP)
		self._RBTN_type_sensitivity = wx.RadioButton(self, wx.ID_ANY, _("&Sensitivity"))
		self._ChBOX_definite = wx.CheckBox(self, wx.ID_ANY, _("&Definite"))

		self.__set_properties()
		self.__do_layout()
	def __init__(self, *args, **kwds):

		from Gnumed.wxpython.gmMeasurementWidgets import cMeasurementTypePhraseWheel
		from Gnumed.wxpython.gmMeasurementWidgets import cUnitPhraseWheel
		from Gnumed.wxpython.gmMeasurementWidgets import cTestResultIndicatorPhraseWheel
		from Gnumed.wxpython.gmEMRStructWidgets import cEpisodeSelectionPhraseWheel
		from Gnumed.wxpython.gmDateTimeInput import cFuzzyTimestampInput
		from Gnumed.wxpython.gmStaffWidgets import cProviderPhraseWheel

		# begin wxGlade: wxgMeasurementEditAreaPnl.__init__
		kwds["style"] = wx.NO_BORDER | wx.TAB_TRAVERSAL
		wx.Panel.__init__(self, *args, **kwds)
		self._PRW_test = cMeasurementTypePhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._BTN_test_info = wx.Button(self, wx.ID_ANY, _("Info"), style=wx.BU_EXACTFIT)
		self._TCTRL_loinc = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_READONLY | wx.NO_BORDER)
		self._TCTRL_previous_value = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_READONLY | wx.NO_BORDER)
		self._TCTRL_result = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._PRW_units = cUnitPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._PRW_abnormality_indicator = cTestResultIndicatorPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._DPRW_evaluated = cFuzzyTimestampInput(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._TCTRL_note_test_org = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._PRW_intended_reviewer = cProviderPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._PRW_problem = cEpisodeSelectionPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._BTN_manage_episodes = wx.Button(self, wx.ID_ANY, _("&Manage"), style=wx.BU_EXACTFIT)
		self._TCTRL_narrative = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._CHBOX_review = wx.CheckBox(self, wx.ID_ANY, _("&Sign"))
		self._CHBOX_abnormal = wx.CheckBox(self, wx.ID_ANY, _("&Abnormal"))
		self._CHBOX_relevant = wx.CheckBox(self, wx.ID_ANY, _("&Relevant"))
		self._TCTRL_review_comment = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._TCTRL_normal_min = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._TCTRL_normal_max = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._TCTRL_normal_range = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._TCTRL_target_min = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._TCTRL_target_max = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._TCTRL_target_range = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER)
		self._TCTRL_norm_ref_group = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER)

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_BUTTON, self._on_test_info_button_pressed, self._BTN_test_info)
		self.Bind(wx.EVT_BUTTON, self._on_manage_episodes_button_pressed, self._BTN_manage_episodes)
		self.Bind(wx.EVT_CHECKBOX, self._on_review_box_checked, self._CHBOX_review)
Exemple #13
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgMeasurementEditAreaPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
		wx.Panel.__init__(self, *args, **kwds)
		self.SetSize((640, 525))
		from Gnumed.wxpython.gmMeasurementWidgets import cMeasurementTypePhraseWheel
		self._PRW_test = cMeasurementTypePhraseWheel(self, wx.ID_ANY, "")
		self._BTN_test_info = wx.Button(self, wx.ID_ANY, _("Info"), style=wx.BU_EXACTFIT)
		self._TCTRL_loinc = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_READONLY)
		self._TCTRL_previous_value = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_READONLY)
		self._TCTRL_result = wx.TextCtrl(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmMeasurementWidgets import cUnitPhaseWheel
		self._PRW_units = cUnitPhraseWheel(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmMeasurementWidgets import cTestResultIndicatorPhraseWheel
		self._PRW_abnormality_indicator = cTestResultIndicatorPhraseWheel(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmDateTimeInput import cFuzzyTimestampInput
		self._DPRW_evaluated = cFuzzyTimestampInput(self, wx.ID_ANY, "")
		self._TCTRL_note_test_org = wx.TextCtrl(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmStaffWidgets import cProviderPhraseWheel
		self._PRW_intended_reviewer = cProviderPhraseWheel(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmEMRStructWidgets import cEpisodeSelectionPhraseWheel
		self._PRW_problem = cEpisodeSelectionPhraseWheel(self, wx.ID_ANY, "")
		self._BTN_manage_episodes = wx.Button(self, wx.ID_ANY, _("&Manage"), style=wx.BU_EXACTFIT)
		self._TCTRL_narrative = wx.TextCtrl(self, wx.ID_ANY, "")
		self._CHBOX_review = wx.CheckBox(self, wx.ID_ANY, _("&Sign"))
		self._CHBOX_abnormal = wx.CheckBox(self, wx.ID_ANY, _("&Abnormal"))
		self._CHBOX_relevant = wx.CheckBox(self, wx.ID_ANY, _("&Relevant"))
		self._TCTRL_review_comment = wx.TextCtrl(self, wx.ID_ANY, "")
		self._TCTRL_normal_min = wx.TextCtrl(self, wx.ID_ANY, "")
		self._TCTRL_normal_max = wx.TextCtrl(self, wx.ID_ANY, "")
		self._TCTRL_normal_range = wx.TextCtrl(self, wx.ID_ANY, "")
		self._TCTRL_target_min = wx.TextCtrl(self, wx.ID_ANY, "")
		self._TCTRL_target_max = wx.TextCtrl(self, wx.ID_ANY, "")
		self._TCTRL_target_range = wx.TextCtrl(self, wx.ID_ANY, "")
		self._TCTRL_norm_ref_group = wx.TextCtrl(self, wx.ID_ANY, "")

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_BUTTON, self._on_test_info_button_pressed, self._BTN_test_info)
		self.Bind(wx.EVT_BUTTON, self._on_manage_episodes_button_pressed, self._BTN_manage_episodes)
		self.Bind(wx.EVT_CHECKBOX, self._on_review_box_checked, self._CHBOX_review)
Exemple #14
0
    def __init__(self, *args, **kwds):

        from Gnumed.wxpython import gmPhraseWheel, gmDateTimeInput

        # begin wxGlade: wxgAllergyEditAreaPnl.__init__
        kwds["style"] = wx.NO_BORDER | wx.TAB_TRAVERSAL
        wx.ScrolledWindow.__init__(self, *args, **kwds)
        self._DPRW_date_noted = gmDateTimeInput.cFuzzyTimestampInput(self, -1, "", style=wx.NO_BORDER)
        self._PRW_trigger = gmPhraseWheel.cPhraseWheel(self, -1, "", style=wx.NO_BORDER)
        self._TCTRL_brand_name = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
        self._TCTRL_generic = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
        self._ChBOX_generic_specific = wx.CheckBox(self, -1, _("&Tolerates others in class"))
        self._TCTRL_atc_classes = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
        self._PRW_reaction = gmPhraseWheel.cPhraseWheel(self, -1, "", style=wx.NO_BORDER)
        self._RBTN_type_allergy = wx.RadioButton(self, -1, _("&Allergy"), style=wx.RB_GROUP)
        self._RBTN_type_sensitivity = wx.RadioButton(self, -1, _("&Sensitivity"))
        self._ChBOX_definite = wx.CheckBox(self, -1, _("&Definite"))

        self.__set_properties()
        self.__do_layout()
Exemple #15
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgReviewDocPartDlg.__init__
		kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_DIALOG_STYLE | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX | wx.RESIZE_BORDER
		wx.Dialog.__init__(self, *args, **kwds)
		from Gnumed.wxpython.gmEMRStructWidgets import cEpisodeSelectionPhraseWheel
		self._PhWheel_episode = cEpisodeSelectionPhraseWheel(self, wx.ID_ANY, style=wx.NO_BORDER)
		from Gnumed.wxpython.gmDocumentWidgets import cDocumentTypeSelectionPhraseWheel
		self._PhWheel_doc_type = cDocumentTypeSelectionPhraseWheel(self, wx.ID_ANY, style=wx.NO_BORDER)
		from Gnumed.wxpython.gmOrganizationWidgets import cOrgUnitPhraseWheel
		self._PRW_org = cOrgUnitPhraseWheel(self, wx.ID_ANY, "")
		self._RBTN_org_is_source = wx.RadioButton(self, wx.ID_ANY, _("Source"))
		self._RBTN_org_is_receiver = wx.RadioButton(self, wx.ID_ANY, _("Receiver"))
		from Gnumed.wxpython.gmHospitalStayWidgets import cHospitalStayPhraseWheel
		self._PRW_hospital_stay = cHospitalStayPhraseWheel(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmDocumentWidgets import cDocumentCommentPhraseWheel
		self._PRW_doc_comment = cDocumentCommentPhraseWheel(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmDateTimeInput import cFuzzyTimestampInput
		self._PhWheel_doc_date = cFuzzyTimestampInput(self, wx.ID_ANY, style=wx.NO_BORDER)
		self._TCTRL_reference = wx.TextCtrl(self, wx.ID_ANY, "")
		self._TCTRL_filename = wx.TextCtrl(self, wx.ID_ANY, "")
		self._SPINCTRL_seq_idx = wx.SpinCtrl(self, wx.ID_ANY, "", min=0, max=10000, style=wx.SP_ARROW_KEYS | wx.SP_WRAP | wx.TE_AUTO_URL | wx.TE_NOHIDESEL)
		self._LCTRL_existing_reviews = wx.ListCtrl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_ALIGN_LEFT | wx.LC_HRULES | wx.LC_REPORT | wx.LC_SINGLE_SEL | wx.LC_VRULES)
		self._TCTRL_responsible = wx.TextCtrl(self, wx.ID_ANY, _("(you are/are not the primary reviewer)"), style=wx.TE_READONLY)
		self._ChBOX_review = wx.CheckBox(self, wx.ID_ANY, _("review document"))
		self._ChBOX_abnormal = wx.CheckBox(self, wx.ID_ANY, _("technically abnormal"))
		self._ChBOX_responsible = wx.CheckBox(self, wx.ID_ANY, _("take over responsibility"))
		self._ChBOX_relevant = wx.CheckBox(self, wx.ID_ANY, _("clinically relevant"))
		self._ChBOX_sign_all_pages = wx.CheckBox(self, wx.ID_ANY, _("sign all pages"))
		self._BTN_save = wx.Button(self, wx.ID_OK, _("Save"))
		self._BTN_cancel = wx.Button(self, wx.ID_CANCEL, _("Cancel"))

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_CHECKBOX, self._on_reviewed_box_checked, self._ChBOX_review)
		self.Bind(wx.EVT_BUTTON, self._on_save_button_pressed, id=wx.ID_OK)
Exemple #16
0
    def __init__(self, *args, **kwds):

        from Gnumed.wxpython.gmNarrativeWidgets import cSoapNoteInputNotebook
        from Gnumed.wxpython.gmDateTimeInput import cFuzzyTimestampInput
        from Gnumed.wxpython.gmEncounterWidgets import cEncounterTypePhraseWheel
        from Gnumed.wxpython import gmListWidgets

        # begin wxGlade: wxgCardiacDevicePluginPnl.__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
                                                | wx.SP_PERMIT_UNSPLIT)
        self.__splitter_main_right_pnl = wx.Panel(self._splitter_main,
                                                  -1,
                                                  style=wx.NO_BORDER)
        self._splitter_right = wx.SplitterWindow(
            self.__splitter_main_right_pnl,
            -1,
            style=wx.SP_3D | wx.SP_BORDER | wx.SP_PERMIT_UNSPLIT)
        self.__splitter_right_bottom_pnl = wx.ScrolledWindow(
            self._splitter_right, -1, style=wx.NO_BORDER)
        self.__splitter_right_top_pnl = wx.Panel(self._splitter_right,
                                                 -1,
                                                 style=wx.NO_BORDER)
        self._NB_device_editors = cSoapNoteInputNotebook(
            self.__splitter_right_top_pnl, -1, style=0)
        self.__splitter_main_left_pnl = wx.Panel(self._splitter_main,
                                                 -1,
                                                 style=wx.NO_BORDER
                                                 | wx.FULL_REPAINT_ON_RESIZE)
        self._splitter_left = wx.SplitterWindow(self.__splitter_main_left_pnl,
                                                -1,
                                                style=wx.SP_3D | wx.SP_BORDER)
        self.__splitter_left_bottom_pnl = wx.Panel(self._splitter_left,
                                                   -1,
                                                   style=wx.NO_BORDER)
        self.__splitter_left_top_pnl = wx.Panel(self._splitter_left, -1)
        self.__szr_bottom_left_staticbox = wx.StaticBox(
            self.__splitter_left_bottom_pnl, -1, _("Previous Encounters"))
        self.__szr_top_right_staticbox = wx.StaticBox(
            self.__splitter_right_top_pnl, -1,
            _("New notes in current encounter"))
        self.__szr_lower_bottom_right_staticbox = wx.StaticBox(
            self.__splitter_right_bottom_pnl, -1, _("Tips and Hints"))
        self.__szr_top_left_staticbox = wx.StaticBox(
            self.__splitter_left_top_pnl, -1, _("Active Device Settings"))
        self._TCTRL_current_status = wx.TextCtrl(
            self.__splitter_left_top_pnl,
            -1,
            _("In this area GNUmed will place the status of all cardiac devices and device parts. There can be more than one device at a time\n\nIt potentially looks like this\n----------------------------------------------------------------------------------------------------------------\nDevice: SJM Atlas DR (active)     Battery: 2.4V (MOL)      Implanted:  Feb 09 2008\n\nRA: Medtronic Sprint fidelis (active, flaky, replacement)             Implanted: Feb 09 2008\nSensing: 2 (1.5) mV    Threshold: 0.7/0.5 (1/0.4) V/ms       Impedance: 800 (900) Ohm\n\nRV: Medtronic Sprint fidelis (active, flaky, replacement)             Implanted: Feb 09 2008\nSensing: 7 (15) mV    Threshold: 0.7/0.5 (1/0.4) V/ms       Impedance: 800 (900) Ohm\n\nLV: Medtronic Sprint fidelis (active, flaky, Y-connector)             Implanted: Feb 09 2008\nSensing: 7 ( ?) mV    Threshold: 1/1.5 (1/1) V/ms       Impedance: 800 (900) Ohm\n----------------------------------------------------------------------------------------------------------------\nDevice: Medtronic Relia SR (inactive)     Batttery 2.1V (EOL)   Implanted: Jan 23 2000\n\nDevice: Medtronic Kappa SR (explanted)     Batttery 2.1V (EOL)   Explanted: Jan 23 2000 (Jan 23 1995)\n-----------------------------------------------------------------------------------------------------------------\nRA Lead: Medtronic ? (inactive, capped)             Implanted: Jan 23 2000\nRV Lead: Medtronic ? (explanted)                        Explanted: Feb 09 2008"
              ),
            style=wx.TE_MULTILINE | wx.TE_READONLY | wx.TE_WORDWRAP
            | wx.NO_BORDER)
        self._LCTRL_pevious_encounters = gmListWidgets.cReportListCtrl(
            self.__splitter_left_bottom_pnl,
            -1,
            style=wx.LC_REPORT | wx.NO_BORDER | wx.FULL_REPAINT_ON_RESIZE)
        self._PRW_encounter_type = cEncounterTypePhraseWheel(
            self.__splitter_right_top_pnl, -1, "", style=wx.NO_BORDER)
        self._PRW_encounter_start = cFuzzyTimestampInput(
            self.__splitter_right_top_pnl, -1, "", style=wx.NO_BORDER)
        self._PRW_encounter_end = cFuzzyTimestampInput(
            self.__splitter_right_top_pnl, -1, "", style=wx.NO_BORDER)
        self._BTN_new_encounter = wx.Button(self.__splitter_right_top_pnl,
                                            -1,
                                            _("New"),
                                            style=wx.BU_EXACTFIT)
        self._TCTRL_rfe = wx.TextCtrl(self.__splitter_right_top_pnl,
                                      -1,
                                      "",
                                      style=wx.NO_BORDER)
        self.notebook_1_pane_1 = wx.Panel(self._NB_device_editors, -1)
        self._TCTRL_aoe = wx.TextCtrl(self.__splitter_right_top_pnl,
                                      -1,
                                      "",
                                      style=wx.NO_BORDER)
        self._TCTRL_ekg = wx.TextCtrl(self.__splitter_right_top_pnl,
                                      -1,
                                      "",
                                      style=wx.NO_BORDER)
        self._BTN_save_all = wx.Button(self.__splitter_right_top_pnl,
                                       -1,
                                       _("&All"),
                                       style=wx.BU_EXACTFIT)
        self._BTN_save_encounter = wx.Button(self.__splitter_right_top_pnl,
                                             -1,
                                             _("&Encounter"),
                                             style=wx.BU_EXACTFIT)
        self._BTN_save_note = wx.Button(self.__splitter_right_top_pnl,
                                        -1,
                                        _("&Note"),
                                        style=wx.BU_EXACTFIT)
        self._BTN_new_editor = wx.Button(self.__splitter_right_top_pnl,
                                         -1,
                                         _("&New"),
                                         style=wx.BU_EXACTFIT)
        self._BTN_clear_editor = wx.Button(self.__splitter_right_top_pnl,
                                           -1,
                                           _("&Clear"),
                                           style=wx.BU_EXACTFIT)
        self._BTN_discard_editor = wx.Button(self.__splitter_right_top_pnl,
                                             -1,
                                             _("&Discard"),
                                             style=wx.BU_EXACTFIT)
        self._lbl_hints = wx.StaticText(
            self.__splitter_right_bottom_pnl, -1,
            _("In this area GNUmed will place hints and tips\nrelated to the current interrogation note and patient.\n\nThose hints will be derived from a variety of\nsources such as classifications (ICD, ...), \nsafety warnings, online resources (Google\nand friends), device databases, etc.\n\nEventually, those hints will be active in that you\ncan click on them and be taken to the relevant\ninformation/an appropriate action be performed."
              ))

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self._on_problem_activated,
                  self._LCTRL_pevious_encounters)
        self.Bind(wx.EVT_BUTTON, self._on_new_encounter_button_pressed,
                  self._BTN_new_encounter)
        self.Bind(wx.EVT_BUTTON, self._on_save_all_button_pressed,
                  self._BTN_save_all)
        self.Bind(wx.EVT_BUTTON, self._on_save_encounter_button_pressed,
                  self._BTN_save_encounter)
        self.Bind(wx.EVT_BUTTON, self._on_save_note_button_pressed,
                  self._BTN_save_note)
        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)
Exemple #17
0
    def __init__(self, *args, **kwds):

        from Gnumed.wxpython import gmDocumentWidgets
        from Gnumed.wxpython import gmPhraseWheel
        from Gnumed.wxpython import gmDateTimeInput
        from Gnumed.wxpython import gmEMRStructWidgets
        from Gnumed.wxpython import gmOrganizationWidgets
        from Gnumed.wxpython import gmListWidgets

        # begin wxGlade: wxgScanIdxPnl.__init__
        kwds["style"] = wx.TAB_TRAVERSAL
        wx.Panel.__init__(self, *args, **kwds)
        self.__btn_scan = wx.Button(self, wx.ID_ANY, _("&Scan page(s)"))
        self.__btn_load = wx.Button(self, wx.ID_ANY, _("Pick &file(s)"))
        self.__btn_clipboard = wx.Button(self, wx.ID_ANY, _("&Clipboard"))
        self._PhWheel_doc_type = gmDocumentWidgets.cDocumentTypeSelectionPhraseWheel(
            self, wx.ID_ANY)
        self._PhWheel_doc_date = gmDateTimeInput.cFuzzyTimestampInput(
            self, wx.ID_ANY)
        self._PhWheel_episode = gmEMRStructWidgets.cEpisodeSelectionPhraseWheel(
            self, wx.ID_ANY)
        self._PhWheel_source = gmOrganizationWidgets.cOrgUnitPhraseWheel(
            self, wx.ID_ANY)
        self._RBTN_org_is_source = wx.RadioButton(self, wx.ID_ANY, _("Source"))
        self._RBTN_org_is_receiver = wx.RadioButton(self, wx.ID_ANY,
                                                    _("Receiver"))
        self._PRW_doc_comment = gmDocumentWidgets.cDocumentCommentPhraseWheel(
            self, wx.ID_ANY, "")
        self.__lbl_reviewer = wx.StaticText(self, wx.ID_ANY,
                                            _("Intended reviewer:"))
        self._PhWheel_reviewer = gmPhraseWheel.cPhraseWheel(self, wx.ID_ANY)
        self._ChBOX_reviewed = wx.CheckBox(self, wx.ID_ANY,
                                           _("&review and sign"))
        self._ChBOX_abnormal = wx.CheckBox(self, wx.ID_ANY,
                                           _("&technically abnormal"))
        self._ChBOX_relevant = wx.CheckBox(self, wx.ID_ANY,
                                           _("&clinically relevant"))
        self._TBOX_description = wx.TextCtrl(
            self,
            wx.ID_ANY,
            "",
            style=wx.TE_CHARWRAP | wx.TE_MULTILINE | wx.TE_WORDWRAP)
        self._LCTRL_doc_pages = gmListWidgets.cReportListCtrl(
            self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_REPORT)
        self.__btn_show_page = wx.Button(self, wx.ID_ANY, _("Show"))
        self.__btn_del_page = wx.Button(self, wx.ID_ANY, _("Remove part"))
        self.__btn_save = wx.Button(self, wx.ID_ANY, _("Save"))
        self.__btn_discard = wx.Button(self, wx.ID_ANY, _("Discard"))
        self._TCTRL_metadata = wx.TextCtrl(self,
                                           wx.ID_ANY,
                                           "",
                                           style=wx.TE_MULTILINE
                                           | wx.TE_READONLY | wx.TE_WORDWRAP)

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self._scan_btn_pressed, self.__btn_scan)
        self.Bind(wx.EVT_BUTTON, self._load_btn_pressed, self.__btn_load)
        self.Bind(wx.EVT_BUTTON, self._clipboard_btn_pressed,
                  self.__btn_clipboard)
        self.Bind(wx.EVT_CHECKBOX, self._reviewed_box_checked,
                  self._ChBOX_reviewed)
        self.Bind(wx.EVT_LIST_ITEM_SELECTED, self._on_part_selected,
                  self._LCTRL_doc_pages)
        self.Bind(wx.EVT_BUTTON, self._show_btn_pressed, self.__btn_show_page)
        self.Bind(wx.EVT_BUTTON, self._del_btn_pressed, self.__btn_del_page)
        self.Bind(wx.EVT_BUTTON, self._save_btn_pressed, self.__btn_save)
        self.Bind(wx.EVT_BUTTON, self._startover_btn_pressed,
                  self.__btn_discard)
Exemple #18
0
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxgReviewDocPartDlg.__init__
        kwds["style"] = kwds.get(
            "style", 0
        ) | wx.DEFAULT_DIALOG_STYLE | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX | wx.RESIZE_BORDER
        wx.Dialog.__init__(self, *args, **kwds)
        from Gnumed.wxpython.gmEMRStructWidgets import cEpisodeSelectionPhraseWheel
        self._PhWheel_episode = cEpisodeSelectionPhraseWheel(
            self, wx.ID_ANY, style=wx.NO_BORDER)
        from Gnumed.wxpython.gmDocumentWidgets import cDocumentTypeSelectionPhraseWheel
        self._PhWheel_doc_type = cDocumentTypeSelectionPhraseWheel(
            self, wx.ID_ANY, style=wx.NO_BORDER)
        from Gnumed.wxpython.gmOrganizationWidgets import cOrgUnitPhraseWheel
        self._PRW_org = cOrgUnitPhraseWheel(self, wx.ID_ANY, "")
        self._RBTN_org_is_source = wx.RadioButton(self, wx.ID_ANY, _("Source"))
        self._RBTN_org_is_receiver = wx.RadioButton(self, wx.ID_ANY,
                                                    _("Receiver"))
        from Gnumed.wxpython.gmHospitalStayWidgets import cHospitalStayPhraseWheel
        self._PRW_hospital_stay = cHospitalStayPhraseWheel(self, wx.ID_ANY, "")
        from Gnumed.wxpython.gmDocumentWidgets import cDocumentCommentPhraseWheel
        self._PRW_doc_comment = cDocumentCommentPhraseWheel(
            self, wx.ID_ANY, "")
        from Gnumed.wxpython.gmDateTimeInput import cFuzzyTimestampInput
        self._PhWheel_doc_date = cFuzzyTimestampInput(self,
                                                      wx.ID_ANY,
                                                      style=wx.NO_BORDER)
        self._TCTRL_reference = wx.TextCtrl(self, wx.ID_ANY, "")
        self._TCTRL_filename = wx.TextCtrl(self, wx.ID_ANY, "")
        self._SPINCTRL_seq_idx = wx.SpinCtrl(self,
                                             wx.ID_ANY,
                                             "",
                                             min=0,
                                             max=10000,
                                             style=wx.SP_ARROW_KEYS
                                             | wx.SP_WRAP | wx.TE_AUTO_URL
                                             | wx.TE_NOHIDESEL)
        self._LCTRL_existing_reviews = wx.ListCtrl(
            self,
            wx.ID_ANY,
            style=wx.BORDER_NONE | wx.LC_ALIGN_LEFT | wx.LC_HRULES
            | wx.LC_REPORT | wx.LC_SINGLE_SEL | wx.LC_VRULES)
        self._TCTRL_responsible = wx.TextCtrl(
            self,
            wx.ID_ANY,
            _("(you are/are not the primary reviewer)"),
            style=wx.TE_READONLY)
        self._ChBOX_review = wx.CheckBox(self, wx.ID_ANY, _("review document"))
        self._ChBOX_abnormal = wx.CheckBox(self, wx.ID_ANY,
                                           _("technically abnormal"))
        self._ChBOX_responsible = wx.CheckBox(self, wx.ID_ANY,
                                              _("take over responsibility"))
        self._ChBOX_relevant = wx.CheckBox(self, wx.ID_ANY,
                                           _("clinically relevant"))
        self._ChBOX_sign_all_pages = wx.CheckBox(self, wx.ID_ANY,
                                                 _("sign all pages"))
        self._BTN_save = wx.Button(self, wx.ID_OK, _("Save"))
        self._BTN_cancel = wx.Button(self, wx.ID_CANCEL, _("Cancel"))

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_CHECKBOX, self._on_reviewed_box_checked,
                  self._ChBOX_review)
        self.Bind(wx.EVT_BUTTON, self._on_save_button_pressed, id=wx.ID_OK)