Trees | Indices | Help |
|
---|
|
1 #====================================================================== 2 # GnuMed notebook based progress note input plugin 3 # ------------------------------------------------ 4 # 5 # this plugin displays the list of patient problems 6 # together whith a notebook container for progress notes 7 # 8 # @copyright: author 9 #====================================================================== 10 __version__ = "$Revision: 1.17 $" 11 __author__ = "Carlos Moro, Karsten Hilbert" 12 __license__ = 'GPL (details at http://www.gnu.org)' 13 14 import logging 15 16 17 if __name__ == '__main__': 18 # stdlib 19 import sys 20 sys.path.insert(0, '../../../') 21 22 from Gnumed.pycommon import gmI18N 23 gmI18N.activate_locale() 24 gmI18N.install_domain() 25 26 # GNUmed 27 from Gnumed.wxpython import gmPlugin, gmSOAPWidgets 28 29 30 _log = logging.getLogger('gm.ui') 31 _log.info(__version__) 32 33 #======================================================================35 """Plugin to encapsulate notebook based progress note input window.""" 36 37 tab_name = _('Progress notes') 38 4154 #====================================================================== 55 # main 56 #---------------------------------------------------------------------- 57 if __name__ == "__main__": 58 59 # 3rd party 60 import wx 61 62 # GNUmed 63 from Gnumed.business import gmPerson 64 65 _log.info("starting Notebooked progress notes input plugin...") 66 67 try: 68 # obtain patient 69 patient = gmPerson.ask_for_patient() 70 if patient is None: 71 print "None patient. Exiting gracefully..." 72 sys.exit(0) 73 gmPatSearchWidgets.set_active_patient(patient=patient) 74 75 # display standalone multisash progress notes input 76 application = wx.wx.PyWidgetTester(size=(800,600)) 77 multisash_notes = gmSOAPWidgets.cNotebookedProgressNoteInputPanel(application.frame, -1) 78 79 application.frame.Show(True) 80 application.MainLoop() 81 82 # clean up 83 if patient is not None: 84 try: 85 patient.cleanup() 86 except: 87 print "error cleaning up patient" 88 except StandardError: 89 _log.exception("unhandled exception caught !") 90 # but re-raise them 91 raise 92 93 _log.info("closing Notebooked progress notes input plugin...") 94 #====================================================================== 95 # $Log: gmNotebookedProgressNoteInputPlugin.py,v $ 96 # Revision 1.17 2009/06/04 16:31:24 ncq 97 # - use set-active-patient from pat-search-widgets 98 # 99 # Revision 1.16 2008/07/10 08:45:14 ncq 100 # - fix spelling 101 # 102 # Revision 1.15 2008/06/24 14:01:02 ncq 103 # - improved menu item label 104 # 105 # Revision 1.14 2008/03/06 18:32:31 ncq 106 # - standard lib logging only 107 # 108 # Revision 1.13 2008/01/27 21:21:59 ncq 109 # - no more gmCfg 110 # 111 # Revision 1.12 2006/12/18 12:12:27 ncq 112 # - fix test suite 113 # 114 # Revision 1.11 2006/11/05 16:05:35 ncq 115 # - cleanup, tabify 116 # 117 # Revision 1.10 2006/10/31 16:06:19 ncq 118 # - no more gmPG 119 # 120 # Revision 1.9 2006/10/25 07:23:30 ncq 121 # - no gmPG no more 122 # 123 # Revision 1.8 2006/05/04 09:49:20 ncq 124 # - get_clinical_record() -> get_emr() 125 # - adjust to changes in set_active_patient() 126 # - need explicit set_active_patient() after ask_for_patient() if wanted 127 # 128 # Revision 1.7 2005/10/03 13:59:59 sjtan 129 # indentation errors 130 # 131 # Revision 1.6 2005/09/26 18:01:52 ncq 132 # - use proper way to import wx26 vs wx2.4 133 # - note: THIS WILL BREAK RUNNING THE CLIENT IN SOME PLACES 134 # - time for fixup 135 # 136 # Revision 1.5 2005/09/12 15:11:15 ncq 137 # - tab name capitalized 138 # 139 # Revision 1.4 2005/06/30 10:21:01 cfmoro 140 # String corrections 141 # 142 # Revision 1.3 2005/06/07 10:19:18 ncq 143 # - string improvement 144 # 145 # Revision 1.2 2005/05/12 15:13:28 ncq 146 # - cleanup 147 # 148 # Revision 1.1 2005/05/08 21:45:25 ncq 149 # - new plugin for progress note input ... 150 # 15143 self._widget = gmSOAPWidgets.cNotebookedProgressNoteInputPanel(parent, -1) 44 return self._widget4547 return ('emr', _('&Progress notes editor'))48
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Jan 23 04:06:08 2010 | http://epydoc.sourceforge.net |