bika.health.permissions   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 57
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 24
dl 0
loc 57
rs 10
c 0
b 0
f 0
1
# -*- coding: utf-8 -*-
2
#
3
# This file is part of SENAITE.HEALTH.
4
#
5
# SENAITE.HEALTH is free software: you can redistribute it and/or modify it
6
# under the terms of the GNU General Public License as published by the Free
7
# Software Foundation, version 2.
8
#
9
# This program is distributed in the hope that it will be useful, but WITHOUT
10
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
12
# details.
13
#
14
# You should have received a copy of the GNU General Public License along with
15
# this program; if not, write to the Free Software Foundation, Inc., 51
16
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17
#
18
# Copyright 2018-2019 by it's authors.
19
# Some rights reserved, see README and LICENSE.
20
21
AddAetiologicAgent = 'senaite.health: Add AetiologicAgent'
22
AddDoctor = 'senaite.health: Add Doctor'
23
AddDrug = 'senaite.health: Add Drug'
24
AddDrugProhibition = 'senaite.health: Add DrugProhibition'
25
AddEthnicity = 'senaite.health: Add Ethnicity'
26
AddImmunization = 'senaite.health: Add Immunization'
27
AddInsuranceCompany = 'senaite.health: Add InsuranceCompany'
28
AddPatient = 'senaite.health: Add Patient'
29
AddSymptom = 'senaite.health: Add Symptom'
30
AddTreatment = 'senaite.health: AddTreatment'
31
AddVaccinationCenter = 'senaite.health: Add VaccinationCenter'
32
33
# Transition permissions
34
# ======================
35
TransitionActivatePatient = "senaite.health: Transition: Activate Patient"
36
TransitionDeactivatePatient = "senaite.health: Transition: Deactivate Patient"
37
38
TransitionActivateDoctor = "senaite.health: Transition: Activate Doctor"
39
TransitionDeactivateDoctor = "senaite.health: Transition: Deactivate Doctor"
40
41
42
# Behavioral permissions
43
# ======================
44
ViewPatients = "senaite.health: View Patients"
45
46
47
ManageDoctors = "BIKA: Manage Doctors"
48
49
ViewBatches = "BIKA: View Batches"
50
ViewSamples = "BIKA: View Samples"
51
ViewAnalysisRequests = "BIKA: View AnalysisRequests"
52
ViewInsuranceCompanies = "BIKA: View InsuranceCompanies"
53
ViewEthnicities = "BIKA: View Ethnicities"
54
55
# Patient permissions
56
EditPatient = 'BIKA: Edit Patient'
57