Home | Trees | Indices | Help |
|
---|
|
1 """This plugin lets you manage laboratory requests 2 - add requests 3 - keep track of pending requests 4 - see import errors 5 - review newly imported lab results 6 """ 7 #============================================================================ 8 # $Source: /home/ncq/Projekte/cvs2git/vcs-mirror/gnumed/gnumed/client/wxpython/gui/gmLabJournal.py,v $ 9 # $Id: gmLabJournal.py,v 1.40 2008-03-06 18:32:31 ncq Exp $ 10 __version__ = "$Revision: 1.40 $" 11 __author__ = "Sebastian Hilbert <Sebastian.Hilbert@gmx.net>" 12 13 import wx 14 15 from Gnumed.pycommon import gmI18N 16 from Gnumed.wxpython import gmLabWidgets, gmPlugin 17 18 _log = gmLog.gmDefLog 19 _log.Log(gmLog.lInfo, __version__) 20 21 #============================================================39 40 #------------------------------------------------------------24 # set up widgets 25 wx.Panel.__init__(self, parent, id, wxDefaultPosition, wxDefaultSize) 26 27 # make lab notebook 28 self.nb = gmLabWidgets.cLabJournalNB(self, -1) 29 30 # just one vertical sizer 31 sizer = wx.BoxSizer(wx.VERTICAL) 32 szr_nb = wx.NotebookSizer( self.nb ) 33 34 sizer.Add(szr_nb, 1, wxEXPAND, 0) 35 self.SetAutoLayout(1) 36 self.SetSizer(sizer) 37 sizer.Fit(self) 38 self.Layout()42 tab_name = _("lab journal") 43 46 5068 #================================================================ 69 # MAIN 70 #---------------------------------------------------------------- 71 if __name__ == '__main__': 72 print "do not run standalone like this" 73 #================================================================ 74 # $Log: gmLabJournal.py,v $ 75 # Revision 1.40 2008-03-06 18:32:31 ncq 76 # - standard lib logging only 77 # 78 # Revision 1.39 2007/10/12 07:28:25 ncq 79 # - lots of import related cleanup 80 # 81 # Revision 1.38 2005/09/28 21:27:30 ncq 82 # - a lot of wx2.6-ification 83 # 84 # Revision 1.37 2005/09/26 18:01:52 ncq 85 # - use proper way to import wx26 vs wx2.4 86 # - note: THIS WILL BREAK RUNNING THE CLIENT IN SOME PLACES 87 # - time for fixup 88 # 89 # Revision 1.36 2004/08/04 17:16:02 ncq 90 # - wx.NotebookPlugin -> cNotebookPlugin 91 # - derive cNotebookPluginOld from cNotebookPlugin 92 # - make cNotebookPluginOld warn on use and implement old 93 # explicit "main.notebook.raised_plugin"/ReceiveFocus behaviour 94 # - ReceiveFocus() -> receive_focus() 95 # 96 # Revision 1.35 2004/07/15 15:18:53 ncq 97 # - factored out everything that wasn't strictly notebook plugin 98 # related, see wxpython/gmLabWidgets.py 99 # 100 # Revision 1.34 2004/07/15 14:47:15 ncq 101 # - revert back to notebook plugin 102 # 103 # Revision 1.32 2004/06/30 07:05:31 shilbert 104 # - 'clin_when' -> 'sampled_when' 105 # - more fk/pk changes 106 # 107 # Revision 1.31 2004/06/26 23:45:50 ncq 108 # - cleanup, id_* -> fk/pk_* 109 # 110 # Revision 1.30 2004/06/26 07:33:55 ncq 111 # - id_episode -> fk/pk_episode 112 # 113 # Revision 1.29 2004/06/20 16:50:51 ncq 114 # - carefully fool epydoc 115 # 116 # Revision 1.28 2004/06/20 13:48:02 shilbert 117 # - GUI polished 118 # 119 # Revision 1.27 2004/06/20 06:49:21 ihaywood 120 # changes required due to Epydoc's OCD 121 # 122 # Revision 1.26 2004/06/13 22:31:49 ncq 123 # - gb['main.toolbar'] -> gb['main.top_panel'] 124 # - self.internal_name() -> self.__class__.__name__ 125 # - remove set_widget_reference() 126 # - cleanup 127 # - fix lazy load in _on_patient_selected() 128 # - fix lazy load in ReceiveFocus() 129 # - use self._widget in self.GetWidget() 130 # - override populate_with_data() 131 # - use gb['main.notebook.raised_plugin'] 132 # 133 # Revision 1.25 2004/06/05 11:31:54 shilbert 134 # - GUI cleanup as per ncq's request 135 # - request reviewed via single-click, double-click, <SPACE> implemented 136 # 137 # Revision 1.24 2004/06/02 00:02:32 ncq 138 # - cleanup, indentation fixes 139 # 140 # Revision 1.23 2004/05/30 21:19:01 shilbert 141 # - completely redone review panel 142 # 143 # Revision 1.22 2004/05/29 20:20:30 shilbert 144 # - review stuff finally works 145 # 146 # Revision 1.21 2004/05/29 10:22:10 ncq 147 # - looking good, just some cleanup/comments as usual 148 # 149 # Revision 1.20 2004/05/28 21:11:56 shilbert 150 # - basically keep up with API changes 151 # 152 # Revision 1.19 2004/05/28 07:12:11 shilbert 153 # - finally real artwork 154 # - switched to new import regimen for artwork 155 # 156 # Revision 1.18 2004/05/27 08:47:35 shilbert 157 # - listctrl item insertion bugfix 158 # 159 # Revision 1.17 2004/05/26 14:05:21 ncq 160 # - cleanup 161 # 162 # Revision 1.16 2004/05/26 13:31:00 shilbert 163 # - cleanup, gui enhancements 164 # 165 # Revision 1.15 2004/05/26 11:07:04 shilbert 166 # - gui layout changes 167 # 168 # Revision 1.14 2004/05/25 13:26:49 ncq 169 # - cleanup 170 # 171 # Revision 1.13 2004/05/25 08:15:20 shilbert 172 # - make use of gmPathLab for db querries 173 # - introduce limit for user visible list items 174 # 175 # Revision 1.12 2004/05/22 23:29:09 shilbert 176 # - gui updates (import error context , ctrl labels ) 177 # 178 # Revision 1.11 2004/05/18 20:43:17 ncq 179 # - check get_clinical_record() return status 180 # 181 # Revision 1.10 2004/05/18 19:38:54 shilbert 182 # - gui enhancements (wxExpand) 183 # 184 # Revision 1.9 2004/05/08 17:43:55 ncq 185 # - cleanup here and there 186 # 187 # Revision 1.8 2004/05/06 23:32:45 shilbert 188 # - now features a tab with unreviewed lab results 189 # 190 # Revision 1.7 2004/05/04 09:26:55 shilbert 191 # - handle more errors 192 # 193 # Revision 1.6 2004/05/04 08:42:04 shilbert 194 # - first working version, needs testing 195 # 196 # Revision 1.5 2004/05/04 07:19:34 shilbert 197 # - kind of works, still a bug in create_request() 198 # 199 # Revision 1.4 2004/05/01 10:29:46 shilbert 200 # - custom event handlig code removed, pending lab ids input almost completed 201 # 202 # Revision 1.3 2004/04/29 21:05:19 shilbert 203 # - some more work on auto update of id field 204 # 205 # Revision 1.2 2004/04/28 16:12:02 ncq 206 # - cleanups, as usual 207 # 208 # Revision 1.1 2004/04/28 07:20:00 shilbert 209 # - initial release after name change, lacks features 210 # 21152 return ('tools', _('Show &lab journal'))5355 # no use reloading if invisible 56 if self.gb['main.notebook.raised_plugin'] != self.__class__.__name__: 57 return 1 58 if self._widget.nb.update() is None: 59 _log.Log(gmLog.lErr, "cannot update lab journal with data") 60 return None 61 return 162
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Jan 10 03:56:07 2011 | http://epydoc.sourceforge.net |