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