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

# Source Code for Module Gnumed.wxGladeWidgets.wxgNewPatientEAPnl

      1  #!/usr/bin/env python
      2  # -*- coding: utf-8 -*-
      3  # generated by wxGlade 0.6.3 from "/home/ncq/Projekte/gm-cvs/branches/HEAD/gnumed/gnumed/client/wxg/wxgNewPatientEAPnl.wxg"
      4
      5  import wx
      6
      7  # begin wxGlade: extracode
      8  # end wxGlade
      9
     10
     11
     12 -class wxgNewPatientEAPnl(wx.Panel):
     13 -    def __init__(self, *args, **kwds):
     14
     15          from Gnumed.wxpython import gmDemographicsWidgets
     16          from Gnumed.wxpython import gmContactWidgets
     17          from Gnumed.wxpython import gmAddressWidgets
     18          from Gnumed.wxpython import gmDateTimeInput
     19          from Gnumed.wxpython import gmProviderInboxWidgets
     20
     21          # begin wxGlade: wxgNewPatientEAPnl.__init__
     22          kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL
     23          wx.Panel.__init__(self, *args, **kwds)
     24          self._PRW_lastname = gmDemographicsWidgets.cLastnamePhraseWheel(self, -1, "", style=wx.NO_BORDER)
     25          self._PRW_firstnames = gmDemographicsWidgets.cFirstnamePhraseWheel(self, -1, "", style=wx.NO_BORDER)
     26          self._PRW_dob = gmDateTimeInput.cDateInputPhraseWheel(self, -1, "", style=wx.NO_BORDER)
     27          self._TCTRL_tob = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
     28          self._PRW_gender = gmDemographicsWidgets.cGenderSelectionPhraseWheel(self, -1, "", style=wx.NO_BORDER)
     29          self._PRW_nickname = gmDemographicsWidgets.cNicknamePhraseWheel(self, -1, "", style=wx.NO_BORDER)
     30          self._PRW_title = gmDemographicsWidgets.cTitlePhraseWheel(self, -1, "", style=wx.NO_BORDER)
     31          self._PRW_address_searcher = gmAddressWidgets.cAddressPhraseWheel(self, -1, "", style=wx.NO_BORDER)
     32          self._PRW_zip = gmAddressWidgets.cZipcodePhraseWheel(self, -1, "", style=wx.NO_BORDER)
     33          self._PRW_street = gmAddressWidgets.cStreetPhraseWheel(self, -1, "", style=wx.NO_BORDER)
     34          self._TCTRL_number = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
     35          self._TCTRL_unit = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
     36          self._PRW_urb = gmAddressWidgets.cUrbPhraseWheel(self, -1, "", style=wx.NO_BORDER)
     37          self._PRW_region = gmAddressWidgets.cStateSelectionPhraseWheel(self, -1, "", style=wx.NO_BORDER)
     38          self._PRW_country = gmAddressWidgets.cCountryPhraseWheel(self, -1, "", style=wx.NO_BORDER)
     39          self._PRW_type = gmAddressWidgets.cAddressTypePhraseWheel(self, -1, "", style=wx.NO_BORDER)
     40          self._PRW_channel_type = gmContactWidgets.cCommChannelTypePhraseWheel(self, -1, "", style=wx.NO_BORDER)
     41          self._TCTRL_phone = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
     42          self._PRW_primary_provider = gmProviderInboxWidgets.cProviderPhraseWheel(self, -1, "", style=wx.NO_BORDER)
     43          self._PRW_external_id_type = gmDemographicsWidgets.cExternalIDTypePhraseWheel(self, -1, "", style=wx.NO_BORDER)
     44          self._TCTRL_external_id_value = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
     45          self._PRW_occupation = gmDemographicsWidgets.cOccupationPhraseWheel(self, -1, "", style=wx.NO_BORDER)
     46          self._TCTRL_comment = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
     47
     48          self.__set_properties()
     49          self.__do_layout()
     50          # end wxGlade
     51
     52 -    def __set_properties(self):
     53          # begin wxGlade: wxgNewPatientEAPnl.__set_properties
     54          self._PRW_lastname.SetToolTipString(_("Required: lastname (family name)"))
     55          self._PRW_lastname.SetFocus()
     56          self._PRW_firstnames.SetToolTipString(_("Required: first name/given name"))
     57          self._PRW_dob.SetToolTipString(_("Recommended: Date of birth. Your current time zone applies."))
     58          self._TCTRL_tob.SetToolTipString(_("Optional: the time of birth if known"))
     59          self._PRW_gender.SetToolTipString(_("Required: gender"))
     60          self._PRW_nickname.SetToolTipString(_("Optional: nickname (alias, preferred name, call name, warrior name, artist name, pseudonym)"))
     61          self._PRW_title.SetToolTipString(_("Optional: title (academic or honorary). Note that a title applies to a person, not to a particular name of that person (it will be kept even if the name changes)."))
     62          self._PRW_address_searcher.SetToolTipString(_("Optional address search: enter a postal code or street name to select a pre-existing address to auto-fill the fields below.\n\nBy editing the fields you can create a new address as needed."))
     63          self._PRW_zip.SetToolTipString(_("Primary address: zip/postal code\n\nUse '?' if unknown."))
     64          self._PRW_street.SetToolTipString(_("Primary address: name of street"))
     65          self._TCTRL_number.SetToolTipString(_("Primary address: number"))
     66          self._TCTRL_unit.SetToolTipString(_("Primary address: unit within the number (appt. / room / etc)."))
     67          self._PRW_urb.SetToolTipString(_("Primary address: city/town/village/dwelling/..."))
     68          self._PRW_region.SetToolTipString(_("Primary address: state/province/county/..."))
     69          self._PRW_country.SetToolTipString(_("Primary address: country of residence"))
     70          self._PRW_type.SetToolTipString(_("The category under which to store this address."))
     71          self._PRW_channel_type.SetToolTipString(_("The type of the primary communication channel."))
     72          self._TCTRL_phone.SetToolTipString(_("Primary communication channel."))
     73          self._PRW_primary_provider.SetToolTipString(_("Choose the provider the patient considers his or her primary provider in this praxis."))
     74          self._PRW_external_id_type.SetToolTipString(_("The type of the external ID (selection only)."))
     75          self._TCTRL_external_id_value.SetToolTipString(_("The value of the external ID."))
     76          self._PRW_occupation.SetToolTipString(_("The current occupation."))
     77          self._TCTRL_comment.SetToolTipString(_("A comment on this person."))
     78          # end wxGlade
     79
     80 -    def __do_layout(self):
     81          # begin wxGlade: wxgNewPatientEAPnl.__do_layout
     82          __szr_main = wx.BoxSizer(wx.VERTICAL)
     83          __fgsizer_details = wx.FlexGridSizer(22, 2, 3, 5)
     84          __szr_external_id_details = wx.BoxSizer(wx.HORIZONTAL)
     85          __szr_other = wx.BoxSizer(wx.HORIZONTAL)
     86          __szr_primary_contact_details = wx.BoxSizer(wx.HORIZONTAL)
     87          __szr_number_details = wx.BoxSizer(wx.HORIZONTAL)
     88          __szr_address = wx.BoxSizer(wx.HORIZONTAL)
     89          __szr_dob = wx.BoxSizer(wx.HORIZONTAL)
     90          __szr_identity = wx.BoxSizer(wx.HORIZONTAL)
     91          __szr_message = wx.BoxSizer(wx.HORIZONTAL)
     92          __szr_message.Add((20, 20), 1, wx.EXPAND, 0)
     93          __lbl_message = wx.StaticText(self, -1, _("Basic demographics"), style=wx.ALIGN_CENTRE)
     94          __lbl_message.SetFont(wx.Font(11, wx.DEFAULT, wx.NORMAL, wx.BOLD, 0, ""))
     95          __szr_message.Add(__lbl_message, 0, wx.EXPAND|wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL, 0)
     96          __szr_message.Add((20, 20), 1, wx.EXPAND, 0)
     97          __szr_main.Add(__szr_message, 0, wx.EXPAND, 0)
     98          __HLINE_top = wx.StaticLine(self, -1)
     99          __szr_main.Add(__HLINE_top, 0, wx.ALL|wx.EXPAND, 3)
    100          __fgsizer_details.Add((20, 20), 0, wx.EXPAND, 0)
    101          __szr_identity.Add((20, 20), 1, wx.EXPAND, 0)
    102          __lbl_identity = wx.StaticText(self, -1, _("Identity"), style=wx.ALIGN_CENTRE)
    103          __lbl_identity.SetForegroundColour(wx.Colour(95, 159, 159))
    104          __szr_identity.Add(__lbl_identity, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    105          __szr_identity.Add((20, 20), 1, wx.EXPAND, 0)
    106          __fgsizer_details.Add(__szr_identity, 1, wx.EXPAND, 0)
    107          __lbl_lastname = wx.StaticText(self, -1, _("Last name"))
    108          __lbl_lastname.SetForegroundColour(wx.Colour(255, 0, 0))
    109          __fgsizer_details.Add(__lbl_lastname, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    110          __fgsizer_details.Add(self._PRW_lastname, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    111          __lbl_firstnames = wx.StaticText(self, -1, _("First name(s)"))
    112          __lbl_firstnames.SetForegroundColour(wx.Colour(255, 0, 0))
    113          __fgsizer_details.Add(__lbl_firstnames, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    114          __fgsizer_details.Add(self._PRW_firstnames, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    115          __lbl_dob = wx.StaticText(self, -1, _("Date of birth"))
    116          __lbl_dob.SetForegroundColour(wx.Colour(255, 127, 0))
    117          __fgsizer_details.Add(__lbl_dob, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    118          __szr_dob.Add(self._PRW_dob, 1, wx.RIGHT|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5)
    119          __lbl_tob = wx.StaticText(self, -1, _("Time:"))
    120          __szr_dob.Add(__lbl_tob, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 3)
    121          __szr_dob.Add(self._TCTRL_tob, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    122          __fgsizer_details.Add(__szr_dob, 1, wx.EXPAND, 0)
    123          __lbl_gender = wx.StaticText(self, -1, _("Gender"))
    124          __lbl_gender.SetForegroundColour(wx.Colour(255, 0, 0))
    125          __fgsizer_details.Add(__lbl_gender, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    126          __fgsizer_details.Add(self._PRW_gender, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    127          __lbl_nick_name = wx.StaticText(self, -1, _("Nick name"))
    128          __fgsizer_details.Add(__lbl_nick_name, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    129          __fgsizer_details.Add(self._PRW_nickname, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    130          __lbl_title = wx.StaticText(self, -1, _("Title"))
    131          __fgsizer_details.Add(__lbl_title, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    132          __fgsizer_details.Add(self._PRW_title, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    133          __fgsizer_details.Add((20, 20), 0, wx.EXPAND, 0)
    134          __szr_address.Add((20, 20), 1, wx.EXPAND, 0)
    135          __lbl_address_heading = wx.StaticText(self, -1, _("Primary address and contact"), style=wx.ALIGN_CENTRE)
    136          __lbl_address_heading.SetForegroundColour(wx.Colour(95, 159, 159))
    137          __szr_address.Add(__lbl_address_heading, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    138          __szr_address.Add((20, 20), 1, wx.EXPAND, 0)
    139          __fgsizer_details.Add(__szr_address, 1, wx.EXPAND, 0)
    140          __lbl_address = wx.StaticText(self, -1, _("Search existing"))
    141          __fgsizer_details.Add(__lbl_address, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    142          __fgsizer_details.Add(self._PRW_address_searcher, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    143          __lbl_zip = wx.StaticText(self, -1, _("Postal code"))
    144          __lbl_zip.SetForegroundColour(wx.Colour(255, 127, 0))
    145          __fgsizer_details.Add(__lbl_zip, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    146          __fgsizer_details.Add(self._PRW_zip, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    147          __lbl_street = wx.StaticText(self, -1, _("Street"))
    148          __lbl_street.SetForegroundColour(wx.Colour(255, 127, 0))
    149          __fgsizer_details.Add(__lbl_street, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    150          __fgsizer_details.Add(self._PRW_street, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    151          __lbl_number = wx.StaticText(self, -1, _("Number"))
    152          __lbl_number.SetForegroundColour(wx.Colour(255, 127, 0))
    153          __fgsizer_details.Add(__lbl_number, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    154          __szr_number_details.Add(self._TCTRL_number, 1, wx.RIGHT|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5)
    155          __lbl_unit = wx.StaticText(self, -1, _("Unit:"))
    156          __szr_number_details.Add(__lbl_unit, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 3)
    157          __szr_number_details.Add(self._TCTRL_unit, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    158          __fgsizer_details.Add(__szr_number_details, 1, wx.EXPAND, 0)
    159          __lbl_urb = wx.StaticText(self, -1, _("Community"))
    160          __lbl_urb.SetForegroundColour(wx.Colour(255, 127, 0))
    161          __fgsizer_details.Add(__lbl_urb, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    162          __fgsizer_details.Add(self._PRW_urb, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    163          __lbl_region = wx.StaticText(self, -1, _("Region"))
    164          __lbl_region.SetForegroundColour(wx.Colour(255, 127, 0))
    165          __fgsizer_details.Add(__lbl_region, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    166          __fgsizer_details.Add(self._PRW_region, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    167          __lbl_zip_copy = wx.StaticText(self, -1, _("Country"))
    168          __lbl_zip_copy.SetForegroundColour(wx.Colour(255, 127, 0))
    169          __fgsizer_details.Add(__lbl_zip_copy, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    170          __fgsizer_details.Add(self._PRW_country, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    171          __lbl_address_type = wx.StaticText(self, -1, _("Type"))
    172          __lbl_address_type.SetForegroundColour(wx.Colour(255, 127, 0))
    173          __fgsizer_details.Add(__lbl_address_type, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    174          __fgsizer_details.Add(self._PRW_type, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    175          __lbl_primary_contact = wx.StaticText(self, -1, _("Contact"))
    176          __fgsizer_details.Add(__lbl_primary_contact, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    177          __szr_primary_contact_details.Add(self._PRW_channel_type, 1, wx.RIGHT|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5)
    178          __szr_primary_contact_details.Add(self._TCTRL_phone, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    179          __fgsizer_details.Add(__szr_primary_contact_details, 1, wx.EXPAND, 0)
    180          __fgsizer_details.Add((20, 20), 0, wx.EXPAND, 0)
    181          __szr_other.Add((20, 20), 1, wx.EXPAND, 0)
    182          __lbl_other = wx.StaticText(self, -1, _("Other"), style=wx.ALIGN_CENTRE)
    183          __lbl_other.SetForegroundColour(wx.Colour(95, 159, 159))
    184          __szr_other.Add(__lbl_other, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    185          __szr_other.Add((20, 20), 1, wx.EXPAND, 0)
    186          __fgsizer_details.Add(__szr_other, 1, wx.EXPAND, 0)
    187          __lbl_primary_provider = wx.StaticText(self, -1, _("In-praxis primary"))
    188          __fgsizer_details.Add(__lbl_primary_provider, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    189          __fgsizer_details.Add(self._PRW_primary_provider, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    190          __lbl_ext_id = wx.StaticText(self, -1, _("External ID"))
    191          __fgsizer_details.Add(__lbl_ext_id, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    192          __szr_external_id_details.Add(self._PRW_external_id_type, 1, wx.RIGHT|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5)
    193          __szr_external_id_details.Add(self._TCTRL_external_id_value, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    194          __fgsizer_details.Add(__szr_external_id_details, 1, wx.EXPAND, 0)
    195          __lbl_occupation = wx.StaticText(self, -1, _("Occupation"))
    196          __fgsizer_details.Add(__lbl_occupation, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    197          __fgsizer_details.Add(self._PRW_occupation, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    198          __lbl_comment = wx.StaticText(self, -1, _("Comment"))
    199          __fgsizer_details.Add(__lbl_comment, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    200          __fgsizer_details.Add(self._TCTRL_comment, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    201          __fgsizer_details.AddGrowableCol(1)
    202          __szr_main.Add(__fgsizer_details, 1, wx.EXPAND, 0)
    203          __HLINE_bottom = wx.StaticLine(self, -1)
    204          __szr_main.Add(__HLINE_bottom, 0, wx.LEFT|wx.RIGHT|wx.TOP|wx.EXPAND, 3)
    205          self.SetSizer(__szr_main)
    206          __szr_main.Fit(self)
    207          # end wxGlade
    208
    209  # end of class wxgNewPatientEAPnl
    210