-
Notifications
You must be signed in to change notification settings - Fork 6
/
sheetconfig.json
77 lines (77 loc) · 1.9 KB
/
sheetconfig.json
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
[
{
"type": "pcr",
"source": {
"headerRow": 2,
"startingDataRow": 4,
"columns": [
{ "col": "A", "title": "NO" },
{ "col": "B", "title": "NAME", "constraints": { "presence": true } },
{ "col": "C", "title": "ID NO" },
{
"col": "D",
"title": "DATE OF BIRTH",
"constraints": { "date": true }
},
{
"col": "E",
"title": "GENDER",
"constraints": { "presence": true, "format": { "pattern": "[MF]" } }
},
{ "col": "F", "title": "PHONE" },
{ "col": "G", "title": "ADDRESS" },
{
"col": "H",
"title": "SPECIMEN TYPE",
"constraints": { "presence": true }
},
{
"col": "J",
"title": "COLLECTION DATE",
"constraints": { "date": true }
},
{
"col": "J",
"title": "RESULT"
}
]
},
"database": {
"host": "db_host",
"port": 3306,
"user": "db_user",
"password": "db_password",
"dbName": "db_name",
"connectionLimit": 5
},
"destinations": [
{
"kind": "patient",
"table": { "name": "db_patient" },
"columns": [
{ "col": "B", "name": "name" },
{ "col": "C", "name": "id_no" },
{ "col": "D", "name": "birth_date" },
{ "col": "E", "name": "gender" },
{ "col": "F", "name": "phone" },
{ "col": "G", "name": "address" }
]
},
{
"kind": "specimen",
"table": {
"name": "db_specimen",
"foreignKey": {
"sourceIndex": 0,
"field": "patient_id"
}
},
"columns": [
{ "col": "H", "name": "specimen_type" },
{ "col": "I", "name": "collection_date" },
{ "col": "J", "name": "result" }
]
}
]
}
]