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

Source Code for Module Gnumed.wxGladeWidgets.wxgEncounterEditAreaPnl

 1  # -*- coding: UTF-8 -*- 
 2  # 
 3  # generated by wxGlade 
 4  # 
 5   
 6  import wx 
 7   
 8  # begin wxGlade: dependencies 
 9  import gettext 
10  # end wxGlade 
11   
12  # begin wxGlade: extracode 
13  # end wxGlade 
14   
15   
16 -class wxgEncounterEditAreaPnl(wx.ScrolledWindow):
17 - def __init__(self, *args, **kwds):
18 # begin wxGlade: wxgEncounterEditAreaPnl.__init__ 19 kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL 20 wx.ScrolledWindow.__init__(self, *args, **kwds) 21 self._LBL_instructions = wx.StaticText(self, wx.ID_ANY, _("Edit the details for the encounter below:")) 22 self._LBL_patient = wx.StaticText(self, wx.ID_ANY, "") 23 from Gnumed.wxpython.gmEncounterWidgets import cEncounterTypePhraseWheel 24 self._PRW_encounter_type = cEncounterTypePhraseWheel(self, wx.ID_ANY, "") 25 from Gnumed.wxpython.gmPraxisWidgets import cPraxisBranchPhraseWheel 26 self._PRW_location = cPraxisBranchPhraseWheel(self, wx.ID_ANY, "") 27 from Gnumed.wxpython.gmDateTimeInput import cFuzzyTimestampInput 28 self._PRW_start = cFuzzyTimestampInput(self, wx.ID_ANY, "") 29 self._PRW_end = cFuzzyTimestampInput(self, wx.ID_ANY, "") 30 self._TCTRL_rfe = wx.TextCtrl(self, wx.ID_ANY, "") 31 from Gnumed.wxpython.gmCodingWidgets import cGenericCodesPhraseWheel 32 self._PRW_rfe_codes = cGenericCodesPhraseWheel(self, wx.ID_ANY, "") 33 self._TCTRL_aoe = wx.TextCtrl(self, wx.ID_ANY, "") 34 self._PRW_aoe_codes = cGenericCodesPhraseWheel(self, wx.ID_ANY, "") 35 36 self.__set_properties() 37 self.__do_layout()
38 # end wxGlade 39
40 - def __set_properties(self):
41 # begin wxGlade: wxgEncounterEditAreaPnl.__set_properties 42 self.SetScrollRate(10, 10) 43 self._LBL_patient.SetFont(wx.Font(12, wx.DEFAULT, wx.NORMAL, wx.BOLD, 0, "")) 44 self._PRW_encounter_type.SetToolTip(_("Select the type of encounter.")) 45 self._PRW_location.SetToolTip(_("Select the praxis branch where this encounter took place.")) 46 self._TCTRL_rfe.SetToolTip(_("Enter the Reason For Encounter here. This is the patient's initial request or purpose of visit which led to the encounter.")) 47 self._PRW_rfe_codes.SetToolTip(_("Codes relevant to the Reason for Encounter\nseparated by \";\".")) 48 self._TCTRL_aoe.SetToolTip(_("Enter the Encounter Summary here. This is your final assessment of the total encounter across all relevant episodes.")) 49 self._PRW_aoe_codes.SetToolTip(_("Codes relevant to the Assessment of Encounter\nseparated by \";\"."))
50 # end wxGlade 51
52 - def __do_layout(self):
53 # begin wxGlade: wxgEncounterEditAreaPnl.__do_layout 54 __szr_main = wx.BoxSizer(wx.VERTICAL) 55 __gszr_encounter_details = wx.FlexGridSizer(9, 2, 2, 5) 56 __szr_patient = wx.BoxSizer(wx.HORIZONTAL) 57 __szr_main.Add(__szr_patient, 0, wx.EXPAND, 0) 58 __szr_main.Add(self._LBL_instructions, 0, wx.EXPAND | wx.TOP, 3) 59 __lbl_patient = wx.StaticText(self, wx.ID_ANY, _("Patient")) 60 __gszr_encounter_details.Add(__lbl_patient, 0, wx.ALIGN_CENTER_VERTICAL, 10) 61 __gszr_encounter_details.Add(self._LBL_patient, 0, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0) 62 __lbl_type = wx.StaticText(self, wx.ID_ANY, _("Type")) 63 __gszr_encounter_details.Add(__lbl_type, 0, wx.ALIGN_CENTER_VERTICAL, 0) 64 __gszr_encounter_details.Add(self._PRW_encounter_type, 0, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0) 65 __lbl_location = wx.StaticText(self, wx.ID_ANY, _("Location")) 66 __gszr_encounter_details.Add(__lbl_location, 0, wx.ALIGN_CENTER_VERTICAL, 0) 67 __gszr_encounter_details.Add(self._PRW_location, 0, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0) 68 __lbl_start = wx.StaticText(self, wx.ID_ANY, _("Started")) 69 __gszr_encounter_details.Add(__lbl_start, 0, wx.ALIGN_CENTER_VERTICAL, 0) 70 __gszr_encounter_details.Add(self._PRW_start, 0, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0) 71 __lbl_end = wx.StaticText(self, wx.ID_ANY, _("Ended")) 72 __gszr_encounter_details.Add(__lbl_end, 0, wx.ALIGN_CENTER_VERTICAL, 0) 73 __gszr_encounter_details.Add(self._PRW_end, 0, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0) 74 __lbl_rfe = wx.StaticText(self, wx.ID_ANY, _("Purpose")) 75 __gszr_encounter_details.Add(__lbl_rfe, 0, wx.ALIGN_CENTER_VERTICAL, 0) 76 __gszr_encounter_details.Add(self._TCTRL_rfe, 0, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0) 77 __lbl_codes_rfe = wx.StaticText(self, wx.ID_ANY, _("Codes")) 78 __gszr_encounter_details.Add(__lbl_codes_rfe, 0, wx.ALIGN_CENTER_VERTICAL, 0) 79 __gszr_encounter_details.Add(self._PRW_rfe_codes, 0, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0) 80 __lbl_aoe = wx.StaticText(self, wx.ID_ANY, _("Summary")) 81 __gszr_encounter_details.Add(__lbl_aoe, 0, wx.ALIGN_CENTER_VERTICAL, 0) 82 __gszr_encounter_details.Add(self._TCTRL_aoe, 0, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0) 83 __lbl_codes_aoe = wx.StaticText(self, wx.ID_ANY, _("Codes")) 84 __gszr_encounter_details.Add(__lbl_codes_aoe, 0, wx.ALIGN_CENTER_VERTICAL, 0) 85 __gszr_encounter_details.Add(self._PRW_aoe_codes, 0, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0) 86 __gszr_encounter_details.AddGrowableCol(1) 87 __szr_main.Add(__gszr_encounter_details, 0, wx.EXPAND | wx.TOP, 3) 88 self.SetSizer(__szr_main) 89 __szr_main.Fit(self) 90 self.Layout()
91 # end wxGlade 92 93 # end of class wxgEncounterEditAreaPnl 94