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
76 patient = gmPersonSearch.ask_for_patient()
77 if patient is None:
78 print("None patient. Exiting gracefully...")
79 sys.exit(0)
80 gmPatSearchWidgets.set_active_patient(patient=patient)
81
82
83 application = wx.wx.PyWidgetTester(size = (800,600))
84 multisash_notes = gmSOAPWidgets.cNotebookedProgressNoteInputPanel(application.frame, -1)
85
86 application.frame.Show(True)
87 application.MainLoop()
88
89
90 if patient is not None:
91 try:
92 patient.cleanup()
93 except Exception:
94 print("error cleaning up patient")
95
96 _log.info("closing Notebooked progress notes input plugin...")
97