Package Gnumed :: Package wxpython :: Package gui :: Module gmCurrentSubstancesPlugin
[frames] | no frames]

Source Code for Module Gnumed.wxpython.gui.gmCurrentSubstancesPlugin

 1  #====================================================================== 
 2  # GNUmed current substances plugin 
 3  # 
 4  # @copyright: author 
 5  #====================================================================== 
 6  __version__ = "$Revision: 1.3 $" 
 7  __author__ = "Karsten Hilbert" 
 8  __license__ = 'GPL v2 or later (details at http://www.gnu.org)' 
 9   
10  import logging 
11   
12   
13  from Gnumed.wxpython import gmPlugin, gmMedicationWidgets 
14  from Gnumed.pycommon import gmI18N 
15   
16   
17  _log = logging.getLogger('gm.ui') 
18  _log.info(__version__) 
19  #====================================================================== 
20 -class gmCurrentSubstancesPlugin(gmPlugin.cNotebookPlugin):
21 """Plugin to encapsulate patient current medication list.""" 22 23 tab_name = _('Medication') 24
25 - def name (self):
27
28 - def GetWidget (self, parent):
29 self._widget = gmMedicationWidgets.cCurrentSubstancesPnl(parent, -1) 30 return self._widget
31
32 - def MenuInfo (self):
33 return ('emr', _('Current &medication'))
34
35 - def can_receive_focus(self):
36 if not self._verify_patient_avail(): 37 return None 38 return 1
39 #====================================================================== 40 # main 41 #---------------------------------------------------------------------- 42 if __name__ == "__main__": 43 print "no test code" 44 45 #====================================================================== 46 # $Log: gmCurrentSubstancesPlugin.py,v $ 47 # Revision 1.3 2009-12-25 22:08:24 ncq 48 # - rename to "Medication" 49 # 50 # Revision 1.2 2009/06/29 15:13:25 ncq 51 # - improved placement in menu hierarchy 52 # - add active letters 53 # 54 # Revision 1.1 2009/05/12 12:04:21 ncq 55 # - a plugin to show current medication 56 # 57 # 58