c2-clinical 1.0.207 → 1.0.208

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.
@@ -68,6 +68,13 @@ class ProcessAnswerFlowTester {
68
68
  if (relationed?.graphicData?.formulaToDatasetsBackground) {
69
69
  relationed.graphicData.datasetsBackground = ExecFormulaFlowTester_1.default.execute(relationed.graphicData.formulaToDatasetsBackground, allQuestionsAnswereds, attendanceMetActivities);
70
70
  }
71
+ // formulaToLastsPoints para graphicData
72
+ if (relationed?.graphicData?.datasetPersonal?.length) {
73
+ relationed.graphicData.datasetPersonal.forEach((datasetPersonal) => {
74
+ datasetPersonal.lastsPoints =
75
+ ExecFormulaFlowTester_1.default.execute(datasetPersonal.formulaToLastsPoints, allQuestionsAnswereds, attendanceMetActivities) ?? [];
76
+ });
77
+ }
71
78
  });
72
79
  let questionsRelacionedsAnsweredsRet = [...autoAnswereds];
73
80
  for (const questionRelacionedAnswered of autoAnswereds) {
@@ -15,6 +15,7 @@ class GetAnswerRelationedsFlowItemTester {
15
15
  regex.test(fu.formulaToShow) ||
16
16
  regex.test(fu.formulaToDescription) ||
17
17
  regex.test(fu.graphicData?.formulaToDatasetsBackground) ||
18
+ fu.graphicData?.datasetPersonal?.some((datasetPersonal) => regex.test(datasetPersonal.formulaToLastsPoints)) ||
18
19
  fu.validations?.some((v) => regex.test(v.formulaToMessage)) ||
19
20
  fu.options?.some((v) => regex.test(v.formulaToEnable)));
20
21
  });
@@ -133,6 +133,9 @@ export interface IDatasetsPersonal {
133
133
  [key: string]: any;
134
134
  };
135
135
  formulaToLastsPoints: string;
136
+ lastsPoints: {
137
+ [key: string]: any;
138
+ }[];
136
139
  }
137
140
  export interface IGraphicData {
138
141
  config: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-clinical",
3
- "version": "1.0.207",
3
+ "version": "1.0.208",
4
4
  "description": "Biblioteca Typescript para API NodeJS",
5
5
  "repository": {
6
6
  "type": "git",