c2-clinical 1.0.148 → 1.0.150

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.
@@ -5,4379 +5,135 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const OnAnswerQuestionsFlowTester_1 = __importDefault(require("../../../flow/on-answer/OnAnswerQuestionsFlowTester"));
7
7
  const answerExample = {
8
- _id: "690cb0499ea7194cd97d48a0",
8
+ _id: "68a4ccc42e90c3294e993526",
9
9
  form: "689e029db13c27189bce136d",
10
- sequence: 95,
11
- code: "CIRCUNFERENCIA_CEFALICA",
12
- description: "Circunferência cefálica",
13
- parent: "68e9589912a9fe7d49161a0b",
14
- line: 28,
10
+ sequence: 15,
11
+ code: "CHUMLEA_TO_HEIGHT_KNEE_HEIGHT",
12
+ description: "Altura do joelho",
13
+ parent: "68a4b4a82e90c3294e99350b",
14
+ line: 14,
15
15
  column: 1,
16
16
  type: "QUESTION",
17
17
  typeAnswer: "OPEN_NUMBER",
18
18
  category: "ANTHROPOMETRY",
19
- formulaToEnable: "['LACTENT', 'CHILD'].includes('${TYPE_ASSESSMENT}')",
20
- validations: [
21
- {
22
- type: "REQUIRED",
23
- typeOutput: "TEXT",
24
- formulaToMessage: "Number('${PATIENT_AGE_IN_MONTHS}') < 24 ? 'Campo obrigatório' : ''",
25
- message: "Campo obrigatório"
26
- }
27
- ],
19
+ formulaToEnable: "true",
28
20
  active: true,
29
21
  show: true,
30
22
  readOnly: false,
31
23
  required: false,
32
- ellegibleForComparison: true,
33
24
  options: [],
25
+ validations: [],
34
26
  requestGraphicData: [],
35
- tips: [],
36
- createdAtDateTime: "2025-11-06T14:27:21.784Z",
37
- updatedAtDateTime: "2025-11-06T14:27:21.784Z",
27
+ createdAtDateTime: "2025-08-19T19:13:08.141Z",
28
+ updatedAtDateTime: "2025-08-19T19:13:08.141Z",
38
29
  __v: 0,
39
30
  screenPlacement: 1,
40
- lineId: "960a4675-a27c-44c6-8f7f-293c58f988d3",
41
- answer: "13"
31
+ answer: 40
42
32
  };
43
33
  const lines = [
44
34
  {
45
- id: "22c16475-a03b-45ae-8921-93943158ea5c",
46
- line: 1,
35
+ id: "b922c4b6-7768-48a8-8367-1c06f2f29325",
36
+ line: 13,
47
37
  collumns: [
48
38
  {
49
- _id: "689e360923b914800683aa60",
39
+ _id: "68a4cda22e90c3294e993530",
50
40
  form: "689e029db13c27189bce136d",
51
- sequence: 1,
52
- code: "TYPE_ASSESSMENT",
53
- description: "Como deseja avaliar este paciente?",
54
- line: 1,
41
+ sequence: 16,
42
+ code: "FORMULA_ESTIMATE_HEIGHT",
43
+ description: "Fórmula para estimar altura",
44
+ parent: "68a4b4a82e90c3294e99350b",
45
+ line: 13,
55
46
  column: 1,
56
47
  type: "QUESTION",
57
48
  typeAnswer: "CHOICE_SINGLE",
58
49
  category: "ANTHROPOMETRY",
50
+ variantView: "LIST",
59
51
  options: [
60
52
  {
61
53
  sequence: 1,
62
- formulaToEnable: "Number('${PATIENT_AGE_IN_YEARS}') < 2",
63
- code: "LACTENT",
64
- description: "Lactente",
65
- defaultSelection: false,
66
- active: true,
67
- enable: true
68
- },
69
- {
70
- sequence: 2,
71
- formulaToEnable: "Number('${PATIENT_AGE_IN_YEARS}') >= 2 && Number('${PATIENT_AGE_IN_YEARS}') < 10",
72
- code: "CHILD",
73
- description: "Criança",
74
- defaultSelection: false,
75
- active: true,
76
- enable: false
77
- },
78
- {
79
- sequence: 3,
80
- formulaToEnable: "Number('${PATIENT_AGE_IN_YEARS}') >= 10 && Number('${PATIENT_AGE_IN_YEARS}') < 19",
81
- code: "TEENAGER",
82
- description: "Adolescente",
83
- defaultSelection: false,
84
- active: true,
85
- enable: false
86
- },
87
- {
88
- sequence: 4,
89
- formulaToEnable: "Number('${PATIENT_AGE_IN_YEARS}') >= 14 && Number('${PATIENT_AGE_IN_YEARS}') < 60",
90
- code: "ADULT",
91
- description: "Adulto",
92
- defaultSelection: false,
93
- active: true,
94
- enable: false
95
- },
96
- {
97
- sequence: 5,
98
- formulaToEnable: "Number('${PATIENT_AGE_IN_YEARS}') >= 60",
99
- code: "EIDERLY",
100
- description: "Idoso",
101
- defaultSelection: false,
102
- active: true,
103
- enable: false
104
- }
105
- ],
106
- formulaToAnswer: "Number('${PATIENT_AGE_IN_YEARS}') < 2 ? 'LACTENT' : Number('${PATIENT_AGE_IN_YEARS}') >= 2 && Number('${PATIENT_AGE_IN_YEARS}') < 10 ? 'CHILD' : Number('${PATIENT_AGE_IN_YEARS}') >= 10 && Number('${PATIENT_AGE_IN_YEARS}') < 19 ? 'TEENAGER' : Number('${PATIENT_AGE_IN_YEARS}') >= 19 && Number('${PATIENT_AGE_IN_YEARS}') < 60 ? 'ADULT' : 'EIDERLY'",
107
- formulaToEnable: "true",
108
- validations: [
109
- {
110
- type: "REQUIRED",
111
- typeOutput: "TEXT",
112
- formulaToMessage: "${TYPE_ASSESSMENT}.length === 0 ? 'Campo obrigatório' : ''"
113
- }
114
- ],
115
- active: true,
116
- show: true,
117
- readOnly: false,
118
- required: false,
119
- requestGraphicData: [],
120
- createdAtDateTime: "2025-08-14T19:16:25.409Z",
121
- updatedAtDateTime: "2025-08-14T19:16:25.409Z",
122
- __v: 0,
123
- variantView: "BUTTON",
124
- screenPlacement: 1,
125
- answer: "LACTENT",
126
- lineId: "22c16475-a03b-45ae-8921-93943158ea5c"
127
- }
128
- ]
129
- },
130
- {
131
- id: "6562a1da-3346-4943-95fc-68098414b254",
132
- line: 2,
133
- collumns: [
134
- {
135
- _id: "689e37a223b914800683aa68",
136
- form: "689e029db13c27189bce136d",
137
- sequence: 2,
138
- code: "SKY-2-KAIR",
139
- description: "Dados antropometricos básicos",
140
- line: 2,
141
- column: 1,
142
- type: "GROUP",
143
- category: "ANTHROPOMETRY",
144
- formulaToEnable: "true",
145
- active: true,
146
- show: true,
147
- readOnly: false,
148
- required: false,
149
- options: [],
150
- validations: [],
151
- requestGraphicData: [],
152
- createdAtDateTime: "2025-08-14T19:23:14.001Z",
153
- updatedAtDateTime: "2025-08-14T19:23:14.001Z",
154
- __v: 0,
155
- screenPlacement: 1,
156
- lines: [
157
- {
158
- id: "9b476714-36bd-441f-a143-4e7dbbb0ee74",
159
- line: 3,
160
- collumns: [
161
- {
162
- _id: "689e390023b914800683aa70",
163
- form: "689e029db13c27189bce136d",
164
- sequence: 3,
165
- code: "CURRENT_WEIGHT",
166
- description: "Peso",
167
- parent: "689e37a223b914800683aa68",
168
- line: 3,
169
- column: 1,
170
- type: "QUESTION",
171
- typeAnswer: "OPEN_NUMBER",
172
- category: "ANTHROPOMETRY",
173
- measurementUnit: "Kg",
174
- formulaToEnable: "true",
175
- active: true,
176
- show: true,
177
- readOnly: false,
178
- required: false,
179
- options: [],
180
- validations: [
181
- {
182
- type: "WARNING",
183
- typeOutput: "TEXT",
184
- formulaToMessage: "['HUANG_2003'].includes('${FORMULA_PERCENT_FAT}') ? 'Usado em ${FORMULA_PERCENT_FAT}' : ''"
185
- },
186
- {
187
- type: "WARNING",
188
- typeOutput: "TEXT",
189
- formulaToMessage: "Number('${ESTIMATE_WEIGHT}') > 0 ? 'Peso estimado' : ''"
190
- }
191
- ],
192
- requestGraphicData: [],
193
- createdAtDateTime: "2025-08-14T19:29:04.576Z",
194
- updatedAtDateTime: "2025-08-14T19:29:04.576Z",
195
- __v: 0,
196
- ellegibleForComparison: true,
197
- screenPlacement: 1,
198
- lineId: "9b476714-36bd-441f-a143-4e7dbbb0ee74"
199
- },
200
- {
201
- _id: "689e395a23b914800683aa78",
202
- form: "689e029db13c27189bce136d",
203
- sequence: 4,
204
- code: "HEIGHT_IN_CM",
205
- description: "Comprimento",
206
- parent: "689e37a223b914800683aa68",
207
- line: 3,
208
- column: 2,
209
- type: "QUESTION",
210
- typeAnswer: "OPEN_NUMBER",
211
- category: "ANTHROPOMETRY",
212
- measurementUnit: "cm",
213
- formulaToEnable: "true",
214
- active: true,
215
- show: true,
216
- readOnly: false,
217
- required: false,
218
- options: [],
219
- validations: [
220
- {
221
- type: "WARNING",
222
- typeOutput: "TEXT",
223
- formulaToMessage: "Number('${ESTIMATE_HEIGHT}') > 0 ? 'Altura estimada' : ''",
224
- message: ""
225
- },
226
- {
227
- type: "WARNING",
228
- typeOutput: "TEXT",
229
- formulaToMessage: "['HUANG_2003'].includes('${FORMULA_PERCENT_FAT}') ? 'Usado em ${FORMULA_PERCENT_FAT}' : ''",
230
- message: ""
231
- }
232
- ],
233
- requestGraphicData: [],
234
- createdAtDateTime: "2025-08-14T19:30:35.000Z",
235
- updatedAtDateTime: "2025-08-14T19:30:35.000Z",
236
- __v: 0,
237
- formulaToDescription: "'${TYPE_ASSESSMENT}' === 'LACTENT' ? 'Comprimento' : 'Altura/Estatura'",
238
- screenPlacement: 1,
239
- formulaToAnswer: "Number('${ESTIMATE_HEIGHT}') > 0 ? Number('${ESTIMATE_HEIGHT}') : Number('${HEIGHT_IN_CM}')",
240
- answer: null,
241
- lineId: "9b476714-36bd-441f-a143-4e7dbbb0ee74"
242
- }
243
- ]
244
- }
245
- ],
246
- lineId: "6562a1da-3346-4943-95fc-68098414b254"
247
- }
248
- ]
249
- },
250
- {
251
- id: "78a4c94f-4e97-4fe3-a1d2-25fc2f016fe9",
252
- line: 28,
253
- collumns: [
254
- {
255
- _id: "68e9589912a9fe7d49161a0b",
256
- form: "689e029db13c27189bce136d",
257
- sequence: 30,
258
- code: "SKY-30-S8EF",
259
- description: "Circunferências corporais (cm)",
260
- line: 28,
261
- column: 1,
262
- type: "GROUP",
263
- category: "ANTHROPOMETRY",
264
- formulaToEnable: "true",
265
- active: true,
266
- show: true,
267
- readOnly: false,
268
- required: false,
269
- ellegibleForComparison: false,
270
- groupConfig: {
271
- tips: {
272
- show: true,
273
- description: "Habilitar dicas"
274
- }
275
- },
276
- options: [],
277
- validations: [],
278
- requestGraphicData: [],
279
- tips: [],
280
- createdAtDateTime: "2025-10-10T19:03:53.273Z",
281
- updatedAtDateTime: "2025-10-10T19:03:53.273Z",
282
- __v: 0,
283
- screenPlacement: 1,
284
- lines: [
285
- {
286
- id: "960a4675-a27c-44c6-8f7f-293c58f988d3",
287
- line: 28,
288
- collumns: [
289
- {
290
- _id: "690cb0499ea7194cd97d48a0",
291
- form: "689e029db13c27189bce136d",
292
- sequence: 95,
293
- code: "CIRCUNFERENCIA_CEFALICA",
294
- description: "Circunferência cefálica",
295
- parent: "68e9589912a9fe7d49161a0b",
296
- line: 28,
297
- column: 1,
298
- type: "QUESTION",
299
- typeAnswer: "OPEN_NUMBER",
300
- category: "ANTHROPOMETRY",
301
- formulaToEnable: "['LACTENT', 'CHILD'].includes('${TYPE_ASSESSMENT}')",
302
- validations: [
303
- {
304
- type: "REQUIRED",
305
- typeOutput: "TEXT",
306
- formulaToMessage: "Number('${PATIENT_AGE_IN_MONTHS}') < 24 ? 'Campo obrigatório' : ''",
307
- message: "Campo obrigatório"
308
- }
309
- ],
310
- active: true,
311
- show: true,
312
- readOnly: false,
313
- required: false,
314
- ellegibleForComparison: true,
315
- options: [],
316
- requestGraphicData: [],
317
- tips: [],
318
- createdAtDateTime: "2025-11-06T14:27:21.784Z",
319
- updatedAtDateTime: "2025-11-06T14:27:21.784Z",
320
- __v: 0,
321
- screenPlacement: 1,
322
- lineId: "960a4675-a27c-44c6-8f7f-293c58f988d3",
323
- answer: "12"
324
- }
325
- ]
54
+ code: "CHUMLEA",
55
+ description: "Chumlea",
56
+ defaultSelection: true,
57
+ active: true
326
58
  }
327
59
  ],
328
- lineId: "78a4c94f-4e97-4fe3-a1d2-25fc2f016fe9"
329
- }
330
- ]
331
- },
332
- {
333
- id: "59adc0b0-7242-4a9e-b159-eed964552b2f",
334
- line: 64,
335
- collumns: [
336
- {
337
- _id: "68ef9a31fbcea8e6b466aeb5",
338
- form: "689e029db13c27189bce136d",
339
- sequence: 80,
340
- code: "SKY-80-265C",
341
- description: "Pesos e Medidas",
342
- line: 64,
343
- column: 1,
344
- type: "TABLE",
345
- category: "ANTHROPOMETRY",
346
60
  formulaToEnable: "true",
347
61
  active: true,
348
62
  show: true,
349
63
  readOnly: false,
350
64
  required: false,
351
- ellegibleForComparison: false,
352
- tableConfig: {
353
- headerData: [
354
- {
355
- headerText: "Análises de Pesos e Medidas",
356
- fieldName: "description",
357
- _id: "68ef9a31fbcea8e6b466aeb6"
358
- },
359
- {
360
- headerText: "Atual",
361
- fieldName: "answer",
362
- _id: "68ef9a31fbcea8e6b466aeb7"
363
- },
364
- {
365
- headerText: "Valor de ref.",
366
- fieldName: "referenceValue",
367
- _id: "68ef9a31fbcea8e6b466aeb8"
368
- },
369
- {
370
- headerText: "Classificação",
371
- fieldName: "classificationLabel",
372
- fieldColor: "classificationColor",
373
- _id: "68ef9a31fbcea8e6b466aeb9"
374
- }
375
- ]
376
- },
377
- options: [],
378
- validations: [],
379
- requestGraphicData: [],
380
- tips: [],
381
- createdAtDateTime: "2025-10-15T12:57:21.774Z",
382
- updatedAtDateTime: "2025-10-15T12:57:21.774Z",
383
- __v: 0,
384
- screenPlacement: 2,
385
- lines: [
386
- {
387
- id: "15e762fa-7b92-4dec-b402-33443743897e",
388
- line: 65,
389
- collumns: [
390
- {
391
- _id: "68ef9f5afbcea8e6b466aec4",
392
- form: "689e029db13c27189bce136d",
393
- sequence: 81,
394
- code: "CURRENT_WEIGHT_TABLE_RESULT",
395
- description: "Peso atual",
396
- parent: "68ef9a31fbcea8e6b466aeb5",
397
- line: 65,
398
- column: 1,
399
- type: "QUESTION",
400
- typeAnswer: "OPEN_NUMBER",
401
- category: "ANTHROPOMETRY",
402
- measurementUnit: "Kg",
403
- formulaToAnswer: "${CURRENT_WEIGHT}",
404
- formulaToReferenceValue: "Number('${HEIGHT_IN_CM}') ? (25 * ( (Number('${HEIGHT_IN_CM}') / 100)**2)) : undefined",
405
- formulaToClassification: "",
406
- formulaToEnable: "true",
407
- active: true,
408
- show: true,
409
- readOnly: false,
410
- required: false,
411
- ellegibleForComparison: false,
412
- options: [],
413
- validations: [],
414
- requestGraphicData: [],
415
- tips: [],
416
- createdAtDateTime: "2025-10-15T13:19:22.615Z",
417
- updatedAtDateTime: "2025-10-15T13:19:22.615Z",
418
- __v: 0,
419
- screenPlacement: 2,
420
- formulaToClassificationLabel: "",
421
- lineId: "15e762fa-7b92-4dec-b402-33443743897e"
422
- },
423
- {
424
- _id: "6929e7beccfea9154f3e4060",
425
- form: "689e029db13c27189bce136d",
426
- sequence: 81,
427
- code: "CIRCUNFERENCIA_CEFALICA_RESULTADO",
428
- description: "Circunferência cefálica",
429
- parent: "68ef9a31fbcea8e6b466aeb5",
430
- line: 65,
431
- column: 1,
432
- type: "QUESTION",
433
- typeAnswer: "OPEN_NUMBER",
434
- category: "ANTHROPOMETRY",
435
- measurementUnit: "cm",
436
- formulaToEnable: "Number('${PATIENT_AGE_IN_WEEKS}') < 13",
437
- formulaToAnswer: "${CIRCUNFERENCIA_CEFALICA}",
438
- formulaToReferenceValue: "const dataset = [{ 'age': 0, 's-3': 30.7, 's-2': 31.9, 's-1': 33.2, 's0': 34.5, 's+1': 35.7, 's+2': 37.0, 's+3': 38.3 },{ 'age': 1, 's-3': 31.5, 's-2': 32.7, 's-1': 33.9, 's0': 35.2, 's+1': 36.4, 's+2': 37.6, 's+3': 38.8 },{ 'age': 2, 's-3': 32.4, 's-2': 33.5, 's-1': 34.7, 's0': 35.9, 's+1': 37.0, 's+2': 38.2, 's+3': 39.4 },{ 'age': 3, 's-3': 33.0, 's-2': 34.2, 's-1': 35.4, 's0': 36.5, 's+1': 37.7, 's+2': 38.9, 's+3': 40.0 },{ 'age': 4, 's-3': 33.6, 's-2': 34.8, 's-1': 35.9, 's0': 37.1, 's+1': 38.3, 's+2': 39.4, 's+3': 40.6 },{ 'age': 5, 's-3': 34.1, 's-2': 35.3, 's-1': 36.4, 's0': 37.6, 's+1': 38.8, 's+2': 39.9, 's+3': 41.1 },{ 'age': 6, 's-3': 34.6, 's-2': 35.7, 's-1': 36.9, 's0': 38.1, 's+1': 39.2, 's+2': 40.4, 's+3': 41.6 },{ 'age': 7, 's-3': 35.0, 's-2': 36.1, 's-1': 37.3, 's0': 38.5, 's+1': 39.7, 's+2': 40.8, 's+3': 42.0 },{ 'age': 8, 's-3': 35.4, 's-2': 36.5, 's-1': 37.7, 's0': 38.9, 's+1': 40.0, 's+2': 41.2, 's+3': 42.4 },{ 'age': 9, 's-3': 35.7, 's-2': 36.9, 's-1': 38.1, 's0': 39.2, 's+1': 40.4, 's+2': 41.6, 's+3': 42.8 },{ 'age': 10, 's-3': 36.1, 's-2': 37.2, 's-1': 38.4, 's0': 39.6, 's+1': 40.8, 's+2': 41.9, 's+3': 43.1 },{ 'age': 11, 's-3': 36.4, 's-2': 37.5, 's-1': 38.7, 's0': 39.9, 's+1': 41.1, 's+2': 42.3, 's+3': 43.4 },{ 'age': 12, 's-3': 36.7, 's-2': 37.9, 's-1': 39.0, 's0': 40.2, 's+1': 41.4, 's+2': 42.6, 's+3': 43.7 },{ 'age': 13, 's-3': 37.0, 's-2': 38.1, 's-1': 39.3, 's0': 40.5, 's+1': 41.7, 's+2': 42.9, 's+3': 44.0 }];function findSurroundingKeys(value, obj) { const keys = Object.keys(obj).filter(key => key.startsWith('s')); const values = keys.map(key => ({ key, value: obj[key] })); values.sort((a, b) => a.value - b.value); if (value < values[0].value) { return ['', values[0].key]; } if (value > values[values.length - 1].value) { return [values[values.length - 1].key, '']; } for (let i = 0; i < values.length - 1; i++) { if (value >= values[i].value && value <= values[i + 1].value) { return [values[i].key, values[i + 1].key]; } }}; const item = dataset.find((set) => set.age === Math.trunc(Number('${PATIENT_AGE_IN_WEEKS}'))); const surround = findSurroundingKeys(Number('${HEAD_CIRCUNFERENCE}'), item); surround;",
439
- formulaToClassificationLabel: "",
440
- active: true,
441
- show: true,
442
- readOnly: false,
443
- required: false,
444
- ellegibleForComparison: false,
445
- options: [],
446
- validations: [],
447
- requestGraphicData: [],
448
- tips: [],
449
- createdAtDateTime: "2025-10-15T13:19:22.615Z",
450
- updatedAtDateTime: "2025-10-15T13:19:22.615Z",
451
- __v: 0,
452
- screenPlacement: 2,
453
- lineId: "15e762fa-7b92-4dec-b402-33443743897e",
454
- answer: 12
455
- }
456
- ]
457
- },
458
- {
459
- id: "0a148f70-f451-48f7-86b5-87bcedf49117",
460
- line: 66,
461
- collumns: [
462
- {
463
- _id: "68ef9fbffbcea8e6b466aecc",
464
- form: "689e029db13c27189bce136d",
465
- sequence: 82,
466
- code: "CURRENT_HEIGHT_TABLE_RESULT",
467
- description: "Altura atual",
468
- parent: "68ef9a31fbcea8e6b466aeb5",
469
- line: 66,
470
- column: 1,
471
- type: "QUESTION",
472
- typeAnswer: "OPEN_NUMBER",
473
- category: "ANTHROPOMETRY",
474
- measurementUnit: "m",
475
- formulaToAnswer: "Number('${HEIGHT_IN_CM}') ? Number('${HEIGHT_IN_CM}') / 100 : undefined",
476
- formulaToReferenceValue: "",
477
- formulaToClassification: "",
478
- formulaToEnable: "true",
479
- active: true,
480
- show: true,
481
- readOnly: false,
482
- required: false,
483
- ellegibleForComparison: false,
484
- options: [],
485
- validations: [],
486
- requestGraphicData: [],
487
- tips: [],
488
- createdAtDateTime: "2025-10-15T13:21:03.178Z",
489
- updatedAtDateTime: "2025-10-15T13:21:03.178Z",
490
- __v: 0,
491
- screenPlacement: 2,
492
- formulaToClassificationLabel: "",
493
- lineId: "0a148f70-f451-48f7-86b5-87bcedf49117"
494
- }
495
- ]
496
- },
497
- {
498
- id: "e5cb630a-6fd0-4b62-a2df-854a619efec5",
499
- line: 67,
500
- collumns: [
501
- {
502
- _id: "68efa8f2fbcea8e6b466aed4",
503
- form: "689e029db13c27189bce136d",
504
- sequence: 83,
505
- code: "CURRENT_IMC_TABLE_RESULT",
506
- description: "IMC",
507
- parent: "68ef9a31fbcea8e6b466aeb5",
508
- line: 67,
509
- column: 1,
510
- type: "QUESTION",
511
- typeAnswer: "OPEN_NUMBER",
512
- category: "ANTHROPOMETRY",
513
- measurementUnit: "kg / m²",
514
- formulaToAnswer: "Number('${CURRENT_WEIGHT}') && Number('${HEIGHT_IN_CM}') ? Number('${CURRENT_WEIGHT}') / ((Number('${HEIGHT_IN_CM}') / 100)**2) : undefined",
515
- formulaToReferenceValue: "'18,5 a 24,9 kg / m²'",
516
- formulaToEnable: "true",
517
- active: true,
518
- show: true,
519
- readOnly: false,
520
- required: false,
521
- ellegibleForComparison: false,
522
- options: [],
523
- validations: [],
524
- requestGraphicData: [],
525
- tips: [],
526
- createdAtDateTime: "2025-10-15T14:00:18.038Z",
527
- updatedAtDateTime: "2025-10-15T14:00:18.038Z",
528
- __v: 0,
529
- screenPlacement: 2,
530
- formulaToClassificationLabel: "Number('${CURRENT_WEIGHT}') && Number('${HEIGHT_IN_CM}') ? Number('${CURRENT_IMC_TABLE_RESULT}') < 18.5 ? 'Abaixo' : Number('${CURRENT_IMC_TABLE_RESULT}') < 25 ? 'Normal' : Number('${CURRENT_IMC_TABLE_RESULT}') < 30 ? 'Sobrepeso' : Number('${CURRENT_IMC_TABLE_RESULT}') < 35 ? 'Obesidade 1' : Number('${CURRENT_IMC_TABLE_RESULT}') < 40 ? 'Obesidade 2' : 'Obesidade 3' : undefined",
531
- formulaToClassificationColor: "Number('${CURRENT_WEIGHT}') && Number('${HEIGHT_IN_CM}') ? Number('${CURRENT_IMC_TABLE_RESULT}') < 18.5 ? '#FFF6E9' : Number('${CURRENT_IMC_TABLE_RESULT}') < 25 ? '#C4DBEE' : '#FFF6E9' : undefined",
532
- referenceValue: "18,5 a 24,9 kg / m²",
533
- lineId: "e5cb630a-6fd0-4b62-a2df-854a619efec5"
534
- }
535
- ]
536
- },
537
- {
538
- id: "a01b9976-6953-4906-973b-410bb0b77222",
539
- line: 68,
540
- collumns: [
541
- {
542
- _id: "68efac23fbcea8e6b466aedc",
543
- form: "689e029db13c27189bce136d",
544
- sequence: 84,
545
- code: "RCQ_TABLE_RESULT",
546
- description: "Relação Cintura/Quadril (RCQ)",
547
- parent: "68ef9a31fbcea8e6b466aeb5",
548
- line: 68,
549
- column: 1,
550
- type: "QUESTION",
551
- typeAnswer: "OPEN_NUMBER",
552
- category: "ANTHROPOMETRY",
553
- formulaToAnswer: "Number('${CIRCUNFERENCIA_CINTURA}') && Number('${CIRCUNFERENCIA_QUADRIL}') ? Number('${CIRCUNFERENCIA_CINTURA}') / Number('${CIRCUNFERENCIA_QUADRIL}'): undefined",
554
- formulaToReferenceValue: "'${PATIENT_GENRE}' === 'FEMALE' ? '< 0.85' : '< 0.9'",
555
- formulaToEnable: "true",
556
- active: true,
557
- show: true,
558
- readOnly: false,
559
- required: false,
560
- ellegibleForComparison: false,
561
- options: [],
562
- validations: [],
563
- requestGraphicData: [],
564
- tips: [],
565
- createdAtDateTime: "2025-10-15T14:13:55.504Z",
566
- updatedAtDateTime: "2025-10-15T14:13:55.504Z",
567
- __v: 0,
568
- screenPlacement: 2,
569
- formulaToClassificationLabel: "Number('${RCQ_TABLE_RESULT}') ? Number('${RCQ_TABLE_RESULT}') > 0.9 && '${PATIENT_GENRE}' === 'MALE' ? 'Elevado' : Number('${RCQ_TABLE_RESULT}') <= 0.9 && '${PATIENT_GENRE}' === 'MALE' ? 'Normal' : Number('${RCQ_TABLE_RESULT}') > 0.85 && '${PATIENT_GENRE}' === 'FEMALE' ? 'Elevado' : Number('${RCQ_TABLE_RESULT}') <= 0.85 && '${PATIENT_GENRE}' === 'FEMALE' ? 'Normal' : undefined : undefined",
570
- formulaToClassificationColor: "Number('${RCQ_TABLE_RESULT}') ? Number('${RCQ_TABLE_RESULT}') > 0.9 && '${PATIENT_GENRE}' === 'MALE' ? '#ffe9e9' : Number('${RCQ_TABLE_RESULT}') <= 0.9 && '${PATIENT_GENRE}' === 'MALE' ? '#ecf6ff' : Number('${RCQ_TABLE_RESULT}') > 0.85 && '${PATIENT_GENRE}' === 'FEMALE' ? '#ffe9e9' : Number('${RCQ_TABLE_RESULT}') <= 0.85 && '${PATIENT_GENRE}' === 'FEMALE' ? '#ecf6ff' : undefined : undefined",
571
- referenceValue: "< 0.85",
572
- lineId: "a01b9976-6953-4906-973b-410bb0b77222"
573
- }
574
- ]
575
- },
576
- {
577
- id: "2317cf65-1819-43c0-b63a-053622a1485e",
578
- line: 69,
579
- collumns: [
580
- {
581
- _id: "691354158ff24f6dd8e020f6",
582
- form: "689e029db13c27189bce136d",
583
- sequence: 84,
584
- code: "RCA_TABLE_RESULT",
585
- description: "Relação Cintura/Altura (RCA)",
586
- parent: "68ef9a31fbcea8e6b466aeb5",
587
- line: 69,
588
- column: 1,
589
- type: "QUESTION",
590
- typeAnswer: "OPEN_NUMBER",
591
- category: "ANTHROPOMETRY",
592
- formulaToAnswer: "Number('${CIRCUNFERENCIA_CINTURA}') && Number('${HEIGHT_IN_CM}') ? Number('${CIRCUNFERENCIA_CINTURA}') / Number('${HEIGHT_IN_CM}'): undefined",
593
- formulaToReferenceValue: "'< 0.5'",
594
- formulaToEnable: "true",
595
- active: true,
596
- show: true,
597
- readOnly: false,
598
- required: false,
599
- ellegibleForComparison: false,
600
- options: [],
601
- validations: [],
602
- requestGraphicData: [],
603
- tips: [],
604
- createdAtDateTime: "2025-11-11T14:13:55.504Z",
605
- updatedAtDateTime: "2025-11-11T14:13:55.504Z",
606
- __v: 0,
607
- screenPlacement: 2,
608
- formulaToClassificationLabel: "Number('${RCA_TABLE_RESULT}') ? Number('${RCA_TABLE_RESULT}') > 0.5 ? 'Elevado' : 'Normal' : undefined",
609
- formulaToClassificationColor: "Number('${RCA_TABLE_RESULT}') ? Number('${RCA_TABLE_RESULT}') > 0.5 ? '#ffe9e9' : '#ecf6ff' : undefined",
610
- referenceValue: "< 0.5",
611
- lineId: "2317cf65-1819-43c0-b63a-053622a1485e"
612
- }
613
- ]
614
- },
615
- {
616
- id: "c7d29e46-a230-4db7-a05d-7a8b05e2195d",
617
- line: 70,
618
- collumns: [
619
- {
620
- _id: "68efac6ffbcea8e6b466aee4",
621
- form: "689e029db13c27189bce136d",
622
- sequence: 85,
623
- code: "AMBC_TABLE_RESULT",
624
- description: "Área muscular do braço corrigida (AMBc)",
625
- parent: "68ef9a31fbcea8e6b466aeb5",
626
- line: 70,
627
- column: 1,
628
- type: "QUESTION",
629
- typeAnswer: "OPEN_NUMBER",
630
- category: "ANTHROPOMETRY",
631
- formulaToAnswer: "Number('${CIRCUNFERENCIA_BRACO_DIR_RELAXADO}') && Number('${DOBRA_TRICEPTAL}') ? '${PATIENT_GENRE}' === 'MALE' ? (((Number('${CIRCUNFERENCIA_BRACO_DIR_RELAXADO}') - (3.14 * (Number('${DOBRA_TRICEPTAL}') / 10))) ** 2) / (4 * 3.14)) - 10 : '${PATIENT_GENRE}' === 'FEMALE' ? (((Number('${CIRCUNFERENCIA_BRACO_DIR_RELAXADO}') - (3.14 * (Number('${DOBRA_TRICEPTAL}') / 10))) ** 2) / (4 * 3.14)) - 6.5 : undefined : undefined",
632
- formulaToEnable: "true",
633
- active: true,
634
- show: true,
635
- readOnly: false,
636
- required: false,
637
- ellegibleForComparison: false,
638
- options: [],
639
- validations: [],
640
- requestGraphicData: [],
641
- tips: [],
642
- createdAtDateTime: "2025-10-15T14:15:11.490Z",
643
- updatedAtDateTime: "2025-10-15T14:15:11.490Z",
644
- __v: 0,
645
- screenPlacement: 2,
646
- measurementUnit: "cm²",
647
- lineId: "c7d29e46-a230-4db7-a05d-7a8b05e2195d"
648
- }
649
- ]
650
- },
651
- {
652
- id: "26d2235b-e832-48e7-a411-fab5735b441b",
653
- line: 120,
654
- collumns: [
655
- {
656
- _id: "6928a0d55fd3cd870dd6d242",
657
- form: "689e029db13c27189bce136d",
658
- sequence: 141,
659
- code: "CIRCUNFERENCIA_CINTURA_REFERENCIAS",
660
- description: "Circunferência da cintura",
661
- parent: "68ef9a31fbcea8e6b466aeb5",
662
- line: 120,
663
- column: 1,
664
- type: "QUESTION",
665
- typeAnswer: "OPEN_NUMBER",
666
- category: "ANTHROPOMETRY",
667
- measurementUnit: "cm",
668
- formulaToAnswer: "Number('${CIRCUNFERENCIA_CINTURA}') ? Number('${CIRCUNFERENCIA_CINTURA}') : undefined",
669
- formulaToReferenceValue: "'${PATIENT_GENRE}' === 'FEMALE' ? '< 102' : '< 88'",
670
- formulaToClassificationLabel: "Number('${CIRCUNFERENCIA_CINTURA}') > 102 && '${PATIENT_GENRE}' === 'FEMALE' ? 'Risco metabólico' : Number('${CIRCUNFERENCIA_CINTURA}') > 88 && '${PATIENT_GENRE}' === 'MALE' ? 'Risco metabólico' : undefined",
671
- formulaToClassificationColor: "Number('${CIRCUNFERENCIA_CINTURA}') > 102 && '${PATIENT_GENRE}' === 'FEMALE' ? '#ffe9e9' : Number('${CIRCUNFERENCIA_CINTURA}') > 88 && '${PATIENT_GENRE}' === 'MALE' ? '#ffe9e9' : '#ecf6ff'",
672
- formulaToEnable: "true",
673
- active: true,
674
- show: true,
675
- readOnly: false,
676
- required: false,
677
- screenPlacement: 2,
678
- ellegibleForComparison: false,
679
- options: [],
680
- validations: [],
681
- requestGraphicData: [],
682
- tips: [],
683
- createdAtDateTime: "2025-11-27T19:04:53.910Z",
684
- updatedAtDateTime: "2025-11-27T19:04:53.910Z",
685
- __v: 0,
686
- referenceValue: "< 102",
687
- classificationColor: "#ecf6ff",
688
- lineId: "26d2235b-e832-48e7-a411-fab5735b441b"
689
- }
690
- ]
691
- }
692
- ],
693
- lineId: "59adc0b0-7242-4a9e-b159-eed964552b2f"
694
- }
695
- ]
696
- },
697
- {
698
- id: "f9e7e5f9-0e9a-4f88-ab69-efc13c3f21fe",
699
- line: 75,
700
- collumns: [
701
- {
702
- _id: "68effcee91073e75f541eff7",
703
- form: "689e029db13c27189bce136d",
704
- sequence: 91,
705
- code: "PATIENT_BORN_DATE",
706
- description: "Data Nasc. do Paciente",
707
- line: 75,
708
- column: 1,
709
- type: "QUESTION",
710
- typeAnswer: "DATE",
711
- category: "ANTHROPOMETRY",
712
- formulaToEnable: "true",
713
- active: true,
714
- show: false,
715
- readOnly: false,
716
- required: false,
717
- ellegibleForComparison: false,
718
- options: [],
719
65
  validations: [],
720
66
  requestGraphicData: [],
721
- tips: [],
722
- createdAtDateTime: "2025-10-15T19:58:38.981Z",
723
- updatedAtDateTime: "2025-10-15T19:58:38.981Z",
67
+ createdAtDateTime: "2025-08-19T19:16:50.471Z",
68
+ updatedAtDateTime: "2025-08-19T19:16:50.471Z",
724
69
  __v: 0,
725
70
  screenPlacement: 1,
726
- answer: "2025-10-11T03:00:00.000Z",
727
- lineId: "f9e7e5f9-0e9a-4f88-ab69-efc13c3f21fe"
71
+ answer: "CHUMLEA"
728
72
  }
729
73
  ]
730
74
  },
731
75
  {
732
- id: "d5b361fd-331f-485f-95bb-3c02f28005eb",
733
- line: 76,
76
+ id: "34b18595-ac0b-4844-a80f-40629bbb7e0e",
77
+ line: 14,
734
78
  collumns: [
735
79
  {
736
- _id: "68effd2191073e75f541efff",
80
+ _id: "68a4ccc42e90c3294e993526",
737
81
  form: "689e029db13c27189bce136d",
738
- sequence: 92,
739
- code: "PATIENT_GENRE",
740
- description: "Gênero do Paciente",
741
- line: 76,
742
- column: 1,
743
- type: "QUESTION",
744
- typeAnswer: "OPEN_TEXT",
745
- category: "ANTHROPOMETRY",
746
- formulaToEnable: "true",
747
- active: true,
748
- show: false,
749
- readOnly: false,
750
- required: false,
751
- ellegibleForComparison: false,
752
- options: [],
753
- validations: [],
754
- requestGraphicData: [],
755
- tips: [],
756
- createdAtDateTime: "2025-10-15T19:59:29.284Z",
757
- updatedAtDateTime: "2025-10-15T19:59:29.284Z",
758
- __v: 0,
759
- screenPlacement: 1,
760
- answer: "FEMALE",
761
- lineId: "d5b361fd-331f-485f-95bb-3c02f28005eb"
762
- }
763
- ]
764
- },
765
- {
766
- id: "ac54c0a3-55d3-457c-96f8-07a1b11d6c23",
767
- line: 77,
768
- collumns: [
769
- {
770
- _id: "68effdaf486b4803c9142887",
771
- form: "689e029db13c27189bce136d",
772
- sequence: 93,
773
- code: "PATIENT_AGE_IN_YEARS",
774
- description: "Idade do Paciente em Anos",
775
- line: 77,
82
+ sequence: 15,
83
+ code: "CHUMLEA_TO_HEIGHT_KNEE_HEIGHT",
84
+ description: "Altura do joelho",
85
+ parent: "68a4b4a82e90c3294e99350b",
86
+ line: 14,
776
87
  column: 1,
777
88
  type: "QUESTION",
778
89
  typeAnswer: "OPEN_NUMBER",
779
90
  category: "ANTHROPOMETRY",
780
- measurementUnit: "Anos",
781
91
  formulaToEnable: "true",
782
92
  active: true,
783
- show: false,
93
+ show: true,
784
94
  readOnly: false,
785
95
  required: false,
786
- ellegibleForComparison: false,
787
96
  options: [],
788
97
  validations: [],
789
98
  requestGraphicData: [],
790
- tips: [],
791
- createdAtDateTime: "2025-10-15T20:01:51.754Z",
792
- updatedAtDateTime: "2025-10-15T20:01:51.754Z",
99
+ createdAtDateTime: "2025-08-19T19:13:08.141Z",
100
+ updatedAtDateTime: "2025-08-19T19:13:08.141Z",
793
101
  __v: 0,
794
- screenPlacement: 1,
795
- lineId: "ac54c0a3-55d3-457c-96f8-07a1b11d6c23"
102
+ screenPlacement: 1
796
103
  }
797
104
  ]
798
105
  },
799
106
  {
800
- id: "477d1109-60d3-4116-a993-d994d7404462",
801
- line: 78,
107
+ id: "dfaba414-5dc1-4a76-b70d-f07c618715a9",
108
+ line: 15,
802
109
  collumns: [
803
110
  {
804
- _id: "68effdc6486b4803c914288f",
111
+ _id: "68a4ce0e2e90c3294e993538",
805
112
  form: "689e029db13c27189bce136d",
806
- sequence: 94,
807
- code: "PATIENT_AGE_IN_MONTHS",
808
- description: "Idade do Paciente em Meses",
809
- line: 78,
113
+ sequence: 17,
114
+ code: "ESTIMATE_HEIGHT",
115
+ description: "Altura estimada",
116
+ parent: "68a4b4a82e90c3294e99350b",
117
+ line: 15,
810
118
  column: 1,
811
119
  type: "QUESTION",
812
120
  typeAnswer: "OPEN_NUMBER",
813
121
  category: "ANTHROPOMETRY",
814
- measurementUnit: "Meses",
815
- formulaToEnable: "true",
816
- active: true,
817
- show: false,
818
- readOnly: false,
819
- required: false,
820
- ellegibleForComparison: false,
821
- options: [],
822
- validations: [],
823
- requestGraphicData: [],
824
- tips: [],
825
- createdAtDateTime: "2025-10-15T20:02:14.980Z",
826
- updatedAtDateTime: "2025-10-15T20:02:14.980Z",
827
- __v: 0,
828
- screenPlacement: 1,
829
- lineId: "477d1109-60d3-4116-a993-d994d7404462"
830
- }
831
- ]
832
- },
833
- {
834
- id: "52351e7f-25b3-4c0a-b68d-30728f1f7bb0",
835
- line: 80,
836
- collumns: [
837
- {
838
- _id: "6913683bbd480d6d34a9bcca",
839
- form: "689e029db13c27189bce136d",
840
- sequence: 97,
841
- code: "FORMULA_POLLOCK_7_DOBRAS",
842
- description: "Equação Pollock 7 dobras",
843
- line: 80,
844
- column: 1,
845
- type: "QUESTION",
846
- typeAnswer: "OPEN_NUMBER_PERCENT",
847
- category: "ANTHROPOMETRY",
848
- formulaToAnswer: "(4.95 / ('${PATIENT_GENRE}' === 'FEMALE' ? 1.097 - (0.00046971 * (Number('${DOBRA_ABDOMINAL}') + Number('${DOBRA_AXILAR_MEDIO}') + Number('${DOBRA_COXA}') + Number('${DOBRA_SUBESCAPULAR}') + Number('${DOBRA_SUPRAILIACA}') + Number('${DOBRA_TRICEPTAL}') + Number('${DOBRA_PEITORAL}'))) + (0.00000056 * ((Number('${DOBRA_ABDOMINAL}') + Number('${DOBRA_AXILAR_MEDIO}') + Number('${DOBRA_COXA}') + Number('${DOBRA_SUBESCAPULAR}') + Number('${DOBRA_SUPRAILIACA}') + Number('${DOBRA_TRICEPTAL}') + Number('${DOBRA_PEITORAL}'))**2)) - (0.00012828 * Number('${PATIENT_AGE_IN_YEARS}')) : 1.112 - (0.0004349 * (Number('${DOBRA_ABDOMINAL}') + Number('${DOBRA_AXILAR_MEDIO}') + Number('${DOBRA_COXA}') + Number('${DOBRA_SUBESCAPULAR}') + Number('${DOBRA_SUPRAILIACA}') + Number('${DOBRA_TRICEPTAL}') + Number('${DOBRA_PEITORAL}'))) + (0.00000055 * ((Number('${DOBRA_ABDOMINAL}') + Number('${DOBRA_AXILAR_MEDIO}') + Number('${DOBRA_COXA}') + Number('${DOBRA_SUBESCAPULAR}') + Number('${DOBRA_SUPRAILIACA}') + Number('${DOBRA_TRICEPTAL}') + Number('${DOBRA_PEITORAL}'))**2)) - (0.00028826 * Number('${PATIENT_AGE_IN_YEARS}')))) - 4.5",
849
- formulaToEnable: "true",
850
- active: true,
851
- show: false,
852
- readOnly: false,
853
- required: false,
854
- ellegibleForComparison: false,
855
- options: [],
856
- validations: [],
857
- requestGraphicData: [],
858
- tips: [],
859
- createdAtDateTime: "2025-11-11T16:45:47.480Z",
860
- updatedAtDateTime: "2025-11-11T16:45:47.480Z",
861
- __v: 0,
862
- answer: null,
863
- lineId: "52351e7f-25b3-4c0a-b68d-30728f1f7bb0"
864
- }
865
- ]
866
- },
867
- {
868
- id: "ddedd521-62a5-4c9d-b523-5685ddb93433",
869
- line: 82,
870
- collumns: [
871
- {
872
- _id: "691c6af6bd480d6d34aa235a",
873
- form: "689e029db13c27189bce136d",
874
- sequence: 103,
875
- code: "GRAFICO_GANHO_PESO_GRAVIDA_BAIXO_PESO",
876
- description: "Gráfico de acompanhamento de peso gestacional",
877
- line: 82,
878
- column: 1,
879
- type: "GRAPHIC",
880
- typeAnswer: "OPEN_TEXT",
881
- category: "ANTHROPOMETRY",
882
- measurementUnit: "kg",
122
+ formulaToAnswer: "'${FORMULA_ESTIMATE_HEIGHT}' === 'CHUMLEA' && Number('${CHUMLEA_TO_HEIGHT_KNEE_HEIGHT}') ? Math.floor(((2.02 * Number('${CHUMLEA_TO_HEIGHT_KNEE_HEIGHT}')) - (0.04 * Number('${PATIENT_AGE_IN_YEARS}')) + 64.19)) : 0",
883
123
  formulaToEnable: "true",
884
124
  active: true,
885
125
  show: true,
886
126
  readOnly: false,
887
127
  required: false,
888
- ellegibleForComparison: false,
889
- graphicData: {
890
- datasets: [
891
- {
892
- label: "p10",
893
- data: [
894
- {
895
- "Idade gestacional": "10",
896
- "Ganho de peso gestacional": -1.5
897
- },
898
- {
899
- "Idade gestacional": "11",
900
- "Ganho de peso gestacional": -1.2
901
- },
902
- {
903
- "Idade gestacional": "12",
904
- "Ganho de peso gestacional": -1
905
- },
906
- {
907
- "Idade gestacional": "13",
908
- "Ganho de peso gestacional": -0.7
909
- },
910
- {
911
- "Idade gestacional": "14",
912
- "Ganho de peso gestacional": -0.4
913
- },
914
- {
915
- "Idade gestacional": "15",
916
- "Ganho de peso gestacional": -0.1
917
- },
918
- {
919
- "Idade gestacional": "16",
920
- "Ganho de peso gestacional": 0.2
921
- },
922
- {
923
- "Idade gestacional": "17",
924
- "Ganho de peso gestacional": 0.6
925
- },
926
- {
927
- "Idade gestacional": "18",
928
- "Ganho de peso gestacional": 0.9
929
- },
930
- {
931
- "Idade gestacional": "19",
932
- "Ganho de peso gestacional": 1.3
933
- },
934
- {
935
- "Idade gestacional": "20",
936
- "Ganho de peso gestacional": 1.7
937
- },
938
- {
939
- "Idade gestacional": "21",
940
- "Ganho de peso gestacional": 2.1
941
- },
942
- {
943
- "Idade gestacional": "22",
944
- "Ganho de peso gestacional": 2.5
945
- },
946
- {
947
- "Idade gestacional": "23",
948
- "Ganho de peso gestacional": 2.9
949
- },
950
- {
951
- "Idade gestacional": "24",
952
- "Ganho de peso gestacional": 3.2
953
- },
954
- {
955
- "Idade gestacional": "25",
956
- "Ganho de peso gestacional": 3.6
957
- },
958
- {
959
- "Idade gestacional": "26",
960
- "Ganho de peso gestacional": 4
961
- },
962
- {
963
- "Idade gestacional": "27",
964
- "Ganho de peso gestacional": 4.3
965
- },
966
- {
967
- "Idade gestacional": "28",
968
- "Ganho de peso gestacional": 4.7
969
- },
970
- {
971
- "Idade gestacional": "29",
972
- "Ganho de peso gestacional": 5
973
- },
974
- {
975
- "Idade gestacional": "30",
976
- "Ganho de peso gestacional": 5.3
977
- },
978
- {
979
- "Idade gestacional": "31",
980
- "Ganho de peso gestacional": 5.6
981
- },
982
- {
983
- "Idade gestacional": "32",
984
- "Ganho de peso gestacional": 5.9
985
- },
986
- {
987
- "Idade gestacional": "33",
988
- "Ganho de peso gestacional": 6.2
989
- },
990
- {
991
- "Idade gestacional": "34",
992
- "Ganho de peso gestacional": 6.5
993
- },
994
- {
995
- "Idade gestacional": "35",
996
- "Ganho de peso gestacional": 6.7
997
- },
998
- {
999
- "Idade gestacional": "36",
1000
- "Ganho de peso gestacional": 7
1001
- },
1002
- {
1003
- "Idade gestacional": "37",
1004
- "Ganho de peso gestacional": 7.2
1005
- },
1006
- {
1007
- "Idade gestacional": "38",
1008
- "Ganho de peso gestacional": 7.4
1009
- },
1010
- {
1011
- "Idade gestacional": "39",
1012
- "Ganho de peso gestacional": 7.6
1013
- },
1014
- {
1015
- "Idade gestacional": "40",
1016
- "Ganho de peso gestacional": 7.9
1017
- }
1018
- ],
1019
- tension: 0.5,
1020
- pointStyle: "circle",
1021
- pointRadius: 0,
1022
- pointHoverRadius: 5,
1023
- pointBorderColor: "#d0d5ec",
1024
- pointBackgroundColor: "rgba(94,79,162,0.5)",
1025
- borderDash: [5, 3],
1026
- borderWidth: 2,
1027
- borderColor: "rgba(94,79,162,0.5)",
1028
- backgroundColor: "rgba(94,79,162,0.5)",
1029
- fill: "+4"
1030
- },
1031
- {
1032
- label: "p18",
1033
- data: [
1034
- {
1035
- "Idade gestacional": "10",
1036
- "Ganho de peso gestacional": -0.8
1037
- },
1038
- {
1039
- "Idade gestacional": "13",
1040
- "Ganho de peso gestacional": 0.2
1041
- },
1042
- {
1043
- "Idade gestacional": "20",
1044
- "Ganho de peso gestacional": 2.6
1045
- },
1046
- {
1047
- "Idade gestacional": "27",
1048
- "Ganho de peso gestacional": 5.6
1049
- },
1050
- {
1051
- "Idade gestacional": "40",
1052
- "Ganho de peso gestacional": 9.7
1053
- }
1054
- ],
1055
- tension: 0.5,
1056
- pointStyle: "circle",
1057
- pointRadius: 0,
1058
- pointHoverRadius: 5,
1059
- pointBorderColor: "#d0d5ec",
1060
- pointBackgroundColor: "rgba(94,79,162,0.5)",
1061
- borderColor: "rgba(94,79,162,0.5)",
1062
- borderWidth: 2,
1063
- backgroundColor: "rgba(94,79,162,0.5)",
1064
- fill: "+1"
1065
- },
1066
- {
1067
- label: "p34",
1068
- data: [
1069
- {
1070
- "Idade gestacional": "10",
1071
- "Ganho de peso gestacional": 0.2
1072
- },
1073
- {
1074
- "Idade gestacional": "13",
1075
- "Ganho de peso gestacional": 1.2
1076
- },
1077
- {
1078
- "Idade gestacional": "20",
1079
- "Ganho de peso gestacional": 4
1080
- },
1081
- {
1082
- "Idade gestacional": "27",
1083
- "Ganho de peso gestacional": 7.2
1084
- },
1085
- {
1086
- "Idade gestacional": "40",
1087
- "Ganho de peso gestacional": 12.2
1088
- }
1089
- ],
1090
- tension: 0.5,
1091
- pointStyle: "circle",
1092
- pointRadius: 0,
1093
- pointHoverRadius: 5,
1094
- pointBorderColor: "#d0d5ec",
1095
- pointBackgroundColor: "rgba(94,79,162,0.5)",
1096
- borderColor: "rgba(94,79,162,0.5)",
1097
- borderWidth: 2,
1098
- backgroundColor: "rgba(94,79,162,0.5)",
1099
- fill: false
1100
- },
1101
- {
1102
- label: "p50",
1103
- data: [
1104
- {
1105
- "Idade gestacional": "10",
1106
- "Ganho de peso gestacional": 1.1
1107
- },
1108
- {
1109
- "Idade gestacional": "11",
1110
- "Ganho de peso gestacional": 1.4
1111
- },
1112
- {
1113
- "Idade gestacional": "12",
1114
- "Ganho de peso gestacional": 1.8
1115
- },
1116
- {
1117
- "Idade gestacional": "13",
1118
- "Ganho de peso gestacional": 2.1
1119
- },
1120
- {
1121
- "Idade gestacional": "14",
1122
- "Ganho de peso gestacional": 2.5
1123
- },
1124
- {
1125
- "Idade gestacional": "15",
1126
- "Ganho de peso gestacional": 2.9
1127
- },
1128
- {
1129
- "Idade gestacional": "16",
1130
- "Ganho de peso gestacional": 3.3
1131
- },
1132
- {
1133
- "Idade gestacional": "17",
1134
- "Ganho de peso gestacional": 3.7
1135
- },
1136
- {
1137
- "Idade gestacional": "18",
1138
- "Ganho de peso gestacional": 4.2
1139
- },
1140
- {
1141
- "Idade gestacional": "19",
1142
- "Ganho de peso gestacional": 4.6
1143
- },
1144
- {
1145
- "Idade gestacional": "20",
1146
- "Ganho de peso gestacional": 5.1
1147
- },
1148
- {
1149
- "Idade gestacional": "21",
1150
- "Ganho de peso gestacional": 5.6
1151
- },
1152
- {
1153
- "Idade gestacional": "22",
1154
- "Ganho de peso gestacional": 6.1
1155
- },
1156
- {
1157
- "Idade gestacional": "23",
1158
- "Ganho de peso gestacional": 6.6
1159
- },
1160
- {
1161
- "Idade gestacional": "24",
1162
- "Ganho de peso gestacional": 7.1
1163
- },
1164
- {
1165
- "Idade gestacional": "25",
1166
- "Ganho de peso gestacional": 7.6
1167
- },
1168
- {
1169
- "Idade gestacional": "26",
1170
- "Ganho de peso gestacional": 8.1
1171
- },
1172
- {
1173
- "Idade gestacional": "27",
1174
- "Ganho de peso gestacional": 8.6
1175
- },
1176
- {
1177
- "Idade gestacional": "28",
1178
- "Ganho de peso gestacional": 9.1
1179
- },
1180
- {
1181
- "Idade gestacional": "29",
1182
- "Ganho de peso gestacional": 9.5
1183
- },
1184
- {
1185
- "Idade gestacional": "30",
1186
- "Ganho de peso gestacional": 10
1187
- },
1188
- {
1189
- "Idade gestacional": "31",
1190
- "Ganho de peso gestacional": 10.4
1191
- },
1192
- {
1193
- "Idade gestacional": "32",
1194
- "Ganho de peso gestacional": 10.9
1195
- },
1196
- {
1197
- "Idade gestacional": "33",
1198
- "Ganho de peso gestacional": 11.3
1199
- },
1200
- {
1201
- "Idade gestacional": "34",
1202
- "Ganho de peso gestacional": 11.7
1203
- },
1204
- {
1205
- "Idade gestacional": "35",
1206
- "Ganho de peso gestacional": 12.1
1207
- },
1208
- {
1209
- "Idade gestacional": "36",
1210
- "Ganho de peso gestacional": 12.5
1211
- },
1212
- {
1213
- "Idade gestacional": "37",
1214
- "Ganho de peso gestacional": 12.9
1215
- },
1216
- {
1217
- "Idade gestacional": "38",
1218
- "Ganho de peso gestacional": 13.3
1219
- },
1220
- {
1221
- "Idade gestacional": "39",
1222
- "Ganho de peso gestacional": 13.7
1223
- },
1224
- {
1225
- "Idade gestacional": "40",
1226
- "Ganho de peso gestacional": 14.1
1227
- }
1228
- ],
1229
- tension: 0.5,
1230
- pointStyle: "circle",
1231
- pointRadius: 0,
1232
- pointHoverRadius: 5,
1233
- pointBorderColor: "#d0d5ec",
1234
- pointBackgroundColor: "rgba(94,79,162,0.5)",
1235
- borderDash: [5, 3],
1236
- borderWidth: 2,
1237
- borderColor: "rgba(94,79,162,0.5)",
1238
- fill: false
1239
- },
1240
- {
1241
- label: "p90",
1242
- data: [
1243
- {
1244
- "Idade gestacional": "10",
1245
- "Ganho de peso gestacional": 5.4
1246
- },
1247
- {
1248
- "Idade gestacional": "11",
1249
- "Ganho de peso gestacional": 5.9
1250
- },
1251
- {
1252
- "Idade gestacional": "12",
1253
- "Ganho de peso gestacional": 6.3
1254
- },
1255
- {
1256
- "Idade gestacional": "13",
1257
- "Ganho de peso gestacional": 6.8
1258
- },
1259
- {
1260
- "Idade gestacional": "14",
1261
- "Ganho de peso gestacional": 7.2
1262
- },
1263
- {
1264
- "Idade gestacional": "15",
1265
- "Ganho de peso gestacional": 7.7
1266
- },
1267
- {
1268
- "Idade gestacional": "16",
1269
- "Ganho de peso gestacional": 8.2
1270
- },
1271
- {
1272
- "Idade gestacional": "17",
1273
- "Ganho de peso gestacional": 8.7
1274
- },
1275
- {
1276
- "Idade gestacional": "18",
1277
- "Ganho de peso gestacional": 9.2
1278
- },
1279
- {
1280
- "Idade gestacional": "19",
1281
- "Ganho de peso gestacional": 9.8
1282
- },
1283
- {
1284
- "Idade gestacional": "20",
1285
- "Ganho de peso gestacional": 10.4
1286
- },
1287
- {
1288
- "Idade gestacional": "21",
1289
- "Ganho de peso gestacional": 10.9
1290
- },
1291
- {
1292
- "Idade gestacional": "22",
1293
- "Ganho de peso gestacional": 11.5
1294
- },
1295
- {
1296
- "Idade gestacional": "23",
1297
- "Ganho de peso gestacional": 12.1
1298
- },
1299
- {
1300
- "Idade gestacional": "24",
1301
- "Ganho de peso gestacional": 12.7
1302
- },
1303
- {
1304
- "Idade gestacional": "25",
1305
- "Ganho de peso gestacional": 13.3
1306
- },
1307
- {
1308
- "Idade gestacional": "26",
1309
- "Ganho de peso gestacional": 13.9
1310
- },
1311
- {
1312
- "Idade gestacional": "27",
1313
- "Ganho de peso gestacional": 14.5
1314
- },
1315
- {
1316
- "Idade gestacional": "28",
1317
- "Ganho de peso gestacional": 15
1318
- },
1319
- {
1320
- "Idade gestacional": "29",
1321
- "Ganho de peso gestacional": 15.6
1322
- },
1323
- {
1324
- "Idade gestacional": "30",
1325
- "Ganho de peso gestacional": 16.1
1326
- },
1327
- {
1328
- "Idade gestacional": "31",
1329
- "Ganho de peso gestacional": 16.6
1330
- },
1331
- {
1332
- "Idade gestacional": "32",
1333
- "Ganho de peso gestacional": 17.2
1334
- },
1335
- {
1336
- "Idade gestacional": "33",
1337
- "Ganho de peso gestacional": 17.7
1338
- },
1339
- {
1340
- "Idade gestacional": "34",
1341
- "Ganho de peso gestacional": 18.2
1342
- },
1343
- {
1344
- "Idade gestacional": "35",
1345
- "Ganho de peso gestacional": 18.6
1346
- },
1347
- {
1348
- "Idade gestacional": "36",
1349
- "Ganho de peso gestacional": 19.1
1350
- },
1351
- {
1352
- "Idade gestacional": "37",
1353
- "Ganho de peso gestacional": 19.6
1354
- },
1355
- {
1356
- "Idade gestacional": "38",
1357
- "Ganho de peso gestacional": 20
1358
- },
1359
- {
1360
- "Idade gestacional": "39",
1361
- "Ganho de peso gestacional": 20.5
1362
- },
1363
- {
1364
- "Idade gestacional": "40",
1365
- "Ganho de peso gestacional": 21
1366
- }
1367
- ],
1368
- tension: 0.5,
1369
- pointStyle: "circle",
1370
- pointRadius: 0,
1371
- pointHoverRadius: 5,
1372
- pointBorderColor: "#d0d5ec",
1373
- pointBackgroundColor: "rgba(94,79,162,0.5)",
1374
- borderDash: [5, 3],
1375
- borderWidth: 2,
1376
- borderColor: "rgba(94,79,162,0.5)",
1377
- fill: false
1378
- }
1379
- ],
1380
- config: {
1381
- type: "line",
1382
- animation: false,
1383
- parsing: {
1384
- xAxisKey: "Idade gestacional",
1385
- yAxisKey: "Ganho de peso gestacional"
1386
- },
1387
- hover: {
1388
- mode: "x",
1389
- intersect: false
1390
- },
1391
- plugins: {
1392
- tooltip: {
1393
- mode: "x",
1394
- intersect: false,
1395
- itemSort: "function (a, b) { return b.raw['Ganho de peso gestacional'] - a.raw['Ganho de peso gestacional']; }",
1396
- bodySpacing: 5,
1397
- caretPadding: 5,
1398
- callbacks: {
1399
- title: "function (tooltipItems) { return `Semana ${tooltipItems[0].label}` }",
1400
- label: "function (context) { const label = context.dataset.label; let lblValue = context.raw['Ganho de peso gestacional']; return `${label}: ${lblValue}`; }",
1401
- labelColor: "function (context) { const datasetBackgroundColor = context.dataset.backgroundColor; return { backgroundColor: datasetBackgroundColor, borderColor: datasetBackgroundColor }; }"
1402
- }
1403
- },
1404
- legend: {
1405
- display: true,
1406
- labels: {
1407
- generateLabels: "function (chart, context) { return [ { 'text': 'Abaixo de p18 - Abaixo do recomendado', 'fillStyle': 'rgba(94,79,162,0.5)', 'strokeStyle': 'rgba(94,79,162,0.5)', 'lineWidth': 2, lineDash: [5, 3], },{ 'text': 'p18 á p34 - Dentro do recomendado', 'fillStyle': '#857bba', 'strokeStyle': '#7265ad', 'lineWidth': 2 },{ 'text': 'Acima de p34 - Acima do recomendado', 'fillStyle': 'rgba(94,79,162,0.5)', 'strokeStyle': 'rgba(94,79,162,0.5)', 'lineWidth': 2, lineDash: [5, 3] },]}"
1408
- },
1409
- onClick: null
1410
- },
1411
- annotation: {
1412
- annotations: [
1413
- {
1414
- type: "line",
1415
- mode: "vertical",
1416
- scaleID: "x",
1417
- value: "13",
1418
- borderColor: "#a23f97",
1419
- borderWidth: 2
1420
- },
1421
- {
1422
- type: "line",
1423
- mode: "vertical",
1424
- scaleID: "x",
1425
- value: "27",
1426
- borderColor: "#a23f97",
1427
- borderWidth: 2
1428
- },
1429
- {
1430
- type: "box",
1431
- xMin: 10.5,
1432
- xMax: 12.5,
1433
- yMin: -3,
1434
- yMax: -4.5,
1435
- backgroundColor: "white",
1436
- borderColor: "transparent",
1437
- borderWidth: 0
1438
- },
1439
- {
1440
- type: "label",
1441
- xValue: 11,
1442
- yValue: -3.75,
1443
- content: "1 Trimestre",
1444
- backgroundColor: "white",
1445
- font: {
1446
- size: 8,
1447
- weight: "bold"
1448
- }
1449
- },
1450
- {
1451
- type: "box",
1452
- xMin: 14,
1453
- xMax: 26,
1454
- yMin: -3,
1455
- yMax: -4.5,
1456
- backgroundColor: "white",
1457
- borderColor: "transparent",
1458
- borderWidth: 0
1459
- },
1460
- {
1461
- type: "label",
1462
- xValue: 20,
1463
- yValue: -3.75,
1464
- content: "2 Trimestre",
1465
- backgroundColor: "white",
1466
- font: {
1467
- size: 8,
1468
- weight: "bold"
1469
- }
1470
- },
1471
- {
1472
- type: "box",
1473
- xMin: 28,
1474
- xMax: 39,
1475
- yMin: -3,
1476
- yMax: -4.5,
1477
- backgroundColor: "white",
1478
- borderColor: "transparent",
1479
- borderWidth: 0
1480
- },
1481
- {
1482
- type: "label",
1483
- xValue: 33.5,
1484
- yValue: -3.75,
1485
- content: "3 Trimestre",
1486
- backgroundColor: "white",
1487
- font: {
1488
- size: 8,
1489
- weight: "bold"
1490
- }
1491
- }
1492
- ]
1493
- },
1494
- datalabels: {
1495
- align: "center",
1496
- anchor: "center",
1497
- formatter: "function (value, context) { if (context.dataset.label === 'Você') { return null }; const dataIndex = context.dataIndex; const dataset = context.dataset; if (dataIndex === dataset.data.length - 1) { return context.dataset.label; } return null; }",
1498
- font: {
1499
- size: 8,
1500
- weight: "bold"
1501
- },
1502
- color: "rgba(0, 0, 0, 0.7)",
1503
- backgroundColor: "white",
1504
- borderColor: "#8A2BE2",
1505
- borderWidth: 2,
1506
- borderRadius: 50,
1507
- padding: 6
1508
- }
1509
- },
1510
- scales: {
1511
- x: {
1512
- display: true,
1513
- title: {
1514
- text: "SEMANAS DE GESTAÇÃO",
1515
- display: true
1516
- },
1517
- type: "category",
1518
- min: 10,
1519
- labels: [
1520
- "0",
1521
- "1",
1522
- "2",
1523
- "3",
1524
- "4",
1525
- "5",
1526
- "6",
1527
- "7",
1528
- "8",
1529
- "9",
1530
- "10",
1531
- "11",
1532
- "12",
1533
- "13",
1534
- "14",
1535
- "15",
1536
- "16",
1537
- "17",
1538
- "18",
1539
- "19",
1540
- "20",
1541
- "21",
1542
- "22",
1543
- "23",
1544
- "24",
1545
- "25",
1546
- "26",
1547
- "27",
1548
- "28",
1549
- "29",
1550
- "30",
1551
- "31",
1552
- "32",
1553
- "33",
1554
- "34",
1555
- "35",
1556
- "36",
1557
- "37",
1558
- "38",
1559
- "39",
1560
- "40"
1561
- ]
1562
- },
1563
- x1: {
1564
- position: "top",
1565
- display: true
1566
- },
1567
- y: {
1568
- display: true,
1569
- position: "left",
1570
- title: {
1571
- text: "GANHO DE PESO",
1572
- display: true
1573
- }
1574
- },
1575
- y1: {
1576
- display: true,
1577
- position: "right",
1578
- afterBuildTicks: "function (axis) { axis.ticks = [...axis.chart.scales.y.ticks]; axis.min = axis.chart.scales.y.min; axis.max = axis.chart.scales.y.max; }"
1579
- }
1580
- }
1581
- }
1582
- },
1583
- requestGraphicData: [
1584
- {
1585
- method: "patch",
1586
- url: "/patient/${PATIENT_ID}/get-chart-data/ATTENDANCE_DATA?limit=40&orderBy=label&orderSense=asc",
1587
- body: {
1588
- labels: ["attendance.initAtDateTime"],
1589
- datas: ["6655c805812e85401aff2fdd", "6654fb1e812e85401aff2f74"]
1590
- },
1591
- dataset: {
1592
- label: "Você",
1593
- data: [],
1594
- borderDash: [5, 3],
1595
- borderWidth: 1,
1596
- borderColor: "black",
1597
- spanGaps: true,
1598
- pointStyle: "circle",
1599
- pointRadius: 2,
1600
- pointHoverRadius: 7,
1601
- pointBorderColor: "red",
1602
- pointBackgroundColor: "red"
1603
- }
1604
- }
1605
- ],
1606
- options: [],
1607
- validations: [],
1608
- tips: [],
1609
- createdAtDateTime: "2025-11-18T12:47:50.474Z",
1610
- updatedAtDateTime: "2025-11-18T12:47:50.474Z",
1611
- __v: 0,
1612
- lineId: "ddedd521-62a5-4c9d-b523-5685ddb93433"
1613
- }
1614
- ]
1615
- },
1616
- {
1617
- id: "5c1f5a8f-daa2-43a9-a038-3fdcfe53f7dd",
1618
- line: 83,
1619
- collumns: [
1620
- {
1621
- _id: "69249b3b2d97243a5207a582",
1622
- form: "689e029db13c27189bce136d",
1623
- sequence: 104,
1624
- code: "PATIENT_AGE_IN_WEEKS",
1625
- description: "Idade do Paciente em Semanas",
1626
- line: 83,
1627
- column: 1,
1628
- type: "QUESTION",
1629
- typeAnswer: "OPEN_NUMBER",
1630
- category: "ANTHROPOMETRY",
1631
- measurementUnit: "Semanas",
1632
- formulaToAnswer: "'${PATIENT_BORN_DATE}' ? Math.floor((new Date() - new Date('${PATIENT_BORN_DATE}')) / (7 * 24 * 60 * 60 * 1000)) : undefined",
1633
- formulaToEnable: "true",
1634
- active: true,
1635
- show: false,
1636
- readOnly: true,
1637
- required: false,
1638
- screenPlacement: 1,
1639
- ellegibleForComparison: false,
1640
- options: [],
1641
- validations: [],
1642
- requestGraphicData: [],
1643
- tips: [],
1644
- createdAtDateTime: "2025-11-24T17:51:55.110Z",
1645
- updatedAtDateTime: "2025-11-24T17:51:55.110Z",
1646
- __v: 0,
1647
- answer: 6,
1648
- lineId: "5c1f5a8f-daa2-43a9-a038-3fdcfe53f7dd"
1649
- }
1650
- ]
1651
- },
1652
- {
1653
- id: "04488608-8fbc-41bd-9f41-d3098768f993",
1654
- line: 84,
1655
- collumns: [
1656
- {
1657
- _id: "69249c502d97243a5207a58c",
1658
- form: "689e029db13c27189bce136d",
1659
- sequence: 105,
1660
- code: "PATIENT_AGE_IN_MONTHS",
1661
- description: "Idade do Paciente em Meses",
1662
- line: 84,
1663
- column: 1,
1664
- type: "QUESTION",
1665
- typeAnswer: "OPEN_NUMBER",
1666
- category: "ANTHROPOMETRY",
1667
- measurementUnit: "Meses",
1668
- formulaToAnswer: "'${PATIENT_BORN_DATE}' ? Math.floor((new Date() - new Date('${PATIENT_BORN_DATE}')) / (30.44 * 24 * 60 * 60 * 1000)) : undefined",
1669
- formulaToEnable: "true",
1670
- active: true,
1671
- show: false,
1672
- readOnly: true,
1673
- required: false,
1674
- screenPlacement: 1,
1675
- ellegibleForComparison: false,
1676
- options: [],
1677
- validations: [],
1678
- requestGraphicData: [],
1679
- tips: [],
1680
- createdAtDateTime: "2025-11-24T17:56:32.172Z",
1681
- updatedAtDateTime: "2025-11-24T17:56:32.172Z",
1682
- __v: 0,
1683
- answer: 1,
1684
- lineId: "04488608-8fbc-41bd-9f41-d3098768f993"
1685
- }
1686
- ]
1687
- },
1688
- {
1689
- id: "20efe517-658f-4455-9532-ffe7ca1b1dd5",
1690
- line: 85,
1691
- collumns: [
1692
- {
1693
- _id: "69249c9a2d97243a5207a594",
1694
- form: "689e029db13c27189bce136d",
1695
- sequence: 106,
1696
- code: "PATIENT_AGE_IN_YEARS",
1697
- description: "Idade do Paciente em Anos",
1698
- line: 85,
1699
- column: 1,
1700
- type: "QUESTION",
1701
- typeAnswer: "OPEN_NUMBER",
1702
- category: "ANTHROPOMETRY",
1703
- measurementUnit: "Anos",
1704
- formulaToAnswer: "'${PATIENT_BORN_DATE}' ? Math.floor((new Date() - new Date('${PATIENT_BORN_DATE}')) / (365.25 * 24 * 60 * 60 * 1000)) : undefined",
1705
- formulaToEnable: "true",
1706
- active: true,
1707
- show: false,
1708
- readOnly: true,
1709
- required: false,
1710
- screenPlacement: 1,
1711
- ellegibleForComparison: false,
1712
128
  options: [],
1713
129
  validations: [],
1714
130
  requestGraphicData: [],
1715
- tips: [],
1716
- createdAtDateTime: "2025-11-24T17:57:46.040Z",
1717
- updatedAtDateTime: "2025-11-24T17:57:46.040Z",
131
+ createdAtDateTime: "2025-08-19T19:18:38.430Z",
132
+ updatedAtDateTime: "2025-08-19T19:18:38.430Z",
1718
133
  __v: 0,
1719
- answer: 0,
1720
- lineId: "20efe517-658f-4455-9532-ffe7ca1b1dd5"
1721
- }
1722
- ]
1723
- },
1724
- {
1725
- id: "b899a541-78c2-49bf-a0e6-9039391d5c38",
1726
- line: 86,
1727
- collumns: [
1728
- {
1729
- _id: "69249d3d56c02b903e775f76",
1730
- form: "689e029db13c27189bce136d",
1731
- sequence: 107,
1732
- code: "PATIENT_AGE_IN_DAYS",
1733
- description: "Idade do Paciente em Dias",
1734
- line: 86,
1735
- column: 1,
1736
- type: "QUESTION",
1737
- typeAnswer: "OPEN_NUMBER",
1738
- category: "ANTHROPOMETRY",
1739
- measurementUnit: "Dias",
1740
- formulaToAnswer: "'${PATIENT_BORN_DATE}' ? Math.floor((new Date() - new Date('${PATIENT_BORN_DATE}')) / (24 * 60 * 60 * 1000)) : undefined",
1741
- formulaToEnable: "true",
1742
- active: true,
1743
- show: false,
1744
- readOnly: true,
1745
- required: false,
1746
134
  screenPlacement: 1,
1747
- ellegibleForComparison: false,
1748
- options: [],
1749
- validations: [],
1750
- requestGraphicData: [],
1751
- tips: [],
1752
- createdAtDateTime: "2025-11-24T18:00:29.411Z",
1753
- updatedAtDateTime: "2025-11-24T18:00:29.411Z",
1754
- __v: 0,
1755
- answer: 48,
1756
- lineId: "b899a541-78c2-49bf-a0e6-9039391d5c38"
1757
- }
1758
- ]
1759
- },
1760
- {
1761
- id: "c01b8a83-4938-4f98-812d-37c35223524e",
1762
- line: 88,
1763
- collumns: [
1764
- {
1765
- _id: "6924a47356c02b903e775f88",
1766
- form: "689e029db13c27189bce136d",
1767
- sequence: 109,
1768
- code: "GRAFICO_PESO_POR_IDADE_FEMININO_0_13_SEMANAS",
1769
- description: "Peso por idade - Feminino - 0 a 13 Semanas",
1770
- line: 88,
1771
- column: 1,
1772
- type: "GRAPHIC",
1773
- category: "ANTHROPOMETRY",
1774
- formulaToEnable: "Number('${PATIENT_AGE_IN_WEEKS}') < 13 && '${PATIENT_GENRE}' === 'FEMALE'",
1775
- active: true,
1776
- show: true,
1777
- readOnly: false,
1778
- required: false,
1779
- screenPlacement: 3,
1780
- ellegibleForComparison: false,
1781
- graphicData: {
1782
- datasets: [
1783
- {
1784
- label: "-3",
1785
- data: [
1786
- {
1787
- Idade: 0,
1788
- "Peso atual": 2
1789
- },
1790
- {
1791
- Idade: 1,
1792
- "Peso atual": 2.1
1793
- },
1794
- {
1795
- Idade: 2,
1796
- "Peso atual": 2.3
1797
- },
1798
- {
1799
- Idade: 3,
1800
- "Peso atual": 2.5
1801
- },
1802
- {
1803
- Idade: 4,
1804
- "Peso atual": 2.7
1805
- },
1806
- {
1807
- Idade: 5,
1808
- "Peso atual": 2.9
1809
- },
1810
- {
1811
- Idade: 6,
1812
- "Peso atual": 3
1813
- },
1814
- {
1815
- Idade: 7,
1816
- "Peso atual": 3.2
1817
- },
1818
- {
1819
- Idade: 8,
1820
- "Peso atual": 3.3
1821
- },
1822
- {
1823
- Idade: 9,
1824
- "Peso atual": 3.5
1825
- },
1826
- {
1827
- Idade: 10,
1828
- "Peso atual": 3.6
1829
- },
1830
- {
1831
- Idade: 11,
1832
- "Peso atual": 3.8
1833
- },
1834
- {
1835
- Idade: 12,
1836
- "Peso atual": 3.9
1837
- },
1838
- {
1839
- Idade: 13,
1840
- "Peso atual": 4
1841
- }
1842
- ],
1843
- pointStyle: "circle",
1844
- pointRadius: 0,
1845
- pointHoverRadius: 5,
1846
- pointBorderColor: "#d0d5ec",
1847
- pointBackgroundColor: "rgba(0,0,0,0.5)",
1848
- borderWidth: 2,
1849
- borderColor: "rgba(0,0,0,0.5)",
1850
- backgroundColor: "rgba(0,0,0,0.5)"
1851
- },
1852
- {
1853
- label: "-2",
1854
- data: [
1855
- {
1856
- Idade: 0,
1857
- "Peso atual": 2.4
1858
- },
1859
- {
1860
- Idade: 1,
1861
- "Peso atual": 2.5
1862
- },
1863
- {
1864
- Idade: 2,
1865
- "Peso atual": 2.7
1866
- },
1867
- {
1868
- Idade: 3,
1869
- "Peso atual": 2.9
1870
- },
1871
- {
1872
- Idade: 4,
1873
- "Peso atual": 3.1
1874
- },
1875
- {
1876
- Idade: 5,
1877
- "Peso atual": 3.3
1878
- },
1879
- {
1880
- Idade: 6,
1881
- "Peso atual": 3.5
1882
- },
1883
- {
1884
- Idade: 7,
1885
- "Peso atual": 3.7
1886
- },
1887
- {
1888
- Idade: 8,
1889
- "Peso atual": 3.8
1890
- },
1891
- {
1892
- Idade: 9,
1893
- "Peso atual": 4
1894
- },
1895
- {
1896
- Idade: 10,
1897
- "Peso atual": 4.1
1898
- },
1899
- {
1900
- Idade: 11,
1901
- "Peso atual": 4.3
1902
- },
1903
- {
1904
- Idade: 12,
1905
- "Peso atual": 4.4
1906
- },
1907
- {
1908
- Idade: 13,
1909
- "Peso atual": 4.5
1910
- }
1911
- ],
1912
- pointStyle: "circle",
1913
- pointRadius: 0,
1914
- pointHoverRadius: 5,
1915
- pointBorderColor: "#d0d5ec",
1916
- pointBackgroundColor: "rgba(255, 0, 0,0.5)",
1917
- borderColor: "rgba(255, 0, 0,0.5)",
1918
- borderWidth: 2,
1919
- backgroundColor: "rgba(255, 0, 0,0.5)"
1920
- },
1921
- {
1922
- label: "-1",
1923
- data: [
1924
- {
1925
- Idade: 0,
1926
- "Peso atual": 2.8
1927
- },
1928
- {
1929
- Idade: 1,
1930
- "Peso atual": 2.9
1931
- },
1932
- {
1933
- Idade: 2,
1934
- "Peso atual": 3.1
1935
- },
1936
- {
1937
- Idade: 3,
1938
- "Peso atual": 3.3
1939
- },
1940
- {
1941
- Idade: 4,
1942
- "Peso atual": 3.6
1943
- },
1944
- {
1945
- Idade: 5,
1946
- "Peso atual": 3.8
1947
- },
1948
- {
1949
- Idade: 6,
1950
- "Peso atual": 4
1951
- },
1952
- {
1953
- Idade: 7,
1954
- "Peso atual": 4.2
1955
- },
1956
- {
1957
- Idade: 8,
1958
- "Peso atual": 4.4
1959
- },
1960
- {
1961
- Idade: 9,
1962
- "Peso atual": 4.6
1963
- },
1964
- {
1965
- Idade: 10,
1966
- "Peso atual": 4.7
1967
- },
1968
- {
1969
- Idade: 11,
1970
- "Peso atual": 4.9
1971
- },
1972
- {
1973
- Idade: 12,
1974
- "Peso atual": 5
1975
- },
1976
- {
1977
- Idade: 13,
1978
- "Peso atual": 5.1
1979
- }
1980
- ],
1981
- pointStyle: "circle",
1982
- pointRadius: 0,
1983
- pointHoverRadius: 5,
1984
- pointBorderColor: "#d0d5ec",
1985
- pointBackgroundColor: "rgba(255, 165, 0,0.5)",
1986
- borderColor: "rgba(255, 165, 0,0.5)",
1987
- borderWidth: 2,
1988
- backgroundColor: "rgba(255, 165, 0,0.5)"
1989
- },
1990
- {
1991
- label: "0",
1992
- data: [
1993
- {
1994
- Idade: 0,
1995
- "Peso atual": 3.2
1996
- },
1997
- {
1998
- Idade: 1,
1999
- "Peso atual": 3.3
2000
- },
2001
- {
2002
- Idade: 2,
2003
- "Peso atual": 3.6
2004
- },
2005
- {
2006
- Idade: 3,
2007
- "Peso atual": 3.8
2008
- },
2009
- {
2010
- Idade: 4,
2011
- "Peso atual": 4.1
2012
- },
2013
- {
2014
- Idade: 5,
2015
- "Peso atual": 4.3
2016
- },
2017
- {
2018
- Idade: 6,
2019
- "Peso atual": 4.6
2020
- },
2021
- {
2022
- Idade: 7,
2023
- "Peso atual": 4.8
2024
- },
2025
- {
2026
- Idade: 8,
2027
- "Peso atual": 5
2028
- },
2029
- {
2030
- Idade: 9,
2031
- "Peso atual": 5.2
2032
- },
2033
- {
2034
- Idade: 10,
2035
- "Peso atual": 5.4
2036
- },
2037
- {
2038
- Idade: 11,
2039
- "Peso atual": 5.5
2040
- },
2041
- {
2042
- Idade: 12,
2043
- "Peso atual": 5.7
2044
- },
2045
- {
2046
- Idade: 13,
2047
- "Peso atual": 5.8
2048
- }
2049
- ],
2050
- pointStyle: "circle",
2051
- pointRadius: 0,
2052
- pointHoverRadius: 5,
2053
- pointBorderColor: "#d0d5ec",
2054
- pointBackgroundColor: "rgba(60, 179, 113,0.5)",
2055
- borderWidth: 2,
2056
- borderColor: "rgba(60, 179, 113,0.5)",
2057
- backgroundColor: "rgba(60, 179, 113,0.5)"
2058
- },
2059
- {
2060
- label: "1",
2061
- data: [
2062
- {
2063
- Idade: 0,
2064
- "Peso atual": 3.7
2065
- },
2066
- {
2067
- Idade: 1,
2068
- "Peso atual": 3.9
2069
- },
2070
- {
2071
- Idade: 2,
2072
- "Peso atual": 4.1
2073
- },
2074
- {
2075
- Idade: 3,
2076
- "Peso atual": 4.4
2077
- },
2078
- {
2079
- Idade: 4,
2080
- "Peso atual": 4.7
2081
- },
2082
- {
2083
- Idade: 5,
2084
- "Peso atual": 5
2085
- },
2086
- {
2087
- Idade: 6,
2088
- "Peso atual": 5.2
2089
- },
2090
- {
2091
- Idade: 7,
2092
- "Peso atual": 5.5
2093
- },
2094
- {
2095
- Idade: 8,
2096
- "Peso atual": 5.7
2097
- },
2098
- {
2099
- Idade: 9,
2100
- "Peso atual": 5.9
2101
- },
2102
- {
2103
- Idade: 10,
2104
- "Peso atual": 6.1
2105
- },
2106
- {
2107
- Idade: 11,
2108
- "Peso atual": 6.3
2109
- },
2110
- {
2111
- Idade: 12,
2112
- "Peso atual": 6.5
2113
- },
2114
- {
2115
- Idade: 13,
2116
- "Peso atual": 6.6
2117
- }
2118
- ],
2119
- pointStyle: "circle",
2120
- pointRadius: 0,
2121
- pointHoverRadius: 5,
2122
- pointBorderColor: "#d0d5ec",
2123
- pointBackgroundColor: "rgba(255, 165, 0,0.5)",
2124
- borderWidth: 2,
2125
- borderColor: "rgba(255, 165, 0,0.5)",
2126
- backgroundColor: "rgba(255, 165, 0,0.5)"
2127
- },
2128
- {
2129
- label: "2",
2130
- data: [
2131
- {
2132
- Idade: 0,
2133
- "Peso atual": 4.2
2134
- },
2135
- {
2136
- Idade: 1,
2137
- "Peso atual": 4.4
2138
- },
2139
- {
2140
- Idade: 2,
2141
- "Peso atual": 4.7
2142
- },
2143
- {
2144
- Idade: 3,
2145
- "Peso atual": 5
2146
- },
2147
- {
2148
- Idade: 4,
2149
- "Peso atual": 5.4
2150
- },
2151
- {
2152
- Idade: 5,
2153
- "Peso atual": 5.7
2154
- },
2155
- {
2156
- Idade: 6,
2157
- "Peso atual": 6
2158
- },
2159
- {
2160
- Idade: 7,
2161
- "Peso atual": 6.2
2162
- },
2163
- {
2164
- Idade: 8,
2165
- "Peso atual": 6.5
2166
- },
2167
- {
2168
- Idade: 9,
2169
- "Peso atual": 6.7
2170
- },
2171
- {
2172
- Idade: 10,
2173
- "Peso atual": 6.9
2174
- },
2175
- {
2176
- Idade: 11,
2177
- "Peso atual": 7.1
2178
- },
2179
- {
2180
- Idade: 12,
2181
- "Peso atual": 7.3
2182
- },
2183
- {
2184
- Idade: 13,
2185
- "Peso atual": 7.5
2186
- }
2187
- ],
2188
- pointStyle: "circle",
2189
- pointRadius: 0,
2190
- pointHoverRadius: 5,
2191
- pointBorderColor: "#d0d5ec",
2192
- pointBackgroundColor: "rgba(255, 0, 0,0.5)",
2193
- borderWidth: 2,
2194
- borderColor: "rgba(255, 0, 0,0.5)",
2195
- backgroundColor: "rgba(255, 0, 0,0.5)"
2196
- },
2197
- {
2198
- label: "3",
2199
- data: [
2200
- {
2201
- Idade: 0,
2202
- "Peso atual": 4.8
2203
- },
2204
- {
2205
- Idade: 1,
2206
- "Peso atual": 5.1
2207
- },
2208
- {
2209
- Idade: 2,
2210
- "Peso atual": 5.4
2211
- },
2212
- {
2213
- Idade: 3,
2214
- "Peso atual": 5.7
2215
- },
2216
- {
2217
- Idade: 4,
2218
- "Peso atual": 6.1
2219
- },
2220
- {
2221
- Idade: 5,
2222
- "Peso atual": 6.5
2223
- },
2224
- {
2225
- Idade: 6,
2226
- "Peso atual": 6.8
2227
- },
2228
- {
2229
- Idade: 7,
2230
- "Peso atual": 7.1
2231
- },
2232
- {
2233
- Idade: 8,
2234
- "Peso atual": 7.3
2235
- },
2236
- {
2237
- Idade: 9,
2238
- "Peso atual": 7.6
2239
- },
2240
- {
2241
- Idade: 10,
2242
- "Peso atual": 7.8
2243
- },
2244
- {
2245
- Idade: 11,
2246
- "Peso atual": 8.1
2247
- },
2248
- {
2249
- Idade: 12,
2250
- "Peso atual": 8.3
2251
- },
2252
- {
2253
- Idade: 13,
2254
- "Peso atual": 8.5
2255
- }
2256
- ],
2257
- pointStyle: "circle",
2258
- pointRadius: 0,
2259
- pointHoverRadius: 5,
2260
- pointBorderColor: "#d0d5ec",
2261
- pointBackgroundColor: "rgba(0,0,0,0.5)",
2262
- borderWidth: 2,
2263
- borderColor: "rgba(0,0,0,0.5)",
2264
- backgroundColor: "rgba(0,0,0,0.5)"
2265
- }
2266
- ],
2267
- config: {
2268
- type: "line",
2269
- animation: false,
2270
- parsing: {
2271
- xAxisKey: "Idade",
2272
- yAxisKey: "Peso atual"
2273
- },
2274
- hover: {
2275
- mode: "x",
2276
- intersect: false
2277
- },
2278
- plugins: {
2279
- customBackground: {
2280
- color: "#FFC0CB",
2281
- labelColor: "#FFF"
2282
- },
2283
- extraGridLines: {
2284
- lineWidth: 0.5,
2285
- strokeStyle: "rgba(0, 0, 0, 0.1)"
2286
- },
2287
- tooltip: {
2288
- mode: "x",
2289
- intersect: false,
2290
- itemSort: "function (a, b) { return b.raw['Peso atual'] - a.raw['Peso atual']; }",
2291
- bodySpacing: 5,
2292
- caretPadding: 5,
2293
- callbacks: {
2294
- title: "function (tooltipItems) { return `Semana ${tooltipItems[0].label}` }",
2295
- label: "function (context) { const label = context.dataset.label; let lblValue = context.raw['Peso atual']; return `${label}: ${lblValue}`; }",
2296
- labelColor: "function (context) { const datasetBackgroundColor = context.dataset.backgroundColor; return { backgroundColor: datasetBackgroundColor, borderColor: datasetBackgroundColor }; }"
2297
- }
2298
- },
2299
- legend: {
2300
- display: false
2301
- },
2302
- datalabels: {
2303
- align: "center",
2304
- anchor: "center",
2305
- formatter: "function (value, context) { if (context.dataset.label === 'Você') { return null; } const dataIndex = context.dataIndex; const dataset = context.dataset; if (dataIndex === dataset.data.length - 1) { return context.dataset.label; } return null; }",
2306
- font: {
2307
- size: 8,
2308
- weight: "bold"
2309
- },
2310
- color: "rgba(0, 0, 0, 0.7)",
2311
- backgroundColor: "white",
2312
- borderColor: "function (context) { if (!context?.dataset?.borderColor) return '#000'; return context?.dataset?.borderColor; }",
2313
- borderWidth: 2,
2314
- borderRadius: 50,
2315
- padding: 6
2316
- }
2317
- },
2318
- scales: {
2319
- x: {
2320
- display: true,
2321
- title: {
2322
- text: "Idade",
2323
- display: false
2324
- },
2325
- type: "linear",
2326
- min: 0,
2327
- max: 13,
2328
- ticks: {
2329
- stepSize: 1
2330
- }
2331
- },
2332
- x1: {
2333
- position: "top",
2334
- display: true
2335
- },
2336
- x2: {
2337
- title: {
2338
- text: "Meses",
2339
- display: true
2340
- },
2341
- type: "linear",
2342
- min: 0,
2343
- max: 3,
2344
- position: "bottom",
2345
- display: true,
2346
- grid: {
2347
- color: "rgba(0, 0, 0, 0.2)",
2348
- tickColor: "rgba(0, 0, 0, 0.2)",
2349
- lineWidth: 4
2350
- },
2351
- ticks: {
2352
- stepSize: 1
2353
- }
2354
- },
2355
- y: {
2356
- min: 0,
2357
- display: true,
2358
- position: "left",
2359
- title: {
2360
- text: "PESO",
2361
- display: true
2362
- }
2363
- },
2364
- y1: {
2365
- display: true,
2366
- position: "right",
2367
- afterBuildTicks: "function (axis) { axis.ticks = [...axis.chart.scales.y.ticks]; axis.min = axis.chart.scales.y.min; axis.max = axis.chart.scales.y.max; }"
2368
- }
2369
- }
2370
- }
2371
- },
2372
- requestGraphicData: [
2373
- {
2374
- method: "patch",
2375
- url: "/patient/${PATIENT_ID}/get-chart-data/ATTENDANCE_DATA?limit=40&orderBy=label&orderSense=asc",
2376
- body: {
2377
- labels: ["attendance.initAtDateTime"],
2378
- datas: ["67a3a49a68c30e499c875af5", "6669e43a8e0d785d7cd96575"]
2379
- },
2380
- dataset: {
2381
- label: "Você",
2382
- data: [],
2383
- borderDash: [5, 3],
2384
- borderWidth: 1,
2385
- borderColor: "black",
2386
- spanGaps: true,
2387
- pointStyle: "circle",
2388
- pointRadius: 2,
2389
- pointHoverRadius: 7,
2390
- pointBorderColor: "red",
2391
- pointBackgroundColor: "red",
2392
- backgroundColor: "red",
2393
- order: 1
2394
- }
2395
- }
2396
- ],
2397
- options: [],
2398
- validations: [],
2399
- tips: [],
2400
- createdAtDateTime: "2025-11-24T18:31:15.594Z",
2401
- updatedAtDateTime: "2025-11-24T18:31:15.594Z",
2402
- __v: 0,
2403
- lineId: "c01b8a83-4938-4f98-812d-37c35223524e"
2404
- }
2405
- ]
2406
- },
2407
- {
2408
- id: "8c28ff3b-8ac9-4437-a7da-7d4d0dd7b7d9",
2409
- line: 95,
2410
- collumns: [
2411
- {
2412
- _id: "6925ca5903be44d8006cd1df",
2413
- form: "689e029db13c27189bce136d",
2414
- sequence: 116,
2415
- code: "GRAFICO_COMPRIMENTO_POR_IDADE_FEMININO_0_13_SEMANAS",
2416
- description: "Comprimento por idade - Feminino - 0 a 13 semanas",
2417
- line: 95,
2418
- column: 1,
2419
- type: "GRAPHIC",
2420
- category: "ANTHROPOMETRY",
2421
- formulaToEnable: "Number('${PATIENT_AGE_IN_WEEKS}') < 13 && '${PATIENT_GENRE}' === 'FEMALE'",
2422
- active: true,
2423
- show: true,
2424
- readOnly: false,
2425
- required: false,
2426
- screenPlacement: 3,
2427
- ellegibleForComparison: false,
2428
- graphicData: {
2429
- datasets: [
2430
- {
2431
- label: "-3",
2432
- data: [
2433
- {
2434
- Idade: 0,
2435
- "Comprimento/Estatura": 43.6
2436
- },
2437
- {
2438
- Idade: 1,
2439
- "Comprimento/Estatura": 44.7
2440
- },
2441
- {
2442
- Idade: 2,
2443
- "Comprimento/Estatura": 45.8
2444
- },
2445
- {
2446
- Idade: 3,
2447
- "Comprimento/Estatura": 46.7
2448
- },
2449
- {
2450
- Idade: 4,
2451
- "Comprimento/Estatura": 47.5
2452
- },
2453
- {
2454
- Idade: 5,
2455
- "Comprimento/Estatura": 48.3
2456
- },
2457
- {
2458
- Idade: 6,
2459
- "Comprimento/Estatura": 49.1
2460
- },
2461
- {
2462
- Idade: 7,
2463
- "Comprimento/Estatura": 49.8
2464
- },
2465
- {
2466
- Idade: 8,
2467
- "Comprimento/Estatura": 50.5
2468
- },
2469
- {
2470
- Idade: 9,
2471
- "Comprimento/Estatura": 51.2
2472
- },
2473
- {
2474
- Idade: 10,
2475
- "Comprimento/Estatura": 51.8
2476
- },
2477
- {
2478
- Idade: 11,
2479
- "Comprimento/Estatura": 52.4
2480
- },
2481
- {
2482
- Idade: 12,
2483
- "Comprimento/Estatura": 52.9
2484
- },
2485
- {
2486
- Idade: 13,
2487
- "Comprimento/Estatura": 53.5
2488
- }
2489
- ],
2490
- pointStyle: "circle",
2491
- pointRadius: 0,
2492
- pointHoverRadius: 5,
2493
- pointBorderColor: "#d0d5ec",
2494
- pointBackgroundColor: "rgba(0,0,0,0.5)",
2495
- borderWidth: 2,
2496
- borderColor: "rgba(0,0,0,0.5)",
2497
- backgroundColor: "rgba(0,0,0,0.5)"
2498
- },
2499
- {
2500
- label: "-2",
2501
- data: [
2502
- {
2503
- Idade: 0,
2504
- "Comprimento/Estatura": 45.4
2505
- },
2506
- {
2507
- Idade: 1,
2508
- "Comprimento/Estatura": 46.6
2509
- },
2510
- {
2511
- Idade: 2,
2512
- "Comprimento/Estatura": 47.7
2513
- },
2514
- {
2515
- Idade: 3,
2516
- "Comprimento/Estatura": 48.6
2517
- },
2518
- {
2519
- Idade: 4,
2520
- "Comprimento/Estatura": 49.5
2521
- },
2522
- {
2523
- Idade: 5,
2524
- "Comprimento/Estatura": 50.3
2525
- },
2526
- {
2527
- Idade: 6,
2528
- "Comprimento/Estatura": 51.1
2529
- },
2530
- {
2531
- Idade: 7,
2532
- "Comprimento/Estatura": 51.8
2533
- },
2534
- {
2535
- Idade: 8,
2536
- "Comprimento/Estatura": 52.5
2537
- },
2538
- {
2539
- Idade: 9,
2540
- "Comprimento/Estatura": 53.2
2541
- },
2542
- {
2543
- Idade: 10,
2544
- "Comprimento/Estatura": 53.8
2545
- },
2546
- {
2547
- Idade: 11,
2548
- "Comprimento/Estatura": 54.4
2549
- },
2550
- {
2551
- Idade: 12,
2552
- "Comprimento/Estatura": 55
2553
- },
2554
- {
2555
- Idade: 13,
2556
- "Comprimento/Estatura": 55.6
2557
- }
2558
- ],
2559
- pointStyle: "circle",
2560
- pointRadius: 0,
2561
- pointHoverRadius: 5,
2562
- pointBorderColor: "#d0d5ec",
2563
- pointBackgroundColor: "rgba(255, 0, 0,0.5)",
2564
- borderColor: "rgba(255, 0, 0,0.5)",
2565
- borderWidth: 2,
2566
- backgroundColor: "rgba(255, 0, 0,0.5)"
2567
- },
2568
- {
2569
- label: "-1",
2570
- data: [
2571
- {
2572
- Idade: 0,
2573
- "Comprimento/Estatura": 47.3
2574
- },
2575
- {
2576
- Idade: 1,
2577
- "Comprimento/Estatura": 48.4
2578
- },
2579
- {
2580
- Idade: 2,
2581
- "Comprimento/Estatura": 49.6
2582
- },
2583
- {
2584
- Idade: 3,
2585
- "Comprimento/Estatura": 50.5
2586
- },
2587
- {
2588
- Idade: 4,
2589
- "Comprimento/Estatura": 51.4
2590
- },
2591
- {
2592
- Idade: 5,
2593
- "Comprimento/Estatura": 52.3
2594
- },
2595
- {
2596
- Idade: 6,
2597
- "Comprimento/Estatura": 53.1
2598
- },
2599
- {
2600
- Idade: 7,
2601
- "Comprimento/Estatura": 53.8
2602
- },
2603
- {
2604
- Idade: 8,
2605
- "Comprimento/Estatura": 54.6
2606
- },
2607
- {
2608
- Idade: 9,
2609
- "Comprimento/Estatura": 55.2
2610
- },
2611
- {
2612
- Idade: 10,
2613
- "Comprimento/Estatura": 55.9
2614
- },
2615
- {
2616
- Idade: 11,
2617
- "Comprimento/Estatura": 56.5
2618
- },
2619
- {
2620
- Idade: 12,
2621
- "Comprimento/Estatura": 57.1
2622
- },
2623
- {
2624
- Idade: 13,
2625
- "Comprimento/Estatura": 57.7
2626
- }
2627
- ],
2628
- pointStyle: "circle",
2629
- pointRadius: 0,
2630
- pointHoverRadius: 5,
2631
- pointBorderColor: "#d0d5ec",
2632
- pointBackgroundColor: "rgba(255, 165, 0,0.5)",
2633
- borderColor: "rgba(255, 165, 0,0.5)",
2634
- borderWidth: 2,
2635
- backgroundColor: "rgba(255, 165, 0,0.5)"
2636
- },
2637
- {
2638
- label: "0",
2639
- data: [
2640
- {
2641
- Idade: 0,
2642
- "Comprimento/Estatura": 49.1
2643
- },
2644
- {
2645
- Idade: 1,
2646
- "Comprimento/Estatura": 50.3
2647
- },
2648
- {
2649
- Idade: 2,
2650
- "Comprimento/Estatura": 51.5
2651
- },
2652
- {
2653
- Idade: 3,
2654
- "Comprimento/Estatura": 52.5
2655
- },
2656
- {
2657
- Idade: 4,
2658
- "Comprimento/Estatura": 53.4
2659
- },
2660
- {
2661
- Idade: 5,
2662
- "Comprimento/Estatura": 54.2
2663
- },
2664
- {
2665
- Idade: 6,
2666
- "Comprimento/Estatura": 55.1
2667
- },
2668
- {
2669
- Idade: 7,
2670
- "Comprimento/Estatura": 55.8
2671
- },
2672
- {
2673
- Idade: 8,
2674
- "Comprimento/Estatura": 56.6
2675
- },
2676
- {
2677
- Idade: 9,
2678
- "Comprimento/Estatura": 57.3
2679
- },
2680
- {
2681
- Idade: 10,
2682
- "Comprimento/Estatura": 57.9
2683
- },
2684
- {
2685
- Idade: 11,
2686
- "Comprimento/Estatura": 58.6
2687
- },
2688
- {
2689
- Idade: 12,
2690
- "Comprimento/Estatura": 59.2
2691
- },
2692
- {
2693
- Idade: 13,
2694
- "Comprimento/Estatura": 59.8
2695
- }
2696
- ],
2697
- pointStyle: "circle",
2698
- pointRadius: 0,
2699
- pointHoverRadius: 5,
2700
- pointBorderColor: "#d0d5ec",
2701
- pointBackgroundColor: "rgba(60, 179, 113,0.5)",
2702
- borderWidth: 2,
2703
- borderColor: "rgba(60, 179, 113,0.5)",
2704
- backgroundColor: "rgba(60, 179, 113,0.5)"
2705
- },
2706
- {
2707
- label: "1",
2708
- data: [
2709
- {
2710
- Idade: 0,
2711
- "Comprimento/Estatura": 51
2712
- },
2713
- {
2714
- Idade: 1,
2715
- "Comprimento/Estatura": 52.2
2716
- },
2717
- {
2718
- Idade: 2,
2719
- "Comprimento/Estatura": 53.4
2720
- },
2721
- {
2722
- Idade: 3,
2723
- "Comprimento/Estatura": 54.4
2724
- },
2725
- {
2726
- Idade: 4,
2727
- "Comprimento/Estatura": 55.3
2728
- },
2729
- {
2730
- Idade: 5,
2731
- "Comprimento/Estatura": 56.2
2732
- },
2733
- {
2734
- Idade: 6,
2735
- "Comprimento/Estatura": 57.1
2736
- },
2737
- {
2738
- Idade: 7,
2739
- "Comprimento/Estatura": 57.8
2740
- },
2741
- {
2742
- Idade: 8,
2743
- "Comprimento/Estatura": 58.6
2744
- },
2745
- {
2746
- Idade: 9,
2747
- "Comprimento/Estatura": 59.3
2748
- },
2749
- {
2750
- Idade: 10,
2751
- "Comprimento/Estatura": 60
2752
- },
2753
- {
2754
- Idade: 11,
2755
- "Comprimento/Estatura": 60.7
2756
- },
2757
- {
2758
- Idade: 12,
2759
- "Comprimento/Estatura": 61.3
2760
- },
2761
- {
2762
- Idade: 13,
2763
- "Comprimento/Estatura": 61.9
2764
- }
2765
- ],
2766
- pointStyle: "circle",
2767
- pointRadius: 0,
2768
- pointHoverRadius: 5,
2769
- pointBorderColor: "#d0d5ec",
2770
- pointBackgroundColor: "rgba(255, 165, 0,0.5)",
2771
- borderWidth: 2,
2772
- borderColor: "rgba(255, 165, 0,0.5)",
2773
- backgroundColor: "rgba(255, 165, 0,0.5)"
2774
- },
2775
- {
2776
- label: "2",
2777
- data: [
2778
- {
2779
- Idade: 0,
2780
- "Comprimento/Estatura": 52.9
2781
- },
2782
- {
2783
- Idade: 1,
2784
- "Comprimento/Estatura": 54.1
2785
- },
2786
- {
2787
- Idade: 2,
2788
- "Comprimento/Estatura": 55.3
2789
- },
2790
- {
2791
- Idade: 3,
2792
- "Comprimento/Estatura": 56.3
2793
- },
2794
- {
2795
- Idade: 4,
2796
- "Comprimento/Estatura": 57.3
2797
- },
2798
- {
2799
- Idade: 5,
2800
- "Comprimento/Estatura": 58.2
2801
- },
2802
- {
2803
- Idade: 6,
2804
- "Comprimento/Estatura": 59
2805
- },
2806
- {
2807
- Idade: 7,
2808
- "Comprimento/Estatura": 59.9
2809
- },
2810
- {
2811
- Idade: 8,
2812
- "Comprimento/Estatura": 60.6
2813
- },
2814
- {
2815
- Idade: 9,
2816
- "Comprimento/Estatura": 61.4
2817
- },
2818
- {
2819
- Idade: 10,
2820
- "Comprimento/Estatura": 62.1
2821
- },
2822
- {
2823
- Idade: 11,
2824
- "Comprimento/Estatura": 62.7
2825
- },
2826
- {
2827
- Idade: 12,
2828
- "Comprimento/Estatura": 63.4
2829
- },
2830
- {
2831
- Idade: 13,
2832
- "Comprimento/Estatura": 64
2833
- }
2834
- ],
2835
- pointStyle: "circle",
2836
- pointRadius: 0,
2837
- pointHoverRadius: 5,
2838
- pointBorderColor: "#d0d5ec",
2839
- pointBackgroundColor: "rgba(255, 0, 0,0.5)",
2840
- borderWidth: 2,
2841
- borderColor: "rgba(255, 0, 0,0.5)",
2842
- backgroundColor: "rgba(255, 0, 0,0.5)"
2843
- },
2844
- {
2845
- label: "3",
2846
- data: [
2847
- {
2848
- Idade: 0,
2849
- "Comprimento/Estatura": 54.7
2850
- },
2851
- {
2852
- Idade: 1,
2853
- "Comprimento/Estatura": 56
2854
- },
2855
- {
2856
- Idade: 2,
2857
- "Comprimento/Estatura": 57.2
2858
- },
2859
- {
2860
- Idade: 3,
2861
- "Comprimento/Estatura": 58.2
2862
- },
2863
- {
2864
- Idade: 4,
2865
- "Comprimento/Estatura": 59.2
2866
- },
2867
- {
2868
- Idade: 5,
2869
- "Comprimento/Estatura": 60.1
2870
- },
2871
- {
2872
- Idade: 6,
2873
- "Comprimento/Estatura": 61
2874
- },
2875
- {
2876
- Idade: 7,
2877
- "Comprimento/Estatura": 61.9
2878
- },
2879
- {
2880
- Idade: 8,
2881
- "Comprimento/Estatura": 62.6
2882
- },
2883
- {
2884
- Idade: 9,
2885
- "Comprimento/Estatura": 63.4
2886
- },
2887
- {
2888
- Idade: 10,
2889
- "Comprimento/Estatura": 64.1
2890
- },
2891
- {
2892
- Idade: 11,
2893
- "Comprimento/Estatura": 64.8
2894
- },
2895
- {
2896
- Idade: 12,
2897
- "Comprimento/Estatura": 65.5
2898
- },
2899
- {
2900
- Idade: 13,
2901
- "Comprimento/Estatura": 66.1
2902
- }
2903
- ],
2904
- pointStyle: "circle",
2905
- pointRadius: 0,
2906
- pointHoverRadius: 5,
2907
- pointBorderColor: "#d0d5ec",
2908
- pointBackgroundColor: "rgba(0,0,0,0.5)",
2909
- borderWidth: 2,
2910
- borderColor: "rgba(0,0,0,0.5)",
2911
- backgroundColor: "rgba(0,0,0,0.5)"
2912
- }
2913
- ],
2914
- config: {
2915
- type: "line",
2916
- animation: false,
2917
- parsing: {
2918
- xAxisKey: "Idade",
2919
- yAxisKey: "Comprimento/Estatura"
2920
- },
2921
- hover: {
2922
- mode: "x",
2923
- intersect: false
2924
- },
2925
- plugins: {
2926
- customBackground: {
2927
- color: "#FFC0CB",
2928
- labelColor: "#FFF"
2929
- },
2930
- extraGridLines: {
2931
- x: {
2932
- subdivisions: 1
2933
- },
2934
- y: {
2935
- subdivisions: 4
2936
- },
2937
- lineWidth: 0.5,
2938
- strokeStyle: "rgba(0, 0, 0, 0.1)"
2939
- },
2940
- title: {
2941
- display: true,
2942
- text: "Score Z"
2943
- },
2944
- tooltip: {
2945
- mode: "x",
2946
- intersect: false,
2947
- itemSort: "function (a, b) { return b.raw['Comprimento/Estatura'] - a.raw['Comprimento/Estatura']; }",
2948
- bodySpacing: 5,
2949
- caretPadding: 5,
2950
- callbacks: {
2951
- title: "function (tooltipItems) { return `Idade ${tooltipItems[0].label} semanas` }",
2952
- label: "function (context) { const label = context.dataset.label; let lblValue = context.raw['Comprimento/Estatura']; return `${label}: ${lblValue}`; }",
2953
- labelColor: "function (context) { const datasetBackgroundColor = context.dataset.backgroundColor; return { backgroundColor: datasetBackgroundColor, borderColor: datasetBackgroundColor }; }"
2954
- }
2955
- },
2956
- legend: {
2957
- display: false
2958
- },
2959
- datalabels: {
2960
- align: "center",
2961
- anchor: "center",
2962
- formatter: "function (value, context) { if (context.dataset.label === 'Você') { return null }; const dataIndex = context.dataIndex; const dataset = context.dataset; if (dataIndex === dataset.data.length - 1) { return context.dataset.label; } return null; }",
2963
- font: {
2964
- size: 8,
2965
- weight: "bold"
2966
- },
2967
- color: "rgba(0, 0, 0, 0.7)",
2968
- backgroundColor: "white",
2969
- borderColor: "function (context) { if (!context?.dataset?.borderColor) return '#000'; return context?.dataset?.borderColor; }",
2970
- borderWidth: 2,
2971
- borderRadius: 50,
2972
- padding: 6
2973
- }
2974
- },
2975
- scales: {
2976
- x: {
2977
- ticks: {
2978
- stepSize: 1
2979
- },
2980
- display: true,
2981
- title: {
2982
- text: "Idade",
2983
- display: false
2984
- },
2985
- type: "linear",
2986
- min: 0,
2987
- max: 13
2988
- },
2989
- x1: {
2990
- position: "top",
2991
- display: true
2992
- },
2993
- x2: {
2994
- title: {
2995
- text: "Meses",
2996
- display: true
2997
- },
2998
- type: "linear",
2999
- min: 0,
3000
- max: 3,
3001
- ticks: {
3002
- stepSize: 1
3003
- },
3004
- position: "bottom",
3005
- display: true,
3006
- grid: {
3007
- color: "rgba(0, 0, 0, 0.2)",
3008
- tickColor: "rgba(0, 0, 0, 0.2)",
3009
- lineWidth: 3
3010
- }
3011
- },
3012
- y: {
3013
- ticks: {
3014
- stepSize: 5
3015
- },
3016
- display: true,
3017
- position: "left",
3018
- title: {
3019
- text: "Comprimento/Estatura",
3020
- display: true
3021
- }
3022
- },
3023
- y1: {
3024
- display: true,
3025
- position: "right",
3026
- afterBuildTicks: "function (axis) { axis.ticks = [...axis.chart.scales.y.ticks]; axis.min = axis.chart.scales.y.min; axis.max = axis.chart.scales.y.max; }"
3027
- }
3028
- }
3029
- }
3030
- },
3031
- requestGraphicData: [
3032
- {
3033
- method: "patch",
3034
- url: "/patient/${PATIENT_ID}/get-chart-data/ATTENDANCE_DATA?limit=40&orderBy=label&orderSense=asc",
3035
- body: {
3036
- labels: ["attendance.initAtDateTime"],
3037
- datas: ["67a3a49a68c30e499c875af5", "67a5f9480645e74dab05bc26"]
3038
- },
3039
- dataset: {
3040
- label: "Você",
3041
- data: [],
3042
- borderDash: [5, 3],
3043
- borderWidth: 1,
3044
- borderColor: "black",
3045
- spanGaps: true,
3046
- pointStyle: "circle",
3047
- pointRadius: 2,
3048
- pointHoverRadius: 7,
3049
- pointBorderColor: "red",
3050
- pointBackgroundColor: "red",
3051
- backgroundColor: "red",
3052
- order: 1
3053
- }
3054
- }
3055
- ],
3056
- options: [],
3057
- validations: [],
3058
- tips: [],
3059
- createdAtDateTime: "2025-11-25T15:25:13.441Z",
3060
- updatedAtDateTime: "2025-11-25T15:25:13.441Z",
3061
- __v: 0,
3062
- lineId: "8c28ff3b-8ac9-4437-a7da-7d4d0dd7b7d9"
3063
- }
3064
- ]
3065
- },
3066
- {
3067
- id: "f6cd6d9c-e556-4f20-9149-cd51f34cbe95",
3068
- line: 103,
3069
- collumns: [
3070
- {
3071
- _id: "6925eacc03be44d8006cd21f",
3072
- form: "689e029db13c27189bce136d",
3073
- sequence: 124,
3074
- code: "GRAFICO_IMC_POR_IDADE_FEMININO_0_13_SEMANAS",
3075
- description: "IMC por idade - Feminino - 0 a 13 semanas",
3076
- line: 103,
3077
- column: 1,
3078
- type: "GRAPHIC",
3079
- category: "ANTHROPOMETRY",
3080
- formulaToEnable: "Number('${PATIENT_AGE_IN_WEEKS}') < 13 && '${PATIENT_GENRE}' === 'FEMALE'",
3081
- active: true,
3082
- show: true,
3083
- readOnly: false,
3084
- required: false,
3085
- screenPlacement: 3,
3086
- ellegibleForComparison: false,
3087
- graphicData: {
3088
- datasets: [
3089
- {
3090
- label: "-3",
3091
- data: [
3092
- {
3093
- Idade: 0,
3094
- IMC: 10.1
3095
- },
3096
- {
3097
- Idade: 1,
3098
- IMC: 9.5
3099
- },
3100
- {
3101
- Idade: 2,
3102
- IMC: 9.8
3103
- },
3104
- {
3105
- Idade: 3,
3106
- IMC: 10.2
3107
- },
3108
- {
3109
- Idade: 4,
3110
- IMC: 10.6
3111
- },
3112
- {
3113
- Idade: 5,
3114
- IMC: 11
3115
- },
3116
- {
3117
- Idade: 6,
3118
- IMC: 11.3
3119
- },
3120
- {
3121
- Idade: 7,
3122
- IMC: 11.5
3123
- },
3124
- {
3125
- Idade: 8,
3126
- IMC: 11.7
3127
- },
3128
- {
3129
- Idade: 9,
3130
- IMC: 11.9
3131
- },
3132
- {
3133
- Idade: 10,
3134
- IMC: 12
3135
- },
3136
- {
3137
- Idade: 11,
3138
- IMC: 12.1
3139
- },
3140
- {
3141
- Idade: 12,
3142
- IMC: 12.3
3143
- },
3144
- {
3145
- Idade: 13,
3146
- IMC: 12.4
3147
- }
3148
- ],
3149
- pointStyle: "circle",
3150
- pointRadius: 0,
3151
- pointHoverRadius: 5,
3152
- pointBorderColor: "#d0d5ec",
3153
- pointBackgroundColor: "rgba(0,0,0,0.5)",
3154
- borderWidth: 2,
3155
- borderColor: "rgba(0,0,0,0.5)",
3156
- backgroundColor: "rgba(0,0,0,0.5)"
3157
- },
3158
- {
3159
- label: "-2",
3160
- data: [
3161
- {
3162
- Idade: 0,
3163
- IMC: 11.1
3164
- },
3165
- {
3166
- Idade: 1,
3167
- IMC: 10.7
3168
- },
3169
- {
3170
- Idade: 2,
3171
- IMC: 11
3172
- },
3173
- {
3174
- Idade: 3,
3175
- IMC: 11.4
3176
- },
3177
- {
3178
- Idade: 4,
3179
- IMC: 11.8
3180
- },
3181
- {
3182
- Idade: 5,
3183
- IMC: 12.2
3184
- },
3185
- {
3186
- Idade: 6,
3187
- IMC: 12.5
3188
- },
3189
- {
3190
- Idade: 7,
3191
- IMC: 12.7
3192
- },
3193
- {
3194
- Idade: 8,
3195
- IMC: 12.9
3196
- },
3197
- {
3198
- Idade: 9,
3199
- IMC: 13.1
3200
- },
3201
- {
3202
- Idade: 10,
3203
- IMC: 13.2
3204
- },
3205
- {
3206
- Idade: 11,
3207
- IMC: 13.4
3208
- },
3209
- {
3210
- Idade: 12,
3211
- IMC: 13.5
3212
- },
3213
- {
3214
- Idade: 13,
3215
- IMC: 13.6
3216
- }
3217
- ],
3218
- pointStyle: "circle",
3219
- pointRadius: 0,
3220
- pointHoverRadius: 5,
3221
- pointBorderColor: "#d0d5ec",
3222
- pointBackgroundColor: "rgba(255, 0, 0,0.5)",
3223
- borderColor: "rgba(255, 0, 0,0.5)",
3224
- borderWidth: 2,
3225
- backgroundColor: "rgba(255, 0, 0,0.5)"
3226
- },
3227
- {
3228
- label: "-1",
3229
- data: [
3230
- {
3231
- Idade: 0,
3232
- IMC: 12.2
3233
- },
3234
- {
3235
- Idade: 1,
3236
- IMC: 11.9
3237
- },
3238
- {
3239
- Idade: 2,
3240
- IMC: 12.2
3241
- },
3242
- {
3243
- Idade: 3,
3244
- IMC: 12.6
3245
- },
3246
- {
3247
- Idade: 4,
3248
- IMC: 13.1
3249
- },
3250
- {
3251
- Idade: 5,
3252
- IMC: 13.5
3253
- },
3254
- {
3255
- Idade: 6,
3256
- IMC: 13.8
3257
- },
3258
- {
3259
- Idade: 7,
3260
- IMC: 14
3261
- },
3262
- {
3263
- Idade: 8,
3264
- IMC: 14.2
3265
- },
3266
- {
3267
- Idade: 9,
3268
- IMC: 14.4
3269
- },
3270
- {
3271
- Idade: 10,
3272
- IMC: 14.6
3273
- },
3274
- {
3275
- Idade: 11,
3276
- IMC: 14.7
3277
- },
3278
- {
3279
- Idade: 12,
3280
- IMC: 14.8
3281
- },
3282
- {
3283
- Idade: 13,
3284
- IMC: 14.9
3285
- }
3286
- ],
3287
- pointStyle: "circle",
3288
- pointRadius: 0,
3289
- pointHoverRadius: 5,
3290
- pointBorderColor: "#d0d5ec",
3291
- pointBackgroundColor: "rgba(255, 165, 0,0.5)",
3292
- borderColor: "rgba(255, 165, 0,0.5)",
3293
- borderWidth: 2,
3294
- backgroundColor: "rgba(255, 165, 0,0.5)"
3295
- },
3296
- {
3297
- label: "0",
3298
- data: [
3299
- {
3300
- Idade: 0,
3301
- IMC: 13.3
3302
- },
3303
- {
3304
- Idade: 1,
3305
- IMC: 13.2
3306
- },
3307
- {
3308
- Idade: 2,
3309
- IMC: 13.5
3310
- },
3311
- {
3312
- Idade: 3,
3313
- IMC: 14
3314
- },
3315
- {
3316
- Idade: 4,
3317
- IMC: 14.4
3318
- },
3319
- {
3320
- Idade: 5,
3321
- IMC: 14.8
3322
- },
3323
- {
3324
- Idade: 6,
3325
- IMC: 15.1
3326
- },
3327
- {
3328
- Idade: 7,
3329
- IMC: 15.4
3330
- },
3331
- {
3332
- Idade: 8,
3333
- IMC: 15.6
3334
- },
3335
- {
3336
- Idade: 9,
3337
- IMC: 15.8
3338
- },
3339
- {
3340
- Idade: 10,
3341
- IMC: 16
3342
- },
3343
- {
3344
- Idade: 11,
3345
- IMC: 16.1
3346
- },
3347
- {
3348
- Idade: 12,
3349
- IMC: 16.2
3350
- },
3351
- {
3352
- Idade: 13,
3353
- IMC: 16.4
3354
- }
3355
- ],
3356
- pointStyle: "circle",
3357
- pointRadius: 0,
3358
- pointHoverRadius: 5,
3359
- pointBorderColor: "#d0d5ec",
3360
- pointBackgroundColor: "rgba(60, 179, 113,0.5)",
3361
- borderWidth: 2,
3362
- borderColor: "rgba(60, 179, 113,0.5)",
3363
- backgroundColor: "rgba(60, 179, 113,0.5)"
3364
- },
3365
- {
3366
- label: "1",
3367
- data: [
3368
- {
3369
- Idade: 0,
3370
- IMC: 14.6
3371
- },
3372
- {
3373
- Idade: 1,
3374
- IMC: 14.5
3375
- },
3376
- {
3377
- Idade: 2,
3378
- IMC: 14.8
3379
- },
3380
- {
3381
- Idade: 3,
3382
- IMC: 15.3
3383
- },
3384
- {
3385
- Idade: 4,
3386
- IMC: 15.8
3387
- },
3388
- {
3389
- Idade: 5,
3390
- IMC: 16.3
3391
- },
3392
- {
3393
- Idade: 6,
3394
- IMC: 16.6
3395
- },
3396
- {
3397
- Idade: 7,
3398
- IMC: 16.9
3399
- },
3400
- {
3401
- Idade: 8,
3402
- IMC: 17.2
3403
- },
3404
- {
3405
- Idade: 9,
3406
- IMC: 17.4
3407
- },
3408
- {
3409
- Idade: 10,
3410
- IMC: 17.5
3411
- },
3412
- {
3413
- Idade: 11,
3414
- IMC: 17.7
3415
- },
3416
- {
3417
- Idade: 12,
3418
- IMC: 17.8
3419
- },
3420
- {
3421
- Idade: 13,
3422
- IMC: 17.9
3423
- }
3424
- ],
3425
- pointStyle: "circle",
3426
- pointRadius: 0,
3427
- pointHoverRadius: 5,
3428
- pointBorderColor: "#d0d5ec",
3429
- pointBackgroundColor: "rgba(255, 165, 0,0.5)",
3430
- borderWidth: 2,
3431
- borderColor: "rgba(255, 165, 0,0.5)",
3432
- backgroundColor: "rgba(255, 165, 0,0.5)"
3433
- },
3434
- {
3435
- label: "2",
3436
- data: [
3437
- {
3438
- Idade: 0,
3439
- IMC: 16.1
3440
- },
3441
- {
3442
- Idade: 1,
3443
- IMC: 15.9
3444
- },
3445
- {
3446
- Idade: 2,
3447
- IMC: 16.2
3448
- },
3449
- {
3450
- Idade: 3,
3451
- IMC: 16.8
3452
- },
3453
- {
3454
- Idade: 4,
3455
- IMC: 17.4
3456
- },
3457
- {
3458
- Idade: 5,
3459
- IMC: 17.8
3460
- },
3461
- {
3462
- Idade: 6,
3463
- IMC: 18.2
3464
- },
3465
- {
3466
- Idade: 7,
3467
- IMC: 18.5
3468
- },
3469
- {
3470
- Idade: 8,
3471
- IMC: 18.8
3472
- },
3473
- {
3474
- Idade: 9,
3475
- IMC: 19
3476
- },
3477
- {
3478
- Idade: 10,
3479
- IMC: 19.2
3480
- },
3481
- {
3482
- Idade: 11,
3483
- IMC: 19.4
3484
- },
3485
- {
3486
- Idade: 12,
3487
- IMC: 19.5
3488
- },
3489
- {
3490
- Idade: 13,
3491
- IMC: 19.7
3492
- }
3493
- ],
3494
- pointStyle: "circle",
3495
- pointRadius: 0,
3496
- pointHoverRadius: 5,
3497
- pointBorderColor: "#d0d5ec",
3498
- pointBackgroundColor: "rgba(255, 0, 0,0.5)",
3499
- borderWidth: 2,
3500
- borderColor: "rgba(255, 0, 0,0.5)",
3501
- backgroundColor: "rgba(255, 0, 0,0.5)"
3502
- },
3503
- {
3504
- label: "3",
3505
- data: [
3506
- {
3507
- Idade: 0,
3508
- IMC: 17.7
3509
- },
3510
- {
3511
- Idade: 1,
3512
- IMC: 17.3
3513
- },
3514
- {
3515
- Idade: 2,
3516
- IMC: 17.7
3517
- },
3518
- {
3519
- Idade: 3,
3520
- IMC: 18.3
3521
- },
3522
- {
3523
- Idade: 4,
3524
- IMC: 19
3525
- },
3526
- {
3527
- Idade: 5,
3528
- IMC: 19.5
3529
- },
3530
- {
3531
- Idade: 6,
3532
- IMC: 19.9
3533
- },
3534
- {
3535
- Idade: 7,
3536
- IMC: 20.3
3537
- },
3538
- {
3539
- Idade: 8,
3540
- IMC: 20.6
3541
- },
3542
- {
3543
- Idade: 9,
3544
- IMC: 20.8
3545
- },
3546
- {
3547
- Idade: 10,
3548
- IMC: 21
3549
- },
3550
- {
3551
- Idade: 11,
3552
- IMC: 21.2
3553
- },
3554
- {
3555
- Idade: 12,
3556
- IMC: 21.4
3557
- },
3558
- {
3559
- Idade: 13,
3560
- IMC: 21.5
3561
- }
3562
- ],
3563
- pointStyle: "circle",
3564
- pointRadius: 0,
3565
- pointHoverRadius: 5,
3566
- pointBorderColor: "#d0d5ec",
3567
- pointBackgroundColor: "rgba(0,0,0,0.5)",
3568
- borderWidth: 2,
3569
- borderColor: "rgba(0,0,0,0.5)",
3570
- backgroundColor: "rgba(0,0,0,0.5)"
3571
- }
3572
- ],
3573
- config: {
3574
- type: "line",
3575
- animation: false,
3576
- parsing: {
3577
- xAxisKey: "Idade",
3578
- yAxisKey: "IMC"
3579
- },
3580
- hover: {
3581
- mode: "x",
3582
- intersect: false
3583
- },
3584
- plugins: {
3585
- customBackground: {
3586
- color: "#FFC0CB",
3587
- labelColor: "#FFF"
3588
- },
3589
- extraGridLines: {
3590
- x: {
3591
- subdivisions: 1
3592
- },
3593
- y: {
3594
- subdivisions: 1
3595
- },
3596
- lineWidth: 0.5,
3597
- strokeStyle: "rgba(0, 0, 0, 0.1)"
3598
- },
3599
- title: {
3600
- display: true,
3601
- text: "Score Z"
3602
- },
3603
- tooltip: {
3604
- mode: "x",
3605
- intersect: false,
3606
- itemSort: "function (a, b) { return b.raw['IMC'] - a.raw['IMC']; }",
3607
- bodySpacing: 5,
3608
- caretPadding: 5,
3609
- callbacks: {
3610
- title: "function (tooltipItems) { return `Idade ${tooltipItems[0].label} semanas` }",
3611
- label: "function (context) { const label = context.dataset.label; let lblValue = context.raw['IMC']; return `${label}: ${lblValue}`; }",
3612
- labelColor: "function (context) { const datasetBackgroundColor = context.dataset.backgroundColor; return { backgroundColor: datasetBackgroundColor, borderColor: datasetBackgroundColor }; }"
3613
- }
3614
- },
3615
- legend: {
3616
- display: false
3617
- },
3618
- datalabels: {
3619
- align: "center",
3620
- anchor: "center",
3621
- formatter: "function (value, context) { if (context.dataset.label === 'Você') { return null }; const dataIndex = context.dataIndex; const dataset = context.dataset; if (dataIndex === dataset.data.length - 1) { return context.dataset.label; } return null; }",
3622
- font: {
3623
- size: 8,
3624
- weight: "bold"
3625
- },
3626
- color: "rgba(0, 0, 0, 0.7)",
3627
- backgroundColor: "white",
3628
- borderColor: "function (context) { if (!context?.dataset?.borderColor) return '#000'; return context?.dataset?.borderColor; }",
3629
- borderWidth: 2,
3630
- borderRadius: 50,
3631
- padding: 6
3632
- }
3633
- },
3634
- scales: {
3635
- x: {
3636
- display: true,
3637
- title: {
3638
- text: "Idade",
3639
- display: false
3640
- },
3641
- type: "linear",
3642
- min: 0,
3643
- max: 13,
3644
- ticks: {
3645
- stepSize: 3
3646
- }
3647
- },
3648
- x1: {
3649
- position: "top",
3650
- display: true
3651
- },
3652
- x2: {
3653
- title: {
3654
- text: "Meses",
3655
- display: true
3656
- },
3657
- type: "linear",
3658
- min: 0,
3659
- max: 3,
3660
- ticks: {
3661
- stepSize: 1
3662
- },
3663
- position: "bottom",
3664
- display: true,
3665
- grid: {
3666
- color: "rgba(0, 0, 0, 0.2)",
3667
- tickColor: "rgba(0, 0, 0, 0.2)",
3668
- lineWidth: 3
3669
- }
3670
- },
3671
- y: {
3672
- ticks: {
3673
- stepSize: 1
3674
- },
3675
- display: true,
3676
- position: "left",
3677
- title: {
3678
- text: "IMC",
3679
- display: true
3680
- }
3681
- },
3682
- y1: {
3683
- display: true,
3684
- position: "right",
3685
- afterBuildTicks: "function (axis) { axis.ticks = [...axis.chart.scales.y.ticks]; axis.min = axis.chart.scales.y.min; axis.max = axis.chart.scales.y.max; }"
3686
- }
3687
- }
3688
- }
3689
- },
3690
- requestGraphicData: [
3691
- {
3692
- method: "patch",
3693
- url: "/patient/${PATIENT_ID}/get-chart-data/ATTENDANCE_DATA?limit=40&orderBy=label&orderSense=asc",
3694
- body: {
3695
- labels: ["attendance.initAtDateTime"],
3696
- datas: ["67a3a49a68c30e499c875af5", "666c8f056b6b1a27925c19b8"]
3697
- },
3698
- dataset: {
3699
- label: "Você",
3700
- data: [],
3701
- borderDash: [5, 3],
3702
- borderWidth: 1,
3703
- borderColor: "black",
3704
- spanGaps: true,
3705
- pointStyle: "circle",
3706
- pointRadius: 2,
3707
- pointHoverRadius: 7,
3708
- pointBorderColor: "red",
3709
- pointBackgroundColor: "red",
3710
- backgroundColor: "red",
3711
- order: 1
3712
- }
3713
- }
3714
- ],
3715
- options: [],
3716
- validations: [],
3717
- tips: [],
3718
- createdAtDateTime: "2025-11-25T17:43:40.046Z",
3719
- updatedAtDateTime: "2025-11-25T17:43:40.046Z",
3720
- __v: 0,
3721
- lineId: "f6cd6d9c-e556-4f20-9149-cd51f34cbe95"
3722
- }
3723
- ]
3724
- },
3725
- {
3726
- id: "154111d6-7d92-4e92-9e2b-dc8055f71aad",
3727
- line: 117,
3728
- collumns: [
3729
- {
3730
- _id: "6925fbf803be44d8006cd28f",
3731
- form: "689e029db13c27189bce136d",
3732
- sequence: 138,
3733
- code: "GRAFICO_IMC_POR_IDADE_FEMININO_0_13_SEMANAS",
3734
- description: "Circunf. Cefálica por idade - Feminino - 0 a 13 semanas",
3735
- line: 117,
3736
- column: 1,
3737
- type: "GRAPHIC",
3738
- category: "ANTHROPOMETRY",
3739
- formulaToEnable: "Number('${PATIENT_AGE_IN_WEEKS}') < 13 && '${PATIENT_GENRE}' === 'FEMALE'",
3740
- active: true,
3741
- show: true,
3742
- readOnly: false,
3743
- required: false,
3744
- screenPlacement: 3,
3745
- ellegibleForComparison: false,
3746
- graphicData: {
3747
- datasets: [
3748
- {
3749
- label: "-3",
3750
- data: [
3751
- {
3752
- Idade: 0,
3753
- "Perímetro cefálico": 30.3
3754
- },
3755
- {
3756
- Idade: 1,
3757
- "Perímetro cefálico": 31.1
3758
- },
3759
- {
3760
- Idade: 2,
3761
- "Perímetro cefálico": 31.8
3762
- },
3763
- {
3764
- Idade: 3,
3765
- "Perímetro cefálico": 32.4
3766
- },
3767
- {
3768
- Idade: 4,
3769
- "Perímetro cefálico": 32.9
3770
- },
3771
- {
3772
- Idade: 5,
3773
- "Perímetro cefálico": 33.3
3774
- },
3775
- {
3776
- Idade: 6,
3777
- "Perímetro cefálico": 33.7
3778
- },
3779
- {
3780
- Idade: 7,
3781
- "Perímetro cefálico": 34.1
3782
- },
3783
- {
3784
- Idade: 8,
3785
- "Perímetro cefálico": 34.4
3786
- },
3787
- {
3788
- Idade: 9,
3789
- "Perímetro cefálico": 34.7
3790
- },
3791
- {
3792
- Idade: 10,
3793
- "Perímetro cefálico": 35
3794
- },
3795
- {
3796
- Idade: 11,
3797
- "Perímetro cefálico": 35.3
3798
- },
3799
- {
3800
- Idade: 12,
3801
- "Perímetro cefálico": 35.5
3802
- },
3803
- {
3804
- Idade: 13,
3805
- "Perímetro cefálico": 35.8
3806
- }
3807
- ],
3808
- pointStyle: "circle",
3809
- pointRadius: 0,
3810
- pointHoverRadius: 5,
3811
- pointBorderColor: "#d0d5ec",
3812
- pointBackgroundColor: "rgba(0,0,0,0.5)",
3813
- borderWidth: 2,
3814
- borderColor: "rgba(0,0,0,0.5)",
3815
- backgroundColor: "rgba(0,0,0,0.5)"
3816
- },
3817
- {
3818
- label: "-2",
3819
- data: [
3820
- {
3821
- Idade: 0,
3822
- "Perímetro cefálico": 31.5
3823
- },
3824
- {
3825
- Idade: 1,
3826
- "Perímetro cefálico": 32.2
3827
- },
3828
- {
3829
- Idade: 2,
3830
- "Perímetro cefálico": 32.9
3831
- },
3832
- {
3833
- Idade: 3,
3834
- "Perímetro cefálico": 33.5
3835
- },
3836
- {
3837
- Idade: 4,
3838
- "Perímetro cefálico": 34
3839
- },
3840
- {
3841
- Idade: 5,
3842
- "Perímetro cefálico": 34.5
3843
- },
3844
- {
3845
- Idade: 6,
3846
- "Perímetro cefálico": 34.9
3847
- },
3848
- {
3849
- Idade: 7,
3850
- "Perímetro cefálico": 35.3
3851
- },
3852
- {
3853
- Idade: 8,
3854
- "Perímetro cefálico": 35.6
3855
- },
3856
- {
3857
- Idade: 9,
3858
- "Perímetro cefálico": 35.9
3859
- },
3860
- {
3861
- Idade: 10,
3862
- "Perímetro cefálico": 36.2
3863
- },
3864
- {
3865
- Idade: 11,
3866
- "Perímetro cefálico": 36.5
3867
- },
3868
- {
3869
- Idade: 12,
3870
- "Perímetro cefálico": 36.8
3871
- },
3872
- {
3873
- Idade: 13,
3874
- "Perímetro cefálico": 37
3875
- }
3876
- ],
3877
- pointStyle: "circle",
3878
- pointRadius: 0,
3879
- pointHoverRadius: 5,
3880
- pointBorderColor: "#d0d5ec",
3881
- pointBackgroundColor: "rgba(255, 0, 0,0.5)",
3882
- borderColor: "rgba(255, 0, 0,0.5)",
3883
- borderWidth: 2,
3884
- backgroundColor: "rgba(255, 0, 0,0.5)"
3885
- },
3886
- {
3887
- label: "-1",
3888
- data: [
3889
- {
3890
- Idade: 0,
3891
- "Perímetro cefálico": 32.7
3892
- },
3893
- {
3894
- Idade: 1,
3895
- "Perímetro cefálico": 33.4
3896
- },
3897
- {
3898
- Idade: 2,
3899
- "Perímetro cefálico": 34.1
3900
- },
3901
- {
3902
- Idade: 3,
3903
- "Perímetro cefálico": 34.7
3904
- },
3905
- {
3906
- Idade: 4,
3907
- "Perímetro cefálico": 35.2
3908
- },
3909
- {
3910
- Idade: 5,
3911
- "Perímetro cefálico": 35.7
3912
- },
3913
- {
3914
- Idade: 6,
3915
- "Perímetro cefálico": 36.1
3916
- },
3917
- {
3918
- Idade: 7,
3919
- "Perímetro cefálico": 36.5
3920
- },
3921
- {
3922
- Idade: 8,
3923
- "Perímetro cefálico": 36.8
3924
- },
3925
- {
3926
- Idade: 9,
3927
- "Perímetro cefálico": 37.1
3928
- },
3929
- {
3930
- Idade: 10,
3931
- "Perímetro cefálico": 37.4
3932
- },
3933
- {
3934
- Idade: 11,
3935
- "Perímetro cefálico": 37.7
3936
- },
3937
- {
3938
- Idade: 12,
3939
- "Perímetro cefálico": 38
3940
- },
3941
- {
3942
- Idade: 13,
3943
- "Perímetro cefálico": 38.3
3944
- }
3945
- ],
3946
- pointStyle: "circle",
3947
- pointRadius: 0,
3948
- pointHoverRadius: 5,
3949
- pointBorderColor: "#d0d5ec",
3950
- pointBackgroundColor: "rgba(255, 165, 0,0.5)",
3951
- borderColor: "rgba(255, 165, 0,0.5)",
3952
- borderWidth: 2,
3953
- backgroundColor: "rgba(255, 165, 0,0.5)"
3954
- },
3955
- {
3956
- label: "0",
3957
- data: [
3958
- {
3959
- Idade: 0,
3960
- "Perímetro cefálico": 33.9
3961
- },
3962
- {
3963
- Idade: 1,
3964
- "Perímetro cefálico": 34.6
3965
- },
3966
- {
3967
- Idade: 2,
3968
- "Perímetro cefálico": 35.2
3969
- },
3970
- {
3971
- Idade: 3,
3972
- "Perímetro cefálico": 35.8
3973
- },
3974
- {
3975
- Idade: 4,
3976
- "Perímetro cefálico": 36.4
3977
- },
3978
- {
3979
- Idade: 5,
3980
- "Perímetro cefálico": 36.8
3981
- },
3982
- {
3983
- Idade: 6,
3984
- "Perímetro cefálico": 37.3
3985
- },
3986
- {
3987
- Idade: 7,
3988
- "Perímetro cefálico": 37.7
3989
- },
3990
- {
3991
- Idade: 8,
3992
- "Perímetro cefálico": 38
3993
- },
3994
- {
3995
- Idade: 9,
3996
- "Perímetro cefálico": 38.4
3997
- },
3998
- {
3999
- Idade: 10,
4000
- "Perímetro cefálico": 38.7
4001
- },
4002
- {
4003
- Idade: 11,
4004
- "Perímetro cefálico": 39
4005
- },
4006
- {
4007
- Idade: 12,
4008
- "Perímetro cefálico": 39.3
4009
- },
4010
- {
4011
- Idade: 13,
4012
- "Perímetro cefálico": 39.5
4013
- }
4014
- ],
4015
- pointStyle: "circle",
4016
- pointRadius: 0,
4017
- pointHoverRadius: 5,
4018
- pointBorderColor: "#d0d5ec",
4019
- pointBackgroundColor: "rgba(60, 179, 113,0.5)",
4020
- borderWidth: 2,
4021
- borderColor: "rgba(60, 179, 113,0.5)",
4022
- backgroundColor: "rgba(60, 179, 113,0.5)"
4023
- },
4024
- {
4025
- label: "1",
4026
- data: [
4027
- {
4028
- Idade: 0,
4029
- "Perímetro cefálico": 35.1
4030
- },
4031
- {
4032
- Idade: 1,
4033
- "Perímetro cefálico": 35.7
4034
- },
4035
- {
4036
- Idade: 2,
4037
- "Perímetro cefálico": 36.4
4038
- },
4039
- {
4040
- Idade: 3,
4041
- "Perímetro cefálico": 37
4042
- },
4043
- {
4044
- Idade: 4,
4045
- "Perímetro cefálico": 37.5
4046
- },
4047
- {
4048
- Idade: 5,
4049
- "Perímetro cefálico": 38
4050
- },
4051
- {
4052
- Idade: 6,
4053
- "Perímetro cefálico": 38.5
4054
- },
4055
- {
4056
- Idade: 7,
4057
- "Perímetro cefálico": 38.9
4058
- },
4059
- {
4060
- Idade: 8,
4061
- "Perímetro cefálico": 39.2
4062
- },
4063
- {
4064
- Idade: 9,
4065
- "Perímetro cefálico": 39.6
4066
- },
4067
- {
4068
- Idade: 10,
4069
- "Perímetro cefálico": 39.9
4070
- },
4071
- {
4072
- Idade: 11,
4073
- "Perímetro cefálico": 40.2
4074
- },
4075
- {
4076
- Idade: 12,
4077
- "Perímetro cefálico": 40.5
4078
- },
4079
- {
4080
- Idade: 13,
4081
- "Perímetro cefálico": 40.8
4082
- }
4083
- ],
4084
- pointStyle: "circle",
4085
- pointRadius: 0,
4086
- pointHoverRadius: 5,
4087
- pointBorderColor: "#d0d5ec",
4088
- pointBackgroundColor: "rgba(255, 165, 0,0.5)",
4089
- borderWidth: 2,
4090
- borderColor: "rgba(255, 165, 0,0.5)",
4091
- backgroundColor: "rgba(255, 165, 0,0.5)"
4092
- },
4093
- {
4094
- label: "2",
4095
- data: [
4096
- {
4097
- Idade: 0,
4098
- "Perímetro cefálico": 36.2
4099
- },
4100
- {
4101
- Idade: 1,
4102
- "Perímetro cefálico": 36.9
4103
- },
4104
- {
4105
- Idade: 2,
4106
- "Perímetro cefálico": 37.5
4107
- },
4108
- {
4109
- Idade: 3,
4110
- "Perímetro cefálico": 38.2
4111
- },
4112
- {
4113
- Idade: 4,
4114
- "Perímetro cefálico": 38.7
4115
- },
4116
- {
4117
- Idade: 5,
4118
- "Perímetro cefálico": 39.2
4119
- },
4120
- {
4121
- Idade: 6,
4122
- "Perímetro cefálico": 39.6
4123
- },
4124
- {
4125
- Idade: 7,
4126
- "Perímetro cefálico": 40.1
4127
- },
4128
- {
4129
- Idade: 8,
4130
- "Perímetro cefálico": 40.4
4131
- },
4132
- {
4133
- Idade: 9,
4134
- "Perímetro cefálico": 40.8
4135
- },
4136
- {
4137
- Idade: 10,
4138
- "Perímetro cefálico": 41.1
4139
- },
4140
- {
4141
- Idade: 11,
4142
- "Perímetro cefálico": 41.4
4143
- },
4144
- {
4145
- Idade: 12,
4146
- "Perímetro cefálico": 41.7
4147
- },
4148
- {
4149
- Idade: 13,
4150
- "Perímetro cefálico": 42
4151
- }
4152
- ],
4153
- pointStyle: "circle",
4154
- pointRadius: 0,
4155
- pointHoverRadius: 5,
4156
- pointBorderColor: "#d0d5ec",
4157
- pointBackgroundColor: "rgba(255, 0, 0,0.5)",
4158
- borderWidth: 2,
4159
- borderColor: "rgba(255, 0, 0,0.5)",
4160
- backgroundColor: "rgba(255, 0, 0,0.5)"
4161
- },
4162
- {
4163
- label: "3",
4164
- data: [
4165
- {
4166
- Idade: 0,
4167
- "Perímetro cefálico": 37.4
4168
- },
4169
- {
4170
- Idade: 1,
4171
- "Perímetro cefálico": 38.1
4172
- },
4173
- {
4174
- Idade: 2,
4175
- "Perímetro cefálico": 38.7
4176
- },
4177
- {
4178
- Idade: 3,
4179
- "Perímetro cefálico": 39.3
4180
- },
4181
- {
4182
- Idade: 4,
4183
- "Perímetro cefálico": 39.9
4184
- },
4185
- {
4186
- Idade: 5,
4187
- "Perímetro cefálico": 40.4
4188
- },
4189
- {
4190
- Idade: 6,
4191
- "Perímetro cefálico": 40.8
4192
- },
4193
- {
4194
- Idade: 7,
4195
- "Perímetro cefálico": 41.3
4196
- },
4197
- {
4198
- Idade: 8,
4199
- "Perímetro cefálico": 41.6
4200
- },
4201
- {
4202
- Idade: 9,
4203
- "Perímetro cefálico": 42
4204
- },
4205
- {
4206
- Idade: 10,
4207
- "Perímetro cefálico": 42.3
4208
- },
4209
- {
4210
- Idade: 11,
4211
- "Perímetro cefálico": 42.7
4212
- },
4213
- {
4214
- Idade: 12,
4215
- "Perímetro cefálico": 43
4216
- },
4217
- {
4218
- Idade: 13,
4219
- "Perímetro cefálico": 43.2
4220
- }
4221
- ],
4222
- pointStyle: "circle",
4223
- pointRadius: 0,
4224
- pointHoverRadius: 5,
4225
- pointBorderColor: "#d0d5ec",
4226
- pointBackgroundColor: "rgba(0,0,0,0.5)",
4227
- borderWidth: 2,
4228
- borderColor: "rgba(0,0,0,0.5)",
4229
- backgroundColor: "rgba(0,0,0,0.5)"
4230
- }
4231
- ],
4232
- config: {
4233
- type: "line",
4234
- animation: false,
4235
- parsing: {
4236
- xAxisKey: "Idade",
4237
- yAxisKey: "Perímetro cefálico"
4238
- },
4239
- hover: {
4240
- mode: "x",
4241
- intersect: false
4242
- },
4243
- plugins: {
4244
- customBackground: {
4245
- color: "#FFC0CB",
4246
- labelColor: "#FFF"
4247
- },
4248
- extraGridLines: {
4249
- x: {
4250
- subdivisions: 1
4251
- },
4252
- y: {
4253
- subdivisions: 4
4254
- },
4255
- lineWidth: 0.5,
4256
- strokeStyle: "rgba(0, 0, 0, 0.1)"
4257
- },
4258
- title: {
4259
- display: true,
4260
- text: "Score Z"
4261
- },
4262
- tooltip: {
4263
- mode: "x",
4264
- intersect: false,
4265
- itemSort: "function (a, b) { return b.raw['Perímetro cefálico'] - a.raw['Perímetro cefálico']; }",
4266
- bodySpacing: 5,
4267
- caretPadding: 5,
4268
- callbacks: {
4269
- title: "function (tooltipItems) { return `Idade ${tooltipItems[0].label} semanas` }",
4270
- label: "function (context) { const label = context.dataset.label; let lblValue = context.raw['Perímetro cefálico']; return `${label}: ${lblValue}`; }",
4271
- labelColor: "function (context) { const datasetBackgroundColor = context.dataset.backgroundColor; return { backgroundColor: datasetBackgroundColor, borderColor: datasetBackgroundColor }; }"
4272
- }
4273
- },
4274
- legend: {
4275
- display: false
4276
- },
4277
- datalabels: {
4278
- align: "center",
4279
- anchor: "center",
4280
- formatter: "function (value, context) { if (context.dataset.label === 'Você') { return null }; const dataIndex = context.dataIndex; const dataset = context.dataset; if (dataIndex === dataset.data.length - 1) { return context.dataset.label; } return null; }",
4281
- font: {
4282
- size: 8,
4283
- weight: "bold"
4284
- },
4285
- color: "rgba(0, 0, 0, 0.7)",
4286
- backgroundColor: "white",
4287
- borderColor: "function (context) { if (!context?.dataset?.borderColor) return '#000'; return context?.dataset?.borderColor;}",
4288
- borderWidth: 2,
4289
- borderRadius: 50,
4290
- padding: 6
4291
- }
4292
- },
4293
- scales: {
4294
- x: {
4295
- ticks: {
4296
- stepSize: 1
4297
- },
4298
- display: true,
4299
- title: {
4300
- text: "Semanas",
4301
- display: false
4302
- },
4303
- type: "linear",
4304
- min: 0,
4305
- max: 13
4306
- },
4307
- x1: {
4308
- position: "top",
4309
- display: true
4310
- },
4311
- x2: {
4312
- title: {
4313
- text: "Meses",
4314
- display: true
4315
- },
4316
- type: "linear",
4317
- min: 0,
4318
- max: 3,
4319
- ticks: {
4320
- stepSize: 1
4321
- },
4322
- position: "bottom",
4323
- display: true,
4324
- grid: {
4325
- color: "rgba(0, 0, 0, 0.2)",
4326
- tickColor: "rgba(0, 0, 0, 0.2)",
4327
- lineWidth: 3
4328
- }
4329
- },
4330
- y: {
4331
- ticks: {
4332
- stepSize: 5
4333
- },
4334
- display: true,
4335
- position: "left",
4336
- title: {
4337
- text: "Perímetro cefálico",
4338
- display: true
4339
- }
4340
- },
4341
- y1: {
4342
- display: true,
4343
- position: "right",
4344
- afterBuildTicks: "function (axis) { axis.ticks = [...axis.chart.scales.y.ticks]; axis.min = axis.chart.scales.y.min; axis.max = axis.chart.scales.y.max; }"
4345
- }
4346
- }
4347
- }
4348
- },
4349
- requestGraphicData: [
4350
- {
4351
- method: "patch",
4352
- url: "/patient/${PATIENT_ID}/get-chart-data/ATTENDANCE_DATA?limit=40&orderBy=label&orderSense=asc",
4353
- body: {
4354
- labels: ["attendance.initAtDateTime"],
4355
- datas: ["67a3a49a68c30e499c875af5", "67db13e0ac6cd056d6eed010"]
4356
- },
4357
- dataset: {
4358
- label: "Você",
4359
- data: [],
4360
- borderDash: [5, 3],
4361
- borderWidth: 1,
4362
- borderColor: "black",
4363
- spanGaps: true,
4364
- pointStyle: "circle",
4365
- pointRadius: 2,
4366
- pointHoverRadius: 7,
4367
- pointBorderColor: "red",
4368
- pointBackgroundColor: "red",
4369
- backgroundColor: "red",
4370
- order: 1
4371
- }
4372
- }
4373
- ],
4374
- options: [],
4375
- validations: [],
4376
- tips: [],
4377
- createdAtDateTime: "2025-11-25T18:56:56.334Z",
4378
- updatedAtDateTime: "2025-11-25T18:56:56.334Z",
4379
- __v: 0,
4380
- lineId: "154111d6-7d92-4e92-9e2b-dc8055f71aad"
135
+ measurementUnit: "cm",
136
+ answer: 0
4381
137
  }
4382
138
  ]
4383
139
  }
@@ -4400,7 +156,7 @@ describe("BuildRecurrenceBookingsFlow", () => {
4400
156
  // })
4401
157
  // } as IBooking;
4402
158
  // const sut = BuildRecurrenceBookingsFlow.build(bookingMock);
4403
- Math.floor(244.33);
159
+ // Math.floor(244.33);
4404
160
  const sut = OnAnswerQuestionsFlowTester_1.default.executeByRows(answerExample, lines, []);
4405
161
  console.log("SUT", JSON.stringify(sut, null, 2));
4406
162
  expect(sut.lines).not.toBeNull();