c2-clinical 1.0.143 → 1.0.144

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.
@@ -4,39 +4,151 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const OnAnswerQuestionsFlowTester_1 = __importDefault(require("../../../flow/on-answer/OnAnswerQuestionsFlowTester"));
7
- const answerExample = {
8
- _id: "68ee6b66dbeb63de67643da9",
9
- form: "689e029db13c27189bce136d",
10
- sequence: 74,
11
- code: "DIAMETRO_OSSEO_UMERO",
12
- description: "Diametro bicondilar umeral - Úmero",
13
- parent: "68ee6a2cdbeb63de67643d91",
14
- line: 61,
15
- column: 1,
16
- type: "QUESTION",
17
- typeAnswer: "OPEN_NUMBER",
18
- category: "ANTHROPOMETRY",
19
- measurementUnit: "cm",
20
- formulaToEnable: "true",
21
- active: true,
22
- show: true,
23
- readOnly: false,
24
- required: false,
25
- ellegibleForComparison: false,
26
- options: [],
27
- validations: [],
28
- requestGraphicData: [],
29
- tips: [],
30
- createdAtDateTime: "2025-10-14T15:25:26.642Z",
31
- updatedAtDateTime: "2025-10-14T15:25:26.642Z",
32
- __v: 0,
33
- screenPlacement: 1,
34
- lineId: "39b49515-6fe0-4b9a-aaa2-6c80be77a48e",
35
- answer: "15"
36
- };
7
+ const answerExample = [
8
+ {
9
+ _id: "68a4ad852e90c3294e9934d6",
10
+ form: "689e029db13c27189bce136d",
11
+ sequence: 8,
12
+ code: "ESTIMAR_PESO_FORMULA",
13
+ description: "Fórmula para estimar peso",
14
+ parent: "68a48cb32e90c3294e9934cd",
15
+ line: 6,
16
+ column: 1,
17
+ type: "QUESTION",
18
+ typeAnswer: "CHOICE_SINGLE",
19
+ category: "ANTHROPOMETRY",
20
+ variantView: "LIST",
21
+ options: [
22
+ {
23
+ sequence: 1,
24
+ code: "CHUMLEA",
25
+ description: "Chumlea",
26
+ defaultSelection: true,
27
+ active: true
28
+ }
29
+ ],
30
+ formulaToEnable: "true",
31
+ active: true,
32
+ show: true,
33
+ readOnly: false,
34
+ required: false,
35
+ validations: [],
36
+ requestGraphicData: [],
37
+ createdAtDateTime: "2025-08-19T16:59:49.814Z",
38
+ updatedAtDateTime: "2025-08-19T16:59:49.814Z",
39
+ __v: 0,
40
+ screenPlacement: 1,
41
+ lineId: "93610fc3-2ee9-4937-83a6-7822ca08f4dc",
42
+ answer: "CHUMLEA"
43
+ },
44
+ {
45
+ _id: "68a4aed32e90c3294e9934de",
46
+ form: "689e029db13c27189bce136d",
47
+ sequence: 9,
48
+ code: "ESTIMAR_PESO_CIRCUNFERENCIA_PANTURRILHA",
49
+ description: "Circunferência da panturrilha",
50
+ parent: "68a48cb32e90c3294e9934cd",
51
+ line: 7,
52
+ column: 1,
53
+ type: "QUESTION",
54
+ typeAnswer: "OPEN_NUMBER",
55
+ category: "ANTHROPOMETRY",
56
+ formulaToEnable: "true",
57
+ active: true,
58
+ show: true,
59
+ readOnly: false,
60
+ required: false,
61
+ options: [],
62
+ validations: [],
63
+ requestGraphicData: [],
64
+ createdAtDateTime: "2025-08-19T17:05:23.199Z",
65
+ updatedAtDateTime: "2025-08-19T17:05:23.199Z",
66
+ __v: 0,
67
+ screenPlacement: 1,
68
+ lineId: "9233b146-6287-43f3-b456-20a6ba29b450",
69
+ answer: "20"
70
+ },
71
+ {
72
+ _id: "68a4af692e90c3294e9934e7",
73
+ form: "689e029db13c27189bce136d",
74
+ sequence: 10,
75
+ code: "ESTIMAR_PESO_ALTURA_JOELHO",
76
+ description: "Altura do joelho",
77
+ parent: "68a48cb32e90c3294e9934cd",
78
+ line: 8,
79
+ column: 1,
80
+ type: "QUESTION",
81
+ typeAnswer: "OPEN_NUMBER",
82
+ category: "ANTHROPOMETRY",
83
+ active: true,
84
+ show: true,
85
+ readOnly: false,
86
+ required: false,
87
+ options: [],
88
+ validations: [],
89
+ requestGraphicData: [],
90
+ createdAtDateTime: "2025-08-19T17:07:53.897Z",
91
+ updatedAtDateTime: "2025-08-19T17:07:53.897Z",
92
+ __v: 0,
93
+ screenPlacement: 1,
94
+ lineId: "cbddb88e-78a5-444e-8b64-e7f388df2d32",
95
+ answer: "40"
96
+ },
97
+ {
98
+ _id: "68a4afa02e90c3294e9934ef",
99
+ form: "689e029db13c27189bce136d",
100
+ sequence: 11,
101
+ code: "ESTIMAR_PESO_CIRCUNFERENCIA_BRACO",
102
+ description: "Circunferência do braço",
103
+ parent: "68a48cb32e90c3294e9934cd",
104
+ line: 9,
105
+ column: 1,
106
+ type: "QUESTION",
107
+ typeAnswer: "OPEN_NUMBER",
108
+ category: "ANTHROPOMETRY",
109
+ active: true,
110
+ show: true,
111
+ readOnly: false,
112
+ required: false,
113
+ options: [],
114
+ validations: [],
115
+ requestGraphicData: [],
116
+ createdAtDateTime: "2025-08-19T17:08:48.340Z",
117
+ updatedAtDateTime: "2025-08-19T17:08:48.340Z",
118
+ __v: 0,
119
+ screenPlacement: 1,
120
+ lineId: "1f8140ff-c0c6-4312-b52b-b36473015889",
121
+ answer: "30"
122
+ },
123
+ {
124
+ _id: "68a4afe12e90c3294e9934f7",
125
+ form: "689e029db13c27189bce136d",
126
+ sequence: 12,
127
+ code: "ESTIMAR_PESO_PREGA_SUBSCAPULAR",
128
+ description: "Prega subscapular",
129
+ parent: "68a48cb32e90c3294e9934cd",
130
+ line: 10,
131
+ column: 1,
132
+ type: "QUESTION",
133
+ typeAnswer: "OPEN_NUMBER",
134
+ category: "ANTHROPOMETRY",
135
+ active: true,
136
+ show: true,
137
+ readOnly: false,
138
+ required: false,
139
+ options: [],
140
+ validations: [],
141
+ requestGraphicData: [],
142
+ createdAtDateTime: "2025-08-19T17:09:53.929Z",
143
+ updatedAtDateTime: "2025-08-19T17:09:53.929Z",
144
+ __v: 0,
145
+ screenPlacement: 1,
146
+ answer: "12"
147
+ }
148
+ ];
37
149
  const lines = [
38
150
  {
39
- id: "8cb5372c-8b63-4f74-a04c-601e862c29c4",
151
+ id: "650bf4c4-1827-4695-8b87-839181578a10",
40
152
  line: 1,
41
153
  collumns: [
42
154
  {
@@ -76,7 +188,7 @@ const lines = [
76
188
  description: "Adolescente",
77
189
  defaultSelection: false,
78
190
  active: true,
79
- enable: true
191
+ enable: false
80
192
  },
81
193
  {
82
194
  sequence: 4,
@@ -101,7 +213,7 @@ const lines = [
101
213
  formulaToEnable: "true",
102
214
  validations: [
103
215
  {
104
- type: "VALIDATION",
216
+ type: "REQUIRED",
105
217
  typeOutput: "TEXT",
106
218
  formulaToMessage: "${TYPE_ASSESSMENT}.length === 0 ? 'Campo obrigatório' : ''"
107
219
  }
@@ -116,13 +228,13 @@ const lines = [
116
228
  __v: 0,
117
229
  variantView: "BUTTON",
118
230
  screenPlacement: 1,
119
- answer: "TEENAGER",
120
- lineId: "8cb5372c-8b63-4f74-a04c-601e862c29c4"
231
+ answer: "ADULT",
232
+ lineId: "650bf4c4-1827-4695-8b87-839181578a10"
121
233
  }
122
234
  ]
123
235
  },
124
236
  {
125
- id: "fa9544e9-c284-4007-a1f9-f572f895cd75",
237
+ id: "a8a20720-e82d-47e8-9021-91f614949cd1",
126
238
  line: 2,
127
239
  collumns: [
128
240
  {
@@ -149,7 +261,7 @@ const lines = [
149
261
  screenPlacement: 1,
150
262
  lines: [
151
263
  {
152
- id: "5da32ff8-f9cf-49e6-8a24-8231a28a9737",
264
+ id: "c85777e6-19cd-40bc-89b9-3202bc3743d7",
153
265
  line: 3,
154
266
  collumns: [
155
267
  {
@@ -175,8 +287,12 @@ const lines = [
175
287
  {
176
288
  type: "WARNING",
177
289
  typeOutput: "TEXT",
178
- formulaToMessage: "['HUANG_2003'].includes('${FORMULA_PERCENT_FAT}') ? 'Usado em ${FORMULA_PERCENT_FAT}' : ''",
179
- message: ""
290
+ formulaToMessage: "['HUANG_2003'].includes('${FORMULA_PERCENT_FAT}') ? 'Usado em ${FORMULA_PERCENT_FAT}' : ''"
291
+ },
292
+ {
293
+ type: "WARNING",
294
+ typeOutput: "TEXT",
295
+ formulaToMessage: "Number('${ESTIMATE_WEIGHT}') > 0 ? 'Peso estimado' : ''"
180
296
  }
181
297
  ],
182
298
  requestGraphicData: [],
@@ -185,8 +301,7 @@ const lines = [
185
301
  __v: 0,
186
302
  ellegibleForComparison: true,
187
303
  screenPlacement: 1,
188
- lineId: "5da32ff8-f9cf-49e6-8a24-8231a28a9737",
189
- answer: "80"
304
+ lineId: "c85777e6-19cd-40bc-89b9-3202bc3743d7"
190
305
  },
191
306
  {
192
307
  _id: "689e395a23b914800683aa78",
@@ -227,13 +342,14 @@ const lines = [
227
342
  __v: 0,
228
343
  formulaToDescription: "'${TYPE_ASSESSMENT}' === 'LACTENT' ? 'Comprimento' : 'Altura/Estatura'",
229
344
  screenPlacement: 1,
230
- lineId: "5da32ff8-f9cf-49e6-8a24-8231a28a9737",
231
- answer: "190"
345
+ formulaToAnswer: "Number('${ESTIMATE_HEIGHT}') > 0 ? Number('${ESTIMATE_HEIGHT}') : Number('${HEIGHT_IN_CM}')",
346
+ answer: null,
347
+ lineId: "c85777e6-19cd-40bc-89b9-3202bc3743d7"
232
348
  }
233
349
  ]
234
350
  },
235
351
  {
236
- id: "fbd05160-163a-4467-82e6-caf525c9ae19",
352
+ id: "a715c1d7-051d-4927-8d08-62af2ea0e0d8",
237
353
  line: 4,
238
354
  collumns: [
239
355
  {
@@ -262,7 +378,7 @@ const lines = [
262
378
  screenPlacement: 1,
263
379
  lines: [
264
380
  {
265
- id: "db3c79c5-e7aa-4550-ace5-3397a0d1529b",
381
+ id: "3c5c9fbd-8989-4da0-8b81-79b896740b63",
266
382
  line: 5,
267
383
  collumns: [
268
384
  {
@@ -295,14 +411,14 @@ const lines = [
295
411
  screenPlacement: 1,
296
412
  lines: [
297
413
  {
298
- id: "cf64c327-a647-4ba5-821d-fc97f7cc1470",
414
+ id: "93610fc3-2ee9-4937-83a6-7822ca08f4dc",
299
415
  line: 6,
300
416
  collumns: [
301
417
  {
302
418
  _id: "68a4ad852e90c3294e9934d6",
303
419
  form: "689e029db13c27189bce136d",
304
420
  sequence: 8,
305
- code: "FORMULA_ESTIMATE_WEIGHT",
421
+ code: "ESTIMAR_PESO_FORMULA",
306
422
  description: "Fórmula para estimar peso",
307
423
  parent: "68a48cb32e90c3294e9934cd",
308
424
  line: 6,
@@ -331,19 +447,19 @@ const lines = [
331
447
  updatedAtDateTime: "2025-08-19T16:59:49.814Z",
332
448
  __v: 0,
333
449
  screenPlacement: 1,
334
- lineId: "cf64c327-a647-4ba5-821d-fc97f7cc1470"
450
+ lineId: "93610fc3-2ee9-4937-83a6-7822ca08f4dc"
335
451
  }
336
452
  ]
337
453
  },
338
454
  {
339
- id: "18696e09-85b6-4121-8f77-4eeebef495e1",
455
+ id: "9233b146-6287-43f3-b456-20a6ba29b450",
340
456
  line: 7,
341
457
  collumns: [
342
458
  {
343
459
  _id: "68a4aed32e90c3294e9934de",
344
460
  form: "689e029db13c27189bce136d",
345
461
  sequence: 9,
346
- code: "CHUMLEA_CALF_CIRCUNFERENCE",
462
+ code: "ESTIMAR_PESO_CIRCUNFERENCIA_PANTURRILHA",
347
463
  description: "Circunferência da panturrilha",
348
464
  parent: "68a48cb32e90c3294e9934cd",
349
465
  line: 7,
@@ -363,19 +479,112 @@ const lines = [
363
479
  updatedAtDateTime: "2025-08-19T17:05:23.199Z",
364
480
  __v: 0,
365
481
  screenPlacement: 1,
366
- lineId: "18696e09-85b6-4121-8f77-4eeebef495e1"
482
+ lineId: "9233b146-6287-43f3-b456-20a6ba29b450"
483
+ }
484
+ ]
485
+ },
486
+ {
487
+ id: "cbddb88e-78a5-444e-8b64-e7f388df2d32",
488
+ line: 8,
489
+ collumns: [
490
+ {
491
+ _id: "68a4af692e90c3294e9934e7",
492
+ form: "689e029db13c27189bce136d",
493
+ sequence: 10,
494
+ code: "ESTIMAR_PESO_ALTURA_JOELHO",
495
+ description: "Altura do joelho",
496
+ parent: "68a48cb32e90c3294e9934cd",
497
+ line: 8,
498
+ column: 1,
499
+ type: "QUESTION",
500
+ typeAnswer: "OPEN_NUMBER",
501
+ category: "ANTHROPOMETRY",
502
+ active: true,
503
+ show: true,
504
+ readOnly: false,
505
+ required: false,
506
+ options: [],
507
+ validations: [],
508
+ requestGraphicData: [],
509
+ createdAtDateTime: "2025-08-19T17:07:53.897Z",
510
+ updatedAtDateTime: "2025-08-19T17:07:53.897Z",
511
+ __v: 0,
512
+ screenPlacement: 1,
513
+ lineId: "cbddb88e-78a5-444e-8b64-e7f388df2d32"
514
+ }
515
+ ]
516
+ },
517
+ {
518
+ id: "1f8140ff-c0c6-4312-b52b-b36473015889",
519
+ line: 9,
520
+ collumns: [
521
+ {
522
+ _id: "68a4afa02e90c3294e9934ef",
523
+ form: "689e029db13c27189bce136d",
524
+ sequence: 11,
525
+ code: "ESTIMAR_PESO_CIRCUNFERENCIA_BRACO",
526
+ description: "Circunferência do braço",
527
+ parent: "68a48cb32e90c3294e9934cd",
528
+ line: 9,
529
+ column: 1,
530
+ type: "QUESTION",
531
+ typeAnswer: "OPEN_NUMBER",
532
+ category: "ANTHROPOMETRY",
533
+ active: true,
534
+ show: true,
535
+ readOnly: false,
536
+ required: false,
537
+ options: [],
538
+ validations: [],
539
+ requestGraphicData: [],
540
+ createdAtDateTime: "2025-08-19T17:08:48.340Z",
541
+ updatedAtDateTime: "2025-08-19T17:08:48.340Z",
542
+ __v: 0,
543
+ screenPlacement: 1,
544
+ lineId: "1f8140ff-c0c6-4312-b52b-b36473015889"
545
+ }
546
+ ]
547
+ },
548
+ {
549
+ id: "c2afdb7f-78e0-4d7c-84d8-e05edd4b6bf9",
550
+ line: 10,
551
+ collumns: [
552
+ {
553
+ _id: "68a4afe12e90c3294e9934f7",
554
+ form: "689e029db13c27189bce136d",
555
+ sequence: 12,
556
+ code: "ESTIMAR_PESO_PREGA_SUBSCAPULAR",
557
+ description: "Prega subscapular",
558
+ parent: "68a48cb32e90c3294e9934cd",
559
+ line: 10,
560
+ column: 1,
561
+ type: "QUESTION",
562
+ typeAnswer: "OPEN_NUMBER",
563
+ category: "ANTHROPOMETRY",
564
+ active: true,
565
+ show: true,
566
+ readOnly: false,
567
+ required: false,
568
+ options: [],
569
+ validations: [],
570
+ requestGraphicData: [],
571
+ createdAtDateTime: "2025-08-19T17:09:53.929Z",
572
+ updatedAtDateTime: "2025-08-19T17:09:53.929Z",
573
+ __v: 0,
574
+ screenPlacement: 1,
575
+ lineId: "c2afdb7f-78e0-4d7c-84d8-e05edd4b6bf9"
367
576
  }
368
577
  ]
369
578
  },
370
579
  {
371
- id: "ec9567cc-0c83-4411-a957-12a54c454168",
580
+ id: "c85a1ebe-2db7-4c34-9ed8-dc6e6b6d997c",
372
581
  line: 11,
373
582
  collumns: [
374
583
  {
375
584
  _id: "68a4b36b2e90c3294e993501",
376
585
  form: "689e029db13c27189bce136d",
377
586
  sequence: 13,
378
- code: "ESTIMATE_WEIGHT",
587
+ code: "PESO_ESTIMADO",
379
588
  description: "Peso estimado",
380
589
  parent: "68a48cb32e90c3294e9934cd",
381
590
  line: 11,
@@ -383,7 +592,7 @@ const lines = [
383
592
  type: "QUESTION",
384
593
  typeAnswer: "OPEN_NUMBER",
385
594
  category: "ANTHROPOMETRY",
386
- formulaToAnswer: "'${FORMULA_ESTIMATE_WEIGHT}' === 'CHUMLEA' ? ((0.98 * Number('${CHUMLEA_CALF_CIRCUNFERENCE}')) + (1.16 * Number('${CHUMLEA_KNEE_HEIGHT}')) + (1.73 * Number('${CHUMLEA_ARM_CIRCUNFERENCE}')) + (0.37 * Number('${CHUMLEA_SUBSCAPULAR_FOLD}')) - 81.69) : 0",
595
+ formulaToAnswer: "'${ESTIMAR_PESO_FORMULA}' === 'CHUMLEA' ? ((0.98 * Number('${ESTIMAR_PESO_CIRCUNFERENCIA_PANTURRILHA}')) + (1.16 * Number('${ESTIMAR_PESO_ALTURA_JOELHO}')) + (1.73 * Number('${ESTIMAR_PESO_CIRCUNFERENCIA_BRACO}')) + (0.37 * Number('${ESTIMAR_PESO_PREGA_SUBSCAPULAR}')) - 81.69) : undefined",
387
596
  formulaToEnable: "true",
388
597
  active: true,
389
598
  show: true,
@@ -396,17 +605,17 @@ const lines = [
396
605
  updatedAtDateTime: "2025-08-19T17:24:59.277Z",
397
606
  __v: 0,
398
607
  screenPlacement: 1,
399
- lineId: "ec9567cc-0c83-4411-a957-12a54c454168"
608
+ lineId: "c85a1ebe-2db7-4c34-9ed8-dc6e6b6d997c"
400
609
  }
401
610
  ]
402
611
  }
403
612
  ],
404
- lineId: "db3c79c5-e7aa-4550-ace5-3397a0d1529b"
613
+ lineId: "3c5c9fbd-8989-4da0-8b81-79b896740b63"
405
614
  }
406
615
  ]
407
616
  }
408
617
  ],
409
- lineId: "fbd05160-163a-4467-82e6-caf525c9ae19"
618
+ lineId: "a715c1d7-051d-4927-8d08-62af2ea0e0d8"
410
619
  },
411
620
  {
412
621
  _id: "689e3dc6e7fafb681db6f7b1",
@@ -434,7 +643,7 @@ const lines = [
434
643
  screenPlacement: 1,
435
644
  lines: [
436
645
  {
437
- id: "9de74d40-a099-4fa4-a071-9d4bf535d1ff",
646
+ id: "aae77ced-79e3-423b-883f-51d7647100c3",
438
647
  line: 12,
439
648
  collumns: [
440
649
  {
@@ -467,80 +676,80 @@ const lines = [
467
676
  screenPlacement: 1,
468
677
  lines: [
469
678
  {
470
- id: "4af14f92-2cce-48e4-a784-247e2a6a42bd",
679
+ id: "6322eea3-413e-484e-9cc0-5193450346de",
471
680
  line: 13,
472
681
  collumns: [
473
682
  {
474
- _id: "68a4ccc42e90c3294e993526",
683
+ _id: "68a4cda22e90c3294e993530",
475
684
  form: "689e029db13c27189bce136d",
476
- sequence: 15,
477
- code: "CHUMLEA_KNEE_HEIGHT",
478
- description: "Altura do joelho",
685
+ sequence: 16,
686
+ code: "FORMULA_ESTIMATE_HEIGHT",
687
+ description: "Fórmula para estimar altura",
479
688
  parent: "68a4b4a82e90c3294e99350b",
480
689
  line: 13,
481
690
  column: 1,
482
691
  type: "QUESTION",
483
- typeAnswer: "OPEN_NUMBER",
692
+ typeAnswer: "CHOICE_SINGLE",
484
693
  category: "ANTHROPOMETRY",
694
+ variantView: "LIST",
695
+ options: [
696
+ {
697
+ sequence: 1,
698
+ code: "CHUMLEA",
699
+ description: "Chumlea",
700
+ defaultSelection: true,
701
+ active: true
702
+ }
703
+ ],
485
704
  formulaToEnable: "true",
486
705
  active: true,
487
706
  show: true,
488
707
  readOnly: false,
489
708
  required: false,
490
- options: [],
491
709
  validations: [],
492
710
  requestGraphicData: [],
493
- createdAtDateTime: "2025-08-19T19:13:08.141Z",
494
- updatedAtDateTime: "2025-08-19T19:13:08.141Z",
711
+ createdAtDateTime: "2025-08-19T19:16:50.471Z",
712
+ updatedAtDateTime: "2025-08-19T19:16:50.471Z",
495
713
  __v: 0,
496
714
  screenPlacement: 1,
497
- lineId: "4af14f92-2cce-48e4-a784-247e2a6a42bd"
715
+ lineId: "6322eea3-413e-484e-9cc0-5193450346de"
498
716
  }
499
717
  ]
500
718
  },
501
719
  {
502
- id: "48407482-5b1c-4f42-9211-4b4d1cc6c07b",
720
+ id: "6719e6cf-8ac5-41b2-9451-4ac06c5b6d5f",
503
721
  line: 14,
504
722
  collumns: [
505
723
  {
506
- _id: "68a4cda22e90c3294e993530",
724
+ _id: "68a4ccc42e90c3294e993526",
507
725
  form: "689e029db13c27189bce136d",
508
- sequence: 16,
509
- code: "FORMULA_ESTIMATE_HEIGHT",
510
- description: "Fórmula para estimar altura",
726
+ sequence: 15,
727
+ code: "CHUMLEA_TO_HEIGHT_KNEE_HEIGHT",
728
+ description: "Altura do joelho",
511
729
  parent: "68a4b4a82e90c3294e99350b",
512
730
  line: 14,
513
731
  column: 1,
514
732
  type: "QUESTION",
515
- typeAnswer: "CHOICE_SINGLE",
733
+ typeAnswer: "OPEN_NUMBER",
516
734
  category: "ANTHROPOMETRY",
517
- variantView: "LIST",
518
- options: [
519
- {
520
- sequence: 1,
521
- code: "CHUMLEA",
522
- description: "Chumlea",
523
- defaultSelection: true,
524
- active: true
525
- }
526
- ],
527
735
  formulaToEnable: "true",
528
736
  active: true,
529
737
  show: true,
530
738
  readOnly: false,
531
739
  required: false,
740
+ options: [],
532
741
  validations: [],
533
742
  requestGraphicData: [],
534
- createdAtDateTime: "2025-08-19T19:16:50.471Z",
535
- updatedAtDateTime: "2025-08-19T19:16:50.471Z",
743
+ createdAtDateTime: "2025-08-19T19:13:08.141Z",
744
+ updatedAtDateTime: "2025-08-19T19:13:08.141Z",
536
745
  __v: 0,
537
746
  screenPlacement: 1,
538
- lineId: "48407482-5b1c-4f42-9211-4b4d1cc6c07b"
747
+ lineId: "6719e6cf-8ac5-41b2-9451-4ac06c5b6d5f"
539
748
  }
540
749
  ]
541
750
  },
542
751
  {
543
- id: "f6bc3fb2-f8d7-4cb5-b433-d61161de58b0",
752
+ id: "32c6258c-2d40-41e2-8d36-2731f1e3ffd1",
544
753
  line: 15,
545
754
  collumns: [
546
755
  {
@@ -555,7 +764,7 @@ const lines = [
555
764
  type: "QUESTION",
556
765
  typeAnswer: "OPEN_NUMBER",
557
766
  category: "ANTHROPOMETRY",
558
- formulaToAnswer: "'${FORMULA_ESTIMATE_HEIGHT}' === 'CHUMLEA' ? ((2.02 * Number('${CHUMLEA_TO_HEIGHT_KNEE_HEIGHT}')) - (0.04 * Number('${PATIENT_AGE_IN_YEARS}')) + 64.19) : 0",
767
+ 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",
559
768
  formulaToEnable: "true",
560
769
  active: true,
561
770
  show: true,
@@ -568,28 +777,29 @@ const lines = [
568
777
  updatedAtDateTime: "2025-08-19T19:18:38.430Z",
569
778
  __v: 0,
570
779
  screenPlacement: 1,
780
+ measurementUnit: "cm",
571
781
  answer: 0,
572
- lineId: "f6bc3fb2-f8d7-4cb5-b433-d61161de58b0"
782
+ lineId: "32c6258c-2d40-41e2-8d36-2731f1e3ffd1"
573
783
  }
574
784
  ]
575
785
  }
576
786
  ],
577
- lineId: "9de74d40-a099-4fa4-a071-9d4bf535d1ff"
787
+ lineId: "aae77ced-79e3-423b-883f-51d7647100c3"
578
788
  }
579
789
  ]
580
790
  }
581
791
  ],
582
- lineId: "fbd05160-163a-4467-82e6-caf525c9ae19"
792
+ lineId: "a715c1d7-051d-4927-8d08-62af2ea0e0d8"
583
793
  }
584
794
  ]
585
795
  }
586
796
  ],
587
- lineId: "fa9544e9-c284-4007-a1f9-f572f895cd75"
797
+ lineId: "a8a20720-e82d-47e8-9021-91f614949cd1"
588
798
  }
589
799
  ]
590
800
  },
591
801
  {
592
- id: "427037ec-b57d-42c1-8721-249ef5b1c9bc",
802
+ id: "119670d3-be67-469b-9be8-f0632a80e5dc",
593
803
  line: 16,
594
804
  collumns: [
595
805
  {
@@ -677,13 +887,6 @@ const lines = [
677
887
  formulaToEnable: "Number('${PATIENT_AGE_IN_YEARS}') >= 12",
678
888
  enable: true
679
889
  },
680
- {
681
- sequence: 99,
682
- code: "NOONE",
683
- description: "Nenhuma",
684
- defaultSelection: false,
685
- active: true
686
- },
687
890
  {
688
891
  sequence: 10,
689
892
  code: "GORAN_1996",
@@ -700,7 +903,7 @@ const lines = [
700
903
  defaultSelection: false,
701
904
  active: true,
702
905
  formulaToEnable: "Number('${PATIENT_AGE_IN_YEARS}') >= 8 && Number('${PATIENT_AGE_IN_YEARS}') < 19",
703
- enable: true
906
+ enable: false
704
907
  },
705
908
  {
706
909
  sequence: 12,
@@ -709,7 +912,7 @@ const lines = [
709
912
  defaultSelection: false,
710
913
  active: true,
711
914
  formulaToEnable: "Number('${PATIENT_AGE_IN_YEARS}') >= 8 && Number('${PATIENT_AGE_IN_YEARS}') < 19",
712
- enable: true
915
+ enable: false
713
916
  },
714
917
  {
715
918
  sequence: 12,
@@ -718,7 +921,7 @@ const lines = [
718
921
  defaultSelection: false,
719
922
  active: true,
720
923
  formulaToEnable: "Number('${PATIENT_AGE_IN_YEARS}') >= 6 && Number('${PATIENT_AGE_IN_YEARS}') < 19",
721
- enable: true
924
+ enable: false
722
925
  },
723
926
  {
724
927
  sequence: 13,
@@ -728,6 +931,13 @@ const lines = [
728
931
  active: true,
729
932
  formulaToEnable: "Number('${PATIENT_AGE_IN_YEARS}') < 12",
730
933
  enable: false
934
+ },
935
+ {
936
+ sequence: 99,
937
+ code: "NOONE",
938
+ description: "Nenhuma",
939
+ defaultSelection: false,
940
+ active: true
731
941
  }
732
942
  ],
733
943
  formulaToEnable: "'${TYPE_ASSESSMENT}' !== 'LACTENT'",
@@ -741,13 +951,12 @@ const lines = [
741
951
  updatedAtDateTime: "2025-08-19T19:30:08.554Z",
742
952
  __v: 0,
743
953
  screenPlacement: 1,
744
- lineId: "427037ec-b57d-42c1-8721-249ef5b1c9bc",
745
- answer: "POLLOCK_7_DOBRAS"
954
+ lineId: "119670d3-be67-469b-9be8-f0632a80e5dc"
746
955
  }
747
956
  ]
748
957
  },
749
958
  {
750
- id: "7755359f-7ce3-4270-a969-7af4e8216051",
959
+ id: "6d96e54d-300b-42e2-a8e8-76162a30d810",
751
960
  line: 17,
752
961
  collumns: [
753
962
  {
@@ -782,7 +991,7 @@ const lines = [
782
991
  screenPlacement: 1,
783
992
  lines: [
784
993
  {
785
- id: "5761162a-10c9-4286-8025-f1506a13e651",
994
+ id: "7ffbd6db-7fe0-4f41-9d2d-cc397ecb586c",
786
995
  line: 18,
787
996
  collumns: [
788
997
  {
@@ -808,8 +1017,12 @@ const lines = [
808
1017
  {
809
1018
  type: "WARNING",
810
1019
  typeOutput: "TEXT",
811
- formulaToMessage: "['POLLOCK_7_DOBRAS', 'GORAN_1996', 'SLAUGHTER_1988', 'SLAUGHTER_2_1988','BOILEAU_LOHMAN_SLAUGHTER_1985'].includes('${FORMULA_PERCENT_FAT}') ? 'Usado na fórmula % gordura selecionada' : ''",
812
- message: "Usado na fórmula % gordura selecionada"
1020
+ formulaToMessage: "['POLLOCK_7_DOBRAS', 'GORAN_1996', 'SLAUGHTER_1988', 'SLAUGHTER_2_1988','BOILEAU_LOHMAN_SLAUGHTER_1985'].includes('${FORMULA_PERCENT_FAT}') ? 'Usado na fórmula % gordura selecionada' : ''"
1021
+ },
1022
+ {
1023
+ type: "REQUIRED",
1024
+ typeOutput: "TEXT",
1025
+ formulaToMessage: "'Obrigatório'"
813
1026
  }
814
1027
  ],
815
1028
  requestGraphicData: [],
@@ -818,8 +1031,8 @@ const lines = [
818
1031
  updatedAtDateTime: "2025-10-10T18:46:55.789Z",
819
1032
  __v: 0,
820
1033
  screenPlacement: 1,
821
- lineId: "5761162a-10c9-4286-8025-f1506a13e651",
822
- answer: "12"
1034
+ measurementUnit: "mm",
1035
+ lineId: "7ffbd6db-7fe0-4f41-9d2d-cc397ecb586c"
823
1036
  },
824
1037
  {
825
1038
  _id: "68e9551412a9fe7d491619c3",
@@ -853,13 +1066,13 @@ const lines = [
853
1066
  updatedAtDateTime: "2025-10-10T18:48:52.252Z",
854
1067
  __v: 0,
855
1068
  screenPlacement: 1,
856
- lineId: "5761162a-10c9-4286-8025-f1506a13e651",
857
- answer: "12"
1069
+ measurementUnit: "mm",
1070
+ lineId: "7ffbd6db-7fe0-4f41-9d2d-cc397ecb586c"
858
1071
  }
859
1072
  ]
860
1073
  },
861
1074
  {
862
- id: "bd0d3ee6-92dd-4f9b-b47f-bffa76657799",
1075
+ id: "3381e9b3-3367-440e-887c-0033185de01d",
863
1076
  line: 19,
864
1077
  collumns: [
865
1078
  {
@@ -885,8 +1098,7 @@ const lines = [
885
1098
  {
886
1099
  type: "WARNING",
887
1100
  typeOutput: "TEXT",
888
- formulaToMessage: "['POLLOCK_7_DOBRAS'].includes('${FORMULA_PERCENT_FAT}') ? 'Usado na fórmula % gordura selecionada' : ''",
889
- message: "Usado na fórmula % gordura selecionada"
1101
+ formulaToMessage: "['POLLOCK_7_DOBRAS'].includes('${FORMULA_PERCENT_FAT}') ? 'Usado na fórmula % gordura selecionada' : ''"
890
1102
  }
891
1103
  ],
892
1104
  requestGraphicData: [],
@@ -895,8 +1107,8 @@ const lines = [
895
1107
  updatedAtDateTime: "2025-10-10T18:49:29.115Z",
896
1108
  __v: 0,
897
1109
  screenPlacement: 1,
898
- lineId: "bd0d3ee6-92dd-4f9b-b47f-bffa76657799",
899
- answer: "12"
1110
+ measurementUnit: "mm",
1111
+ lineId: "3381e9b3-3367-440e-887c-0033185de01d"
900
1112
  },
901
1113
  {
902
1114
  _id: "68e9556312a9fe7d491619d3",
@@ -921,8 +1133,7 @@ const lines = [
921
1133
  {
922
1134
  type: "WARNING",
923
1135
  typeOutput: "TEXT",
924
- formulaToMessage: "['POLLOCK_7_DOBRAS'].includes('${FORMULA_PERCENT_FAT}') ? 'Usado na fórmula % gordura selecionada' : ''",
925
- message: "Usado na fórmula % gordura selecionada"
1136
+ formulaToMessage: "['POLLOCK_7_DOBRAS'].includes('${FORMULA_PERCENT_FAT}') ? 'Usado na fórmula % gordura selecionada' : ''"
926
1137
  }
927
1138
  ],
928
1139
  requestGraphicData: [],
@@ -931,13 +1142,13 @@ const lines = [
931
1142
  updatedAtDateTime: "2025-10-10T18:50:11.725Z",
932
1143
  __v: 0,
933
1144
  screenPlacement: 1,
934
- lineId: "bd0d3ee6-92dd-4f9b-b47f-bffa76657799",
935
- answer: "12"
1145
+ measurementUnit: "mm",
1146
+ lineId: "3381e9b3-3367-440e-887c-0033185de01d"
936
1147
  }
937
1148
  ]
938
1149
  },
939
1150
  {
940
- id: "c78049c1-ba5b-4824-ad4d-b3eed4f8d28e",
1151
+ id: "911a7499-c27d-4221-8a66-3358c57ea70f",
941
1152
  line: 20,
942
1153
  collumns: [
943
1154
  {
@@ -963,8 +1174,7 @@ const lines = [
963
1174
  {
964
1175
  type: "WARNING",
965
1176
  typeOutput: "TEXT",
966
- formulaToMessage: "['POLLOCK_7_DOBRAS'].includes('${FORMULA_PERCENT_FAT}') ? 'Usado na fórmula % gordura selecionada' : ''",
967
- message: "Usado na fórmula % gordura selecionada"
1177
+ formulaToMessage: "['POLLOCK_7_DOBRAS'].includes('${FORMULA_PERCENT_FAT}') ? 'Usado na fórmula % gordura selecionada' : ''"
968
1178
  }
969
1179
  ],
970
1180
  requestGraphicData: [],
@@ -973,8 +1183,8 @@ const lines = [
973
1183
  updatedAtDateTime: "2025-10-10T18:50:35.230Z",
974
1184
  __v: 0,
975
1185
  screenPlacement: 1,
976
- lineId: "c78049c1-ba5b-4824-ad4d-b3eed4f8d28e",
977
- answer: "12"
1186
+ measurementUnit: "mm",
1187
+ lineId: "911a7499-c27d-4221-8a66-3358c57ea70f"
978
1188
  },
979
1189
  {
980
1190
  _id: "68e955ae12a9fe7d491619e3",
@@ -1002,12 +1212,13 @@ const lines = [
1002
1212
  updatedAtDateTime: "2025-10-10T18:51:26.796Z",
1003
1213
  __v: 0,
1004
1214
  screenPlacement: 1,
1005
- lineId: "c78049c1-ba5b-4824-ad4d-b3eed4f8d28e"
1215
+ measurementUnit: "mm",
1216
+ lineId: "911a7499-c27d-4221-8a66-3358c57ea70f"
1006
1217
  }
1007
1218
  ]
1008
1219
  },
1009
1220
  {
1010
- id: "c1c625f6-2b52-4f9a-b6a7-d5d649a0fe22",
1221
+ id: "4a200927-8b27-4624-b161-85af2ae53177",
1011
1222
  line: 21,
1012
1223
  collumns: [
1013
1224
  {
@@ -1033,8 +1244,7 @@ const lines = [
1033
1244
  {
1034
1245
  type: "WARNING",
1035
1246
  typeOutput: "TEXT",
1036
- formulaToMessage: "['POLLOCK_7_DOBRAS'].includes('${FORMULA_PERCENT_FAT}') ? 'Usado na fórmula % gordura selecionada' : ''",
1037
- message: "Usado na fórmula % gordura selecionada"
1247
+ formulaToMessage: "['POLLOCK_7_DOBRAS'].includes('${FORMULA_PERCENT_FAT}') ? 'Usado na fórmula % gordura selecionada' : ''"
1038
1248
  }
1039
1249
  ],
1040
1250
  requestGraphicData: [],
@@ -1043,8 +1253,8 @@ const lines = [
1043
1253
  updatedAtDateTime: "2025-10-10T18:51:46.056Z",
1044
1254
  __v: 0,
1045
1255
  screenPlacement: 1,
1046
- lineId: "c1c625f6-2b52-4f9a-b6a7-d5d649a0fe22",
1047
- answer: "12"
1256
+ measurementUnit: "mm",
1257
+ lineId: "4a200927-8b27-4624-b161-85af2ae53177"
1048
1258
  },
1049
1259
  {
1050
1260
  _id: "68e955d112a9fe7d491619f3",
@@ -1069,8 +1279,7 @@ const lines = [
1069
1279
  {
1070
1280
  type: "WARNING",
1071
1281
  typeOutput: "TEXT",
1072
- formulaToMessage: "['POLLOCK_7_DOBRAS'].includes('${FORMULA_PERCENT_FAT}') ? 'Usado na fórmula % gordura selecionada' : ''",
1073
- message: "Usado na fórmula % gordura selecionada"
1282
+ formulaToMessage: "['POLLOCK_7_DOBRAS'].includes('${FORMULA_PERCENT_FAT}') ? 'Usado na fórmula % gordura selecionada' : ''"
1074
1283
  }
1075
1284
  ],
1076
1285
  requestGraphicData: [],
@@ -1079,13 +1288,13 @@ const lines = [
1079
1288
  updatedAtDateTime: "2025-10-10T18:52:01.389Z",
1080
1289
  __v: 0,
1081
1290
  screenPlacement: 1,
1082
- lineId: "c1c625f6-2b52-4f9a-b6a7-d5d649a0fe22",
1083
- answer: "12"
1291
+ measurementUnit: "mm",
1292
+ lineId: "4a200927-8b27-4624-b161-85af2ae53177"
1084
1293
  }
1085
1294
  ]
1086
1295
  },
1087
1296
  {
1088
- id: "f70f5daa-664f-4437-a3c9-6ed4289798b5",
1297
+ id: "c163e03f-b97e-41aa-85ee-d1bae5bb21ef",
1089
1298
  line: 22,
1090
1299
  collumns: [
1091
1300
  {
@@ -1114,7 +1323,8 @@ const lines = [
1114
1323
  updatedAtDateTime: "2025-10-10T18:52:19.230Z",
1115
1324
  __v: 0,
1116
1325
  screenPlacement: 1,
1117
- lineId: "f70f5daa-664f-4437-a3c9-6ed4289798b5"
1326
+ measurementUnit: "mm",
1327
+ lineId: "c163e03f-b97e-41aa-85ee-d1bae5bb21ef"
1118
1328
  },
1119
1329
  {
1120
1330
  _id: "68e955ef12a9fe7d49161a03",
@@ -1139,8 +1349,7 @@ const lines = [
1139
1349
  {
1140
1350
  type: "WARNING",
1141
1351
  typeOutput: "TEXT",
1142
- formulaToMessage: "['POLLOCK_7_DOBRAS'].includes('${FORMULA_PERCENT_FAT}') ? 'Usado na fórmula % gordura selecionada' : ''",
1143
- message: "Usado na fórmula % gordura selecionada"
1352
+ formulaToMessage: "['POLLOCK_7_DOBRAS'].includes('${FORMULA_PERCENT_FAT}') ? 'Usado na fórmula % gordura selecionada' : ''"
1144
1353
  }
1145
1354
  ],
1146
1355
  requestGraphicData: [],
@@ -1149,18 +1358,18 @@ const lines = [
1149
1358
  updatedAtDateTime: "2025-10-10T18:52:31.625Z",
1150
1359
  __v: 0,
1151
1360
  screenPlacement: 1,
1152
- lineId: "f70f5daa-664f-4437-a3c9-6ed4289798b5",
1153
- answer: "12"
1361
+ measurementUnit: "mm",
1362
+ lineId: "c163e03f-b97e-41aa-85ee-d1bae5bb21ef"
1154
1363
  }
1155
1364
  ]
1156
1365
  }
1157
1366
  ],
1158
- lineId: "7755359f-7ce3-4270-a969-7af4e8216051"
1367
+ lineId: "6d96e54d-300b-42e2-a8e8-76162a30d810"
1159
1368
  }
1160
1369
  ]
1161
1370
  },
1162
1371
  {
1163
- id: "31bb2201-1b57-4dfa-a39e-08699cbb2199",
1372
+ id: "3cc507b6-a4ae-4c39-918f-a3f6db106ce9",
1164
1373
  line: 28,
1165
1374
  collumns: [
1166
1375
  {
@@ -1195,7 +1404,7 @@ const lines = [
1195
1404
  screenPlacement: 1,
1196
1405
  lines: [
1197
1406
  {
1198
- id: "8f9a240b-966b-44e3-bf96-868296bf5a81",
1407
+ id: "2394beb2-f676-4664-a245-51b04387200f",
1199
1408
  line: 29,
1200
1409
  collumns: [
1201
1410
  {
@@ -1224,7 +1433,7 @@ const lines = [
1224
1433
  updatedAtDateTime: "2025-10-10T19:04:56.964Z",
1225
1434
  __v: 0,
1226
1435
  screenPlacement: 1,
1227
- lineId: "8f9a240b-966b-44e3-bf96-868296bf5a81"
1436
+ lineId: "2394beb2-f676-4664-a245-51b04387200f"
1228
1437
  },
1229
1438
  {
1230
1439
  _id: "68e9593e12a9fe7d49161a1b",
@@ -1252,12 +1461,12 @@ const lines = [
1252
1461
  updatedAtDateTime: "2025-10-10T19:06:38.701Z",
1253
1462
  __v: 0,
1254
1463
  screenPlacement: 1,
1255
- lineId: "8f9a240b-966b-44e3-bf96-868296bf5a81"
1464
+ lineId: "2394beb2-f676-4664-a245-51b04387200f"
1256
1465
  }
1257
1466
  ]
1258
1467
  },
1259
1468
  {
1260
- id: "0bfd2508-38f1-441b-96fb-f8586c781469",
1469
+ id: "dd23ad7e-f3e9-4af4-9003-a140175d2eef",
1261
1470
  line: 30,
1262
1471
  collumns: [
1263
1472
  {
@@ -1286,7 +1495,7 @@ const lines = [
1286
1495
  updatedAtDateTime: "2025-10-10T19:07:08.298Z",
1287
1496
  __v: 0,
1288
1497
  screenPlacement: 1,
1289
- lineId: "0bfd2508-38f1-441b-96fb-f8586c781469"
1498
+ lineId: "dd23ad7e-f3e9-4af4-9003-a140175d2eef"
1290
1499
  },
1291
1500
  {
1292
1501
  _id: "68e9598412a9fe7d49161a29",
@@ -1307,19 +1516,26 @@ const lines = [
1307
1516
  required: false,
1308
1517
  ellegibleForComparison: false,
1309
1518
  options: [],
1310
- validations: [],
1519
+ validations: [
1520
+ {
1521
+ type: "WARNING",
1522
+ typeOutput: "TEXT",
1523
+ formulaToMessage: "'${CIRCUNFERENCIA_CINTURA}'.length ? Number('CIRCUNFERENCIA_CINTURA') > 102 && '${PATIENT_GENRE}' === 'MALE' ? 'Risco metabólico' : Number('CIRCUNFERENCIA_CINTURA') > 102 && '${PATIENT_GENRE}' === 'FEMALE' ? 'Risco metabólico' : '' : ''",
1524
+ message: ""
1525
+ }
1526
+ ],
1311
1527
  requestGraphicData: [],
1312
1528
  tips: [],
1313
1529
  createdAtDateTime: "2025-10-10T19:07:48.462Z",
1314
1530
  updatedAtDateTime: "2025-10-10T19:07:48.462Z",
1315
1531
  __v: 0,
1316
1532
  screenPlacement: 1,
1317
- lineId: "0bfd2508-38f1-441b-96fb-f8586c781469"
1533
+ lineId: "dd23ad7e-f3e9-4af4-9003-a140175d2eef"
1318
1534
  }
1319
1535
  ]
1320
1536
  },
1321
1537
  {
1322
- id: "379352e7-0013-4085-9eec-b3d4a3191978",
1538
+ id: "83d2e836-4ff5-4e43-87cd-d294afed68f3",
1323
1539
  line: 31,
1324
1540
  collumns: [
1325
1541
  {
@@ -1348,7 +1564,7 @@ const lines = [
1348
1564
  updatedAtDateTime: "2025-10-10T19:08:11.991Z",
1349
1565
  __v: 0,
1350
1566
  screenPlacement: 1,
1351
- lineId: "379352e7-0013-4085-9eec-b3d4a3191978"
1567
+ lineId: "83d2e836-4ff5-4e43-87cd-d294afed68f3"
1352
1568
  },
1353
1569
  {
1354
1570
  _id: "68e959b212a9fe7d49161a37",
@@ -1376,12 +1592,12 @@ const lines = [
1376
1592
  updatedAtDateTime: "2025-10-10T19:08:34.808Z",
1377
1593
  __v: 0,
1378
1594
  screenPlacement: 1,
1379
- lineId: "379352e7-0013-4085-9eec-b3d4a3191978"
1595
+ lineId: "83d2e836-4ff5-4e43-87cd-d294afed68f3"
1380
1596
  }
1381
1597
  ]
1382
1598
  },
1383
1599
  {
1384
- id: "01b3e01f-980c-45bb-83c6-fa9d45c1118c",
1600
+ id: "b8038a93-4c15-4612-9409-1d1a0bcae369",
1385
1601
  line: 32,
1386
1602
  collumns: [
1387
1603
  {
@@ -1410,7 +1626,7 @@ const lines = [
1410
1626
  updatedAtDateTime: "2025-10-10T19:09:09.857Z",
1411
1627
  __v: 0,
1412
1628
  screenPlacement: 1,
1413
- lineId: "01b3e01f-980c-45bb-83c6-fa9d45c1118c"
1629
+ lineId: "b8038a93-4c15-4612-9409-1d1a0bcae369"
1414
1630
  },
1415
1631
  {
1416
1632
  _id: "68e959e312a9fe7d49161a45",
@@ -1438,12 +1654,12 @@ const lines = [
1438
1654
  updatedAtDateTime: "2025-10-10T19:09:23.240Z",
1439
1655
  __v: 0,
1440
1656
  screenPlacement: 1,
1441
- lineId: "01b3e01f-980c-45bb-83c6-fa9d45c1118c"
1657
+ lineId: "b8038a93-4c15-4612-9409-1d1a0bcae369"
1442
1658
  }
1443
1659
  ]
1444
1660
  },
1445
1661
  {
1446
- id: "6f8948f3-1cb6-4724-b7ea-c61f6083ea6e",
1662
+ id: "6ad6a6ad-bec1-4532-b7de-2204b6824834",
1447
1663
  line: 33,
1448
1664
  collumns: [
1449
1665
  {
@@ -1472,7 +1688,7 @@ const lines = [
1472
1688
  updatedAtDateTime: "2025-10-10T19:10:03.245Z",
1473
1689
  __v: 0,
1474
1690
  screenPlacement: 1,
1475
- lineId: "6f8948f3-1cb6-4724-b7ea-c61f6083ea6e"
1691
+ lineId: "6ad6a6ad-bec1-4532-b7de-2204b6824834"
1476
1692
  },
1477
1693
  {
1478
1694
  _id: "68e95a1312a9fe7d49161a53",
@@ -1500,12 +1716,12 @@ const lines = [
1500
1716
  updatedAtDateTime: "2025-10-10T19:10:11.522Z",
1501
1717
  __v: 0,
1502
1718
  screenPlacement: 1,
1503
- lineId: "6f8948f3-1cb6-4724-b7ea-c61f6083ea6e"
1719
+ lineId: "6ad6a6ad-bec1-4532-b7de-2204b6824834"
1504
1720
  }
1505
1721
  ]
1506
1722
  },
1507
1723
  {
1508
- id: "2f36e7e4-fc01-44a8-965f-733fe33c14de",
1724
+ id: "64fb1dd6-a250-473d-a285-1cd1c8ec7b08",
1509
1725
  line: 34,
1510
1726
  collumns: [
1511
1727
  {
@@ -1534,7 +1750,7 @@ const lines = [
1534
1750
  updatedAtDateTime: "2025-10-10T19:10:44.784Z",
1535
1751
  __v: 0,
1536
1752
  screenPlacement: 1,
1537
- lineId: "2f36e7e4-fc01-44a8-965f-733fe33c14de"
1753
+ lineId: "64fb1dd6-a250-473d-a285-1cd1c8ec7b08"
1538
1754
  },
1539
1755
  {
1540
1756
  _id: "68e95a3d12a9fe7d49161a61",
@@ -1562,12 +1778,12 @@ const lines = [
1562
1778
  updatedAtDateTime: "2025-10-10T19:10:53.388Z",
1563
1779
  __v: 0,
1564
1780
  screenPlacement: 1,
1565
- lineId: "2f36e7e4-fc01-44a8-965f-733fe33c14de"
1781
+ lineId: "64fb1dd6-a250-473d-a285-1cd1c8ec7b08"
1566
1782
  }
1567
1783
  ]
1568
1784
  },
1569
1785
  {
1570
- id: "eb38367e-a81d-4194-8bcf-ea47813f36f8",
1786
+ id: "76152a6a-7a1b-4f18-9006-d3a68180e041",
1571
1787
  line: 35,
1572
1788
  collumns: [
1573
1789
  {
@@ -1596,7 +1812,7 @@ const lines = [
1596
1812
  updatedAtDateTime: "2025-10-10T19:11:28.688Z",
1597
1813
  __v: 0,
1598
1814
  screenPlacement: 1,
1599
- lineId: "eb38367e-a81d-4194-8bcf-ea47813f36f8"
1815
+ lineId: "76152a6a-7a1b-4f18-9006-d3a68180e041"
1600
1816
  },
1601
1817
  {
1602
1818
  _id: "68e95a6912a9fe7d49161a6f",
@@ -1624,12 +1840,12 @@ const lines = [
1624
1840
  updatedAtDateTime: "2025-10-10T19:11:37.257Z",
1625
1841
  __v: 0,
1626
1842
  screenPlacement: 1,
1627
- lineId: "eb38367e-a81d-4194-8bcf-ea47813f36f8"
1843
+ lineId: "76152a6a-7a1b-4f18-9006-d3a68180e041"
1628
1844
  }
1629
1845
  ]
1630
1846
  },
1631
1847
  {
1632
- id: "4d5ef4c1-456a-4ae4-974d-e4a5a0f83a2b",
1848
+ id: "d7c05735-30e6-4610-8f76-bd423c39ea8c",
1633
1849
  line: 36,
1634
1850
  collumns: [
1635
1851
  {
@@ -1658,7 +1874,7 @@ const lines = [
1658
1874
  updatedAtDateTime: "2025-10-10T19:12:09.936Z",
1659
1875
  __v: 0,
1660
1876
  screenPlacement: 1,
1661
- lineId: "4d5ef4c1-456a-4ae4-974d-e4a5a0f83a2b"
1877
+ lineId: "d7c05735-30e6-4610-8f76-bd423c39ea8c"
1662
1878
  },
1663
1879
  {
1664
1880
  _id: "68e95a9712a9fe7d49161a7d",
@@ -1686,12 +1902,12 @@ const lines = [
1686
1902
  updatedAtDateTime: "2025-10-10T19:12:23.040Z",
1687
1903
  __v: 0,
1688
1904
  screenPlacement: 1,
1689
- lineId: "4d5ef4c1-456a-4ae4-974d-e4a5a0f83a2b"
1905
+ lineId: "d7c05735-30e6-4610-8f76-bd423c39ea8c"
1690
1906
  }
1691
1907
  ]
1692
1908
  },
1693
1909
  {
1694
- id: "a2629ffe-a423-46ee-a946-1d45301cccc2",
1910
+ id: "8e3c5577-2904-426b-98ad-d9c3d4ba7352",
1695
1911
  line: 37,
1696
1912
  collumns: [
1697
1913
  {
@@ -1720,7 +1936,7 @@ const lines = [
1720
1936
  updatedAtDateTime: "2025-10-10T19:12:44.577Z",
1721
1937
  __v: 0,
1722
1938
  screenPlacement: 1,
1723
- lineId: "a2629ffe-a423-46ee-a946-1d45301cccc2"
1939
+ lineId: "8e3c5577-2904-426b-98ad-d9c3d4ba7352"
1724
1940
  },
1725
1941
  {
1726
1942
  _id: "68e95ab512a9fe7d49161a8b",
@@ -1748,12 +1964,12 @@ const lines = [
1748
1964
  updatedAtDateTime: "2025-10-10T19:12:53.890Z",
1749
1965
  __v: 0,
1750
1966
  screenPlacement: 1,
1751
- lineId: "a2629ffe-a423-46ee-a946-1d45301cccc2"
1967
+ lineId: "8e3c5577-2904-426b-98ad-d9c3d4ba7352"
1752
1968
  }
1753
1969
  ]
1754
1970
  },
1755
1971
  {
1756
- id: "574e8a3d-d513-40e8-bef8-0240081ccfdd",
1972
+ id: "3e1aa107-55f4-455c-935f-455f1d812810",
1757
1973
  line: 38,
1758
1974
  collumns: [
1759
1975
  {
@@ -1782,7 +1998,7 @@ const lines = [
1782
1998
  updatedAtDateTime: "2025-10-10T19:13:16.856Z",
1783
1999
  __v: 0,
1784
2000
  screenPlacement: 1,
1785
- lineId: "574e8a3d-d513-40e8-bef8-0240081ccfdd"
2001
+ lineId: "3e1aa107-55f4-455c-935f-455f1d812810"
1786
2002
  },
1787
2003
  {
1788
2004
  _id: "68e95ad412a9fe7d49161a99",
@@ -1810,17 +2026,17 @@ const lines = [
1810
2026
  updatedAtDateTime: "2025-10-10T19:13:24.433Z",
1811
2027
  __v: 0,
1812
2028
  screenPlacement: 1,
1813
- lineId: "574e8a3d-d513-40e8-bef8-0240081ccfdd"
2029
+ lineId: "3e1aa107-55f4-455c-935f-455f1d812810"
1814
2030
  }
1815
2031
  ]
1816
2032
  }
1817
2033
  ],
1818
- lineId: "31bb2201-1b57-4dfa-a39e-08699cbb2199"
2034
+ lineId: "3cc507b6-a4ae-4c39-918f-a3f6db106ce9"
1819
2035
  }
1820
2036
  ]
1821
2037
  },
1822
2038
  {
1823
- id: "74870cfd-b1ac-4663-9e78-b0be48267a21",
2039
+ id: "99813697-45d2-49cf-a833-72069cc1ad9f",
1824
2040
  line: 39,
1825
2041
  collumns: [
1826
2042
  {
@@ -1849,7 +2065,7 @@ const lines = [
1849
2065
  screenPlacement: 1,
1850
2066
  lines: [
1851
2067
  {
1852
- id: "41c1b70e-6747-43c8-b9d8-736cdd8fd3c7",
2068
+ id: "cc9cfdac-06bd-46b6-ba76-9b2749f67a42",
1853
2069
  line: 40,
1854
2070
  collumns: [
1855
2071
  {
@@ -1904,7 +2120,7 @@ const lines = [
1904
2120
  updatedAtDateTime: "2025-10-14T13:56:15.048Z",
1905
2121
  __v: 0,
1906
2122
  screenPlacement: 1,
1907
- lineId: "41c1b70e-6747-43c8-b9d8-736cdd8fd3c7"
2123
+ lineId: "cc9cfdac-06bd-46b6-ba76-9b2749f67a42"
1908
2124
  },
1909
2125
  {
1910
2126
  _id: "68ee573cdbeb63de67643cff",
@@ -1932,12 +2148,12 @@ const lines = [
1932
2148
  updatedAtDateTime: "2025-10-14T13:59:24.863Z",
1933
2149
  __v: 0,
1934
2150
  screenPlacement: 1,
1935
- lineId: "41c1b70e-6747-43c8-b9d8-736cdd8fd3c7"
2151
+ lineId: "cc9cfdac-06bd-46b6-ba76-9b2749f67a42"
1936
2152
  }
1937
2153
  ]
1938
2154
  },
1939
2155
  {
1940
- id: "3a42d8b0-ea05-447e-98d1-f3fd93c5e331",
2156
+ id: "f142f08f-a3e4-4cd3-bdb1-090c5c1bc4ac",
1941
2157
  line: 41,
1942
2158
  collumns: [
1943
2159
  {
@@ -1968,7 +2184,7 @@ const lines = [
1968
2184
  screenPlacement: 1,
1969
2185
  lines: [
1970
2186
  {
1971
- id: "f14394b7-1ae8-4b1a-90a7-5f2b88c27ed3",
2187
+ id: "d2794dc6-6641-4110-be15-d8ea9536215e",
1972
2188
  line: 42,
1973
2189
  collumns: [
1974
2190
  {
@@ -2003,7 +2219,7 @@ const lines = [
2003
2219
  screenPlacement: 1,
2004
2220
  lines: [
2005
2221
  {
2006
- id: "93866472-aa0d-46e1-b842-1a39c1eacd47",
2222
+ id: "3eec3f76-a551-4e5e-ad4e-608dceda13b2",
2007
2223
  line: 43,
2008
2224
  collumns: [
2009
2225
  {
@@ -2032,12 +2248,12 @@ const lines = [
2032
2248
  updatedAtDateTime: "2025-10-14T14:37:56.829Z",
2033
2249
  __v: 0,
2034
2250
  screenPlacement: 1,
2035
- lineId: "93866472-aa0d-46e1-b842-1a39c1eacd47"
2251
+ lineId: "3eec3f76-a551-4e5e-ad4e-608dceda13b2"
2036
2252
  }
2037
2253
  ]
2038
2254
  },
2039
2255
  {
2040
- id: "12fafc78-3a74-4db4-80b8-307b6454a632",
2256
+ id: "71d74f73-385b-48de-a917-e8e4619661a1",
2041
2257
  line: 44,
2042
2258
  collumns: [
2043
2259
  {
@@ -2066,12 +2282,12 @@ const lines = [
2066
2282
  updatedAtDateTime: "2025-10-14T14:39:41.427Z",
2067
2283
  __v: 0,
2068
2284
  screenPlacement: 1,
2069
- lineId: "12fafc78-3a74-4db4-80b8-307b6454a632"
2285
+ lineId: "71d74f73-385b-48de-a917-e8e4619661a1"
2070
2286
  }
2071
2287
  ]
2072
2288
  },
2073
2289
  {
2074
- id: "d0f7b18e-2de6-43a4-903a-0acca669e4e7",
2290
+ id: "35638c7f-e24d-4247-8d67-aacd1db47aa3",
2075
2291
  line: 45,
2076
2292
  collumns: [
2077
2293
  {
@@ -2100,12 +2316,12 @@ const lines = [
2100
2316
  updatedAtDateTime: "2025-10-14T14:40:16.803Z",
2101
2317
  __v: 0,
2102
2318
  screenPlacement: 1,
2103
- lineId: "d0f7b18e-2de6-43a4-903a-0acca669e4e7"
2319
+ lineId: "35638c7f-e24d-4247-8d67-aacd1db47aa3"
2104
2320
  }
2105
2321
  ]
2106
2322
  },
2107
2323
  {
2108
- id: "cb992e9f-ac99-49dd-8e4b-1f997502550b",
2324
+ id: "def15dce-2f88-4bb5-8046-285e9cff319b",
2109
2325
  line: 46,
2110
2326
  collumns: [
2111
2327
  {
@@ -2134,12 +2350,12 @@ const lines = [
2134
2350
  updatedAtDateTime: "2025-10-14T14:41:41.543Z",
2135
2351
  __v: 0,
2136
2352
  screenPlacement: 1,
2137
- lineId: "cb992e9f-ac99-49dd-8e4b-1f997502550b"
2353
+ lineId: "def15dce-2f88-4bb5-8046-285e9cff319b"
2138
2354
  }
2139
2355
  ]
2140
2356
  },
2141
2357
  {
2142
- id: "a842221f-7273-4887-9793-6c7412748042",
2358
+ id: "103e0d62-a608-4a13-bdf5-9b3db30c97ec",
2143
2359
  line: 47,
2144
2360
  collumns: [
2145
2361
  {
@@ -2170,27 +2386,27 @@ const lines = [
2170
2386
  updatedAtDateTime: "2025-10-14T14:52:29.560Z",
2171
2387
  __v: 0,
2172
2388
  screenPlacement: 1,
2173
- lineId: "a842221f-7273-4887-9793-6c7412748042"
2389
+ lineId: "103e0d62-a608-4a13-bdf5-9b3db30c97ec"
2174
2390
  }
2175
2391
  ]
2176
2392
  }
2177
2393
  ],
2178
- lineId: "f14394b7-1ae8-4b1a-90a7-5f2b88c27ed3"
2394
+ lineId: "d2794dc6-6641-4110-be15-d8ea9536215e"
2179
2395
  }
2180
2396
  ]
2181
2397
  }
2182
2398
  ],
2183
- lineId: "3a42d8b0-ea05-447e-98d1-f3fd93c5e331"
2399
+ lineId: "f142f08f-a3e4-4cd3-bdb1-090c5c1bc4ac"
2184
2400
  }
2185
2401
  ]
2186
2402
  }
2187
2403
  ],
2188
- lineId: "74870cfd-b1ac-4663-9e78-b0be48267a21"
2404
+ lineId: "99813697-45d2-49cf-a833-72069cc1ad9f"
2189
2405
  }
2190
2406
  ]
2191
2407
  },
2192
2408
  {
2193
- id: "696f0021-c620-4c3f-bf17-f767a2e69457",
2409
+ id: "316e9470-6f40-405f-9940-672bc5ff804e",
2194
2410
  line: 48,
2195
2411
  collumns: [
2196
2412
  {
@@ -2219,7 +2435,7 @@ const lines = [
2219
2435
  screenPlacement: 1,
2220
2436
  lines: [
2221
2437
  {
2222
- id: "d44c119a-34ee-4db7-a191-64a2c462ac54",
2438
+ id: "e14d5891-7431-4373-8049-6fb6118f502e",
2223
2439
  line: 49,
2224
2440
  collumns: [
2225
2441
  {
@@ -2249,14 +2465,8 @@ const lines = [
2249
2465
  updatedAtDateTime: "2025-10-14T15:10:31.255Z",
2250
2466
  __v: 0,
2251
2467
  screenPlacement: 1,
2252
- lineId: "d44c119a-34ee-4db7-a191-64a2c462ac54"
2253
- }
2254
- ]
2255
- },
2256
- {
2257
- id: "c2affdca-afaa-427c-aac4-3863251b7e78",
2258
- line: 50,
2259
- collumns: [
2468
+ lineId: "e14d5891-7431-4373-8049-6fb6118f502e"
2469
+ },
2260
2470
  {
2261
2471
  _id: "68ee67fedbeb63de67643d51",
2262
2472
  form: "689e029db13c27189bce136d",
@@ -2264,8 +2474,8 @@ const lines = [
2264
2474
  code: "BIOIMPEDANCIA_PERCENTUAL_MASSA_MUSCULAR",
2265
2475
  description: "Percentual de massa muscula",
2266
2476
  parent: "68ee6709dbeb63de67643d41",
2267
- line: 50,
2268
- column: 1,
2477
+ line: 49,
2478
+ column: 2,
2269
2479
  type: "QUESTION",
2270
2480
  typeAnswer: "OPEN_NUMBER",
2271
2481
  category: "ANTHROPOMETRY",
@@ -2281,16 +2491,16 @@ const lines = [
2281
2491
  requestGraphicData: [],
2282
2492
  tips: [],
2283
2493
  createdAtDateTime: "2025-10-14T15:10:54.092Z",
2284
- updatedAtDateTime: "2025-10-14T15:10:54.092Z",
2494
+ updatedAtDateTime: "2025-11-17T19:36:26.703Z",
2285
2495
  __v: 0,
2286
2496
  screenPlacement: 1,
2287
- lineId: "c2affdca-afaa-427c-aac4-3863251b7e78"
2497
+ lineId: "e14d5891-7431-4373-8049-6fb6118f502e"
2288
2498
  }
2289
2499
  ]
2290
2500
  },
2291
2501
  {
2292
- id: "5a5d0f88-fa20-41c2-9b6a-43733246ac40",
2293
- line: 51,
2502
+ id: "56aa60a0-a9be-4d48-98eb-7a5b8b6e3ea1",
2503
+ line: 50,
2294
2504
  collumns: [
2295
2505
  {
2296
2506
  _id: "68ee681cdbeb63de67643d59",
@@ -2299,7 +2509,7 @@ const lines = [
2299
2509
  code: "BIOIMPEDANCIA_GORDURA_CORPORAL",
2300
2510
  description: "Gordura corporal",
2301
2511
  parent: "68ee6709dbeb63de67643d41",
2302
- line: 51,
2512
+ line: 50,
2303
2513
  column: 1,
2304
2514
  type: "QUESTION",
2305
2515
  typeAnswer: "OPEN_NUMBER",
@@ -2316,17 +2526,11 @@ const lines = [
2316
2526
  requestGraphicData: [],
2317
2527
  tips: [],
2318
2528
  createdAtDateTime: "2025-10-14T15:11:24.687Z",
2319
- updatedAtDateTime: "2025-10-14T15:11:24.687Z",
2529
+ updatedAtDateTime: "2025-11-17T19:36:45.920Z",
2320
2530
  __v: 0,
2321
2531
  screenPlacement: 1,
2322
- lineId: "5a5d0f88-fa20-41c2-9b6a-43733246ac40"
2323
- }
2324
- ]
2325
- },
2326
- {
2327
- id: "37518e71-bea6-4720-9219-4b4edd475238",
2328
- line: 52,
2329
- collumns: [
2532
+ lineId: "56aa60a0-a9be-4d48-98eb-7a5b8b6e3ea1"
2533
+ },
2330
2534
  {
2331
2535
  _id: "68ee685fdbeb63de67643d61",
2332
2536
  form: "689e029db13c27189bce136d",
@@ -2334,8 +2538,8 @@ const lines = [
2334
2538
  code: "BIOIMPEDANCIA_MASSA_LIVRE_DE_GORDURA",
2335
2539
  description: "Massa livre de gordura",
2336
2540
  parent: "68ee6709dbeb63de67643d41",
2337
- line: 52,
2338
- column: 1,
2541
+ line: 50,
2542
+ column: 2,
2339
2543
  type: "QUESTION",
2340
2544
  typeAnswer: "OPEN_NUMBER",
2341
2545
  category: "ANTHROPOMETRY",
@@ -2351,16 +2555,16 @@ const lines = [
2351
2555
  requestGraphicData: [],
2352
2556
  tips: [],
2353
2557
  createdAtDateTime: "2025-10-14T15:12:31.633Z",
2354
- updatedAtDateTime: "2025-10-14T15:12:31.633Z",
2558
+ updatedAtDateTime: "2025-11-17T19:36:58.897Z",
2355
2559
  __v: 0,
2356
2560
  screenPlacement: 1,
2357
- lineId: "37518e71-bea6-4720-9219-4b4edd475238"
2561
+ lineId: "56aa60a0-a9be-4d48-98eb-7a5b8b6e3ea1"
2358
2562
  }
2359
2563
  ]
2360
2564
  },
2361
2565
  {
2362
- id: "16a0e54d-0962-4289-bca4-21be55956761",
2363
- line: 53,
2566
+ id: "cb2bf781-a335-4790-b6f9-98a92bf5d590",
2567
+ line: 51,
2364
2568
  collumns: [
2365
2569
  {
2366
2570
  _id: "68ee6892dbeb63de67643d69",
@@ -2369,7 +2573,7 @@ const lines = [
2369
2573
  code: "BIOIMPEDANCIA_PERCENTUAL_AGUA_INTRACELULAR",
2370
2574
  description: "Percentual água intracelular",
2371
2575
  parent: "68ee6709dbeb63de67643d41",
2372
- line: 53,
2576
+ line: 51,
2373
2577
  column: 1,
2374
2578
  type: "QUESTION",
2375
2579
  typeAnswer: "OPEN_NUMBER",
@@ -2386,17 +2590,11 @@ const lines = [
2386
2590
  requestGraphicData: [],
2387
2591
  tips: [],
2388
2592
  createdAtDateTime: "2025-10-14T15:13:22.962Z",
2389
- updatedAtDateTime: "2025-10-14T15:13:22.962Z",
2593
+ updatedAtDateTime: "2025-11-17T19:37:18.790Z",
2390
2594
  __v: 0,
2391
2595
  screenPlacement: 1,
2392
- lineId: "16a0e54d-0962-4289-bca4-21be55956761"
2393
- }
2394
- ]
2395
- },
2396
- {
2397
- id: "5503fb45-b0f1-41fb-b6b3-5260696c153b",
2398
- line: 54,
2399
- collumns: [
2596
+ lineId: "cb2bf781-a335-4790-b6f9-98a92bf5d590"
2597
+ },
2400
2598
  {
2401
2599
  _id: "68ee68afdbeb63de67643d71",
2402
2600
  form: "689e029db13c27189bce136d",
@@ -2404,8 +2602,8 @@ const lines = [
2404
2602
  code: "BIOIMPEDANCIA_AGUA_INTRACELULAR",
2405
2603
  description: "Água intracelular",
2406
2604
  parent: "68ee6709dbeb63de67643d41",
2407
- line: 54,
2408
- column: 1,
2605
+ line: 51,
2606
+ column: 2,
2409
2607
  type: "QUESTION",
2410
2608
  typeAnswer: "OPEN_NUMBER",
2411
2609
  category: "ANTHROPOMETRY",
@@ -2421,16 +2619,16 @@ const lines = [
2421
2619
  requestGraphicData: [],
2422
2620
  tips: [],
2423
2621
  createdAtDateTime: "2025-10-14T15:13:51.002Z",
2424
- updatedAtDateTime: "2025-10-14T15:13:51.002Z",
2622
+ updatedAtDateTime: "2025-11-17T19:37:40.530Z",
2425
2623
  __v: 0,
2426
2624
  screenPlacement: 1,
2427
- lineId: "5503fb45-b0f1-41fb-b6b3-5260696c153b"
2625
+ lineId: "cb2bf781-a335-4790-b6f9-98a92bf5d590"
2428
2626
  }
2429
2627
  ]
2430
2628
  },
2431
2629
  {
2432
- id: "9f43357f-4254-4e74-b264-f04a9c434e01",
2433
- line: 55,
2630
+ id: "3107cf5f-45a3-4ad4-ab26-7c16ebd45eae",
2631
+ line: 52,
2434
2632
  collumns: [
2435
2633
  {
2436
2634
  _id: "68ee68cfdbeb63de67643d79",
@@ -2439,7 +2637,7 @@ const lines = [
2439
2637
  code: "BIOIMPEDANCIA_PESO_OSESO_ESTIMADO",
2440
2638
  description: "Peso ósseo estimado",
2441
2639
  parent: "68ee6709dbeb63de67643d41",
2442
- line: 55,
2640
+ line: 52,
2443
2641
  column: 1,
2444
2642
  type: "QUESTION",
2445
2643
  typeAnswer: "OPEN_NUMBER",
@@ -2456,17 +2654,11 @@ const lines = [
2456
2654
  requestGraphicData: [],
2457
2655
  tips: [],
2458
2656
  createdAtDateTime: "2025-10-14T15:14:23.633Z",
2459
- updatedAtDateTime: "2025-10-14T15:14:23.633Z",
2657
+ updatedAtDateTime: "2025-11-17T19:37:56.229Z",
2460
2658
  __v: 0,
2461
2659
  screenPlacement: 1,
2462
- lineId: "9f43357f-4254-4e74-b264-f04a9c434e01"
2463
- }
2464
- ]
2465
- },
2466
- {
2467
- id: "567fb50a-1cd8-4396-b046-0001c380adcb",
2468
- line: 56,
2469
- collumns: [
2660
+ lineId: "3107cf5f-45a3-4ad4-ab26-7c16ebd45eae"
2661
+ },
2470
2662
  {
2471
2663
  _id: "68ee68f7dbeb63de67643d81",
2472
2664
  form: "689e029db13c27189bce136d",
@@ -2474,8 +2666,8 @@ const lines = [
2474
2666
  code: "BIOIMPEDANCIA_PERCENTUAL_GORDURA_VISCERAL",
2475
2667
  description: "Percentual de gordura visceral",
2476
2668
  parent: "68ee6709dbeb63de67643d41",
2477
- line: 56,
2478
- column: 1,
2669
+ line: 52,
2670
+ column: 2,
2479
2671
  type: "QUESTION",
2480
2672
  typeAnswer: "OPEN_NUMBER",
2481
2673
  category: "ANTHROPOMETRY",
@@ -2491,16 +2683,16 @@ const lines = [
2491
2683
  requestGraphicData: [],
2492
2684
  tips: [],
2493
2685
  createdAtDateTime: "2025-10-14T15:15:03.250Z",
2494
- updatedAtDateTime: "2025-10-14T15:15:03.250Z",
2686
+ updatedAtDateTime: "2025-11-17T19:38:10.017Z",
2495
2687
  __v: 0,
2496
2688
  screenPlacement: 1,
2497
- lineId: "567fb50a-1cd8-4396-b046-0001c380adcb"
2689
+ lineId: "3107cf5f-45a3-4ad4-ab26-7c16ebd45eae"
2498
2690
  }
2499
2691
  ]
2500
2692
  },
2501
2693
  {
2502
- id: "e485074a-94a8-4b16-a596-634665467b69",
2503
- line: 57,
2694
+ id: "ef458710-c071-4129-ac12-fab638b95136",
2695
+ line: 53,
2504
2696
  collumns: [
2505
2697
  {
2506
2698
  _id: "68ee6917dbeb63de67643d89",
@@ -2509,7 +2701,7 @@ const lines = [
2509
2701
  code: "BIOIMPEDANCIA_IDADE_METABOLICA",
2510
2702
  description: "Idade metabólica",
2511
2703
  parent: "68ee6709dbeb63de67643d41",
2512
- line: 57,
2704
+ line: 53,
2513
2705
  column: 1,
2514
2706
  type: "QUESTION",
2515
2707
  typeAnswer: "OPEN_NUMBER",
@@ -2526,20 +2718,20 @@ const lines = [
2526
2718
  requestGraphicData: [],
2527
2719
  tips: [],
2528
2720
  createdAtDateTime: "2025-10-14T15:15:35.293Z",
2529
- updatedAtDateTime: "2025-10-14T15:15:35.293Z",
2721
+ updatedAtDateTime: "2025-11-17T19:38:28.706Z",
2530
2722
  __v: 0,
2531
2723
  screenPlacement: 1,
2532
- lineId: "e485074a-94a8-4b16-a596-634665467b69"
2724
+ lineId: "ef458710-c071-4129-ac12-fab638b95136"
2533
2725
  }
2534
2726
  ]
2535
2727
  }
2536
2728
  ],
2537
- lineId: "696f0021-c620-4c3f-bf17-f767a2e69457"
2729
+ lineId: "316e9470-6f40-405f-9940-672bc5ff804e"
2538
2730
  }
2539
2731
  ]
2540
2732
  },
2541
2733
  {
2542
- id: "33239b9a-ea44-4b05-814b-83aa32e42b9c",
2734
+ id: "21808754-eb9e-42c5-b8c1-950b8a44ab6b",
2543
2735
  line: 58,
2544
2736
  collumns: [
2545
2737
  {
@@ -2568,7 +2760,7 @@ const lines = [
2568
2760
  screenPlacement: 1,
2569
2761
  lines: [
2570
2762
  {
2571
- id: "000d235d-7afc-4517-bb61-6f1e340566f0",
2763
+ id: "e6f8c03d-8c15-474b-a004-38a516e7d2f6",
2572
2764
  line: 59,
2573
2765
  collumns: [
2574
2766
  {
@@ -2598,15 +2790,8 @@ const lines = [
2598
2790
  updatedAtDateTime: "2025-10-14T15:24:33.030Z",
2599
2791
  __v: 0,
2600
2792
  screenPlacement: 1,
2601
- lineId: "000d235d-7afc-4517-bb61-6f1e340566f0",
2602
- answer: "10"
2603
- }
2604
- ]
2605
- },
2606
- {
2607
- id: "56456ab1-8ac2-401c-8596-efbc3dacb5fc",
2608
- line: 60,
2609
- collumns: [
2793
+ lineId: "e6f8c03d-8c15-474b-a004-38a516e7d2f6"
2794
+ },
2610
2795
  {
2611
2796
  _id: "68ee6b50dbeb63de67643da1",
2612
2797
  form: "689e029db13c27189bce136d",
@@ -2614,8 +2799,8 @@ const lines = [
2614
2799
  code: "DIAMETRO_OSSEO_JOELHO",
2615
2800
  description: "Diametro bicondilar femoral - Joelho",
2616
2801
  parent: "68ee6a2cdbeb63de67643d91",
2617
- line: 60,
2618
- column: 1,
2802
+ line: 59,
2803
+ column: 2,
2619
2804
  type: "QUESTION",
2620
2805
  typeAnswer: "OPEN_NUMBER",
2621
2806
  category: "ANTHROPOMETRY",
@@ -2631,16 +2816,15 @@ const lines = [
2631
2816
  requestGraphicData: [],
2632
2817
  tips: [],
2633
2818
  createdAtDateTime: "2025-10-14T15:25:04.292Z",
2634
- updatedAtDateTime: "2025-10-14T15:25:04.292Z",
2819
+ updatedAtDateTime: "2025-11-17T19:42:11.838Z",
2635
2820
  __v: 0,
2636
2821
  screenPlacement: 1,
2637
- lineId: "56456ab1-8ac2-401c-8596-efbc3dacb5fc",
2638
- answer: "15"
2822
+ lineId: "e6f8c03d-8c15-474b-a004-38a516e7d2f6"
2639
2823
  }
2640
2824
  ]
2641
2825
  },
2642
2826
  {
2643
- id: "39b49515-6fe0-4b9a-aaa2-6c80be77a48e",
2827
+ id: "90c2d927-4476-45dc-aef0-59fd9d0b33ca",
2644
2828
  line: 61,
2645
2829
  collumns: [
2646
2830
  {
@@ -2670,18 +2854,17 @@ const lines = [
2670
2854
  updatedAtDateTime: "2025-10-14T15:25:26.642Z",
2671
2855
  __v: 0,
2672
2856
  screenPlacement: 1,
2673
- lineId: "39b49515-6fe0-4b9a-aaa2-6c80be77a48e",
2674
- answer: "15"
2857
+ lineId: "90c2d927-4476-45dc-aef0-59fd9d0b33ca"
2675
2858
  }
2676
2859
  ]
2677
2860
  }
2678
2861
  ],
2679
- lineId: "33239b9a-ea44-4b05-814b-83aa32e42b9c"
2862
+ lineId: "21808754-eb9e-42c5-b8c1-950b8a44ab6b"
2680
2863
  }
2681
2864
  ]
2682
2865
  },
2683
2866
  {
2684
- id: "a9fa72fe-5106-4c93-ac09-b6ee2c4cfd5e",
2867
+ id: "ee1645d3-518c-4613-a570-1d4af9ad7668",
2685
2868
  line: 62,
2686
2869
  collumns: [
2687
2870
  {
@@ -2710,14 +2893,14 @@ const lines = [
2710
2893
  screenPlacement: 1,
2711
2894
  lines: [
2712
2895
  {
2713
- id: "e8c51658-e55b-415b-b64a-d24e5fdf8bc4",
2896
+ id: "aa3fd27a-3198-4e20-af5d-9eee98a0fab0",
2714
2897
  line: 63,
2715
2898
  collumns: [
2716
2899
  {
2717
- _id: "68ee8f0180b7d807773414ef",
2900
+ _id: "691b7312bd480d6d34aa18b5",
2718
2901
  form: "689e029db13c27189bce136d",
2719
- sequence: 76,
2720
- code: "FOTO_FRENTE",
2902
+ sequence: 98,
2903
+ code: "FOTO_HOMEM_FRENTE",
2721
2904
  description: "Foto de frente",
2722
2905
  parent: "68ee8abc80b7d807773414e7",
2723
2906
  line: 63,
@@ -2726,7 +2909,7 @@ const lines = [
2726
2909
  typeAnswer: "UPLOAD_FILE",
2727
2910
  category: "ANTHROPOMETRY",
2728
2911
  variantView: "SINGLE_FILE",
2729
- formulaToEnable: "true",
2912
+ formulaToEnable: "'${PATIENT_GENRE}' === 'MALE'",
2730
2913
  active: true,
2731
2914
  show: true,
2732
2915
  readOnly: false,
@@ -2735,23 +2918,23 @@ const lines = [
2735
2918
  uploadFileConfig: {
2736
2919
  typeFile: "IMAGE",
2737
2920
  acceptablesExtensions: ["jpg", "jpeg", "png"],
2738
- thumbExample: "https://skydiet-asset.s3.us-east-2.amazonaws.com/thumb-shadow-front-side.png"
2921
+ thumbExample: "https://skydiet-asset.s3.us-east-2.amazonaws.com/thumb-shadow-front-side-man.png",
2922
+ maxSizeInBytes: 8192
2739
2923
  },
2740
2924
  options: [],
2741
2925
  validations: [],
2742
2926
  requestGraphicData: [],
2743
2927
  tips: [],
2744
- createdAtDateTime: "2025-10-14T17:57:21.200Z",
2745
- updatedAtDateTime: "2025-10-14T17:57:21.200Z",
2928
+ createdAtDateTime: "2025-11-17T19:10:10.040Z",
2929
+ updatedAtDateTime: "2025-11-17T19:14:00.127Z",
2746
2930
  __v: 0,
2747
- screenPlacement: 1,
2748
- lineId: "e8c51658-e55b-415b-b64a-d24e5fdf8bc4"
2931
+ lineId: "aa3fd27a-3198-4e20-af5d-9eee98a0fab0"
2749
2932
  },
2750
2933
  {
2751
- _id: "68ee8f2c80b7d807773414f6",
2934
+ _id: "691b734fbd480d6d34aa18bf",
2752
2935
  form: "689e029db13c27189bce136d",
2753
- sequence: 77,
2754
- code: "FOTO_COSTAS",
2936
+ sequence: 99,
2937
+ code: "FOTO_HOMEM_COSTAS",
2755
2938
  description: "Foto de costas",
2756
2939
  parent: "68ee8abc80b7d807773414e7",
2757
2940
  line: 63,
@@ -2760,7 +2943,7 @@ const lines = [
2760
2943
  typeAnswer: "UPLOAD_FILE",
2761
2944
  category: "ANTHROPOMETRY",
2762
2945
  variantView: "SINGLE_FILE",
2763
- formulaToEnable: "true",
2946
+ formulaToEnable: "'${PATIENT_GENRE}' === 'MALE'",
2764
2947
  active: true,
2765
2948
  show: true,
2766
2949
  readOnly: false,
@@ -2769,23 +2952,23 @@ const lines = [
2769
2952
  uploadFileConfig: {
2770
2953
  typeFile: "IMAGE",
2771
2954
  acceptablesExtensions: ["jpg", "jpeg", "png"],
2772
- thumbExample: "https://skydiet-asset.s3.us-east-2.amazonaws.com/thumb-shadow-back-side.png"
2955
+ thumbExample: "https://skydiet-asset.s3.us-east-2.amazonaws.com/thumb-shadow-back-side-man.png",
2956
+ maxSizeInBytes: 8192
2773
2957
  },
2774
2958
  options: [],
2775
2959
  validations: [],
2776
2960
  requestGraphicData: [],
2777
2961
  tips: [],
2778
- createdAtDateTime: "2025-10-14T17:58:04.986Z",
2779
- updatedAtDateTime: "2025-10-14T17:58:04.986Z",
2962
+ createdAtDateTime: "2025-11-17T19:11:11.903Z",
2963
+ updatedAtDateTime: "2025-11-17T19:14:27.527Z",
2780
2964
  __v: 0,
2781
- screenPlacement: 1,
2782
- lineId: "e8c51658-e55b-415b-b64a-d24e5fdf8bc4"
2965
+ lineId: "aa3fd27a-3198-4e20-af5d-9eee98a0fab0"
2783
2966
  },
2784
2967
  {
2785
- _id: "68ee8f4c80b7d807773414fd",
2968
+ _id: "691b73a3bd480d6d34aa18cb",
2786
2969
  form: "689e029db13c27189bce136d",
2787
- sequence: 78,
2788
- code: "FOTO_LADO_DIREITO",
2970
+ sequence: 100,
2971
+ code: "FOTO_HOMEM_LADO_DIREITO",
2789
2972
  description: "Foto lado direito",
2790
2973
  parent: "68ee8abc80b7d807773414e7",
2791
2974
  line: 63,
@@ -2794,7 +2977,7 @@ const lines = [
2794
2977
  typeAnswer: "UPLOAD_FILE",
2795
2978
  category: "ANTHROPOMETRY",
2796
2979
  variantView: "SINGLE_FILE",
2797
- formulaToEnable: "true",
2980
+ formulaToEnable: "'${PATIENT_GENRE}' === 'MALE'",
2798
2981
  active: true,
2799
2982
  show: true,
2800
2983
  readOnly: false,
@@ -2803,23 +2986,23 @@ const lines = [
2803
2986
  uploadFileConfig: {
2804
2987
  typeFile: "IMAGE",
2805
2988
  acceptablesExtensions: ["jpg", "jpeg", "png"],
2806
- thumbExample: "https://skydiet-asset.s3.us-east-2.amazonaws.com/thumb-shadow-right-side.png"
2989
+ thumbExample: "https://skydiet-asset.s3.us-east-2.amazonaws.com/thumb-shadow-right-side-man.png",
2990
+ maxSizeInBytes: 8192
2807
2991
  },
2808
2992
  options: [],
2809
2993
  validations: [],
2810
2994
  requestGraphicData: [],
2811
2995
  tips: [],
2812
- createdAtDateTime: "2025-10-14T17:58:36.838Z",
2813
- updatedAtDateTime: "2025-10-14T17:58:36.838Z",
2996
+ createdAtDateTime: "2025-11-17T19:12:35.616Z",
2997
+ updatedAtDateTime: "2025-11-17T19:14:41.569Z",
2814
2998
  __v: 0,
2815
- screenPlacement: 1,
2816
- lineId: "e8c51658-e55b-415b-b64a-d24e5fdf8bc4"
2999
+ lineId: "aa3fd27a-3198-4e20-af5d-9eee98a0fab0"
2817
3000
  },
2818
3001
  {
2819
- _id: "68ee8f5c80b7d80777341504",
3002
+ _id: "691b73c5bd480d6d34aa18d3",
2820
3003
  form: "689e029db13c27189bce136d",
2821
- sequence: 79,
2822
- code: "FOTO_LADO_ESQUERDO",
3004
+ sequence: 101,
3005
+ code: "FOTO_HOMEM_LADO_ESQUERDO",
2823
3006
  description: "Foto lado esquerdo",
2824
3007
  parent: "68ee8abc80b7d807773414e7",
2825
3008
  line: 63,
@@ -2828,7 +3011,7 @@ const lines = [
2828
3011
  typeAnswer: "UPLOAD_FILE",
2829
3012
  category: "ANTHROPOMETRY",
2830
3013
  variantView: "SINGLE_FILE",
2831
- formulaToEnable: "true",
3014
+ formulaToEnable: "'${PATIENT_GENRE}' === 'MALE'",
2832
3015
  active: true,
2833
3016
  show: true,
2834
3017
  readOnly: false,
@@ -2837,27 +3020,27 @@ const lines = [
2837
3020
  uploadFileConfig: {
2838
3021
  typeFile: "IMAGE",
2839
3022
  acceptablesExtensions: ["jpg", "jpeg", "png"],
2840
- thumbExample: "https://skydiet-asset.s3.us-east-2.amazonaws.com/thumb-shadow-left-side.png"
3023
+ thumbExample: "https://skydiet-asset.s3.us-east-2.amazonaws.com/thumb-shadow-left-side-man.png",
3024
+ maxSizeInBytes: 8192
2841
3025
  },
2842
3026
  options: [],
2843
3027
  validations: [],
2844
3028
  requestGraphicData: [],
2845
3029
  tips: [],
2846
- createdAtDateTime: "2025-10-14T17:58:52.521Z",
2847
- updatedAtDateTime: "2025-10-14T17:58:52.521Z",
3030
+ createdAtDateTime: "2025-11-17T19:13:09.674Z",
3031
+ updatedAtDateTime: "2025-11-17T19:14:55.654Z",
2848
3032
  __v: 0,
2849
- screenPlacement: 1,
2850
- lineId: "e8c51658-e55b-415b-b64a-d24e5fdf8bc4"
3033
+ lineId: "aa3fd27a-3198-4e20-af5d-9eee98a0fab0"
2851
3034
  }
2852
3035
  ]
2853
3036
  }
2854
3037
  ],
2855
- lineId: "a9fa72fe-5106-4c93-ac09-b6ee2c4cfd5e"
3038
+ lineId: "ee1645d3-518c-4613-a570-1d4af9ad7668"
2856
3039
  }
2857
3040
  ]
2858
3041
  },
2859
3042
  {
2860
- id: "ba96a504-7101-45ea-b787-429b9f6a0260",
3043
+ id: "0789bd5e-06bb-4921-a05c-def8e62bb724",
2861
3044
  line: 64,
2862
3045
  collumns: [
2863
3046
  {
@@ -2911,7 +3094,7 @@ const lines = [
2911
3094
  screenPlacement: 2,
2912
3095
  lines: [
2913
3096
  {
2914
- id: "55e8bcfe-93c2-4e58-8fec-89963f90199f",
3097
+ id: "7d82619c-9c31-42d7-9f70-b43d610c2b9f",
2915
3098
  line: 65,
2916
3099
  collumns: [
2917
3100
  {
@@ -2928,7 +3111,7 @@ const lines = [
2928
3111
  category: "ANTHROPOMETRY",
2929
3112
  measurementUnit: "Kg",
2930
3113
  formulaToAnswer: "${CURRENT_WEIGHT}",
2931
- formulaToReferenceValue: "Number('${HEIGHT_IN_CM}') ? (25 * ( (Number('${HEIGHT_IN_CM}') / 100)**2)) + ' kg' : undefined",
3114
+ formulaToReferenceValue: "Number('${HEIGHT_IN_CM}') ? (25 * ( (Number('${HEIGHT_IN_CM}') / 100)**2)) : undefined",
2932
3115
  formulaToClassification: "",
2933
3116
  formulaToEnable: "true",
2934
3117
  active: true,
@@ -2945,14 +3128,12 @@ const lines = [
2945
3128
  __v: 0,
2946
3129
  screenPlacement: 2,
2947
3130
  formulaToClassificationLabel: "",
2948
- lineId: "55e8bcfe-93c2-4e58-8fec-89963f90199f",
2949
- referenceValue: "90.25 kg",
2950
- answer: 80
3131
+ lineId: "7d82619c-9c31-42d7-9f70-b43d610c2b9f"
2951
3132
  }
2952
3133
  ]
2953
3134
  },
2954
3135
  {
2955
- id: "16f5433d-94ef-4b10-8dee-d875bea5b479",
3136
+ id: "9af8a379-d4ad-4fb2-88bf-9ed75c448815",
2956
3137
  line: 66,
2957
3138
  collumns: [
2958
3139
  {
@@ -2986,13 +3167,12 @@ const lines = [
2986
3167
  __v: 0,
2987
3168
  screenPlacement: 2,
2988
3169
  formulaToClassificationLabel: "",
2989
- lineId: "16f5433d-94ef-4b10-8dee-d875bea5b479",
2990
- answer: 1.9
3170
+ lineId: "9af8a379-d4ad-4fb2-88bf-9ed75c448815"
2991
3171
  }
2992
3172
  ]
2993
3173
  },
2994
3174
  {
2995
- id: "7343c9ec-c8a1-4ffd-97ee-c33404781674",
3175
+ id: "baac27d3-e932-4132-a08f-3db284762587",
2996
3176
  line: 67,
2997
3177
  collumns: [
2998
3178
  {
@@ -3026,16 +3206,13 @@ const lines = [
3026
3206
  screenPlacement: 2,
3027
3207
  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",
3028
3208
  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",
3029
- lineId: "7343c9ec-c8a1-4ffd-97ee-c33404781674",
3030
3209
  referenceValue: "18,5 a 24,9 kg / m²",
3031
- classificationLabel: "Normal",
3032
- classificationColor: "#C4DBEE",
3033
- answer: 22.1606648199446
3210
+ lineId: "baac27d3-e932-4132-a08f-3db284762587"
3034
3211
  }
3035
3212
  ]
3036
3213
  },
3037
3214
  {
3038
- id: "bb3c4adb-b1f8-4b40-aac6-1cde152289e2",
3215
+ id: "eb1101b3-8626-4c9c-a241-5b7a78498ba7",
3039
3216
  line: 68,
3040
3217
  collumns: [
3041
3218
  {
@@ -3068,13 +3245,13 @@ const lines = [
3068
3245
  screenPlacement: 2,
3069
3246
  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",
3070
3247
  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",
3071
- referenceValue: "< 0.85",
3072
- lineId: "bb3c4adb-b1f8-4b40-aac6-1cde152289e2"
3248
+ referenceValue: "< 0.9",
3249
+ lineId: "eb1101b3-8626-4c9c-a241-5b7a78498ba7"
3073
3250
  }
3074
3251
  ]
3075
3252
  },
3076
3253
  {
3077
- id: "1b06dcd3-bdcc-4062-8add-7eb4cb817778",
3254
+ id: "2a8bf460-73ac-4934-b073-2c637c160a17",
3078
3255
  line: 69,
3079
3256
  collumns: [
3080
3257
  {
@@ -3107,13 +3284,13 @@ const lines = [
3107
3284
  screenPlacement: 2,
3108
3285
  formulaToClassificationLabel: "Number('${RCA_TABLE_RESULT}') ? Number('${RCA_TABLE_RESULT}') > 0.5 ? 'Elevado' : 'Normal' : undefined",
3109
3286
  formulaToClassificationColor: "Number('${RCA_TABLE_RESULT}') ? Number('${RCA_TABLE_RESULT}') > 0.5 ? '#ffe9e9' : '#ecf6ff' : undefined",
3110
- lineId: "1b06dcd3-bdcc-4062-8add-7eb4cb817778",
3111
- referenceValue: "< 0.5"
3287
+ referenceValue: "< 0.5",
3288
+ lineId: "2a8bf460-73ac-4934-b073-2c637c160a17"
3112
3289
  }
3113
3290
  ]
3114
3291
  },
3115
3292
  {
3116
- id: "0116d700-ade9-4746-9e67-a6b8a697f13a",
3293
+ id: "ab647e2a-fb68-403e-8e38-55796a2e6521",
3117
3294
  line: 70,
3118
3295
  collumns: [
3119
3296
  {
@@ -3144,32 +3321,73 @@ const lines = [
3144
3321
  __v: 0,
3145
3322
  screenPlacement: 2,
3146
3323
  measurementUnit: "cm²",
3147
- lineId: "0116d700-ade9-4746-9e67-a6b8a697f13a"
3324
+ lineId: "ab647e2a-fb68-403e-8e38-55796a2e6521"
3148
3325
  }
3149
3326
  ]
3150
- }
3151
- ],
3152
- lineId: "ba96a504-7101-45ea-b787-429b9f6a0260"
3153
- }
3154
- ]
3155
- },
3156
- {
3157
- id: "51c9ce3c-be60-4c1e-9054-a90c0a687915",
3158
- line: 70,
3159
- collumns: [
3160
- {
3161
- _id: "68efad48fbcea8e6b466aeec",
3162
- form: "689e029db13c27189bce136d",
3163
- sequence: 86,
3164
- code: "SKY-86-FQDG",
3165
- description: "Composição corporal",
3166
- line: 70,
3167
- column: 1,
3168
- type: "TABLE",
3169
- category: "ANTHROPOMETRY",
3170
- formulaToEnable: "true",
3171
- active: true,
3172
- show: true,
3327
+ },
3328
+ {
3329
+ id: "81cbb118-31e1-4123-8a95-3a7d0d083ed3",
3330
+ line: 120,
3331
+ collumns: [
3332
+ {
3333
+ _id: "6928a0d55fd3cd870dd6d242",
3334
+ form: "689e029db13c27189bce136d",
3335
+ sequence: 141,
3336
+ code: "CIRCUNFERENCIA_CINTURA_REFERENCIAS",
3337
+ description: "Circunferência da cintura",
3338
+ parent: "68ef9a31fbcea8e6b466aeb5",
3339
+ line: 120,
3340
+ column: 1,
3341
+ type: "QUESTION",
3342
+ typeAnswer: "OPEN_NUMBER",
3343
+ category: "ANTHROPOMETRY",
3344
+ measurementUnit: "cm",
3345
+ formulaToAnswer: "Number('${CIRCUNFERENCIA_CINTURA}') ? Number('${CIRCUNFERENCIA_CINTURA}') : undefined",
3346
+ formulaToReferenceValue: "'${PATIENT_GENRE}' === 'FEMALE' ? '< 102' : '< 88'",
3347
+ formulaToClassificationLabel: "Number('${CIRCUNFERENCIA_CINTURA}') > 102 && '${PATIENT_GENRE}' === 'FEMALE' ? 'Risco metabólico' : Number('${CIRCUNFERENCIA_CINTURA}') > 88 && '${PATIENT_GENRE}' === 'MALE' ? 'Risco metabólico' : undefined",
3348
+ formulaToClassificationColor: "Number('${CIRCUNFERENCIA_CINTURA}') > 102 && '${PATIENT_GENRE}' === 'FEMALE' ? '#ffe9e9' : Number('${CIRCUNFERENCIA_CINTURA}') > 88 && '${PATIENT_GENRE}' === 'MALE' ? '#ffe9e9' : '#ecf6ff'",
3349
+ formulaToEnable: "true",
3350
+ active: true,
3351
+ show: true,
3352
+ readOnly: false,
3353
+ required: false,
3354
+ screenPlacement: 2,
3355
+ ellegibleForComparison: false,
3356
+ options: [],
3357
+ validations: [],
3358
+ requestGraphicData: [],
3359
+ tips: [],
3360
+ createdAtDateTime: "2025-11-27T19:04:53.910Z",
3361
+ updatedAtDateTime: "2025-11-27T19:04:53.910Z",
3362
+ __v: 0,
3363
+ referenceValue: "< 88",
3364
+ classificationColor: "#ecf6ff",
3365
+ lineId: "81cbb118-31e1-4123-8a95-3a7d0d083ed3"
3366
+ }
3367
+ ]
3368
+ }
3369
+ ],
3370
+ lineId: "0789bd5e-06bb-4921-a05c-def8e62bb724"
3371
+ }
3372
+ ]
3373
+ },
3374
+ {
3375
+ id: "689f267f-c3b3-4709-b7f0-678802ab37bb",
3376
+ line: 70,
3377
+ collumns: [
3378
+ {
3379
+ _id: "68efad48fbcea8e6b466aeec",
3380
+ form: "689e029db13c27189bce136d",
3381
+ sequence: 86,
3382
+ code: "SKY-86-FQDG",
3383
+ description: "Composição corporal",
3384
+ line: 70,
3385
+ column: 1,
3386
+ type: "TABLE",
3387
+ category: "ANTHROPOMETRY",
3388
+ formulaToEnable: "true",
3389
+ active: true,
3390
+ show: true,
3173
3391
  readOnly: false,
3174
3392
  required: false,
3175
3393
  ellegibleForComparison: false,
@@ -3207,7 +3425,7 @@ const lines = [
3207
3425
  screenPlacement: 2,
3208
3426
  lines: [
3209
3427
  {
3210
- id: "414bcceb-7976-4bf6-8fed-b6922f37df9f",
3428
+ id: "18fc9b43-6dad-44b8-bbdf-85153ba4cd95",
3211
3429
  line: 71,
3212
3430
  collumns: [
3213
3431
  {
@@ -3222,7 +3440,7 @@ const lines = [
3222
3440
  type: "QUESTION",
3223
3441
  typeAnswer: "OPEN_NUMBER",
3224
3442
  category: "ANTHROPOMETRY",
3225
- formulaToAnswer: "'${FORMULA_PERCENT_FAT}'",
3443
+ formulaToAnswer: "'${PROTOCOL_USED}'",
3226
3444
  formulaToEnable: "true",
3227
3445
  active: true,
3228
3446
  show: true,
@@ -3234,16 +3452,51 @@ const lines = [
3234
3452
  requestGraphicData: [],
3235
3453
  tips: [],
3236
3454
  createdAtDateTime: "2025-10-15T14:20:47.735Z",
3237
- updatedAtDateTime: "2025-10-15T14:20:47.735Z",
3455
+ updatedAtDateTime: "2025-11-17T19:49:14.461Z",
3238
3456
  __v: 0,
3239
3457
  screenPlacement: 2,
3240
- lineId: "414bcceb-7976-4bf6-8fed-b6922f37df9f",
3241
- answer: "POLLOCK_7_DOBRAS"
3458
+ lines: [
3459
+ {
3460
+ id: "e1ecc6fd-f43d-41fc-9953-e91810dee936",
3461
+ line: 81,
3462
+ collumns: [
3463
+ {
3464
+ _id: "691b7bf2bd480d6d34aa1a1d",
3465
+ form: "689e029db13c27189bce136d",
3466
+ sequence: 102,
3467
+ code: "PROTOCOL_USED",
3468
+ description: "Protocolo",
3469
+ parent: "68efadbffbcea8e6b466aef8",
3470
+ line: 81,
3471
+ column: 1,
3472
+ type: "QUESTION",
3473
+ typeAnswer: "OPEN_TEXT",
3474
+ category: "ANTHROPOMETRY",
3475
+ formulaToAnswer: "!'${FORMULA_PERCENT_FAT}' ? undefined : '${FORMULA_PERCENT_FAT}' === 'POLLOCK_3_DOBRAS' ? 'Pollock 3 dobras' : '${FORMULA_PERCENT_FAT}' === 'POLLOCK_7_DOBRAS' ? 'Pollock 7 dobras' : undefined;",
3476
+ formulaToEnable: "true",
3477
+ active: true,
3478
+ show: true,
3479
+ readOnly: false,
3480
+ required: false,
3481
+ ellegibleForComparison: false,
3482
+ options: [],
3483
+ validations: [],
3484
+ requestGraphicData: [],
3485
+ tips: [],
3486
+ createdAtDateTime: "2025-11-17T19:48:02.834Z",
3487
+ updatedAtDateTime: "2025-11-17T19:48:02.834Z",
3488
+ __v: 0,
3489
+ lineId: "e1ecc6fd-f43d-41fc-9953-e91810dee936"
3490
+ }
3491
+ ]
3492
+ }
3493
+ ],
3494
+ lineId: "18fc9b43-6dad-44b8-bbdf-85153ba4cd95"
3242
3495
  }
3243
3496
  ]
3244
3497
  },
3245
3498
  {
3246
- id: "2067ce39-f250-4e48-bc26-55820a608a90",
3499
+ id: "04edfd29-6397-4882-a066-1ec67cc0bcd4",
3247
3500
  line: 72,
3248
3501
  collumns: [
3249
3502
  {
@@ -3275,14 +3528,13 @@ const lines = [
3275
3528
  updatedAtDateTime: "2025-10-15T14:36:15.391Z",
3276
3529
  __v: 0,
3277
3530
  screenPlacement: 2,
3278
- referenceValue: "20% - 28%",
3279
- lineId: "2067ce39-f250-4e48-bc26-55820a608a90",
3280
- answer: "0.17113422122000888"
3531
+ referenceValue: "18% - 25%",
3532
+ lineId: "04edfd29-6397-4882-a066-1ec67cc0bcd4"
3281
3533
  }
3282
3534
  ]
3283
3535
  },
3284
3536
  {
3285
- id: "166a4a66-ea1a-4187-be98-f1c956dcab47",
3537
+ id: "b032a12f-738e-4a7c-849e-b8bf2480cca3",
3286
3538
  line: 73,
3287
3539
  collumns: [
3288
3540
  {
@@ -3313,13 +3565,12 @@ const lines = [
3313
3565
  updatedAtDateTime: "2025-10-15T14:40:04.251Z",
3314
3566
  __v: 0,
3315
3567
  screenPlacement: 2,
3316
- lineId: "166a4a66-ea1a-4187-be98-f1c956dcab47",
3317
- answer: 13.69073769760071
3568
+ lineId: "b032a12f-738e-4a7c-849e-b8bf2480cca3"
3318
3569
  }
3319
3570
  ]
3320
3571
  },
3321
3572
  {
3322
- id: "8ee86ed3-7fff-4750-82d2-8b7a384b1cf3",
3573
+ id: "f3a50b7b-e689-4445-9b02-973d9b8d73f4",
3323
3574
  line: 74,
3324
3575
  collumns: [
3325
3576
  {
@@ -3335,7 +3586,7 @@ const lines = [
3335
3586
  typeAnswer: "OPEN_NUMBER",
3336
3587
  category: "ANTHROPOMETRY",
3337
3588
  measurementUnit: "Kg",
3338
- formulaToAnswer: "3.02 * ((((Number('${HEIGHT_IN_CM}') / 100)**2)*(Number('${DIAMETRO_OSSEO_PUNHO}') + Number('${DIAMETRO_OSSEO_JOELHO}') ​+ Number('${DIAMETRO_OSSEO_UMERO}'))*400)**0.712)",
3589
+ formulaToAnswer: "3.02 * Math.pow(((Number('${HEIGHT_IN_CM}') / 100) ** 2) * (Number('${DIAMETRO_OSSEO_PUNHO}') + Number('${DIAMETRO_OSSEO_JOELHO}') + Number('${DIAMETRO_OSSEO_UMERO}')), 0.712)",
3339
3590
  formulaToEnable: "true",
3340
3591
  active: true,
3341
3592
  show: true,
@@ -3350,17 +3601,54 @@ const lines = [
3350
3601
  updatedAtDateTime: "2025-10-15T14:40:38.237Z",
3351
3602
  __v: 0,
3352
3603
  screenPlacement: 2,
3353
- lineId: "8ee86ed3-7fff-4750-82d2-8b7a384b1cf3"
3604
+ answer: null,
3605
+ lineId: "f3a50b7b-e689-4445-9b02-973d9b8d73f4"
3606
+ }
3607
+ ]
3608
+ },
3609
+ {
3610
+ id: "9060b661-8429-42e7-a1c0-fe1ddaf95f38",
3611
+ line: 119,
3612
+ collumns: [
3613
+ {
3614
+ _id: "692895d72e961132d4e18aea",
3615
+ form: "689e029db13c27189bce136d",
3616
+ sequence: 140,
3617
+ code: "MASSA_MAGRA",
3618
+ description: "Massa magra",
3619
+ parent: "68efad48fbcea8e6b466aeec",
3620
+ line: 119,
3621
+ column: 1,
3622
+ type: "QUESTION",
3623
+ typeAnswer: "OPEN_NUMBER",
3624
+ category: "ANTHROPOMETRY",
3625
+ measurementUnit: "Kg",
3626
+ formulaToAnswer: "${CURRENT_WEIGHT} - (${CURRENT_WEIGHT} * ${PERC_GORDURA_TABLE_RESULT})",
3627
+ formulaToEnable: "true",
3628
+ active: true,
3629
+ show: true,
3630
+ readOnly: false,
3631
+ required: false,
3632
+ screenPlacement: 2,
3633
+ ellegibleForComparison: false,
3634
+ options: [],
3635
+ validations: [],
3636
+ requestGraphicData: [],
3637
+ tips: [],
3638
+ createdAtDateTime: "2025-11-27T18:17:59.986Z",
3639
+ updatedAtDateTime: "2025-11-27T18:17:59.986Z",
3640
+ __v: 0,
3641
+ lineId: "9060b661-8429-42e7-a1c0-fe1ddaf95f38"
3354
3642
  }
3355
3643
  ]
3356
3644
  }
3357
3645
  ],
3358
- lineId: "51c9ce3c-be60-4c1e-9054-a90c0a687915"
3646
+ lineId: "689f267f-c3b3-4709-b7f0-678802ab37bb"
3359
3647
  }
3360
3648
  ]
3361
3649
  },
3362
3650
  {
3363
- id: "5f2c0254-9f62-4ded-bc85-e4d1196f6918",
3651
+ id: "d546e486-70e7-4c1f-8897-8cf71c6a0de8",
3364
3652
  line: 75,
3365
3653
  collumns: [
3366
3654
  {
@@ -3388,13 +3676,13 @@ const lines = [
3388
3676
  updatedAtDateTime: "2025-10-15T19:58:38.981Z",
3389
3677
  __v: 0,
3390
3678
  screenPlacement: 1,
3391
- answer: "2011-09-22T03:00:00.000Z",
3392
- lineId: "5f2c0254-9f62-4ded-bc85-e4d1196f6918"
3679
+ answer: "1990-01-11T02:00:00.000Z",
3680
+ lineId: "d546e486-70e7-4c1f-8897-8cf71c6a0de8"
3393
3681
  }
3394
3682
  ]
3395
3683
  },
3396
3684
  {
3397
- id: "42d0b61d-769b-4d1e-bd25-d7344ca01778",
3685
+ id: "1835486c-b88d-45a9-bde9-29152ea543c9",
3398
3686
  line: 76,
3399
3687
  collumns: [
3400
3688
  {
@@ -3422,13 +3710,13 @@ const lines = [
3422
3710
  updatedAtDateTime: "2025-10-15T19:59:29.284Z",
3423
3711
  __v: 0,
3424
3712
  screenPlacement: 1,
3425
- answer: "FEMALE",
3426
- lineId: "42d0b61d-769b-4d1e-bd25-d7344ca01778"
3713
+ answer: "MALE",
3714
+ lineId: "1835486c-b88d-45a9-bde9-29152ea543c9"
3427
3715
  }
3428
3716
  ]
3429
3717
  },
3430
3718
  {
3431
- id: "2f681c28-eebf-464f-bd8c-31910b82d5f9",
3719
+ id: "e09609b6-a43c-4474-a9f3-fa5cdce8f48a",
3432
3720
  line: 77,
3433
3721
  collumns: [
3434
3722
  {
@@ -3457,13 +3745,12 @@ const lines = [
3457
3745
  updatedAtDateTime: "2025-10-15T20:01:51.754Z",
3458
3746
  __v: 0,
3459
3747
  screenPlacement: 1,
3460
- answer: 14,
3461
- lineId: "2f681c28-eebf-464f-bd8c-31910b82d5f9"
3748
+ lineId: "e09609b6-a43c-4474-a9f3-fa5cdce8f48a"
3462
3749
  }
3463
3750
  ]
3464
3751
  },
3465
3752
  {
3466
- id: "ee11b211-090c-4c1f-9232-980e869f8f92",
3753
+ id: "154035e4-98e2-428e-a310-fd92633e0d02",
3467
3754
  line: 78,
3468
3755
  collumns: [
3469
3756
  {
@@ -3492,13 +3779,12 @@ const lines = [
3492
3779
  updatedAtDateTime: "2025-10-15T20:02:14.980Z",
3493
3780
  __v: 0,
3494
3781
  screenPlacement: 1,
3495
- answer: 169,
3496
- lineId: "ee11b211-090c-4c1f-9232-980e869f8f92"
3782
+ lineId: "154035e4-98e2-428e-a310-fd92633e0d02"
3497
3783
  }
3498
3784
  ]
3499
3785
  },
3500
3786
  {
3501
- id: "a3133667-bd26-4f8d-b6a0-46ff027bdef1",
3787
+ id: "a20e7552-49cc-4635-8f58-2e973c1f08c1",
3502
3788
  line: 80,
3503
3789
  collumns: [
3504
3790
  {
@@ -3526,14 +3812,907 @@ const lines = [
3526
3812
  createdAtDateTime: "2025-11-11T16:45:47.480Z",
3527
3813
  updatedAtDateTime: "2025-11-11T16:45:47.480Z",
3528
3814
  __v: 0,
3529
- answer: 0.17113422122000888,
3530
- lineId: "a3133667-bd26-4f8d-b6a0-46ff027bdef1"
3815
+ answer: null,
3816
+ lineId: "a20e7552-49cc-4635-8f58-2e973c1f08c1"
3817
+ }
3818
+ ]
3819
+ },
3820
+ {
3821
+ id: "07906acb-7560-4875-9006-64c724512964",
3822
+ line: 82,
3823
+ collumns: [
3824
+ {
3825
+ _id: "691c6af6bd480d6d34aa235a",
3826
+ form: "689e029db13c27189bce136d",
3827
+ sequence: 103,
3828
+ code: "GRAFICO_GANHO_PESO_GRAVIDA_BAIXO_PESO",
3829
+ description: "Gráfico de acompanhamento de peso gestacional",
3830
+ line: 82,
3831
+ column: 1,
3832
+ type: "GRAPHIC",
3833
+ typeAnswer: "OPEN_TEXT",
3834
+ category: "ANTHROPOMETRY",
3835
+ measurementUnit: "kg",
3836
+ formulaToEnable: "true",
3837
+ active: true,
3838
+ show: true,
3839
+ readOnly: false,
3840
+ required: false,
3841
+ ellegibleForComparison: false,
3842
+ graphicData: {
3843
+ datasets: [
3844
+ {
3845
+ label: "p10",
3846
+ data: [
3847
+ {
3848
+ "Idade gestacional": "10",
3849
+ "Ganho de peso gestacional": -1.5
3850
+ },
3851
+ {
3852
+ "Idade gestacional": "11",
3853
+ "Ganho de peso gestacional": -1.2
3854
+ },
3855
+ {
3856
+ "Idade gestacional": "12",
3857
+ "Ganho de peso gestacional": -1
3858
+ },
3859
+ {
3860
+ "Idade gestacional": "13",
3861
+ "Ganho de peso gestacional": -0.7
3862
+ },
3863
+ {
3864
+ "Idade gestacional": "14",
3865
+ "Ganho de peso gestacional": -0.4
3866
+ },
3867
+ {
3868
+ "Idade gestacional": "15",
3869
+ "Ganho de peso gestacional": -0.1
3870
+ },
3871
+ {
3872
+ "Idade gestacional": "16",
3873
+ "Ganho de peso gestacional": 0.2
3874
+ },
3875
+ {
3876
+ "Idade gestacional": "17",
3877
+ "Ganho de peso gestacional": 0.6
3878
+ },
3879
+ {
3880
+ "Idade gestacional": "18",
3881
+ "Ganho de peso gestacional": 0.9
3882
+ },
3883
+ {
3884
+ "Idade gestacional": "19",
3885
+ "Ganho de peso gestacional": 1.3
3886
+ },
3887
+ {
3888
+ "Idade gestacional": "20",
3889
+ "Ganho de peso gestacional": 1.7
3890
+ },
3891
+ {
3892
+ "Idade gestacional": "21",
3893
+ "Ganho de peso gestacional": 2.1
3894
+ },
3895
+ {
3896
+ "Idade gestacional": "22",
3897
+ "Ganho de peso gestacional": 2.5
3898
+ },
3899
+ {
3900
+ "Idade gestacional": "23",
3901
+ "Ganho de peso gestacional": 2.9
3902
+ },
3903
+ {
3904
+ "Idade gestacional": "24",
3905
+ "Ganho de peso gestacional": 3.2
3906
+ },
3907
+ {
3908
+ "Idade gestacional": "25",
3909
+ "Ganho de peso gestacional": 3.6
3910
+ },
3911
+ {
3912
+ "Idade gestacional": "26",
3913
+ "Ganho de peso gestacional": 4
3914
+ },
3915
+ {
3916
+ "Idade gestacional": "27",
3917
+ "Ganho de peso gestacional": 4.3
3918
+ },
3919
+ {
3920
+ "Idade gestacional": "28",
3921
+ "Ganho de peso gestacional": 4.7
3922
+ },
3923
+ {
3924
+ "Idade gestacional": "29",
3925
+ "Ganho de peso gestacional": 5
3926
+ },
3927
+ {
3928
+ "Idade gestacional": "30",
3929
+ "Ganho de peso gestacional": 5.3
3930
+ },
3931
+ {
3932
+ "Idade gestacional": "31",
3933
+ "Ganho de peso gestacional": 5.6
3934
+ },
3935
+ {
3936
+ "Idade gestacional": "32",
3937
+ "Ganho de peso gestacional": 5.9
3938
+ },
3939
+ {
3940
+ "Idade gestacional": "33",
3941
+ "Ganho de peso gestacional": 6.2
3942
+ },
3943
+ {
3944
+ "Idade gestacional": "34",
3945
+ "Ganho de peso gestacional": 6.5
3946
+ },
3947
+ {
3948
+ "Idade gestacional": "35",
3949
+ "Ganho de peso gestacional": 6.7
3950
+ },
3951
+ {
3952
+ "Idade gestacional": "36",
3953
+ "Ganho de peso gestacional": 7
3954
+ },
3955
+ {
3956
+ "Idade gestacional": "37",
3957
+ "Ganho de peso gestacional": 7.2
3958
+ },
3959
+ {
3960
+ "Idade gestacional": "38",
3961
+ "Ganho de peso gestacional": 7.4
3962
+ },
3963
+ {
3964
+ "Idade gestacional": "39",
3965
+ "Ganho de peso gestacional": 7.6
3966
+ },
3967
+ {
3968
+ "Idade gestacional": "40",
3969
+ "Ganho de peso gestacional": 7.9
3970
+ }
3971
+ ],
3972
+ tension: 0.5,
3973
+ pointStyle: "circle",
3974
+ pointRadius: 0,
3975
+ pointHoverRadius: 5,
3976
+ pointBorderColor: "#d0d5ec",
3977
+ pointBackgroundColor: "rgba(94,79,162,0.5)",
3978
+ borderDash: [5, 3],
3979
+ borderWidth: 2,
3980
+ borderColor: "rgba(94,79,162,0.5)",
3981
+ backgroundColor: "rgba(94,79,162,0.5)",
3982
+ fill: "+4"
3983
+ },
3984
+ {
3985
+ label: "p18",
3986
+ data: [
3987
+ {
3988
+ "Idade gestacional": "10",
3989
+ "Ganho de peso gestacional": -0.8
3990
+ },
3991
+ {
3992
+ "Idade gestacional": "13",
3993
+ "Ganho de peso gestacional": 0.2
3994
+ },
3995
+ {
3996
+ "Idade gestacional": "20",
3997
+ "Ganho de peso gestacional": 2.6
3998
+ },
3999
+ {
4000
+ "Idade gestacional": "27",
4001
+ "Ganho de peso gestacional": 5.6
4002
+ },
4003
+ {
4004
+ "Idade gestacional": "40",
4005
+ "Ganho de peso gestacional": 9.7
4006
+ }
4007
+ ],
4008
+ tension: 0.5,
4009
+ pointStyle: "circle",
4010
+ pointRadius: 0,
4011
+ pointHoverRadius: 5,
4012
+ pointBorderColor: "#d0d5ec",
4013
+ pointBackgroundColor: "rgba(94,79,162,0.5)",
4014
+ borderColor: "rgba(94,79,162,0.5)",
4015
+ borderWidth: 2,
4016
+ backgroundColor: "rgba(94,79,162,0.5)",
4017
+ fill: "+1"
4018
+ },
4019
+ {
4020
+ label: "p34",
4021
+ data: [
4022
+ {
4023
+ "Idade gestacional": "10",
4024
+ "Ganho de peso gestacional": 0.2
4025
+ },
4026
+ {
4027
+ "Idade gestacional": "13",
4028
+ "Ganho de peso gestacional": 1.2
4029
+ },
4030
+ {
4031
+ "Idade gestacional": "20",
4032
+ "Ganho de peso gestacional": 4
4033
+ },
4034
+ {
4035
+ "Idade gestacional": "27",
4036
+ "Ganho de peso gestacional": 7.2
4037
+ },
4038
+ {
4039
+ "Idade gestacional": "40",
4040
+ "Ganho de peso gestacional": 12.2
4041
+ }
4042
+ ],
4043
+ tension: 0.5,
4044
+ pointStyle: "circle",
4045
+ pointRadius: 0,
4046
+ pointHoverRadius: 5,
4047
+ pointBorderColor: "#d0d5ec",
4048
+ pointBackgroundColor: "rgba(94,79,162,0.5)",
4049
+ borderColor: "rgba(94,79,162,0.5)",
4050
+ borderWidth: 2,
4051
+ backgroundColor: "rgba(94,79,162,0.5)",
4052
+ fill: false
4053
+ },
4054
+ {
4055
+ label: "p50",
4056
+ data: [
4057
+ {
4058
+ "Idade gestacional": "10",
4059
+ "Ganho de peso gestacional": 1.1
4060
+ },
4061
+ {
4062
+ "Idade gestacional": "11",
4063
+ "Ganho de peso gestacional": 1.4
4064
+ },
4065
+ {
4066
+ "Idade gestacional": "12",
4067
+ "Ganho de peso gestacional": 1.8
4068
+ },
4069
+ {
4070
+ "Idade gestacional": "13",
4071
+ "Ganho de peso gestacional": 2.1
4072
+ },
4073
+ {
4074
+ "Idade gestacional": "14",
4075
+ "Ganho de peso gestacional": 2.5
4076
+ },
4077
+ {
4078
+ "Idade gestacional": "15",
4079
+ "Ganho de peso gestacional": 2.9
4080
+ },
4081
+ {
4082
+ "Idade gestacional": "16",
4083
+ "Ganho de peso gestacional": 3.3
4084
+ },
4085
+ {
4086
+ "Idade gestacional": "17",
4087
+ "Ganho de peso gestacional": 3.7
4088
+ },
4089
+ {
4090
+ "Idade gestacional": "18",
4091
+ "Ganho de peso gestacional": 4.2
4092
+ },
4093
+ {
4094
+ "Idade gestacional": "19",
4095
+ "Ganho de peso gestacional": 4.6
4096
+ },
4097
+ {
4098
+ "Idade gestacional": "20",
4099
+ "Ganho de peso gestacional": 5.1
4100
+ },
4101
+ {
4102
+ "Idade gestacional": "21",
4103
+ "Ganho de peso gestacional": 5.6
4104
+ },
4105
+ {
4106
+ "Idade gestacional": "22",
4107
+ "Ganho de peso gestacional": 6.1
4108
+ },
4109
+ {
4110
+ "Idade gestacional": "23",
4111
+ "Ganho de peso gestacional": 6.6
4112
+ },
4113
+ {
4114
+ "Idade gestacional": "24",
4115
+ "Ganho de peso gestacional": 7.1
4116
+ },
4117
+ {
4118
+ "Idade gestacional": "25",
4119
+ "Ganho de peso gestacional": 7.6
4120
+ },
4121
+ {
4122
+ "Idade gestacional": "26",
4123
+ "Ganho de peso gestacional": 8.1
4124
+ },
4125
+ {
4126
+ "Idade gestacional": "27",
4127
+ "Ganho de peso gestacional": 8.6
4128
+ },
4129
+ {
4130
+ "Idade gestacional": "28",
4131
+ "Ganho de peso gestacional": 9.1
4132
+ },
4133
+ {
4134
+ "Idade gestacional": "29",
4135
+ "Ganho de peso gestacional": 9.5
4136
+ },
4137
+ {
4138
+ "Idade gestacional": "30",
4139
+ "Ganho de peso gestacional": 10
4140
+ },
4141
+ {
4142
+ "Idade gestacional": "31",
4143
+ "Ganho de peso gestacional": 10.4
4144
+ },
4145
+ {
4146
+ "Idade gestacional": "32",
4147
+ "Ganho de peso gestacional": 10.9
4148
+ },
4149
+ {
4150
+ "Idade gestacional": "33",
4151
+ "Ganho de peso gestacional": 11.3
4152
+ },
4153
+ {
4154
+ "Idade gestacional": "34",
4155
+ "Ganho de peso gestacional": 11.7
4156
+ },
4157
+ {
4158
+ "Idade gestacional": "35",
4159
+ "Ganho de peso gestacional": 12.1
4160
+ },
4161
+ {
4162
+ "Idade gestacional": "36",
4163
+ "Ganho de peso gestacional": 12.5
4164
+ },
4165
+ {
4166
+ "Idade gestacional": "37",
4167
+ "Ganho de peso gestacional": 12.9
4168
+ },
4169
+ {
4170
+ "Idade gestacional": "38",
4171
+ "Ganho de peso gestacional": 13.3
4172
+ },
4173
+ {
4174
+ "Idade gestacional": "39",
4175
+ "Ganho de peso gestacional": 13.7
4176
+ },
4177
+ {
4178
+ "Idade gestacional": "40",
4179
+ "Ganho de peso gestacional": 14.1
4180
+ }
4181
+ ],
4182
+ tension: 0.5,
4183
+ pointStyle: "circle",
4184
+ pointRadius: 0,
4185
+ pointHoverRadius: 5,
4186
+ pointBorderColor: "#d0d5ec",
4187
+ pointBackgroundColor: "rgba(94,79,162,0.5)",
4188
+ borderDash: [5, 3],
4189
+ borderWidth: 2,
4190
+ borderColor: "rgba(94,79,162,0.5)",
4191
+ fill: false
4192
+ },
4193
+ {
4194
+ label: "p90",
4195
+ data: [
4196
+ {
4197
+ "Idade gestacional": "10",
4198
+ "Ganho de peso gestacional": 5.4
4199
+ },
4200
+ {
4201
+ "Idade gestacional": "11",
4202
+ "Ganho de peso gestacional": 5.9
4203
+ },
4204
+ {
4205
+ "Idade gestacional": "12",
4206
+ "Ganho de peso gestacional": 6.3
4207
+ },
4208
+ {
4209
+ "Idade gestacional": "13",
4210
+ "Ganho de peso gestacional": 6.8
4211
+ },
4212
+ {
4213
+ "Idade gestacional": "14",
4214
+ "Ganho de peso gestacional": 7.2
4215
+ },
4216
+ {
4217
+ "Idade gestacional": "15",
4218
+ "Ganho de peso gestacional": 7.7
4219
+ },
4220
+ {
4221
+ "Idade gestacional": "16",
4222
+ "Ganho de peso gestacional": 8.2
4223
+ },
4224
+ {
4225
+ "Idade gestacional": "17",
4226
+ "Ganho de peso gestacional": 8.7
4227
+ },
4228
+ {
4229
+ "Idade gestacional": "18",
4230
+ "Ganho de peso gestacional": 9.2
4231
+ },
4232
+ {
4233
+ "Idade gestacional": "19",
4234
+ "Ganho de peso gestacional": 9.8
4235
+ },
4236
+ {
4237
+ "Idade gestacional": "20",
4238
+ "Ganho de peso gestacional": 10.4
4239
+ },
4240
+ {
4241
+ "Idade gestacional": "21",
4242
+ "Ganho de peso gestacional": 10.9
4243
+ },
4244
+ {
4245
+ "Idade gestacional": "22",
4246
+ "Ganho de peso gestacional": 11.5
4247
+ },
4248
+ {
4249
+ "Idade gestacional": "23",
4250
+ "Ganho de peso gestacional": 12.1
4251
+ },
4252
+ {
4253
+ "Idade gestacional": "24",
4254
+ "Ganho de peso gestacional": 12.7
4255
+ },
4256
+ {
4257
+ "Idade gestacional": "25",
4258
+ "Ganho de peso gestacional": 13.3
4259
+ },
4260
+ {
4261
+ "Idade gestacional": "26",
4262
+ "Ganho de peso gestacional": 13.9
4263
+ },
4264
+ {
4265
+ "Idade gestacional": "27",
4266
+ "Ganho de peso gestacional": 14.5
4267
+ },
4268
+ {
4269
+ "Idade gestacional": "28",
4270
+ "Ganho de peso gestacional": 15
4271
+ },
4272
+ {
4273
+ "Idade gestacional": "29",
4274
+ "Ganho de peso gestacional": 15.6
4275
+ },
4276
+ {
4277
+ "Idade gestacional": "30",
4278
+ "Ganho de peso gestacional": 16.1
4279
+ },
4280
+ {
4281
+ "Idade gestacional": "31",
4282
+ "Ganho de peso gestacional": 16.6
4283
+ },
4284
+ {
4285
+ "Idade gestacional": "32",
4286
+ "Ganho de peso gestacional": 17.2
4287
+ },
4288
+ {
4289
+ "Idade gestacional": "33",
4290
+ "Ganho de peso gestacional": 17.7
4291
+ },
4292
+ {
4293
+ "Idade gestacional": "34",
4294
+ "Ganho de peso gestacional": 18.2
4295
+ },
4296
+ {
4297
+ "Idade gestacional": "35",
4298
+ "Ganho de peso gestacional": 18.6
4299
+ },
4300
+ {
4301
+ "Idade gestacional": "36",
4302
+ "Ganho de peso gestacional": 19.1
4303
+ },
4304
+ {
4305
+ "Idade gestacional": "37",
4306
+ "Ganho de peso gestacional": 19.6
4307
+ },
4308
+ {
4309
+ "Idade gestacional": "38",
4310
+ "Ganho de peso gestacional": 20
4311
+ },
4312
+ {
4313
+ "Idade gestacional": "39",
4314
+ "Ganho de peso gestacional": 20.5
4315
+ },
4316
+ {
4317
+ "Idade gestacional": "40",
4318
+ "Ganho de peso gestacional": 21
4319
+ }
4320
+ ],
4321
+ tension: 0.5,
4322
+ pointStyle: "circle",
4323
+ pointRadius: 0,
4324
+ pointHoverRadius: 5,
4325
+ pointBorderColor: "#d0d5ec",
4326
+ pointBackgroundColor: "rgba(94,79,162,0.5)",
4327
+ borderDash: [5, 3],
4328
+ borderWidth: 2,
4329
+ borderColor: "rgba(94,79,162,0.5)",
4330
+ fill: false
4331
+ }
4332
+ ],
4333
+ config: {
4334
+ type: "line",
4335
+ animation: false,
4336
+ parsing: {
4337
+ xAxisKey: "Idade gestacional",
4338
+ yAxisKey: "Ganho de peso gestacional"
4339
+ },
4340
+ hover: {
4341
+ mode: "x",
4342
+ intersect: false
4343
+ },
4344
+ plugins: {
4345
+ tooltip: {
4346
+ mode: "x",
4347
+ intersect: false,
4348
+ itemSort: "function (a, b) { return b.raw['Ganho de peso gestacional'] - a.raw['Ganho de peso gestacional']; }",
4349
+ bodySpacing: 5,
4350
+ caretPadding: 5,
4351
+ callbacks: {
4352
+ title: "function (tooltipItems) { return `Semana ${tooltipItems[0].label}` }",
4353
+ label: "function (context) { const label = context.dataset.label; let lblValue = context.raw['Ganho de peso gestacional']; return `${label}: ${lblValue}`; }",
4354
+ labelColor: "function (context) { const datasetBackgroundColor = context.dataset.backgroundColor; return { backgroundColor: datasetBackgroundColor, borderColor: datasetBackgroundColor }; }"
4355
+ }
4356
+ },
4357
+ legend: {
4358
+ display: true,
4359
+ labels: {
4360
+ 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] },]}"
4361
+ },
4362
+ onClick: null
4363
+ },
4364
+ annotation: {
4365
+ annotations: [
4366
+ {
4367
+ type: "line",
4368
+ mode: "vertical",
4369
+ scaleID: "x",
4370
+ value: "13",
4371
+ borderColor: "#a23f97",
4372
+ borderWidth: 2
4373
+ },
4374
+ {
4375
+ type: "line",
4376
+ mode: "vertical",
4377
+ scaleID: "x",
4378
+ value: "27",
4379
+ borderColor: "#a23f97",
4380
+ borderWidth: 2
4381
+ },
4382
+ {
4383
+ type: "box",
4384
+ xMin: 10.5,
4385
+ xMax: 12.5,
4386
+ yMin: -3,
4387
+ yMax: -4.5,
4388
+ backgroundColor: "white",
4389
+ borderColor: "transparent",
4390
+ borderWidth: 0
4391
+ },
4392
+ {
4393
+ type: "label",
4394
+ xValue: 11,
4395
+ yValue: -3.75,
4396
+ content: "1 Trimestre",
4397
+ backgroundColor: "white",
4398
+ font: {
4399
+ size: 8,
4400
+ weight: "bold"
4401
+ }
4402
+ },
4403
+ {
4404
+ type: "box",
4405
+ xMin: 14,
4406
+ xMax: 26,
4407
+ yMin: -3,
4408
+ yMax: -4.5,
4409
+ backgroundColor: "white",
4410
+ borderColor: "transparent",
4411
+ borderWidth: 0
4412
+ },
4413
+ {
4414
+ type: "label",
4415
+ xValue: 20,
4416
+ yValue: -3.75,
4417
+ content: "2 Trimestre",
4418
+ backgroundColor: "white",
4419
+ font: {
4420
+ size: 8,
4421
+ weight: "bold"
4422
+ }
4423
+ },
4424
+ {
4425
+ type: "box",
4426
+ xMin: 28,
4427
+ xMax: 39,
4428
+ yMin: -3,
4429
+ yMax: -4.5,
4430
+ backgroundColor: "white",
4431
+ borderColor: "transparent",
4432
+ borderWidth: 0
4433
+ },
4434
+ {
4435
+ type: "label",
4436
+ xValue: 33.5,
4437
+ yValue: -3.75,
4438
+ content: "3 Trimestre",
4439
+ backgroundColor: "white",
4440
+ font: {
4441
+ size: 8,
4442
+ weight: "bold"
4443
+ }
4444
+ }
4445
+ ]
4446
+ },
4447
+ datalabels: {
4448
+ align: "center",
4449
+ anchor: "center",
4450
+ 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; }",
4451
+ font: {
4452
+ size: 8,
4453
+ weight: "bold"
4454
+ },
4455
+ color: "rgba(0, 0, 0, 0.7)",
4456
+ backgroundColor: "white",
4457
+ borderColor: "#8A2BE2",
4458
+ borderWidth: 2,
4459
+ borderRadius: 50,
4460
+ padding: 6
4461
+ }
4462
+ },
4463
+ scales: {
4464
+ x: {
4465
+ display: true,
4466
+ title: {
4467
+ text: "SEMANAS DE GESTAÇÃO",
4468
+ display: true
4469
+ },
4470
+ type: "category",
4471
+ min: 10,
4472
+ labels: [
4473
+ "0",
4474
+ "1",
4475
+ "2",
4476
+ "3",
4477
+ "4",
4478
+ "5",
4479
+ "6",
4480
+ "7",
4481
+ "8",
4482
+ "9",
4483
+ "10",
4484
+ "11",
4485
+ "12",
4486
+ "13",
4487
+ "14",
4488
+ "15",
4489
+ "16",
4490
+ "17",
4491
+ "18",
4492
+ "19",
4493
+ "20",
4494
+ "21",
4495
+ "22",
4496
+ "23",
4497
+ "24",
4498
+ "25",
4499
+ "26",
4500
+ "27",
4501
+ "28",
4502
+ "29",
4503
+ "30",
4504
+ "31",
4505
+ "32",
4506
+ "33",
4507
+ "34",
4508
+ "35",
4509
+ "36",
4510
+ "37",
4511
+ "38",
4512
+ "39",
4513
+ "40"
4514
+ ]
4515
+ },
4516
+ x1: {
4517
+ position: "top",
4518
+ display: true
4519
+ },
4520
+ y: {
4521
+ display: true,
4522
+ position: "left",
4523
+ title: {
4524
+ text: "GANHO DE PESO",
4525
+ display: true
4526
+ }
4527
+ },
4528
+ y1: {
4529
+ display: true,
4530
+ position: "right",
4531
+ afterBuildTicks: "function (axis) { axis.ticks = [...axis.chart.scales.y.ticks]; axis.min = axis.chart.scales.y.min; axis.max = axis.chart.scales.y.max; }"
4532
+ }
4533
+ }
4534
+ }
4535
+ },
4536
+ requestGraphicData: [
4537
+ {
4538
+ method: "patch",
4539
+ url: "/patient/${PATIENT_ID}/get-chart-data/ATTENDANCE_DATA?limit=40&orderBy=label&orderSense=asc",
4540
+ body: {
4541
+ labels: ["attendance.initAtDateTime"],
4542
+ datas: ["6655c805812e85401aff2fdd", "6654fb1e812e85401aff2f74"]
4543
+ },
4544
+ dataset: {
4545
+ label: "Você",
4546
+ data: [],
4547
+ borderDash: [5, 3],
4548
+ borderWidth: 1,
4549
+ borderColor: "black",
4550
+ spanGaps: true,
4551
+ pointStyle: "circle",
4552
+ pointRadius: 2,
4553
+ pointHoverRadius: 7,
4554
+ pointBorderColor: "red",
4555
+ pointBackgroundColor: "red"
4556
+ }
4557
+ }
4558
+ ],
4559
+ options: [],
4560
+ validations: [],
4561
+ tips: [],
4562
+ createdAtDateTime: "2025-11-18T12:47:50.474Z",
4563
+ updatedAtDateTime: "2025-11-18T12:47:50.474Z",
4564
+ __v: 0,
4565
+ lineId: "07906acb-7560-4875-9006-64c724512964"
4566
+ }
4567
+ ]
4568
+ },
4569
+ {
4570
+ id: "7cdb671e-478a-4c58-bf6b-c4c94ddd9c63",
4571
+ line: 83,
4572
+ collumns: [
4573
+ {
4574
+ _id: "69249b3b2d97243a5207a582",
4575
+ form: "689e029db13c27189bce136d",
4576
+ sequence: 104,
4577
+ code: "PATIENT_AGE_IN_WEEKS",
4578
+ description: "Idade do Paciente em Semanas",
4579
+ line: 83,
4580
+ column: 1,
4581
+ type: "QUESTION",
4582
+ typeAnswer: "OPEN_NUMBER",
4583
+ category: "ANTHROPOMETRY",
4584
+ measurementUnit: "Semanas",
4585
+ formulaToAnswer: "'${PATIENT_BORN_DATE}' ? Math.floor((new Date() - new Date('${PATIENT_BORN_DATE}')) / (7 * 24 * 60 * 60 * 1000)) : undefined",
4586
+ formulaToEnable: "true",
4587
+ active: true,
4588
+ show: false,
4589
+ readOnly: true,
4590
+ required: false,
4591
+ screenPlacement: 1,
4592
+ ellegibleForComparison: false,
4593
+ options: [],
4594
+ validations: [],
4595
+ requestGraphicData: [],
4596
+ tips: [],
4597
+ createdAtDateTime: "2025-11-24T17:51:55.110Z",
4598
+ updatedAtDateTime: "2025-11-24T17:51:55.110Z",
4599
+ __v: 0,
4600
+ answer: 1872,
4601
+ lineId: "7cdb671e-478a-4c58-bf6b-c4c94ddd9c63"
4602
+ }
4603
+ ]
4604
+ },
4605
+ {
4606
+ id: "5a45b2a0-6a78-41da-8c80-c0f0daf0f0bc",
4607
+ line: 84,
4608
+ collumns: [
4609
+ {
4610
+ _id: "69249c502d97243a5207a58c",
4611
+ form: "689e029db13c27189bce136d",
4612
+ sequence: 105,
4613
+ code: "PATIENT_AGE_IN_MONTHS",
4614
+ description: "Idade do Paciente em Meses",
4615
+ line: 84,
4616
+ column: 1,
4617
+ type: "QUESTION",
4618
+ typeAnswer: "OPEN_NUMBER",
4619
+ category: "ANTHROPOMETRY",
4620
+ measurementUnit: "Meses",
4621
+ formulaToAnswer: "'${PATIENT_BORN_DATE}' ? Math.floor((new Date() - new Date('${PATIENT_BORN_DATE}')) / (30.44 * 24 * 60 * 60 * 1000)) : undefined",
4622
+ formulaToEnable: "true",
4623
+ active: true,
4624
+ show: false,
4625
+ readOnly: true,
4626
+ required: false,
4627
+ screenPlacement: 1,
4628
+ ellegibleForComparison: false,
4629
+ options: [],
4630
+ validations: [],
4631
+ requestGraphicData: [],
4632
+ tips: [],
4633
+ createdAtDateTime: "2025-11-24T17:56:32.172Z",
4634
+ updatedAtDateTime: "2025-11-24T17:56:32.172Z",
4635
+ __v: 0,
4636
+ answer: 430,
4637
+ lineId: "5a45b2a0-6a78-41da-8c80-c0f0daf0f0bc"
4638
+ }
4639
+ ]
4640
+ },
4641
+ {
4642
+ id: "c9a01717-06ff-47ae-9d26-b0515db8b6aa",
4643
+ line: 85,
4644
+ collumns: [
4645
+ {
4646
+ _id: "69249c9a2d97243a5207a594",
4647
+ form: "689e029db13c27189bce136d",
4648
+ sequence: 106,
4649
+ code: "PATIENT_AGE_IN_YEARS",
4650
+ description: "Idade do Paciente em Anos",
4651
+ line: 85,
4652
+ column: 1,
4653
+ type: "QUESTION",
4654
+ typeAnswer: "OPEN_NUMBER",
4655
+ category: "ANTHROPOMETRY",
4656
+ measurementUnit: "Anos",
4657
+ formulaToAnswer: "'${PATIENT_BORN_DATE}' ? Math.floor((new Date() - new Date('${PATIENT_BORN_DATE}')) / (365.25 * 24 * 60 * 60 * 1000)) : undefined",
4658
+ formulaToEnable: "true",
4659
+ active: true,
4660
+ show: false,
4661
+ readOnly: true,
4662
+ required: false,
4663
+ screenPlacement: 1,
4664
+ ellegibleForComparison: false,
4665
+ options: [],
4666
+ validations: [],
4667
+ requestGraphicData: [],
4668
+ tips: [],
4669
+ createdAtDateTime: "2025-11-24T17:57:46.040Z",
4670
+ updatedAtDateTime: "2025-11-24T17:57:46.040Z",
4671
+ __v: 0,
4672
+ answer: 35,
4673
+ lineId: "c9a01717-06ff-47ae-9d26-b0515db8b6aa"
4674
+ }
4675
+ ]
4676
+ },
4677
+ {
4678
+ id: "cf6f57c5-147f-4e87-ae3f-1ad903ed2962",
4679
+ line: 86,
4680
+ collumns: [
4681
+ {
4682
+ _id: "69249d3d56c02b903e775f76",
4683
+ form: "689e029db13c27189bce136d",
4684
+ sequence: 107,
4685
+ code: "PATIENT_AGE_IN_DAYS",
4686
+ description: "Idade do Paciente em Dias",
4687
+ line: 86,
4688
+ column: 1,
4689
+ type: "QUESTION",
4690
+ typeAnswer: "OPEN_NUMBER",
4691
+ category: "ANTHROPOMETRY",
4692
+ measurementUnit: "Dias",
4693
+ formulaToAnswer: "'${PATIENT_BORN_DATE}' ? Math.floor((new Date() - new Date('${PATIENT_BORN_DATE}')) / (24 * 60 * 60 * 1000)) : undefined",
4694
+ formulaToEnable: "true",
4695
+ active: true,
4696
+ show: false,
4697
+ readOnly: true,
4698
+ required: false,
4699
+ screenPlacement: 1,
4700
+ ellegibleForComparison: false,
4701
+ options: [],
4702
+ validations: [],
4703
+ requestGraphicData: [],
4704
+ tips: [],
4705
+ createdAtDateTime: "2025-11-24T18:00:29.411Z",
4706
+ updatedAtDateTime: "2025-11-24T18:00:29.411Z",
4707
+ __v: 0,
4708
+ answer: 13105,
4709
+ lineId: "cf6f57c5-147f-4e87-ae3f-1ad903ed2962"
3531
4710
  }
3532
4711
  ]
3533
4712
  }
3534
4713
  ];
3535
4714
  describe("BuildRecurrenceBookingsFlow", () => {
3536
- it("should return undefined", async () => {
4715
+ it("Testes autoanswer", async () => {
3537
4716
  // const bookingMock = {
3538
4717
  // initAppointmentDateTime: moment().set({
3539
4718
  // date: 25,
@@ -3550,6 +4729,7 @@ describe("BuildRecurrenceBookingsFlow", () => {
3550
4729
  // })
3551
4730
  // } as IBooking;
3552
4731
  // const sut = BuildRecurrenceBookingsFlow.build(bookingMock);
4732
+ Math.floor(244.33);
3553
4733
  const sut = OnAnswerQuestionsFlowTester_1.default.executeByRows(answerExample, lines, []);
3554
4734
  console.log("SUT", JSON.stringify(sut, null, 2));
3555
4735
  expect(sut.lines).not.toBeNull();