-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact-summary-cpn.js
85 lines (80 loc) · 1.6 KB
/
contact-summary-cpn.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
const { injectDataFromForm } = require('./stph-extras.js');
var CPN_CASE_DATA = [
'p_faf',
'p_moustiquaire',
'p_tpi',
'p_deparasitage',
'p_conseils',
'p_hygiene',
'p_info',
'p_ptme',
'p_vih',
'p_autre_mesr',
's_saignement',
's_leucorrhee',
's_perte',
's_cephale',
's_convulsion',
's_respiration',
's_essoufflement',
's_fievre',
's_douleur',
's_mains',
's_toux',
's_pertes_vaginales',
's_contraction_uterine',
's_rupture_poche',
's_lieu_accouche',
'lieu_accouche',
's_moyen_transport',
'moyen_transport',
's_economie',
's_preneurs_decisions',
'preneurs_decisions',
's_donneurs_sang',
'donneurs_sang',
's_id_accompagnate',
'id_accompagnate_note',
's_necessaires',
'diabete',
'drepanocytose',
'cardiopathie',
'hypertension_ateriel',
'tuberculose',
'autre',
'sign_antecedent',
'p_int_cpn',
'date_cpn_1',
'missed_cpn_1',
'date_cpn_2',
'missed_cpn_2',
'date_cpn_3',
'missed_cpn_3',
'date_cpn_4',
'missed_cpn_4',
'date_cpn_5',
'missed_cpn_5',
'date_cpn_6',
'missed_cpn_6',
'date_cpn_7',
'missed_cpn_7',
'date_cpn_8',
'missed_cpn_8',
'r_test_grossesse',
't_test_grossesse',
'affi_method',
'ddr_date',
'dpa_date',
'no_info_pregnancy_reason',
'age_estima',
'label_esti',
];
var CPN_FORMS = [
'cpn'
];
function generateCpnContext(ctx){
injectDataFromForm(ctx,'cpn_',CPN_CASE_DATA, CPN_FORMS,reports);
}
module.exports = {
generateCpnContext
};