Package Gnumed :: Package wxGladeWidgets :: Module wxgEncounterEditAreaPnl
[frames] | no frames]

Source Code for Module Gnumed.wxGladeWidgets.wxgEncounterEditAreaPnl

 1  #!/usr/bin/env python 
 2  # -*- coding: utf8 -*- 
 3  # generated by wxGlade 0.4.1 on Tue Dec 19 18:18:37 2006 
 4   
 5  import wx 
 6   
7 -class wxgEncounterEditAreaPnl(wx.ScrolledWindow):
8 - def __init__(self, *args, **kwds):
9 10 from Gnumed.wxpython import gmEMRStructWidgets, gmListWidgets, gmDateTimeInput 11 from Gnumed.wxpython.gmCodingWidgets import cGenericCodesPhraseWheel 12 13 # begin wxGlade: wxgEncounterEditAreaPnl.__init__ 14 kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL 15 wx.ScrolledWindow.__init__(self, *args, **kwds) 16 self._LBL_patient = wx.StaticText(self, -1, "") 17 self._LBL_instructions = wx.StaticText(self, -1, _("Edit the details for the encounter below:")) 18 self._PRW_encounter_type = gmEMRStructWidgets.cEncounterTypePhraseWheel(self, -1, "", style=wx.NO_BORDER) 19 self._PRW_start = gmDateTimeInput.cFuzzyTimestampInput(self, -1, "", style=wx.NO_BORDER) 20 self._PRW_end = gmDateTimeInput.cFuzzyTimestampInput(self, -1, "", style=wx.NO_BORDER) 21 self._TCTRL_rfe = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER) 22 self._PRW_rfe_codes = cGenericCodesPhraseWheel(self, -1, "", style=wx.NO_BORDER) 23 self._TCTRL_aoe = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER) 24 self._PRW_aoe_codes = cGenericCodesPhraseWheel(self, -1, "", style=wx.NO_BORDER) 25 26 self.__set_properties() 27 self.__do_layout()
28 # end wxGlade 29
30 - def __set_properties(self):
31 # begin wxGlade: wxgEncounterEditAreaPnl.__set_properties 32 self.SetScrollRate(10, 10) 33 self._PRW_encounter_type.SetToolTipString(_("Select the type of encounter.")) 34 self._TCTRL_rfe.SetToolTipString(_("Enter the Reason For Encounter here. This is the patient's initial request or purpose of visit which led to the encounter.")) 35 self._PRW_rfe_codes.SetToolTipString(_("Codes relevant to the Reason for Encounter.")) 36 self._TCTRL_aoe.SetToolTipString(_("Enter the Encounter Summary here. This is your final assessment of the total encounter across all relevant episodes.")) 37 self._PRW_aoe_codes.SetToolTipString(_("Codes relevant to the Assessment of Encounter."))
38 # end wxGlade 39
40 - def __do_layout(self):
41 # begin wxGlade: wxgEncounterEditAreaPnl.__do_layout 42 __szr_main = wx.BoxSizer(wx.VERTICAL) 43 __gszr_encounter_details = wx.FlexGridSizer(7, 2, 2, 5) 44 __szr_patient = wx.BoxSizer(wx.HORIZONTAL) 45 __lbl_patient = wx.StaticText(self, -1, _("Patient:")) 46 __szr_patient.Add(__lbl_patient, 0, wx.RIGHT|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 10) 47 __szr_patient.Add(self._LBL_patient, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 1) 48 __szr_main.Add(__szr_patient, 0, wx.EXPAND, 0) 49 __szr_main.Add(self._LBL_instructions, 0, wx.TOP|wx.EXPAND, 3) 50 __lbl_type = wx.StaticText(self, -1, _("Type")) 51 __gszr_encounter_details.Add(__lbl_type, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 52 __gszr_encounter_details.Add(self._PRW_encounter_type, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 53 __lbl_start = wx.StaticText(self, -1, _("Started")) 54 __gszr_encounter_details.Add(__lbl_start, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 55 __gszr_encounter_details.Add(self._PRW_start, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 56 __lbl_end = wx.StaticText(self, -1, _("Ended")) 57 __gszr_encounter_details.Add(__lbl_end, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 58 __gszr_encounter_details.Add(self._PRW_end, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 59 __lbl_rfe = wx.StaticText(self, -1, _("Purpose")) 60 __gszr_encounter_details.Add(__lbl_rfe, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 61 __gszr_encounter_details.Add(self._TCTRL_rfe, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 62 __lbl_codes_rfe = wx.StaticText(self, -1, _("Codes")) 63 __gszr_encounter_details.Add(__lbl_codes_rfe, 0, wx.ALIGN_CENTER_VERTICAL, 0) 64 __gszr_encounter_details.Add(self._PRW_rfe_codes, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 65 __lbl_aoe = wx.StaticText(self, -1, _("Summary")) 66 __gszr_encounter_details.Add(__lbl_aoe, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 67 __gszr_encounter_details.Add(self._TCTRL_aoe, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 68 __lbl_codes_aoe = wx.StaticText(self, -1, _("Codes")) 69 __gszr_encounter_details.Add(__lbl_codes_aoe, 0, wx.ALIGN_CENTER_VERTICAL, 0) 70 __gszr_encounter_details.Add(self._PRW_aoe_codes, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 71 __gszr_encounter_details.AddGrowableCol(1) 72 __szr_main.Add(__gszr_encounter_details, 0, wx.TOP|wx.EXPAND, 3) 73 self.SetSizer(__szr_main) 74 __szr_main.Fit(self)
75 # end wxGlade 76 77 # end of class wxgEncounterEditAreaPnl 78