@nuralogix.ai/web-measurement-embedded-app 0.1.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.ts ADDED
@@ -0,0 +1,993 @@
1
+ /**
2
+ * Face attribute values used to define demographic information
3
+ * @enum
4
+ */
5
+ declare const faceAttributeValue: {
6
+ readonly SEX_NOT_PROVIDED: 1;
7
+ readonly SEX_ASSIGNED_MALE_AT_BIRTH: 2;
8
+ readonly SEX_ASSIGNED_FEMALE_AT_BIRTH: 3;
9
+ readonly DIABETES_NONE: 4;
10
+ readonly DIABETES_TYPE1: 5;
11
+ readonly DIABETES_TYPE2: 6;
12
+ readonly SMOKER_TRUE: 0;
13
+ readonly SMOKER_FALSE: 1;
14
+ readonly BLOOD_PRESSURE_MEDICATION_TRUE: 1;
15
+ readonly BLOOD_PRESSURE_MEDICATION_FALSE: 0;
16
+ };
17
+ /**
18
+ * Real-time Result Errors enum
19
+ * @enum
20
+ */
21
+ declare const realtimeResultErrors: {
22
+ readonly WORKER_ERROR: "WORKER_ERROR";
23
+ readonly LIVENESS_ERROR: "LIVENESS_ERROR";
24
+ readonly ANALYSIS_ERROR: "ANALYSIS_ERROR";
25
+ };
26
+ /**
27
+ * A measurement may have one of the following errors received from the DeepAffex® backend:
28
+ *
29
+ * `WORKER_ERROR`: It is an unrecoverable internal error at the DeepAffex® backend.
30
+ *
31
+ * `LIVENESS_ERROR`: The SNR (Signal to Noise Ratio) of the entire measurement was
32
+ * too low to meet our minimum threshold (0.5 dB). If this error is received then
33
+ * the measurement will only return one point i.e. SNR with -100 as the value.
34
+ *
35
+ * `ANALYSIS_ERROR`: indicates a problem that has failed the measurement.
36
+ * There was a failure while computing a signal. The returned JSON will have a
37
+ * `signal_id` key and a value string indicating the reason behind failure.
38
+ */
39
+ type RealtimeResultErrors = typeof realtimeResultErrors[keyof typeof realtimeResultErrors];
40
+ /**
41
+ * Notes in real-time results
42
+ * @enum
43
+ */
44
+ declare const realtimeResultNotes: {
45
+ readonly NOTE_USED_PRED_DEMOG: "NOTE_USED_PRED_DEMOG";
46
+ readonly NOTE_SNR_BELOW_THRESHOLD: "NOTE_SNR_BELOW_THRESHOLD";
47
+ readonly NOTE_FT_LIVENSSS_FAILED: "NOTE_FT_LIVENSSS_FAILED";
48
+ readonly NOTE_MODEL_LIVENSSS_FAILED: "NOTE_MODEL_LIVENSSS_FAILED";
49
+ readonly NOTE_MISSING_MEDICAL_INFO: "NOTE_MISSING_MEDICAL_INFO";
50
+ readonly NOTE_DEGRADED_ACCURACY: "NOTE_DEGRADED_ACCURACY";
51
+ };
52
+ /**
53
+ * Real-time results may also contain notes for each Point. They provide additional
54
+ * information about the computation of the signal on the Cloud. If present for a
55
+ * specific DFX Point, notes will be as a value to the "Notes" key in that point.
56
+ * (e.g., for ABSI they will be at result/"Channels/"ABSI"/"Notes")."Notes" is an
57
+ * enum; multiple notes may be present against a single Point.
58
+ * They are described below:
59
+ *
60
+ * `NOTE_USED_PRED_DEMOG`: User profile data was predicted for computations since
61
+ * user-entered data was missing
62
+ *
63
+ * `NOTE_SNR_BELOW_THRESHOLD`: SNR was below 0.5 db; no additional signals were computed
64
+ *
65
+ * `NOTE_FT_LIVENSSS_FAILED`: First liveness test failed
66
+ *
67
+ * `NOTE_MODEL_LIVENSSS_FAILED`: Second liveness test failed
68
+ *
69
+ * `NOTE_MISSING_MEDICAL_INFO`: Medical history questionnaire information was not sent
70
+ *
71
+ * `NOTE_DEGRADED_ACCURACY`: Signal computation suffered from degraded accuracy
72
+ */
73
+ type RealtimeResultNotes = typeof realtimeResultNotes[keyof typeof realtimeResultNotes];
74
+
75
+ declare const pointGroup: {
76
+ readonly METADATA: "metadata";
77
+ readonly PHYSICAL: "physical";
78
+ readonly GENERAL_RISKS: "generalRisks";
79
+ readonly VITALS: "vitals";
80
+ readonly PHYSIOLOGICAL: "physiological";
81
+ readonly METABOLIC_RISKS: "metabolicRisks";
82
+ readonly BLOOD_BIOMARKERS: "bloodBiomarkers";
83
+ readonly OVERALL: "overall";
84
+ readonly MENTAL: "mental";
85
+ readonly SURVEYS: "surveys";
86
+ };
87
+ declare const DFX_POINTS: {
88
+ readonly SNR: {
89
+ readonly meta: {
90
+ readonly availableAfterSec: 5;
91
+ readonly group: "metadata";
92
+ readonly range: {
93
+ readonly min: -10;
94
+ readonly max: 20;
95
+ };
96
+ readonly requirements: {
97
+ readonly profileInfo: false;
98
+ readonly medicalHistory: false;
99
+ };
100
+ readonly ranges: {
101
+ readonly global: [];
102
+ };
103
+ readonly dialBandColors: {
104
+ readonly global: [];
105
+ };
106
+ };
107
+ };
108
+ readonly HR_BPM: {
109
+ readonly meta: {
110
+ readonly availableAfterSec: 5;
111
+ readonly group: "vitals";
112
+ readonly range: {
113
+ readonly min: 0;
114
+ readonly max: 140;
115
+ };
116
+ readonly requirements: {
117
+ readonly profileInfo: false;
118
+ readonly medicalHistory: false;
119
+ };
120
+ readonly ranges: {
121
+ readonly global: [[[0, 20], [20, 24.44], [24.44, 28.88], [28.88, 33.32], [33.32, 37.76], [37.76, 42.2], [42.2, 46.64], [46.64, 51.08], [51.08, 55.52], [55.52, 60]], [[60, 61.33], [61.33, 62.67], [62.67, 64], [64, 65.33], [65.33, 66.67], [66.67, 68], [68, 69.33], [69.33, 70.67], [70.67, 72], [72, 73.33], [73.33, 74.67], [74.67, 76], [76, 77.33], [77.33, 78.67], [78.67, 80], [80, 81.33], [81.33, 82.67], [82.67, 84], [84, 85.33], [85.33, 86.67], [86.67, 88], [88, 89.33], [89.33, 90.67], [90.67, 92], [92, 93.33], [93.33, 94.67], [94.67, 96], [96, 97.33], [97.33, 98.67], [98.67, 100]], [[100, 104], [104, 108], [108, 112], [112, 116], [116, 120], [120, 124], [124, 128], [128, 132], [132, 136], [136, 140], [140, number]]];
122
+ };
123
+ readonly dialBandColors: {
124
+ readonly global: ["YELLOW", "GREEN", "YELLOW"];
125
+ };
126
+ };
127
+ };
128
+ readonly BP_SYSTOLIC: {
129
+ readonly meta: {
130
+ readonly availableAfterSec: 30;
131
+ readonly group: "vitals";
132
+ readonly range: {
133
+ readonly min: 45;
134
+ readonly max: 180;
135
+ };
136
+ readonly requirements: {
137
+ readonly profileInfo: true;
138
+ readonly medicalHistory: false;
139
+ };
140
+ readonly ranges: {
141
+ readonly global: [[[0, 45], [45, 50], [50, 55], [55, 60], [60, 65], [65, 70], [70, 75], [75, 80], [80, 85], [85, 90]], [[90, 93], [93, 96], [96, 99], [99, 102], [102, 105], [105, 108], [108, 111], [111, 114], [114, 117], [117, 120]], [[120, 121], [121, 122], [122, 123], [123, 124], [124, 125], [125, 126], [126, 127], [127, 128], [128, 129], [129, 130]], [[130, 131], [131, 132], [132, 133], [133, 134], [134, 135], [135, 136], [136, 137], [137, 138], [138, 139], [139, 140]], [[140, 144], [144, 148], [148, 152], [152, 156], [156, 160], [160, 164], [164, 168], [168, 172], [172, 176], [176, 180], [180, number]]];
142
+ };
143
+ readonly dialBandColors: {
144
+ readonly global: ["YELLOW", "GREEN", "LIGHT_GREEN", "YELLOW", "RED"];
145
+ };
146
+ };
147
+ };
148
+ readonly BP_DIASTOLIC: {
149
+ readonly meta: {
150
+ readonly availableAfterSec: 30;
151
+ readonly group: "vitals";
152
+ readonly range: {
153
+ readonly min: 30;
154
+ readonly max: 120;
155
+ };
156
+ readonly requirements: {
157
+ readonly profileInfo: true;
158
+ readonly medicalHistory: false;
159
+ };
160
+ readonly ranges: {
161
+ readonly global: [[[0, 30], [30, 33.34], [33.34, 36.67], [36.67, 40], [40, 43.34], [43.34, 46.67], [46.67, 50], [50, 53.33], [53.33, 56.67], [56.67, 60]], [[60, 61], [61, 62], [62, 63], [63, 64], [64, 65], [65, 66], [66, 67], [67, 68], [68, 69], [69, 70]], [[70, 71], [71, 72], [72, 73], [73, 74], [74, 75], [75, 76], [76, 77], [77, 78], [78, 79], [79, 80]], [[80, 81], [81, 82], [82, 83], [83, 84], [84, 85], [85, 86], [86, 87], [87, 88], [88, 89], [89, 90]], [[90, 93], [93, 96], [96, 99], [99, 102], [102, 105], [105, 108], [108, 111], [111, 114], [114, 117], [117, 120], [120, number]]];
162
+ };
163
+ readonly dialBandColors: {
164
+ readonly global: ["YELLOW", "GREEN", "LIGHT_GREEN", "YELLOW", "RED"];
165
+ };
166
+ };
167
+ };
168
+ readonly BR_BPM: {
169
+ readonly meta: {
170
+ readonly availableAfterSec: 30;
171
+ readonly group: "vitals";
172
+ readonly range: {
173
+ readonly min: 1.2;
174
+ readonly max: 35;
175
+ };
176
+ readonly requirements: {
177
+ readonly profileInfo: false;
178
+ readonly medicalHistory: false;
179
+ };
180
+ readonly ranges: {
181
+ readonly global: [[[0, 1.2], [1.2, 2.4], [2.4, 3.6], [3.6, 4.8], [4.8, 6], [6, 7.2], [7.2, 8.4], [8.4, 9.6], [9.6, 10.8], [10.8, 12]], [[12, 12.4], [12.4, 12.8], [12.8, 13.2], [13.2, 13.6], [13.6, 14], [14, 14.4], [14.4, 14.8], [14.8, 15.2], [15.2, 15.6], [15.6, 16], [16, 16.5], [16.5, 17], [17, 17.5], [17.5, 18], [18, 18.5], [18.5, 19], [19, 19.5], [19.5, 20], [20, 20.5], [20.5, 21], [21, 21.4], [21.4, 21.8], [21.8, 22.2], [22.2, 22.6], [22.6, 23], [23, 23.4], [23.4, 23.8], [23.8, 24.2], [24.2, 24.6], [24.6, 25]], [[25, 26], [26, 27], [27, 28], [28, 29], [29, 30], [30, 31], [31, 32], [32, 33], [33, 34], [34, 35], [35, number]]];
182
+ };
183
+ readonly dialBandColors: {
184
+ readonly global: ["YELLOW", "GREEN", "YELLOW"];
185
+ };
186
+ };
187
+ };
188
+ readonly HRV_SDNN: {
189
+ readonly meta: {
190
+ readonly availableAfterSec: 30;
191
+ readonly group: "physiological";
192
+ readonly range: {
193
+ readonly min: 1;
194
+ readonly max: 80;
195
+ };
196
+ readonly requirements: {
197
+ readonly profileInfo: false;
198
+ readonly medicalHistory: false;
199
+ };
200
+ readonly ranges: {
201
+ readonly global: [[[0, 1.1], [1.1, 2.2], [2.2, 3.2], [3.2, 4.3], [4.3, 5.4], [5.4, 6.5], [6.5, 7.6], [7.6, 8.6], [8.6, 9.7], [9.7, 10.8]], [[10.8, 11.4], [11.4, 11.9], [11.9, 12.5], [12.5, 13], [13, 13.6], [13.6, 14.2], [14.2, 14.7], [14.7, 15.3], [15.3, 15.8], [15.8, 16.4]], [[16.4, 18.3], [18.3, 20.2], [20.2, 22.1], [22.1, 24], [24, 26], [26, 27.9], [27.9, 29.8], [29.8, 31.7], [31.7, 33.6], [33.6, 35.5]], [[35.5, 37.1], [37.1, 38.7], [38.7, 40.3], [40.3, 41.9], [41.9, 43.5], [43.5, 45.1], [45.1, 46.7], [46.7, 48.3], [48.3, 49.9], [49.9, 51.5]], [[51.5, 54.4], [54.4, 57.2], [57.2, 60.1], [60.1, 62.9], [62.9, 65.8], [65.8, 68.6], [68.6, 71.5], [71.5, 74.3], [74.3, 77.2], [77.2, 80], [80, number]]];
202
+ };
203
+ readonly dialBandColors: {
204
+ readonly global: ["RED", "LIGHT_RED", "YELLOW", "LIGHT_GREEN", "GREEN"];
205
+ };
206
+ };
207
+ };
208
+ readonly ABSI: {
209
+ readonly meta: {
210
+ readonly availableAfterSec: 5;
211
+ readonly group: "physical";
212
+ readonly range: {
213
+ readonly min: 6.19;
214
+ readonly max: 8.83;
215
+ };
216
+ readonly requirements: {
217
+ readonly profileInfo: true;
218
+ readonly medicalHistory: false;
219
+ };
220
+ readonly ranges: {
221
+ readonly globalMale: [[[0, 6.6], [6.6, 6.66], [6.66, 6.71], [6.71, 6.77], [6.77, 6.82], [6.82, 6.88], [6.88, 6.93], [6.93, 6.99], [6.99, 7.04], [7.04, 7.1]], [[7.1, 7.15], [7.15, 7.2], [7.2, 7.25], [7.25, 7.3], [7.3, 7.35], [7.35, 7.4], [7.4, 7.45], [7.45, 7.5], [7.5, 7.55], [7.55, 7.6]], [[7.6, 7.7], [7.7, 7.8], [7.8, 7.9], [7.9, 8], [8, 8.1], [8.1, 8.2], [8.2, 8.3], [8.3, 8.4], [8.4, 8.5], [8.5, 8.6]], [[8.6, 8.65], [8.65, 8.7], [8.7, 8.75], [8.75, 8.8], [8.8, 8.85], [8.85, 8.9], [8.9, 8.95], [8.95, 9], [9, 9.05], [9.05, 9.1]], [[9.1, 9.15], [9.15, 9.2], [9.2, 9.25], [9.25, 9.3], [9.3, 9.35], [9.35, 9.4], [9.4, 9.45], [9.45, 9.5], [9.5, 9.55], [9.55, 9.6], [9.6, number]]];
222
+ readonly globalFemale: [[[0, 6.2], [6.2, 6.27], [6.27, 6.33], [6.33, 6.4], [6.4, 6.47], [6.47, 6.53], [6.53, 6.6], [6.6, 6.67], [6.67, 6.73], [6.73, 6.8]], [[6.8, 6.86], [6.86, 6.92], [6.92, 6.98], [6.98, 7.04], [7.04, 7.1], [7.1, 7.16], [7.16, 7.22], [7.22, 7.28], [7.28, 7.34], [7.34, 7.4]], [[7.4, 7.52], [7.52, 7.64], [7.64, 7.76], [7.76, 7.88], [7.88, 8], [8, 8.12], [8.12, 8.24], [8.24, 8.36], [8.36, 8.48], [8.48, 8.6]], [[8.6, 8.66], [8.66, 8.72], [8.72, 8.78], [8.78, 8.84], [8.84, 8.9], [8.9, 8.96], [8.96, 9.02], [9.02, 9.08], [9.08, 9.14], [9.14, 9.2]], [[9.2, 9.26], [9.26, 9.32], [9.32, 9.38], [9.38, 9.44], [9.44, 9.5], [9.5, 9.56], [9.56, 9.62], [9.62, 9.68], [9.68, 9.74], [9.74, 9.8], [9.8, number]]];
223
+ readonly eastAsiaMale: [[[0, 6.75], [6.75, 6.79], [6.79, 6.83], [6.83, 6.87], [6.87, 6.92], [6.92, 6.96], [6.96, 7], [7, 7.04], [7.04, 7.08], [7.08, 7.12]], [[7.12, 7.16], [7.16, 7.2], [7.2, 7.23], [7.23, 7.27], [7.27, 7.31], [7.31, 7.34], [7.34, 7.38], [7.38, 7.42], [7.42, 7.46], [7.46, 7.49]], [[7.49, 7.57], [7.57, 7.64], [7.64, 7.71], [7.71, 7.79], [7.79, 7.86], [7.86, 7.94], [7.94, 8.01], [8.01, 8.08], [8.08, 8.16], [8.16, 8.23]], [[8.23, 8.27], [8.27, 8.31], [8.31, 8.34], [8.34, 8.38], [8.38, 8.42], [8.42, 8.45], [8.45, 8.49], [8.49, 8.53], [8.53, 8.56], [8.56, 8.6]], [[8.6, 8.64], [8.64, 8.67], [8.67, 8.71], [8.71, 8.75], [8.75, 8.79], [8.79, 8.82], [8.82, 8.86], [8.86, 8.9], [8.9, 8.93], [8.93, 8.97], [8.97, number]]];
224
+ readonly eastAsiaFemale: [[[0, 6.19], [6.19, 6.24], [6.24, 6.29], [6.29, 6.33], [6.33, 6.38], [6.38, 6.43], [6.43, 6.48], [6.48, 6.53], [6.53, 6.58], [6.58, 6.63]], [[6.63, 6.67], [6.67, 6.71], [6.71, 6.76], [6.76, 6.8], [6.8, 6.85], [6.85, 6.89], [6.89, 6.93], [6.93, 6.98], [6.98, 7.02], [7.02, 7.07]], [[7.07, 7.16], [7.16, 7.24], [7.24, 7.33], [7.33, 7.42], [7.42, 7.51], [7.51, 7.6], [7.6, 7.68], [7.68, 7.77], [7.77, 7.86], [7.86, 7.95]], [[7.95, 7.99], [7.99, 8.04], [8.04, 8.08], [8.08, 8.13], [8.13, 8.17], [8.17, 8.21], [8.21, 8.26], [8.26, 8.3], [8.3, 8.35], [8.35, 8.39]], [[8.39, 8.43], [8.43, 8.48], [8.48, 8.52], [8.52, 8.57], [8.57, 8.61], [8.61, 8.65], [8.65, 8.7], [8.7, 8.74], [8.74, 8.79], [8.79, 8.83], [8.83, number]]];
225
+ };
226
+ readonly dialBandColors: {
227
+ readonly globalMale: ["GREEN", "LIGHT_GREEN", "YELLOW", "LIGHT_RED", "RED"];
228
+ readonly globalFemale: ["GREEN", "LIGHT_GREEN", "YELLOW", "LIGHT_RED", "RED"];
229
+ readonly eastAsiaMale: ["GREEN", "LIGHT_GREEN", "YELLOW", "LIGHT_RED", "RED"];
230
+ readonly eastAsiaFemale: ["GREEN", "LIGHT_GREEN", "YELLOW", "LIGHT_RED", "RED"];
231
+ };
232
+ };
233
+ };
234
+ readonly BMI_CALC: {
235
+ readonly meta: {
236
+ readonly availableAfterSec: 5;
237
+ readonly group: "physical";
238
+ readonly range: {
239
+ readonly min: 10;
240
+ readonly max: 60;
241
+ };
242
+ readonly requirements: {
243
+ readonly profileInfo: true;
244
+ readonly medicalHistory: false;
245
+ };
246
+ readonly ranges: {
247
+ readonly global: [[[0, 10], [10, 10.9], [10.9, 11.9], [11.9, 12.8], [12.8, 13.8], [13.8, 14.7], [14.7, 15.7], [15.7, 16.6], [16.6, 17.6], [17.6, 18.5]], [[18.5, 19.2], [19.2, 19.8], [19.8, 20.5], [20.5, 21.1], [21.1, 21.8], [21.8, 22.4], [22.4, 23.1], [23.1, 23.7], [23.7, 24.4], [24.4, 25]], [[25, 25.5], [25.5, 26], [26, 26.5], [26.5, 27], [27, 27.5], [27.5, 28], [28, 28.5], [28.5, 29], [29, 29.5], [29.5, 30]], [[30, 30.5], [30.5, 31], [31, 31.5], [31.5, 32], [32, 32.5], [32.5, 33], [33, 33.5], [33.5, 34], [34, 34.5], [34.5, 35]], [[35, 37.5], [37.5, 40], [40, 42.5], [42.5, 45], [45, 47.5], [47.5, 50], [50, 52.5], [52.5, 55], [55, 57.5], [57.5, 60], [60, number]]];
248
+ readonly eastAsiaMale: [[[0, 10], [10, 10.9], [10.9, 11.9], [11.9, 12.8], [12.8, 13.8], [13.8, 14.7], [14.7, 15.7], [15.7, 16.6], [16.6, 17.6], [17.6, 18.5]], [[18.5, 19.1], [19.1, 19.6], [19.6, 20.2], [20.2, 20.7], [20.7, 21.3], [21.3, 21.8], [21.8, 22.4], [22.4, 22.9], [22.9, 23.5], [23.5, 24]], [[24, 24.4], [24.4, 24.8], [24.8, 25.2], [25.2, 25.6], [25.6, 26], [26, 26.4], [26.4, 26.8], [26.8, 27.2], [27.2, 27.6], [27.6, 28]], [[28, 28.7], [28.7, 29.4], [29.4, 30.1], [30.1, 30.8], [30.8, 31.5], [31.5, 32.2], [32.2, 32.9], [32.9, 33.6], [33.6, 34.3], [34.3, 35], [35, number]]];
249
+ readonly eastAsiaFemale: [[[0, 10], [10, 10.9], [10.9, 11.9], [11.9, 12.8], [12.8, 13.8], [13.8, 14.7], [14.7, 15.7], [15.7, 16.6], [16.6, 17.6], [17.6, 18.5]], [[18.5, 19.1], [19.1, 19.6], [19.6, 20.2], [20.2, 20.7], [20.7, 21.3], [21.3, 21.8], [21.8, 22.4], [22.4, 22.9], [22.9, 23.5], [23.5, 24]], [[24, 24.4], [24.4, 24.8], [24.8, 25.2], [25.2, 25.6], [25.6, 26], [26, 26.4], [26.4, 26.8], [26.8, 27.2], [27.2, 27.6], [27.6, 28]], [[28, 28.7], [28.7, 29.4], [29.4, 30.1], [30.1, 30.8], [30.8, 31.5], [31.5, 32.2], [32.2, 32.9], [32.9, 33.6], [33.6, 34.3], [34.3, 35], [35, number]]];
250
+ };
251
+ readonly dialBandColors: {
252
+ readonly global: ["YELLOW", "GREEN", "YELLOW", "LIGHT_RED", "RED"];
253
+ readonly eastAsiaMale: ["YELLOW", "GREEN", "YELLOW", "RED"];
254
+ readonly eastAsiaFemale: ["YELLOW", "GREEN", "YELLOW", "RED"];
255
+ };
256
+ };
257
+ };
258
+ readonly BP_RPP: {
259
+ readonly meta: {
260
+ readonly availableAfterSec: 30;
261
+ readonly group: "physiological";
262
+ readonly range: {
263
+ readonly min: 3.71;
264
+ readonly max: 4.28;
265
+ };
266
+ readonly requirements: {
267
+ readonly profileInfo: true;
268
+ readonly medicalHistory: false;
269
+ };
270
+ readonly ranges: {
271
+ readonly global: [[[0, 3.71], [3.71, 3.72], [3.72, 3.73], [3.73, 3.74], [3.74, 3.75], [3.75, 3.76], [3.76, 3.77], [3.77, 3.78], [3.78, 3.79], [3.79, 3.8]], [[3.8, 3.81], [3.81, 3.82], [3.82, 3.83], [3.83, 3.84], [3.84, 3.85], [3.85, 3.86], [3.86, 3.87], [3.87, 3.88], [3.88, 3.89], [3.89, 3.9]], [[3.9, 3.91], [3.91, 3.93], [3.93, 3.95], [3.95, 3.97], [3.97, 3.99], [3.99, 4.01], [4.01, 4.03], [4.03, 4.05], [4.05, 4.06], [4.06, 4.08]], [[4.08, 4.09], [4.09, 4.1], [4.1, 4.11], [4.11, 4.12], [4.12, 4.13], [4.13, 4.14], [4.14, 4.15], [4.15, 4.16], [4.16, 4.17], [4.17, 4.18]], [[4.18, 4.19], [4.19, 4.2], [4.2, 4.21], [4.21, 4.22], [4.22, 4.23], [4.23, 4.24], [4.24, 4.25], [4.25, 4.26], [4.26, 4.27], [4.27, 4.28], [4.28, number]]];
272
+ };
273
+ readonly dialBandColors: {
274
+ readonly global: ["GREEN", "LIGHT_GREEN", "YELLOW", "LIGHT_RED", "RED"];
275
+ };
276
+ };
277
+ };
278
+ readonly BP_CVD: {
279
+ readonly meta: {
280
+ readonly availableAfterSec: 30;
281
+ readonly group: "generalRisks";
282
+ readonly range: {
283
+ readonly min: 0;
284
+ readonly max: 100;
285
+ };
286
+ readonly requirements: {
287
+ readonly profileInfo: true;
288
+ readonly medicalHistory: true;
289
+ };
290
+ readonly ranges: {
291
+ readonly global: [[[0, 0.5], [0.5, 1], [1, 1.5], [1.5, 2], [2, 2.5], [2.5, 3], [3, 3.5], [3.5, 4], [4, 4.5], [4.5, 5]], [[5, 5.25], [5.25, 5.5], [5.5, 5.75], [5.75, 6], [6, 6.25], [6.25, 6.5], [6.5, 6.75], [6.75, 7], [7, 7.25]], [[7.25, 7.5], [7.5, 7.75], [7.75, 8], [8, 8.25], [8.25, 8.5], [8.5, 8.75], [8.75, 9], [9, 9.25], [9.25, 9.5], [9.5, 9.75], [9.75, 10]], [[10, 11], [11, 12], [12, 13], [13, 14], [14, 15], [15, 16], [16, 17], [17, 18], [18, 19], [19, 20]], [[20, 28], [28, 36], [36, 44], [44, 52], [52, 60], [60, 68], [68, 76], [76, 84], [84, 92], [92, 100], [100, number]]];
292
+ };
293
+ readonly dialBandColors: {
294
+ readonly global: ["GREEN", "LIGHT_GREEN", "YELLOW", "LIGHT_RED", "RED"];
295
+ };
296
+ };
297
+ };
298
+ readonly HEALTH_SCORE: {
299
+ readonly meta: {
300
+ readonly availableAfterSec: 30;
301
+ readonly group: "overall";
302
+ readonly range: {
303
+ readonly min: 0;
304
+ readonly max: 100;
305
+ };
306
+ readonly requirements: {
307
+ readonly profileInfo: true;
308
+ readonly medicalHistory: true;
309
+ };
310
+ readonly ranges: {
311
+ readonly global: [[[0, 2], [2, 4], [4, 6], [6, 8], [8, 10], [10, 12], [12, 14], [14, 16], [16, 18], [18, 20]], [[20, 22], [22, 24], [24, 26], [26, 28], [28, 30], [30, 32], [32, 34], [34, 36], [36, 38], [38, 40]], [[40, 42], [42, 44], [44, 46], [46, 48], [48, 50], [50, 52], [52, 54], [54, 56], [56, 58], [58, 60]], [[60, 62], [62, 64], [64, 66], [66, 68], [68, 70], [70, 72], [72, 74], [74, 76], [76, 78], [78, 80]], [[80, 82], [82, 84], [84, 86], [86, 88], [88, 90], [90, 92], [92, 94], [94, 96], [96, 98], [98, 100], [100, number]]];
312
+ };
313
+ readonly dialBandColors: {
314
+ readonly global: ["RED", "LIGHT_RED", "YELLOW", "LIGHT_GREEN", "GREEN"];
315
+ };
316
+ };
317
+ };
318
+ readonly BP_HEART_ATTACK: {
319
+ readonly meta: {
320
+ readonly availableAfterSec: 30;
321
+ readonly group: "generalRisks";
322
+ readonly range: {
323
+ readonly min: 0;
324
+ readonly max: 100;
325
+ };
326
+ readonly requirements: {
327
+ readonly profileInfo: true;
328
+ readonly medicalHistory: true;
329
+ };
330
+ readonly ranges: {
331
+ readonly global: [[[0, 0.17], [0.17, 0.33], [0.33, 0.5], [0.5, 0.66], [0.66, 0.83], [0.83, 0.99], [0.99, 1.16], [1.16, 1.32], [1.32, 1.49], [1.49, 1.65]], [[1.65, 1.73], [1.73, 1.82], [1.82, 1.9], [1.9, 1.98], [1.98, 2.06], [2.06, 2.15], [2.15, 2.23], [2.23, 2.31], [2.31, 2.39]], [[2.39, 2.48], [2.48, 2.56], [2.56, 2.64], [2.64, 2.72], [2.72, 2.81], [2.81, 2.89], [2.89, 2.97], [2.97, 3.05], [3.05, 3.14], [3.14, 3.22], [3.22, 3.3]], [[3.3, 3.63], [3.63, 3.96], [3.96, 4.29], [4.29, 4.62], [4.62, 4.95], [4.95, 5.28], [5.28, 5.61], [5.61, 5.94], [5.94, 6.27], [6.27, 6.6]], [[6.6, 9.24], [9.24, 11.88], [11.88, 14.52], [14.52, 17.16], [17.16, 19.8], [19.8, 22.44], [22.4, 25.08], [25.08, 27.72], [27.72, 30.36], [30.36, 33], [33, number]]];
332
+ };
333
+ readonly dialBandColors: {
334
+ readonly global: ["GREEN", "LIGHT_GREEN", "YELLOW", "LIGHT_RED", "RED"];
335
+ };
336
+ };
337
+ };
338
+ readonly IHB_COUNT: {
339
+ readonly meta: {
340
+ readonly availableAfterSec: 30;
341
+ readonly group: "vitals";
342
+ readonly range: {
343
+ readonly min: 0;
344
+ readonly max: 4;
345
+ };
346
+ readonly requirements: {
347
+ readonly profileInfo: false;
348
+ readonly medicalHistory: false;
349
+ };
350
+ readonly ranges: {
351
+ readonly global: [[[0, 4], [4, number]]];
352
+ };
353
+ readonly dialBandColors: {
354
+ readonly global: [];
355
+ };
356
+ };
357
+ };
358
+ readonly MSI: {
359
+ readonly meta: {
360
+ readonly availableAfterSec: 30;
361
+ readonly group: "mental";
362
+ readonly range: {
363
+ readonly min: 1;
364
+ readonly max: 5.9;
365
+ };
366
+ readonly requirements: {
367
+ readonly profileInfo: false;
368
+ readonly medicalHistory: false;
369
+ };
370
+ readonly ranges: {
371
+ readonly global: [[[1, 1.1], [1.1, 1.2], [1.2, 1.3], [1.3, 1.4], [1.4, 1.5], [1.5, 1.6], [1.6, 1.7], [1.7, 1.8], [1.8, 1.9], [1.9, 2]], [[2, 2.1], [2.1, 2.2], [2.2, 2.3], [2.3, 2.4], [2.4, 2.5], [2.5, 2.6], [2.6, 2.7], [2.7, 2.8], [2.8, 2.9], [2.9, 3]], [[3, 3.1], [3.1, 3.2], [3.2, 3.3], [3.3, 3.4], [3.4, 3.5], [3.5, 3.6], [3.6, 3.7], [3.7, 3.8], [3.8, 3.9], [3.9, 4]], [[4, 4.1], [4.1, 4.2], [4.2, 4.3], [4.3, 4.4], [4.4, 4.5], [4.5, 4.6], [4.6, 4.7], [4.7, 4.8], [4.8, 4.9], [4.9, 5]], [[5, 5.1], [5.1, 5.2], [5.2, 5.3], [5.3, 5.4], [5.4, 5.5], [5.5, 5.6], [5.6, 5.7], [5.7, 5.8], [5.8, 5.9], [5.9, 6], [6, number]]];
372
+ };
373
+ readonly dialBandColors: {
374
+ readonly global: ["GREEN", "LIGHT_GREEN", "YELLOW", "LIGHT_RED", "RED"];
375
+ };
376
+ };
377
+ };
378
+ readonly BP_STROKE: {
379
+ readonly meta: {
380
+ readonly availableAfterSec: 30;
381
+ readonly group: "generalRisks";
382
+ readonly range: {
383
+ readonly min: 0;
384
+ readonly max: 100;
385
+ };
386
+ readonly requirements: {
387
+ readonly profileInfo: true;
388
+ readonly medicalHistory: true;
389
+ };
390
+ readonly ranges: {
391
+ readonly global: [[[0, 0.33], [0.33, 0.66], [0.66, 0.99], [0.99, 1.32], [1.32, 1.65], [1.65, 1.98], [1.98, 2.31], [2.31, 2.64], [2.64, 2.97], [2.97, 3.3]], [[3.3, 3.47], [3.47, 3.63], [3.63, 3.8], [3.8, 3.96], [3.96, 4.13], [4.13, 4.29], [4.29, 4.46], [4.46, 4.62], [4.62, 4.79]], [[4.79, 4.95], [4.95, 5.12], [5.12, 5.28], [5.28, 5.45], [5.45, 5.61], [5.61, 5.78], [5.78, 5.94], [5.94, 6.11], [6.11, 6.27], [6.27, 6.44], [6.44, 6.6]], [[6.6, 7.26], [7.26, 7.92], [7.92, 8.58], [8.58, 9.24], [9.24, 9.9], [9.9, 10.56], [10.56, 11.22], [11.22, 11.88], [11.88, 12.54], [12.54, 13.2]], [[13.2, 18.48], [18.48, 23.76], [23.76, 29.04], [29.04, 34.32], [34.32, 39.6], [39.6, 44.88], [44.88, 50.16], [50.16, 55.44], [55.44, 60.72], [60.72, 66], [66, number]]];
392
+ };
393
+ readonly dialBandColors: {
394
+ readonly global: ["GREEN", "LIGHT_GREEN", "YELLOW", "LIGHT_RED", "RED"];
395
+ };
396
+ };
397
+ };
398
+ readonly BP_TAU: {
399
+ readonly meta: {
400
+ readonly availableAfterSec: 30;
401
+ readonly group: "physiological";
402
+ readonly range: {
403
+ readonly min: 0.3;
404
+ readonly max: 3;
405
+ };
406
+ readonly requirements: {
407
+ readonly profileInfo: true;
408
+ readonly medicalHistory: false;
409
+ };
410
+ readonly ranges: {
411
+ readonly global: [[[0, 0.3], [0.3, 0.35], [0.35, 0.41], [0.41, 0.46], [0.46, 0.52], [0.52, 0.57], [0.57, 0.62], [0.62, 0.68], [0.68, 0.73], [0.73, 0.79]], [[0.79, 0.82], [0.82, 0.86], [0.86, 0.89], [0.89, 0.92], [0.92, 0.96], [0.96, 0.99], [0.99, 1.02], [1.02, 1.05], [1.05, 1.09], [1.09, 1.12]], [[1.12, 1.19], [1.19, 1.25], [1.25, 1.32], [1.32, 1.38], [1.38, 1.45], [1.45, 1.52], [1.52, 1.58], [1.58, 1.65], [1.65, 1.71], [1.71, 1.78]], [[1.78, 1.81], [1.81, 1.85], [1.85, 1.88], [1.88, 1.91], [1.91, 1.95], [1.95, 1.98], [1.98, 2.01], [2.01, 2.04], [2.04, 2.08], [2.08, 2.11]], [[2.11, 2.2], [2.2, 2.29], [2.29, 2.38], [2.38, 2.47], [2.47, 2.56], [2.56, 2.64], [2.64, 2.73], [2.73, 2.82], [2.82, 2.91], [2.91, 3], [3, number]]];
412
+ };
413
+ readonly dialBandColors: {
414
+ readonly global: ["RED", "LIGHT_RED", "YELLOW", "LIGHT_GREEN", "GREEN"];
415
+ };
416
+ };
417
+ };
418
+ readonly HBA1C_RISK_PROB: {
419
+ readonly meta: {
420
+ readonly availableAfterSec: 30;
421
+ readonly group: "bloodBiomarkers";
422
+ readonly range: {
423
+ readonly min: 0;
424
+ readonly max: 100;
425
+ };
426
+ readonly requirements: {
427
+ readonly profileInfo: true;
428
+ readonly medicalHistory: false;
429
+ };
430
+ readonly ranges: {
431
+ readonly global: [[[0, 2.5], [2.5, 5], [5, 7.5], [7.5, 10], [10, 12.5], [12.5, 15], [15, 17.5], [17.5, 20], [20, 22.5], [22.5, 25]], [[25, 27.5], [27.5, 30], [30, 32.5], [32.5, 35], [35, 37.5], [37.5, 40], [40, 42.5], [42.5, 45]], [[45, 47.5], [47.5, 50], [50, 52.5], [52.5, 55]], [[55, 57.5], [57.5, 60], [60, 62.5], [62.5, 65], [65, 67.5], [67.5, 70], [70, 72.5], [72.5, 75], [75, 77.5]], [[77.5, 80], [80, 82.5], [82.5, 85], [85, 87.5], [87.5, 90], [90, 92.5], [92.5, 95], [95, 97.5], [97.5, 100], [100, number]]];
432
+ };
433
+ readonly dialBandColors: {
434
+ readonly global: ["GREEN", "LIGHT_GREEN", "YELLOW", "LIGHT_RED", "RED"];
435
+ };
436
+ };
437
+ };
438
+ readonly MFBG_RISK_PROB: {
439
+ readonly meta: {
440
+ readonly availableAfterSec: 30;
441
+ readonly group: "bloodBiomarkers";
442
+ readonly range: {
443
+ readonly min: 0;
444
+ readonly max: 100;
445
+ };
446
+ readonly requirements: {
447
+ readonly profileInfo: true;
448
+ readonly medicalHistory: false;
449
+ };
450
+ readonly ranges: {
451
+ readonly global: [[[0, 2.5], [2.5, 5], [5, 7.5], [7.5, 10], [10, 12.5], [12.5, 15], [15, 17.5], [17.5, 20], [20, 22.5], [22.5, 25]], [[25, 27.5], [27.5, 30], [30, 32.5], [32.5, 35], [35, 37.5], [37.5, 40], [40, 42.5], [42.5, 45]], [[45, 47.5], [47.5, 50], [50, 52.5], [52.5, 55]], [[55, 57.5], [57.5, 60], [60, 62.5], [62.5, 65], [65, 67.5], [67.5, 70], [70, 72.5], [72.5, 75], [75, 77.5]], [[77.5, 80], [80, 82.5], [82.5, 85], [85, 87.5], [87.5, 90], [90, 92.5], [92.5, 95], [95, 97.5], [97.5, 100], [100, number]]];
452
+ };
453
+ readonly dialBandColors: {
454
+ readonly global: ["GREEN", "LIGHT_GREEN", "YELLOW", "LIGHT_RED", "RED"];
455
+ };
456
+ };
457
+ };
458
+ readonly HPT_RISK_PROB: {
459
+ readonly meta: {
460
+ readonly availableAfterSec: 30;
461
+ readonly group: "metabolicRisks";
462
+ readonly range: {
463
+ readonly min: 0;
464
+ readonly max: 100;
465
+ };
466
+ readonly requirements: {
467
+ readonly profileInfo: true;
468
+ readonly medicalHistory: false;
469
+ };
470
+ readonly ranges: {
471
+ readonly global: [[[0, 2.5], [2.5, 5], [5, 7.5], [7.5, 10], [10, 12.5], [12.5, 15], [15, 17.5], [17.5, 20], [20, 22.5], [22.5, 25]], [[25, 27.5], [27.5, 30], [30, 32.5], [32.5, 35], [35, 37.5], [37.5, 40], [40, 42.5], [42.5, 45]], [[45, 47.5], [47.5, 50], [50, 52.5], [52.5, 55]], [[55, 57.5], [57.5, 60], [60, 62.5], [62.5, 65], [65, 67.5], [67.5, 70], [70, 72.5], [72.5, 75], [75, 77.5]], [[77.5, 80], [80, 82.5], [82.5, 85], [85, 87.5], [87.5, 90], [90, 92.5], [92.5, 95], [95, 97.5], [97.5, 100], [100, number]]];
472
+ };
473
+ readonly dialBandColors: {
474
+ readonly global: ["GREEN", "LIGHT_GREEN", "YELLOW", "LIGHT_RED", "RED"];
475
+ };
476
+ };
477
+ };
478
+ readonly DBT_RISK_PROB: {
479
+ readonly meta: {
480
+ readonly availableAfterSec: 30;
481
+ readonly group: "metabolicRisks";
482
+ readonly range: {
483
+ readonly min: 0;
484
+ readonly max: 100;
485
+ };
486
+ readonly requirements: {
487
+ readonly profileInfo: true;
488
+ readonly medicalHistory: false;
489
+ };
490
+ readonly ranges: {
491
+ readonly global: [[[0, 2.5], [2.5, 5], [5, 7.5], [7.5, 10], [10, 12.5], [12.5, 15], [15, 17.5], [17.5, 20], [20, 22.5], [22.5, 25]], [[25, 27.5], [27.5, 30], [30, 32.5], [32.5, 35], [35, 37.5], [37.5, 40], [40, 42.5], [42.5, 45]], [[45, 47.5], [47.5, 50], [50, 52.5], [52.5, 55]], [[55, 57.5], [57.5, 60], [60, 62.5], [62.5, 65], [65, 67.5], [67.5, 70], [70, 72.5], [72.5, 75], [75, 77.5]], [[77.5, 80], [80, 82.5], [82.5, 85], [85, 87.5], [87.5, 90], [90, 92.5], [92.5, 95], [95, 97.5], [97.5, 100], [100, number]]];
492
+ };
493
+ readonly dialBandColors: {
494
+ readonly global: ["GREEN", "LIGHT_GREEN", "YELLOW", "LIGHT_RED", "RED"];
495
+ };
496
+ };
497
+ };
498
+ readonly HDLTC_RISK_PROB: {
499
+ readonly meta: {
500
+ readonly availableAfterSec: 30;
501
+ readonly group: "metabolicRisks";
502
+ readonly range: {
503
+ readonly min: 0;
504
+ readonly max: 100;
505
+ };
506
+ readonly requirements: {
507
+ readonly profileInfo: true;
508
+ readonly medicalHistory: false;
509
+ };
510
+ readonly ranges: {
511
+ readonly global: [[[0, 2.5], [2.5, 5], [5, 7.5], [7.5, 10], [10, 12.5], [12.5, 15], [15, 17.5], [17.5, 20], [20, 22.5], [22.5, 25]], [[25, 27.5], [27.5, 30], [30, 32.5], [32.5, 35], [35, 37.5], [37.5, 40], [40, 42.5], [42.5, 45]], [[45, 47.5], [47.5, 50], [50, 52.5], [52.5, 55]], [[55, 57.5], [57.5, 60], [60, 62.5], [62.5, 65], [65, 67.5], [67.5, 70], [70, 72.5], [72.5, 75], [75, 77.5]], [[77.5, 80], [80, 82.5], [82.5, 85], [85, 87.5], [87.5, 90], [90, 92.5], [92.5, 95], [95, 97.5], [97.5, 100], [100, number]]];
512
+ };
513
+ readonly dialBandColors: {
514
+ readonly global: ["GREEN", "LIGHT_GREEN", "YELLOW", "LIGHT_RED", "RED"];
515
+ };
516
+ };
517
+ };
518
+ readonly TG_RISK_PROB: {
519
+ readonly meta: {
520
+ readonly availableAfterSec: 30;
521
+ readonly group: "metabolicRisks";
522
+ readonly range: {
523
+ readonly min: 0;
524
+ readonly max: 100;
525
+ };
526
+ readonly requirements: {
527
+ readonly profileInfo: true;
528
+ readonly medicalHistory: false;
529
+ };
530
+ readonly ranges: {
531
+ readonly global: [[[0, 2.5], [2.5, 5], [5, 7.5], [7.5, 10], [10, 12.5], [12.5, 15], [15, 17.5], [17.5, 20], [20, 22.5], [22.5, 25]], [[25, 27.5], [27.5, 30], [30, 32.5], [32.5, 35], [35, 37.5], [37.5, 40], [40, 42.5], [42.5, 45]], [[45, 47.5], [47.5, 50], [50, 52.5], [52.5, 55]], [[55, 57.5], [57.5, 60], [60, 62.5], [62.5, 65], [65, 67.5], [67.5, 70], [70, 72.5], [72.5, 75], [75, 77.5]], [[77.5, 80], [80, 82.5], [82.5, 85], [85, 87.5], [87.5, 90], [90, 92.5], [92.5, 95], [95, 97.5], [97.5, 100], [100, number]]];
532
+ };
533
+ readonly dialBandColors: {
534
+ readonly global: ["GREEN", "LIGHT_GREEN", "YELLOW", "LIGHT_RED", "RED"];
535
+ };
536
+ };
537
+ };
538
+ readonly AGE: {
539
+ readonly meta: {
540
+ readonly availableAfterSec: 5;
541
+ readonly range: {
542
+ readonly min: 13;
543
+ readonly max: 120;
544
+ };
545
+ readonly requirements: {
546
+ readonly profileInfo: false;
547
+ readonly medicalHistory: false;
548
+ };
549
+ readonly group: "physical";
550
+ readonly ranges: {
551
+ readonly global: [];
552
+ };
553
+ readonly dialBandColors: {
554
+ readonly global: [];
555
+ };
556
+ };
557
+ };
558
+ readonly FLD_RISK_PROB: {
559
+ readonly meta: {
560
+ readonly availableAfterSec: 30;
561
+ readonly range: {
562
+ readonly min: 0;
563
+ readonly max: 100;
564
+ };
565
+ readonly requirements: {
566
+ readonly profileInfo: true;
567
+ readonly medicalHistory: false;
568
+ };
569
+ readonly group: "metabolicRisks";
570
+ readonly ranges: {
571
+ readonly global: [[[0, 2.5], [2.5, 5], [5, 7.5], [7.5, 10], [10, 12.5], [12.5, 15], [15, 17.5], [17.5, 20], [20, 22.5], [22.5, 25]], [[25, 27.5], [27.5, 30], [30, 32.5], [32.5, 35], [35, 37.5], [37.5, 40], [40, 42.5], [42.5, 45]], [[45, 47.5], [47.5, 50], [50, 52.5], [52.5, 55]], [[55, 57.5], [57.5, 60], [60, 62.5], [62.5, 65], [65, 67.5], [67.5, 70], [70, 72.5], [72.5, 75], [75, 77.5]], [[77.5, 80], [80, 82.5], [82.5, 85], [85, 87.5], [87.5, 90], [90, 92.5], [92.5, 95], [95, 97.5], [97.5, 100], [100, number]]];
572
+ };
573
+ readonly dialBandColors: {
574
+ readonly global: ["GREEN", "LIGHT_GREEN", "YELLOW", "LIGHT_RED", "RED"];
575
+ };
576
+ };
577
+ };
578
+ readonly HEIGHT: {
579
+ readonly meta: {
580
+ readonly availableAfterSec: 5;
581
+ readonly range: {
582
+ readonly min: 120;
583
+ readonly max: 220;
584
+ };
585
+ readonly requirements: {
586
+ readonly profileInfo: false;
587
+ readonly medicalHistory: false;
588
+ };
589
+ readonly group: "physical";
590
+ readonly ranges: {
591
+ readonly global: [];
592
+ };
593
+ readonly dialBandColors: {
594
+ readonly global: [];
595
+ };
596
+ };
597
+ };
598
+ readonly MENTAL_SCORE: {
599
+ readonly meta: {
600
+ readonly availableAfterSec: 30;
601
+ readonly range: {
602
+ readonly min: 1;
603
+ readonly max: 5;
604
+ };
605
+ readonly requirements: {
606
+ readonly profileInfo: false;
607
+ readonly medicalHistory: false;
608
+ };
609
+ readonly group: "overall";
610
+ readonly ranges: {
611
+ readonly global: [[[0, 1.5], [1.5, 2.5], [2.5, 3.5], [3.5, 4.5], [4.5, number]]];
612
+ };
613
+ readonly dialBandColors: {
614
+ readonly global: [];
615
+ };
616
+ };
617
+ };
618
+ readonly OVERALL_METABOLIC_RISK_PROB: {
619
+ readonly meta: {
620
+ readonly availableAfterSec: 30;
621
+ readonly range: {
622
+ readonly min: 0;
623
+ readonly max: 100;
624
+ };
625
+ readonly requirements: {
626
+ readonly profileInfo: true;
627
+ readonly medicalHistory: false;
628
+ };
629
+ readonly group: "metabolicRisks";
630
+ readonly ranges: {
631
+ readonly global: [[[0, 2.5], [2.5, 5], [5, 7.5], [7.5, 10], [10, 12.5], [12.5, 15], [15, 17.5], [17.5, 20], [20, 22.5], [22.5, 25]], [[25, 27.5], [27.5, 30], [30, 32.5], [32.5, 35], [35, 37.5], [37.5, 40], [40, 42.5], [42.5, 45]], [[45, 47.5], [47.5, 50], [50, 52.5], [52.5, 55]], [[55, 57.5], [57.5, 60], [60, 62.5], [62.5, 65], [65, 67.5], [67.5, 70], [70, 72.5], [72.5, 75], [75, 77.5]], [[77.5, 80], [80, 82.5], [82.5, 85], [85, 87.5], [87.5, 90], [90, 92.5], [92.5, 95], [95, 97.5], [97.5, 100], [100, number]]];
632
+ };
633
+ readonly dialBandColors: {
634
+ readonly global: ["GREEN", "LIGHT_GREEN", "YELLOW", "LIGHT_RED", "RED"];
635
+ };
636
+ };
637
+ };
638
+ readonly PHYSICAL_SCORE: {
639
+ readonly meta: {
640
+ readonly availableAfterSec: 30;
641
+ readonly range: {
642
+ readonly min: 1;
643
+ readonly max: 5;
644
+ };
645
+ readonly requirements: {
646
+ readonly profileInfo: true;
647
+ readonly medicalHistory: false;
648
+ };
649
+ readonly group: "overall";
650
+ readonly ranges: {
651
+ readonly global: [[[0, 1.5], [1.5, 2.5], [2.5, 3.5], [3.5, 4.5], [4.5, number]]];
652
+ };
653
+ readonly dialBandColors: {
654
+ readonly global: [];
655
+ };
656
+ };
657
+ };
658
+ readonly PHYSIO_SCORE: {
659
+ readonly meta: {
660
+ readonly availableAfterSec: 30;
661
+ readonly range: {
662
+ readonly min: 1;
663
+ readonly max: 5;
664
+ };
665
+ readonly requirements: {
666
+ readonly profileInfo: true;
667
+ readonly medicalHistory: false;
668
+ };
669
+ readonly group: "overall";
670
+ readonly ranges: {
671
+ readonly global: [[[0, 1.5], [1.5, 2.5], [2.5, 3.5], [3.5, 4.5], [4.5, number]]];
672
+ };
673
+ readonly dialBandColors: {
674
+ readonly global: [];
675
+ };
676
+ };
677
+ };
678
+ readonly RISKS_SCORE: {
679
+ readonly meta: {
680
+ readonly availableAfterSec: 30;
681
+ readonly range: {
682
+ readonly min: 1;
683
+ readonly max: 5;
684
+ };
685
+ readonly requirements: {
686
+ readonly profileInfo: true;
687
+ readonly medicalHistory: true;
688
+ };
689
+ readonly group: "overall";
690
+ readonly ranges: {
691
+ readonly global: [[[0, 1.5], [1.5, 2.5], [2.5, 3.5], [3.5, 4.5], [4.5, number]]];
692
+ };
693
+ readonly dialBandColors: {
694
+ readonly global: [];
695
+ };
696
+ };
697
+ };
698
+ readonly SURVEY_ANXIETY_MODERATE: {
699
+ readonly meta: {
700
+ readonly availableAfterSec: 0;
701
+ readonly range: {
702
+ readonly min: 0;
703
+ readonly max: 100;
704
+ };
705
+ readonly requirements: {
706
+ readonly profileInfo: true;
707
+ readonly medicalHistory: false;
708
+ };
709
+ readonly group: "surveys";
710
+ readonly ranges: {
711
+ readonly global: [[[0, 20], [20, 40], [40, 60], [60, 80], [80, 100]]];
712
+ };
713
+ readonly dialBandColors: {
714
+ readonly global: ["GREEN", "LIGHT_GREEN", "YELLOW", "LIGHT_RED", "RED"];
715
+ };
716
+ };
717
+ };
718
+ readonly SURVEY_DEPRESSION_MODERATE: {
719
+ readonly meta: {
720
+ readonly availableAfterSec: 0;
721
+ readonly range: {
722
+ readonly min: 0;
723
+ readonly max: 100;
724
+ };
725
+ readonly requirements: {
726
+ readonly profileInfo: true;
727
+ readonly medicalHistory: false;
728
+ };
729
+ readonly group: "surveys";
730
+ readonly ranges: {
731
+ readonly global: [[[0, 20], [20, 40], [40, 60], [60, 80], [80, 100]]];
732
+ };
733
+ readonly dialBandColors: {
734
+ readonly global: ["GREEN", "LIGHT_GREEN", "YELLOW", "LIGHT_RED", "RED"];
735
+ };
736
+ };
737
+ };
738
+ readonly VITAL_SCORE: {
739
+ readonly meta: {
740
+ readonly availableAfterSec: 30;
741
+ readonly range: {
742
+ readonly min: 1;
743
+ readonly max: 5;
744
+ };
745
+ readonly requirements: {
746
+ readonly profileInfo: true;
747
+ readonly medicalHistory: false;
748
+ };
749
+ readonly group: "overall";
750
+ readonly ranges: {
751
+ readonly global: [[[0, 1.5], [1.5, 2.5], [2.5, 3.5], [3.5, 4.5], [4.5, number]]];
752
+ };
753
+ readonly dialBandColors: {
754
+ readonly global: [];
755
+ };
756
+ };
757
+ };
758
+ readonly WAIST_CIRCUM: {
759
+ readonly meta: {
760
+ readonly availableAfterSec: 5;
761
+ readonly range: {
762
+ readonly min: 0;
763
+ readonly max: number;
764
+ };
765
+ readonly requirements: {
766
+ readonly profileInfo: true;
767
+ readonly medicalHistory: false;
768
+ };
769
+ readonly group: "physical";
770
+ readonly ranges: {
771
+ readonly global: [];
772
+ };
773
+ readonly dialBandColors: {
774
+ readonly global: [];
775
+ };
776
+ };
777
+ };
778
+ readonly WAIST_TO_HEIGHT: {
779
+ readonly meta: {
780
+ readonly availableAfterSec: 5;
781
+ readonly range: {
782
+ readonly min: 25;
783
+ readonly max: 70;
784
+ };
785
+ readonly requirements: {
786
+ readonly profileInfo: true;
787
+ readonly medicalHistory: false;
788
+ };
789
+ readonly group: "physical";
790
+ readonly ranges: {
791
+ readonly global: [[[0, 25], [25, 27], [27, 29], [29, 31], [31, 33], [33, 35], [35, 37], [37, 39], [39, 41], [41, 43]], [[43, 44], [44, 45], [45, 46], [46, 47], [47, 48], [48, 49], [49, 50], [50, 51], [51, 52], [52, 53]], [[53, 53.5], [53.5, 54], [54, 54.5], [54.5, 55], [55, 55.5], [55.5, 56], [56, 56.5], [56.5, 57], [57, 57.5], [57.5, 58]], [[58, 58.5], [58.5, 59], [59, 59.5], [59.5, 60], [60, 60.5], [60.5, 61], [61, 61.5], [61.5, 62], [62, 62.5], [62.5, 63]], [[63, 64.2], [64.2, 65.4], [65.4, 66.6], [66.6, 67.8], [67.8, 69], [69, 70.2], [70.2, 71.4], [71.4, 72.6], [72.6, 73.8], [73.8, 75], [75, number]]];
792
+ readonly globalMale: [[[0, 25], [25, 27], [27, 29], [29, 31], [31, 33], [33, 35], [35, 37], [37, 39], [39, 41], [41, 43]], [[43, 44], [44, 45], [45, 46], [46, 47], [47, 48], [48, 49], [49, 50], [50, 51], [51, 52], [52, 53]], [[53, 53.5], [53.5, 54], [54, 54.5], [54.5, 55], [55, 55.5], [55.5, 56], [56, 56.5], [56.5, 57], [57, 57.5], [57.5, 58]], [[58, 58.5], [58.5, 59], [59, 59.5], [59.5, 60], [60, 60.5], [60.5, 61], [61, 61.5], [61.5, 62], [62, 62.5], [62.5, 63]], [[63, 64.2], [64.2, 65.4], [65.4, 66.6], [66.6, 67.8], [67.8, 69], [69, 70.2], [70.2, 71.4], [71.4, 72.6], [72.6, 73.8], [73.8, 75], [75, number]]];
793
+ readonly globalFemale: [[[0, 25], [25, 26.9], [26.9, 28.8], [28.8, 30.6], [30.6, 32.5], [32.5, 34.4], [34.4, 36.3], [36.3, 38.2], [38.2, 40], [40, 42]], [[42, 42.7], [42.7, 43.4], [43.4, 44.1], [44.1, 44.8], [44.8, 45.5], [45.5, 46.2], [46.2, 46.9], [46.9, 47.6], [47.6, 48.3], [48.3, 49]], [[49, 49.5], [49.5, 50], [50, 50.5], [50.5, 51], [51, 51.5], [51.5, 52], [52, 52.5], [52.5, 53], [53, 53.5], [53.5, 54]], [[54, 54.4], [54.4, 54.8], [54.8, 55.2], [55.2, 55.6], [55.6, 56], [56, 56.4], [56.4, 56.8], [56.8, 57.2], [57.2, 57.6], [57.6, 58]], [[58, 59.2], [59.2, 60.4], [60.4, 61.6], [61.6, 62.8], [62.8, 64], [64, 65.2], [65.2, 66.4], [66.4, 67.6], [67.6, 68.8], [68.8, 70], [70, number]]];
794
+ readonly eastAsiaMale: [[[0, 25], [25, 27], [27, 29], [29, 31], [31, 33], [33, 35], [35, 37], [37, 39], [39, 41], [41, 43]], [[43, 44], [44, 45], [45, 46], [46, 47], [47, 48], [48, 49], [49, 50], [50, 51], [51, 52], [52, 53]], [[53, 53.5], [53.5, 54], [54, 54.5], [54.5, 55], [55, 55.5], [55.5, 56], [56, 56.5], [56.5, 57], [57, 57.5], [57.5, 58]], [[58, 58.5], [58.5, 59], [59, 59.5], [59.5, 60], [60, 60.5], [60.5, 61], [61, 61.5], [61.5, 62], [62, 62.5], [62.5, 63]], [[63, 64.2], [64.2, 65.4], [65.4, 66.6], [66.6, 67.8], [67.8, 69], [69, 70.2], [70.2, 71.4], [71.4, 72.6], [72.6, 73.8], [73.8, 75], [75, number]]];
795
+ readonly eastAsiaFemale: [[[0, 25], [25, 26.9], [26.9, 28.8], [28.8, 30.6], [30.6, 32.5], [32.5, 34.4], [34.4, 36.3], [36.3, 38.2], [38.2, 40], [40, 42]], [[42, 42.7], [42.7, 43.4], [43.4, 44.1], [44.1, 44.8], [44.8, 45.5], [45.5, 46.2], [46.2, 46.9], [46.9, 47.6], [47.6, 48.3], [48.3, 49]], [[49, 49.5], [49.5, 50], [50, 50.5], [50.5, 51], [51, 51.5], [51.5, 52], [52, 52.5], [52.5, 53], [53, 53.5], [53.5, 54]], [[54, 54.4], [54.4, 54.8], [54.8, 55.2], [55.2, 55.6], [55.6, 56], [56, 56.4], [56.4, 56.8], [56.8, 57.2], [57.2, 57.6], [57.6, 58]], [[58, 59.2], [59.2, 60.4], [60.4, 61.6], [61.6, 62.8], [62.8, 64], [64, 65.2], [65.2, 66.4], [66.4, 67.6], [67.6, 68.8], [68.8, 70], [70, number]]];
796
+ };
797
+ readonly dialBandColors: {
798
+ readonly global: ["YELLOW", "GREEN", "YELLOW", "LIGHT_RED", "RED"];
799
+ readonly globalMale: ["YELLOW", "GREEN", "YELLOW", "LIGHT_RED", "RED"];
800
+ readonly globalFemale: ["YELLOW", "GREEN", "YELLOW", "LIGHT_RED", "RED"];
801
+ readonly eastAsiaMale: ["YELLOW", "GREEN", "YELLOW", "LIGHT_RED", "RED"];
802
+ readonly eastAsiaFemale: ["YELLOW", "GREEN", "YELLOW", "LIGHT_RED", "RED"];
803
+ };
804
+ };
805
+ };
806
+ readonly WEIGHT: {
807
+ readonly meta: {
808
+ readonly availableAfterSec: 5;
809
+ readonly range: {
810
+ readonly min: 30;
811
+ readonly max: 300;
812
+ };
813
+ readonly requirements: {
814
+ readonly profileInfo: false;
815
+ readonly medicalHistory: false;
816
+ };
817
+ readonly group: "physical";
818
+ readonly ranges: {
819
+ readonly global: [];
820
+ };
821
+ readonly dialBandColors: {
822
+ readonly global: [];
823
+ };
824
+ };
825
+ };
826
+ };
827
+ type DfxPointId = keyof typeof DFX_POINTS;
828
+ interface Demographics {
829
+ age: number;
830
+ height: number;
831
+ weight: number;
832
+ sex: number;
833
+ smoking: number;
834
+ bloodPressureMedication: number;
835
+ diabetes: number;
836
+ unit: 'Metric' | 'Imperial';
837
+ }
838
+ interface ResultsError {
839
+ code: RealtimeResultErrors | 'OK';
840
+ errors: {
841
+ [x in DfxPointId]?: {
842
+ messages: string[];
843
+ };
844
+ };
845
+ }
846
+ type PointGroupType = typeof pointGroup[keyof typeof pointGroup];
847
+ type BandColors = ('YELLOW' | 'LIGHT_GREEN' | 'GREEN' | 'LIGHT_RED' | 'RED')[];
848
+ interface IMeta {
849
+ availableAfterSec: number;
850
+ range: {
851
+ min: number;
852
+ max: number;
853
+ };
854
+ requirements: {
855
+ profileInfo: boolean;
856
+ medicalHistory: boolean;
857
+ };
858
+ group: PointGroupType;
859
+ ranges: {
860
+ [x: string]: number[][][];
861
+ };
862
+ dialBandColors: {
863
+ [x: string]: BandColors;
864
+ };
865
+ }
866
+ interface DialSection {
867
+ groupSize: number;
868
+ bandColor: 'YELLOW' | 'LIGHT_GREEN' | 'GREEN' | 'LIGHT_RED' | 'RED';
869
+ range: number[];
870
+ }
871
+ interface Point {
872
+ channel: string;
873
+ notes: RealtimeResultNotes[];
874
+ value: string;
875
+ dial: {
876
+ sections: DialSection[];
877
+ group: number;
878
+ subGroup: number;
879
+ };
880
+ meta: IMeta;
881
+ info: {
882
+ name: string;
883
+ unit: string;
884
+ };
885
+ }
886
+ type Points = {
887
+ [x in DfxPointId]?: Point;
888
+ };
889
+ interface Results {
890
+ measurementId: string;
891
+ measurementResultId: string;
892
+ resultsOrder: number;
893
+ finalChunkNumber: number;
894
+ points: Points;
895
+ errors: ResultsError;
896
+ statusId: string;
897
+ }
898
+
899
+ declare const measurementEmbeddedAppEvents: {
900
+ readonly RESULTS: "results";
901
+ readonly ERROR: "error";
902
+ readonly WEBHOOK: "webhook";
903
+ readonly CANCEL: "cancel";
904
+ };
905
+ interface AppSettings {
906
+ token: string;
907
+ refreshToken: string;
908
+ studyId: string;
909
+ }
910
+ interface MeasurementEmbeddedAppOptions {
911
+ container: HTMLDivElement;
912
+ top?: string;
913
+ appPath: string;
914
+ settings: AppSettings;
915
+ profile?: Demographics;
916
+ loadError?: (error: string) => void;
917
+ }
918
+ interface MeasurementEmbedded {
919
+ init(options: MeasurementEmbeddedAppOptions): void;
920
+ destroy(): void;
921
+ setTheme(theme: 'light' | 'dark'): void;
922
+ on: {
923
+ /**
924
+ * when measurement results are received
925
+ * @param {results} Results - measurement results
926
+ */
927
+ results: ((results: Results) => void) | null;
928
+ /**
929
+ * when there is an error in the measurement embedded app
930
+ * @param {error} MeasurementEmbeddedAppError - measurement embedded app error
931
+ */
932
+ error: ((error: MeasurementEmbeddedAppError) => void) | null;
933
+ /**
934
+ * when webhook event is received
935
+ * @param {webhook} WebhookEvent - webhook event
936
+ */
937
+ webhook: ((webhook: WebhookEvent) => void) | null;
938
+ /**
939
+ * when measurement is cancelled
940
+ */
941
+ cancel: (() => void) | null;
942
+ };
943
+ }
944
+ interface MeasurementEmbeddedAppError {
945
+ error: keyof typeof measurementError;
946
+ }
947
+ declare const webhookEventSeverity: {
948
+ readonly INFO: "INFO";
949
+ readonly WARN: "WARN";
950
+ readonly ERROR: "ERROR";
951
+ };
952
+ declare const webhookEvent: {
953
+ readonly CAMERA_STARTED: "CAMERA_STARTED";
954
+ };
955
+ interface WebhookEvent {
956
+ event: keyof typeof webhookEvent;
957
+ level: keyof typeof webhookEventSeverity;
958
+ }
959
+ declare const measurementError: {
960
+ readonly WORKER_ERROR: "WORKER_ERROR";
961
+ };
962
+
963
+ declare class MeasurementEmbeddedApp implements MeasurementEmbedded {
964
+ #private;
965
+ readonly on: {
966
+ /**
967
+ * when measurement results are received
968
+ * @param {results} Results - measurement results
969
+ */
970
+ results: ((results: Results) => void) | null;
971
+ /**
972
+ * when measurement results are received
973
+ * @param {results} Results - measurement results
974
+ */
975
+ error: ((error: MeasurementEmbeddedAppError) => void) | null;
976
+ /**
977
+ * when webhook event is received
978
+ * @param {webhook} WebhookEvent - webhook event
979
+ */
980
+ webhook: ((webhook: WebhookEvent) => void) | null;
981
+ /**
982
+ * when measurement is cancelled
983
+ */
984
+ cancel: (() => void) | null;
985
+ };
986
+ constructor();
987
+ init(options: MeasurementEmbeddedAppOptions): void;
988
+ destroy(): void;
989
+ setTheme(theme: 'light' | 'dark'): void;
990
+ }
991
+
992
+ export { MeasurementEmbeddedApp as default, faceAttributeValue, measurementEmbeddedAppEvents };
993
+ export type { AppSettings, Demographics, DfxPointId, MeasurementEmbeddedAppOptions, Results };