forked from IntelliSOFT-Consulting/cht-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtasks.js
57 lines (57 loc) · 1.19 KB
/
tasks.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
module.exports = [
{
name: 'assessment-after-registration',
title: 'Pregnancy Form',
icon: 'healthcare',
appliesTo: 'reports',
appliesToType: ['pregnancy_form'],
appliesIf: function () {
return user.role === 'chp';
},
actions: [{ form: 'pregnancy_form' }],
events: [
{
start: 5,
days: 5,
end: 2,
},
],
},
{
name: 'assessment-after-follow-up',
title: 'Pregnancy Follow up test',
icon: 'followup',
appliesTo: 'reports',
appliesToType: ['pregnancy_form'],
appliesIf: function () {
return user.role === 'chp_supervisor';
},
actions: [{ form: 'pregnancy_follow_up_form' }],
events: [
{
start: 5,
days: 5,
end: 2,
},
],
},
// checkup assessment
{
name: 'checkup-assessment-after-registration',
title: 'Pregnancy Check up',
icon: 'checkup',
appliesTo: 'reports',//contacts
appliesToType: ['pregn'],
appliesIf: function () {
return user.role === 'chp_supervisor';
},
actions: [{ form: 'pregnancy_check_up_form' }],
events: [
{
start: 5,
days: 5,
end: 2,
},
],
},
];