bika.health.config   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 24
dl 0
loc 52
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
from Products.Archetypes.public import DisplayList
22
from bika.health import bikaMessageFactory as _
23
24
PROJECTNAME = "bika.health"
25
DEFAULT_PROFILE_ID = "profile-{}:default".format(PROJECTNAME)
26
27
GENDERS = DisplayList((
28
    ('male', _('Male')),
29
    ('female', _('Female')),
30
    ('dk', _("Don't Know")),
31
    ))
32
33
ETHNICITIES = DisplayList((
34
    ('Native American', _('Native American')),
35
    ('Asian', _('Asian')),
36
    ('Black', _('Black')),
37
    ('Native Hawaiian or Other Pacific Islander', _('Native Hawaiian or Other Pacific Islander')),
38
    ('White', _('White')),
39
    ('Hispanic or Latino', _('Hispanic or Latino')),
40
))
41
42
GENDERS_APPLY = DisplayList((
43
    ('male', _('Male')),
44
    ('female', _('Female')),
45
    ('dk', _("Both")),
46
))
47
48
MENSTRUAL_STATUSES = DisplayList((
49
    ('regular', _('Regular')),
50
    ('irregular', _('Irregular')),
51
    ('none', _('No menstrual cycle')),
52
))
53