1
2
3
4
5 __version__ = "$Revision: 1.8 $"
6 __author__ = "Sebastian Hilbert <Sebastian.Hilbert@gmx.net>\
7 Karsten Hilbert <Karsten.Hilbert@gmx.net>"
8 __license__ = "GPL"
9
10 from Gnumed.wxpython import gmPlugin, gmDocumentWidgets
11 from Gnumed.wxpython import gmAccessPermissionWidgets
15 """Plugin to encapsulate patient scan index documents window."""
16
17 tab_name = _('Attach documents')
18 required_minimum_role = 'non-clinical access'
19
20 @gmAccessPermissionWidgets.verify_minimum_required_role (
21 required_minimum_role,
22 activity = _('loading plugin <%s>') % tab_name,
23 return_value_on_failure = False,
24 fail_silently = False
25 )
28
29
32
36
38 return ('emr', _('&Attach documents'))
39
41
42 if not self._verify_patient_avail():
43 return None
44 return 1
45
46