-
Notifications
You must be signed in to change notification settings - Fork 0
/
ambulatorio.sh
128 lines (125 loc) · 14.2 KB
/
ambulatorio.sh
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
117
118
119
120
121
122
123
124
125
126
127
curl -v -s -S -X POST http://127.0.0.1:5050/ambulatory \
--header 'Content-Type: multipart/form-data; boundary=boundary; charset=utf-8' \
--header 'User-Agent: orion/0.10.0' \
--header "Fiware-Service: demo" \
--header "http.multipart.name: ambulatory-record-body" \
-d '--boundary
Content-Disposition: form-data; name="ambulatory-record-body"
{
"subject_id": "3366bc5765cb958ff5e7a95635b5577815b96bdc1c7f436d03067f20092f762e",
"record_id": "6i0f1hdcb1h9c2a44d846i985i637igf3ad838d9b449647813bii19di3h4ih0d",
"name": "Lola Sanchez",
"birth_year": 1959,
"illness_start_year": 1990,
"diagnosis": "",
"gender": "male",
"dominant_hand": "left",
"record_added_on": 1709808482421,
"recorded_tasks": [
{
"accelerometer_filename": "f5b41531aa3b36271c01b6e44311b867d2c1fef86bb7c7bdf808b07ced93e063-accelerometer.csv",
"gyroscope_filename": "f5b41531aa3b36271c01b6e44311b867d2c1fef86bb7c7bdf808b07ced93e063-gyroscope.csv"
},
{
"task_id": "CB",
"task_name": "Peinarse",
"trial": 0,
"accelerometer_filename": "d751e057926824f373fc229730a693d789c1248d9361dee1831a99c9d57c9e00-accelerometer.csv",
"gyroscope_filename": "d751e057926824f373fc229730a693d789c1248d9361dee1831a99c9d57c9e00-gyroscope.csv",
"accelerometer_values":"x,y,z,timestamp 133,-6,-31,1696238570471 238,-67,143,1696238570501 183,-29,154,1696238570531 242,-5,145,1696238570561 200,9,173,1696238570591 59,36,158,1696238570621 -94,24,139,1696238570651 -203,35,84,1696238570681 -307,20,21,1696238570711 -379,30,-30,1696238570741 -323,64,-76,1696238570771 -253,56,-76,1696238570801 133,112,-30,1696238570831 21,119,-110,1696238570861 155,20,-145,1696238570891 193,20,-150,1696238570921 181,22,-149,1696238570951 166,28,-165,1696238570981 131,23,-137,1696238571011 110,0,-65,1696238571041",
"gyroscope_values":"x,y,z,timestamp 132,-6,-31,1696238570471 237,-67,143,1696238570501 183,-29,154,1696238570531 242,-5,145,1696238570561 200,9,173,1696238570591 59,36,158,1696238570621 -94,24,139,1696238570651 -203,35,84,1696238570681 -307,20,21,1696238570711 -379,30,-30,1696238570741 -323,64,-76,1696238570771 -253,56,-76,1696238570801 133,112,-30,1696238570831 21,119,-110,1696238570861 155,20,-145,1696238570891 193,20,-150,1696238570921 181,22,-149,1696238570951 166,28,-165,1696238570981 131,23,-137,1696238571011 110,0,-65,1696238571041"
},
{
"accelerometer_filename": "677b69add0aefc501c037d32c45f27ede3c356da878b3730ee206ea0863bd575-accelerometer.csv",
"gyroscope_filename": "677b69add0aefc501c037d32c45f27ede3c356da878b3730ee206ea0863bd575-gyroscope.csv"
},
{
"task_id": "CB",
"task_name": "Peinarse",
"trial": 1,
"accelerometer_filename": "d3d5515dde9f4bd4a69c31f78b5528c5309fdc786059bd04731b769459bcdfbf-accelerometer.csv",
"gyroscope_filename": "d3d5515dde9f4bd4a69c31f78b5528c5309fdc786059bd04731b769459bcdfbf-gyroscope.csv",
"accelerometer_values":"x,y,z,timestamp 133,-6,-31,1696238570471 238,-67,143,1696238570501 183,-29,154,1696238570531 242,-5,145,1696238570561 200,9,173,1696238570591 59,36,158,1696238570621 -94,24,139,1696238570651 -203,35,84,1696238570681 -307,20,21,1696238570711 -379,30,-30,1696238570741 -323,64,-76,1696238570771 -253,56,-76,1696238570801 133,112,-30,1696238570831 21,119,-110,1696238570861 155,20,-145,1696238570891 193,20,-150,1696238570921 181,22,-149,1696238570951 166,28,-165,1696238570981 131,23,-137,1696238571011 110,0,-65,1696238571041",
"gyroscope_values":"x,y,z,timestamp 132,-6,-31,1696238570471 237,-67,143,1696238570501 183,-29,154,1696238570531 242,-5,145,1696238570561 200,9,173,1696238570591 59,36,158,1696238570621 -94,24,139,1696238570651 -203,35,84,1696238570681 -307,20,21,1696238570711 -379,30,-30,1696238570741 -323,64,-76,1696238570771 -253,56,-76,1696238570801 133,112,-30,1696238570831 21,119,-110,1696238570861 155,20,-145,1696238570891 193,20,-150,1696238570921 181,22,-149,1696238570951 166,28,-165,1696238570981 131,23,-137,1696238571011 110,0,-65,1696238571041"
},
{
"accelerometer_filename": "0aaf37a7977a2fdfa704968390734d6f8d1f6dff85e72b48e38221865fe0f221-accelerometer.csv",
"gyroscope_filename": "0aaf37a7977a2fdfa704968390734d6f8d1f6dff85e72b48e38221865fe0f221-gyroscope.csv"
},
{
"task_id": "SD",
"task_name": "Beber",
"trial": 0,
"accelerometer_filename": "0db7c4f2c9d345d4a68bdd79d277508522b1d3255019fa39b3e342b80b4b3146-accelerometer.csv",
"gyroscope_filename": "0db7c4f2c9d345d4a68bdd79d277508522b1d3255019fa39b3e342b80b4b3146-gyroscope.csv",
"accelerometer_values":"x,y,z,timestamp 133,-6,-31,1696238570471 238,-67,143,1696238570501 183,-29,154,1696238570531 242,-5,145,1696238570561 200,9,173,1696238570591 59,36,158,1696238570621 -94,24,139,1696238570651 -203,35,84,1696238570681 -307,20,21,1696238570711 -379,30,-30,1696238570741 -323,64,-76,1696238570771 -253,56,-76,1696238570801 133,112,-30,1696238570831 21,119,-110,1696238570861 155,20,-145,1696238570891 193,20,-150,1696238570921 181,22,-149,1696238570951 166,28,-165,1696238570981 131,23,-137,1696238571011 110,0,-65,1696238571041",
"gyroscope_values":"x,y,z,timestamp 132,-6,-31,1696238570471 237,-67,143,1696238570501 183,-29,154,1696238570531 242,-5,145,1696238570561 200,9,173,1696238570591 59,36,158,1696238570621 -94,24,139,1696238570651 -203,35,84,1696238570681 -307,20,21,1696238570711 -379,30,-30,1696238570741 -323,64,-76,1696238570771 -253,56,-76,1696238570801 133,112,-30,1696238570831 21,119,-110,1696238570861 155,20,-145,1696238570891 193,20,-150,1696238570921 181,22,-149,1696238570951 166,28,-165,1696238570981 131,23,-137,1696238571011 110,0,-65,1696238571041"
},
{
"accelerometer_filename": "b4c44c011d1cbca960c39ce07cc07df473a0d57d43d479620e8c42b89bc1641f-accelerometer.csv",
"gyroscope_filename": "b4c44c011d1cbca960c39ce07cc07df473a0d57d43d479620e8c42b89bc1641f-gyroscope.csv"
},
{
"task_id": "SD",
"task_name": "Beber",
"trial": 1,
"accelerometer_filename": "f49dcdebcc23a57d092c75aa1988f0162e3624de8932996fdd38089cf46109fe-accelerometer.csv",
"gyroscope_filename": "f49dcdebcc23a57d092c75aa1988f0162e3624de8932996fdd38089cf46109fe-gyroscope.csv",
"accelerometer_values":"x,y,z,timestamp 133,-6,-31,1696238570471 238,-67,143,1696238570501 183,-29,154,1696238570531 242,-5,145,1696238570561 200,9,173,1696238570591 59,36,158,1696238570621 -94,24,139,1696238570651 -203,35,84,1696238570681 -307,20,21,1696238570711 -379,30,-30,1696238570741 -323,64,-76,1696238570771 -253,56,-76,1696238570801 133,112,-30,1696238570831 21,119,-110,1696238570861 155,20,-145,1696238570891 193,20,-150,1696238570921 181,22,-149,1696238570951 166,28,-165,1696238570981 131,23,-137,1696238571011 110,0,-65,1696238571041",
"gyroscope_values":"x,y,z,timestamp 132,-6,-31,1696238570471 237,-67,143,1696238570501 183,-29,154,1696238570531 242,-5,145,1696238570561 200,9,173,1696238570591 59,36,158,1696238570621 -94,24,139,1696238570651 -203,35,84,1696238570681 -307,20,21,1696238570711 -379,30,-30,1696238570741 -323,64,-76,1696238570771 -253,56,-76,1696238570801 133,112,-30,1696238570831 21,119,-110,1696238570861 155,20,-145,1696238570891 193,20,-150,1696238570921 181,22,-149,1696238570951 166,28,-165,1696238570981 131,23,-137,1696238571011 110,0,-65,1696238571041"
},
{
"accelerometer_filename": "97ecbf29143b2ec958c99d4c936913042ac9aa76ad97b70501bc07bb1c2c95e5-accelerometer.csv",
"gyroscope_filename": "97ecbf29143b2ec958c99d4c936913042ac9aa76ad97b70501bc07bb1c2c95e5-gyroscope.csv"
},
{
"task_id": "TB",
"task_name": "Pasar pagina",
"trial": 0,
"accelerometer_filename": "53fec3f12f5c187e345112cf658ac59b5ff9bef1f54d440514ef132dbaa7d3e4-accelerometer.csv",
"gyroscope_filename": "53fec3f12f5c187e345112cf658ac59b5ff9bef1f54d440514ef132dbaa7d3e4-gyroscope.csv",
"accelerometer_values":"x,y,z,timestamp 133,-6,-31,1696238570471 238,-67,143,1696238570501 183,-29,154,1696238570531 242,-5,145,1696238570561 200,9,173,1696238570591 59,36,158,1696238570621 -94,24,139,1696238570651 -203,35,84,1696238570681 -307,20,21,1696238570711 -379,30,-30,1696238570741 -323,64,-76,1696238570771 -253,56,-76,1696238570801 133,112,-30,1696238570831 21,119,-110,1696238570861 155,20,-145,1696238570891 193,20,-150,1696238570921 181,22,-149,1696238570951 166,28,-165,1696238570981 131,23,-137,1696238571011 110,0,-65,1696238571041",
"gyroscope_values":"x,y,z,timestamp 132,-6,-31,1696238570471 237,-67,143,1696238570501 183,-29,154,1696238570531 242,-5,145,1696238570561 200,9,173,1696238570591 59,36,158,1696238570621 -94,24,139,1696238570651 -203,35,84,1696238570681 -307,20,21,1696238570711 -379,30,-30,1696238570741 -323,64,-76,1696238570771 -253,56,-76,1696238570801 133,112,-30,1696238570831 21,119,-110,1696238570861 155,20,-145,1696238570891 193,20,-150,1696238570921 181,22,-149,1696238570951 166,28,-165,1696238570981 131,23,-137,1696238571011 110,0,-65,1696238571041"
},
{
"accelerometer_filename": "7ddd4f2d36a716a2f4c51858aa35ecfc37c9f52494f50049e161e5a60eda05fc-accelerometer.csv",
"gyroscope_filename": "7ddd4f2d36a716a2f4c51858aa35ecfc37c9f52494f50049e161e5a60eda05fc-gyroscope.csv"
},
{
"task_id": "TB",
"task_name": "Pasar pagina",
"trial": 1,
"accelerometer_filename": "f96851d88f7bd36ee78d3c3ab335358c1e4fd2383250d5c1df43337f0c6958bb-accelerometer.csv",
"gyroscope_filename": "f96851d88f7bd36ee78d3c3ab335358c1e4fd2383250d5c1df43337f0c6958bb-gyroscope.csv",
"accelerometer_values":"x,y,z,timestamp 133,-6,-31,1696238570471 238,-67,143,1696238570501 183,-29,154,1696238570531 242,-5,145,1696238570561 200,9,173,1696238570591 59,36,158,1696238570621 -94,24,139,1696238570651 -203,35,84,1696238570681 -307,20,21,1696238570711 -379,30,-30,1696238570741 -323,64,-76,1696238570771 -253,56,-76,1696238570801 133,112,-30,1696238570831 21,119,-110,1696238570861 155,20,-145,1696238570891 193,20,-150,1696238570921 181,22,-149,1696238570951 166,28,-165,1696238570981 131,23,-137,1696238571011 110,0,-65,1696238571041",
"gyroscope_values":"x,y,z,timestamp 132,-6,-31,1696238570471 237,-67,143,1696238570501 183,-29,154,1696238570531 242,-5,145,1696238570561 200,9,173,1696238570591 59,36,158,1696238570621 -94,24,139,1696238570651 -203,35,84,1696238570681 -307,20,21,1696238570711 -379,30,-30,1696238570741 -323,64,-76,1696238570771 -253,56,-76,1696238570801 133,112,-30,1696238570831 21,119,-110,1696238570861 155,20,-145,1696238570891 193,20,-150,1696238570921 181,22,-149,1696238570951 166,28,-165,1696238570981 131,23,-137,1696238571011 110,0,-65,1696238571041"
},
{
"accelerometer_filename": "5a806ba28f9ab2d50662e5b9db700d43eec9e8aac4e8b249cf86e6f5abb693e6-accelerometer.csv",
"gyroscope_filename": "5a806ba28f9ab2d50662e5b9db700d43eec9e8aac4e8b249cf86e6f5abb693e6-gyroscope.csv"
},
{
"task_id": "SN",
"task_name": "Escribir",
"trial": 0,
"accelerometer_filename": "00a5b2c40c743ee9bbdbd300645cb9abb0676a6f6d6a979b157ff6f1ff42bd42-accelerometer.csv",
"gyroscope_filename": "00a5b2c40c743ee9bbdbd300645cb9abb0676a6f6d6a979b157ff6f1ff42bd42-gyroscope.csv",
"accelerometer_values":"x,y,z,timestamp 133,-6,-31,1696238570471 238,-67,143,1696238570501 183,-29,154,1696238570531 242,-5,145,1696238570561 200,9,173,1696238570591 59,36,158,1696238570621 -94,24,139,1696238570651 -203,35,84,1696238570681 -307,20,21,1696238570711 -379,30,-30,1696238570741 -323,64,-76,1696238570771 -253,56,-76,1696238570801 133,112,-30,1696238570831 21,119,-110,1696238570861 155,20,-145,1696238570891 193,20,-150,1696238570921 181,22,-149,1696238570951 166,28,-165,1696238570981 131,23,-137,1696238571011 110,0,-65,1696238571041",
"gyroscope_values":"x,y,z,timestamp 132,-6,-31,1696238570471 237,-67,143,1696238570501 183,-29,154,1696238570531 242,-5,145,1696238570561 200,9,173,1696238570591 59,36,158,1696238570621 -94,24,139,1696238570651 -203,35,84,1696238570681 -307,20,21,1696238570711 -379,30,-30,1696238570741 -323,64,-76,1696238570771 -253,56,-76,1696238570801 133,112,-30,1696238570831 21,119,-110,1696238570861 155,20,-145,1696238570891 193,20,-150,1696238570921 181,22,-149,1696238570951 166,28,-165,1696238570981 131,23,-137,1696238571011 110,0,-65,1696238571041"
},
{
"accelerometer_filename": "dd4fa9a66689ca0c9e24d6de2bef6338424fed6a0956f18fc067e7003f61c675-accelerometer.csv",
"gyroscope_filename": "dd4fa9a66689ca0c9e24d6de2bef6338424fed6a0956f18fc067e7003f61c675-gyroscope.csv"
},
{
"task_id": "SN",
"task_name": "Escribir",
"trial": 1,
"accelerometer_filename": "07d2b0fc9575737d33148fbb741f5def2a0854b728c2006ec343753a41c00019-accelerometer.csv",
"gyroscope_filename": "07d2b0fc9575737d33148fbb741f5def2a0854b728c2006ec343753a41c00019-gyroscope.csv",
"accelerometer_values":"x,y,z,timestamp 133,-6,-31,1696238570471 238,-67,143,1696238570501 183,-29,154,1696238570531 242,-5,145,1696238570561 200,9,173,1696238570591 59,36,158,1696238570621 -94,24,139,1696238570651 -203,35,84,1696238570681 -307,20,21,1696238570711 -379,30,-30,1696238570741 -323,64,-76,1696238570771 -253,56,-76,1696238570801 133,112,-30,1696238570831 21,119,-110,1696238570861 155,20,-145,1696238570891 193,20,-150,1696238570921 181,22,-149,1696238570951 166,28,-165,1696238570981 131,23,-137,1696238571011 110,0,-65,1696238571041",
"gyroscope_values":"x,y,z,timestamp 132,-6,-31,1696238570471 237,-67,143,1696238570501 183,-29,154,1696238570531 242,-5,145,1696238570561 200,9,173,1696238570591 59,36,158,1696238570621 -94,24,139,1696238570651 -203,35,84,1696238570681 -307,20,21,1696238570711 -379,30,-30,1696238570741 -323,64,-76,1696238570771 -253,56,-76,1696238570801 133,112,-30,1696238570831 21,119,-110,1696238570861 155,20,-145,1696238570891 193,20,-150,1696238570921 181,22,-149,1696238570951 166,28,-165,1696238570981 131,23,-137,1696238571011 110,0,-65,1696238571041"
}
]
}
--boundary--'