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