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
11 import logging
12
13
14 if __name__ == '__main__':
15
16 import sys
17 sys.path.insert(0, '../../../')
18
19 from Gnumed.pycommon import gmI18N
20 gmI18N.activate_locale()
21 gmI18N.install_domain()
22
23
24 from Gnumed.wxpython import gmPlugin, gmPatOverviewWidgets
25 from Gnumed.wxpython import gmAccessPermissionWidgets
26
27
28 _log = logging.getLogger('gm.ui')
60
61
62
63
64 if __name__ == "__main__":
65
66
67 import wx
68
69
70 from Gnumed.business import gmPersonSearch
71 from Gnumed.wxpython import gmSOAPWidgets
72
73 _log.info("starting Notebooked progress notes input plugin...")
74
75 try:
76
77 patient = gmPersonSearch.ask_for_patient()
78 if patient is None:
79 print("None patient. Exiting gracefully...")
80 sys.exit(0)
81 gmPatSearchWidgets.set_active_patient(patient=patient)
82
83
84 application = wx.wx.PyWidgetTester(size = (800,600))
85 multisash_notes = gmSOAPWidgets.cNotebookedProgressNoteInputPanel(application.frame, -1)
86
87 application.frame.Show(True)
88 application.MainLoop()
89
90
91 if patient is not None:
92 try:
93 patient.cleanup()
94 except:
95 print("error cleaning up patient")
96 except Exception:
97 _log.exception("unhandled exception caught !")
98
99 raise
100
101 _log.info("closing Notebooked progress notes input plugin...")
102