1
2
3
4
5
6
7 __author__ = "Carlos Moro, Karsten Hilbert"
8 __license__ = 'GPL v2 or later (details at http://www.gnu.org)'
9
10 import logging
11
12
13 if __name__ == '__main__':
14
15 import sys
16 sys.path.insert(0, '../../../')
17
18 from Gnumed.pycommon import gmI18N
19 gmI18N.activate_locale()
20 gmI18N.install_domain()
21
22
23 from Gnumed.wxpython import gmPlugin, gmPatOverviewWidgets
24 from Gnumed.wxpython import gmAccessPermissionWidgets
25
26
27 _log = logging.getLogger('gm.ui')
58
59
60
61 if __name__ == "__main__":
62
63
64 import wx
65
66
67 from Gnumed.business import gmPersonSearch
68 from Gnumed.wxpython import gmSOAPWidgets
69
70 _log.info("starting Notebooked progress notes input plugin...")
71
72 try:
73
74 patient = gmPersonSearch.ask_for_patient()
75 if patient is None:
76 print "None patient. Exiting gracefully..."
77 sys.exit(0)
78 gmPatSearchWidgets.set_active_patient(patient=patient)
79
80
81 application = wx.wx.PyWidgetTester(size = (800,600))
82 multisash_notes = gmSOAPWidgets.cNotebookedProgressNoteInputPanel(application.frame, -1)
83
84 application.frame.Show(True)
85 application.MainLoop()
86
87
88 if patient is not None:
89 try:
90 patient.cleanup()
91 except:
92 print "error cleaning up patient"
93 except StandardError:
94 _log.exception("unhandled exception caught !")
95
96 raise
97
98 _log.info("closing Notebooked progress notes input plugin...")
99
100