-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.py
More file actions
34 lines (32 loc) · 924 Bytes
/
schema.py
File metadata and controls
34 lines (32 loc) · 924 Bytes
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
ecg_lead_schema = {
"type": "array",
"items": {"type": "number"}
}
ecg = {
"type": "object",
"properties": {
"t": {
"type": "array",
"items": {"type": "number"}
},
"ecg": {
"type": "object",
"properties": {
"I": ecg_lead_schema,
"II": ecg_lead_schema,
"III": ecg_lead_schema,
"aVR": ecg_lead_schema,
"aVL": ecg_lead_schema,
"aVF": ecg_lead_schema,
"V1": ecg_lead_schema,
"V2": ecg_lead_schema,
"V3": ecg_lead_schema,
"V4": ecg_lead_schema,
"V5": ecg_lead_schema,
"V6": ecg_lead_schema,
},
"required": ["I", "II", "III", "aVR", "aVF", "V1", "V2", "V3", "V4", "V5", "V6"]
}
},
"required": ["t", "ecg"]
}