Skip to content

Commit 26752fe

Browse files
authored
Create example_dataset.js
1 parent f0a61e0 commit 26752fe

File tree

1 file changed

+80
-0
lines changed

1 file changed

+80
-0
lines changed

examples/example_dataset.js

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"patients": [
3+
{
4+
"id": 1,
5+
"name": "John Doe",
6+
"age": 35,
7+
"gender": "male",
8+
"diabetesType": "type 1",
9+
"insulins": [
10+
{
11+
"id": 1,
12+
"name": "Novolog",
13+
"units": 30,
14+
"unitType": "U"
15+
},
16+
{
17+
"id": 2,
18+
"name": "Lantus",
19+
"units": 60,
20+
"unitType": "U"
21+
}
22+
],
23+
"bgReadings": [
24+
{
25+
"id": 1,
26+
"reading": 120,
27+
"timestamp": "2022-01-01T08:00:00Z"
28+
},
29+
{
30+
"id": 2,
31+
"reading": 150,
32+
"timestamp": "2022-01-01T10:00:00Z"
33+
},
34+
{
35+
"id": 3,
36+
"reading": 180,
37+
"timestamp": "2022-01-01T12:00:00Z"
38+
}
39+
]
40+
},
41+
{
42+
"id": 2,
43+
"name": "Jane Doe",
44+
"age": 45,
45+
"gender": "female",
46+
"diabetesType": "type 2",
47+
"insulins": [
48+
{
49+
"id": 1,
50+
"name": "Humalog",
51+
"units": 20,
52+
"unitType": "U"
53+
},
54+
{
55+
"id": 2,
56+
"name": "Levemir",
57+
"units": 40,
58+
"unitType": "U"
59+
}
60+
],
61+
"bgReadings": [
62+
{
63+
"id": 1,
64+
"reading": 100,
65+
"timestamp": "2022-01-01T09:00:00Z"
66+
},
67+
{
68+
"id": 2,
69+
"reading": 120,
70+
"timestamp": "2022-01-01T11:00:00Z"
71+
},
72+
{
73+
"id": 3,
74+
"reading": 140,
75+
"timestamp": "2022-01-01T13:00:00Z"
76+
}
77+
]
78+
}
79+
]
80+
}

0 commit comments

Comments
 (0)