-
Notifications
You must be signed in to change notification settings - Fork 0
/
db.js
116 lines (110 loc) · 2 KB
/
db.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
const timeslots=[{
start_time: "9:00am",
end_time: "9:30am"
},{
start_time: "9:30am",
end_time: "10:00am"
},{
start_time: "10:00am",
end_time: "10:30am"
},{
start_time: "10:30am",
end_time: "11:00am"
},{
start_time: "11:00am",
end_time: "11:30am"
},{
start_time: "11:30am",
end_time: "12:00pm"
},{
start_time: "12:00pm",
end_time: "0:30pm"
},{
start_time: "0:30pm",
end_time: "1:00pm"
},{
start_time: "1:00pm",
end_time: "1:30pm"
},{
start_time: "1:30pm",
end_time: "2:00pm"
},{
start_time: "2:00pm",
end_time: "2:30pm"
},{
start_time: "2:30pm",
end_time: "3:00pm"
},{
start_time: "3:00pm",
end_time: "3:30pm"
},{
start_time: "3:30pm",
end_time: "4:00pm"
},{
start_time: "4:00pm",
end_time: "4:30pm"
},{
start_time: "4:30pm",
end_time: "5:00pm"
}
]
const doctors =[{
id: "doctor1",
name: "Sijie",
clinic_name: "Sijie's clinic",
specialty: "a",
},{
id: "doctor2",
name: "Sunny",
clinic_name: "Sunny's clinic",
specialty: "b",
}]
const patients =[{
id: "patient1",
name: "siquan",
age: 12,
email: "siquan@cmu.edu",
},{
id: "patient2",
name: "mingren",
age: 15,
email: "mingren@cmu.edu",
}]
const appointments=[{
id: "appointment1",
doctor_name: "Sijie",
time: timeslots[0],
},{
id: "appointment2",
doctor_name: "Sijie",
time: timeslots[1],
},{
id: "appointment3",
doctor_name: "Sunny",
time: timeslots[2],
}
]
const events=[{
id: "event1",
doctor_name: "Sijie",
patient_name: "siquan",
time: timeslots[6],
},{
id: "event2",
doctor_name: "Sijie",
patient_name: "siquan",
time: timeslots[7],
},{
id: "event3",
doctor_name: "Sunny",
patient_name: "mingren",
time: timeslots[8],
}
]
module.exports = {
doctors,
timeslots,
appointments,
patients,
events
}