forked from Ravi-Raghavan/SWE-Spring-2023
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprescription_scripts.js
59 lines (52 loc) · 1.31 KB
/
prescription_scripts.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
const {processPatientPrescription, processDoctorPrescription, getPatientPrescriptionRef}= require("./js/prescriptionModelTest");
const {getEmail} = require("./js/FirebaseAPI");
// processPatientPrescription(
// "09/10/2002",
// "Mayank",
// "03/30/2023",
// "Barad",
// "baradmayank@gmail.com",
// "UIDEX_48shf",
// "TEST001"
// );
processPatientPrescription(
"09/11/2002",
"Simon",
"03/30/2023",
"Grishin",
"simon.grishin@gmail.com",
"52kStzCOKHSWunO1CW8wJcJiR933",
"PRESUIDTEST001"
).catch((err) => console.log(err));
processDoctorPrescription(
"09/10/2002",
"doctor@drughub.com",
"First",
"Last",
"lYHzGwS1C6fKQ0tzhL6E2wzxb4t2",
"2 bottles",
"05/24/2054",
"bruh moment",
"03/30/2023",
"Tobramycin",
"Simon",
"Grishin",
"PRESUIDTEST001",
"None"
).catch((err) => console.log(err));
// getPatientPrescriptionRef("UIDEX_48shf").then((ref) => {
// // console.log(ref);
// ref.once('value', (snapshot) => {
// console.log(snapshot.val());
// })
// })
// getEmail("52kStzCOKHSWunO1CW8wJcJiR933ss").then((email) => {
// console.log(email);
// }).catch((err) => {
// console.log(err);
// })
// console.log(ref);
// ref.then()
// ref.on('value', (snapshot) => {
// console.log(snapshot.val());
// })