1
2
3
4
5
6 __author__ = "Karsten Hilbert"
7 __license__ = 'GPL v2 or later (details at http://www.gnu.org)'
8
9 import logging
10
11
12 from Gnumed.wxpython import gmPlugin
13 from Gnumed.wxpython import gmMedicationWidgets
14
15 from Gnumed.wxpython import gmAccessPermissionWidgets
16
17
18 _log = logging.getLogger('gm.ui')
21 """Plugin to encapsulate patient current medication list."""
22
23 tab_name = _('Medication')
24 required_minimum_role = 'doctor'
25
26 @gmAccessPermissionWidgets.verify_minimum_required_role (
27 required_minimum_role,
28 activity = _('loading plugin <%s>') % tab_name,
29 return_value_on_failure = False,
30 fail_silently = False
31 )
34
37
41
43 return ('emr', _('&Medication'))
44
46 if not self._verify_patient_avail():
47 return None
48 return 1
49
50
51
52 if __name__ == "__main__":
53 print "no test code"
54
55
56