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