c2-clinical 1.0.166 → 1.0.168
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/flow/group/item/GetEnablesFormUnitsFlowItem.js +1 -0
- package/dist/flow/on-answer/ProcessAnswerFlowTester.js +7 -0
- package/dist/flow/on-answer/item/GetAnswerRelationedsFlowItemTester.js +1 -0
- package/dist/models/anamnese/AnamneseAnswer.d.ts +9 -9
- package/dist/models/anthropometry/AnthropometryAnswer.d.ts +9 -9
- package/dist/models/form/FormUnit.d.ts +18 -13
- package/dist/models/qa/QAAnswer.d.ts +9 -9
- package/dist/models/qpc/QPCAnswer.d.ts +9 -9
- package/package.json +1 -1
|
@@ -67,6 +67,13 @@ class ProcessAnswerFlowTester {
|
|
|
67
67
|
ExecFormulaFlowTester_1.default.execute(option.formulaToEnable, allQuestionsAnswereds, attendanceMetActivities) ?? false;
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
+
// formulaToAddDataset para graphicData
|
|
71
|
+
if (relationed?.graphicData?.formulaToAddDataset) {
|
|
72
|
+
relationed.graphicData.dataset = [
|
|
73
|
+
...(relationed.graphicData?.dataset || []),
|
|
74
|
+
...ExecFormulaFlowTester_1.default.execute(relationed.graphicData.formulaToAddDataset, allQuestionsAnswereds, attendanceMetActivities)
|
|
75
|
+
];
|
|
76
|
+
}
|
|
70
77
|
});
|
|
71
78
|
let questionsRelacionedsAnsweredsRet = [...autoAnswereds];
|
|
72
79
|
for (const questionRelacionedAnswered of autoAnswereds) {
|
|
@@ -14,6 +14,7 @@ class GetAnswerRelationedsFlowItemTester {
|
|
|
14
14
|
regex.test(fu.formulaToEnable) ||
|
|
15
15
|
regex.test(fu.formulaToShow) ||
|
|
16
16
|
regex.test(fu.formulaToDescription) ||
|
|
17
|
+
regex.test(fu.graphicData?.formulaToAddDataset) ||
|
|
17
18
|
fu.validations?.some((v) => regex.test(v.formulaToMessage)) ||
|
|
18
19
|
fu.options?.some((v) => regex.test(v.formulaToEnable)));
|
|
19
20
|
});
|
|
@@ -58,18 +58,18 @@ export declare const AnamneseAnswerSchema: Schema<any, import("mongoose").Model<
|
|
|
58
58
|
requestGraphicData: Types.DocumentArray<{
|
|
59
59
|
method: string;
|
|
60
60
|
url: string;
|
|
61
|
-
body?: any;
|
|
62
61
|
dataset?: any;
|
|
62
|
+
body?: any;
|
|
63
63
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
64
64
|
method: string;
|
|
65
65
|
url: string;
|
|
66
|
-
body?: any;
|
|
67
66
|
dataset?: any;
|
|
67
|
+
body?: any;
|
|
68
68
|
}> & {
|
|
69
69
|
method: string;
|
|
70
70
|
url: string;
|
|
71
|
-
body?: any;
|
|
72
71
|
dataset?: any;
|
|
72
|
+
body?: any;
|
|
73
73
|
}>;
|
|
74
74
|
anamnese: {
|
|
75
75
|
prototype?: Types.ObjectId | null | undefined;
|
|
@@ -128,18 +128,18 @@ export declare const AnamneseAnswerSchema: Schema<any, import("mongoose").Model<
|
|
|
128
128
|
requestGraphicData: Types.DocumentArray<{
|
|
129
129
|
method: string;
|
|
130
130
|
url: string;
|
|
131
|
-
body?: any;
|
|
132
131
|
dataset?: any;
|
|
132
|
+
body?: any;
|
|
133
133
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
134
134
|
method: string;
|
|
135
135
|
url: string;
|
|
136
|
-
body?: any;
|
|
137
136
|
dataset?: any;
|
|
137
|
+
body?: any;
|
|
138
138
|
}> & {
|
|
139
139
|
method: string;
|
|
140
140
|
url: string;
|
|
141
|
-
body?: any;
|
|
142
141
|
dataset?: any;
|
|
142
|
+
body?: any;
|
|
143
143
|
}>;
|
|
144
144
|
anamnese: {
|
|
145
145
|
prototype?: Types.ObjectId | null | undefined;
|
|
@@ -198,18 +198,18 @@ export declare const AnamneseAnswerSchema: Schema<any, import("mongoose").Model<
|
|
|
198
198
|
requestGraphicData: Types.DocumentArray<{
|
|
199
199
|
method: string;
|
|
200
200
|
url: string;
|
|
201
|
-
body?: any;
|
|
202
201
|
dataset?: any;
|
|
202
|
+
body?: any;
|
|
203
203
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
204
204
|
method: string;
|
|
205
205
|
url: string;
|
|
206
|
-
body?: any;
|
|
207
206
|
dataset?: any;
|
|
207
|
+
body?: any;
|
|
208
208
|
}> & {
|
|
209
209
|
method: string;
|
|
210
210
|
url: string;
|
|
211
|
-
body?: any;
|
|
212
211
|
dataset?: any;
|
|
212
|
+
body?: any;
|
|
213
213
|
}>;
|
|
214
214
|
anamnese: {
|
|
215
215
|
prototype?: Types.ObjectId | null | undefined;
|
|
@@ -66,18 +66,18 @@ export declare const AnthropometryAnswerSchema: Schema<any, import("mongoose").M
|
|
|
66
66
|
requestGraphicData: Types.DocumentArray<{
|
|
67
67
|
method: string;
|
|
68
68
|
url: string;
|
|
69
|
-
body?: any;
|
|
70
69
|
dataset?: any;
|
|
70
|
+
body?: any;
|
|
71
71
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
72
72
|
method: string;
|
|
73
73
|
url: string;
|
|
74
|
-
body?: any;
|
|
75
74
|
dataset?: any;
|
|
75
|
+
body?: any;
|
|
76
76
|
}> & {
|
|
77
77
|
method: string;
|
|
78
78
|
url: string;
|
|
79
|
-
body?: any;
|
|
80
79
|
dataset?: any;
|
|
80
|
+
body?: any;
|
|
81
81
|
}>;
|
|
82
82
|
patient: {
|
|
83
83
|
prototype?: Types.ObjectId | null | undefined;
|
|
@@ -151,18 +151,18 @@ export declare const AnthropometryAnswerSchema: Schema<any, import("mongoose").M
|
|
|
151
151
|
requestGraphicData: Types.DocumentArray<{
|
|
152
152
|
method: string;
|
|
153
153
|
url: string;
|
|
154
|
-
body?: any;
|
|
155
154
|
dataset?: any;
|
|
155
|
+
body?: any;
|
|
156
156
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
157
157
|
method: string;
|
|
158
158
|
url: string;
|
|
159
|
-
body?: any;
|
|
160
159
|
dataset?: any;
|
|
160
|
+
body?: any;
|
|
161
161
|
}> & {
|
|
162
162
|
method: string;
|
|
163
163
|
url: string;
|
|
164
|
-
body?: any;
|
|
165
164
|
dataset?: any;
|
|
165
|
+
body?: any;
|
|
166
166
|
}>;
|
|
167
167
|
patient: {
|
|
168
168
|
prototype?: Types.ObjectId | null | undefined;
|
|
@@ -236,18 +236,18 @@ export declare const AnthropometryAnswerSchema: Schema<any, import("mongoose").M
|
|
|
236
236
|
requestGraphicData: Types.DocumentArray<{
|
|
237
237
|
method: string;
|
|
238
238
|
url: string;
|
|
239
|
-
body?: any;
|
|
240
239
|
dataset?: any;
|
|
240
|
+
body?: any;
|
|
241
241
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
242
242
|
method: string;
|
|
243
243
|
url: string;
|
|
244
|
-
body?: any;
|
|
245
244
|
dataset?: any;
|
|
245
|
+
body?: any;
|
|
246
246
|
}> & {
|
|
247
247
|
method: string;
|
|
248
248
|
url: string;
|
|
249
|
-
body?: any;
|
|
250
249
|
dataset?: any;
|
|
250
|
+
body?: any;
|
|
251
251
|
}>;
|
|
252
252
|
patient: {
|
|
253
253
|
prototype?: Types.ObjectId | null | undefined;
|
|
@@ -85,7 +85,7 @@ export interface IFormUnit extends IDefault {
|
|
|
85
85
|
ellegibleForComparison: boolean;
|
|
86
86
|
codeEnableFreeText: string;
|
|
87
87
|
labelFreeText: string;
|
|
88
|
-
graphicData:
|
|
88
|
+
graphicData: IGraphicData;
|
|
89
89
|
requestGraphicData: IRequestGraphicData[];
|
|
90
90
|
children?: IFormUnit[];
|
|
91
91
|
lines?: IRow[];
|
|
@@ -116,6 +116,11 @@ export interface IQuestionOption {
|
|
|
116
116
|
image: string;
|
|
117
117
|
color: string;
|
|
118
118
|
}
|
|
119
|
+
export interface IGraphicData {
|
|
120
|
+
[key: string]: any;
|
|
121
|
+
dataset: any[];
|
|
122
|
+
formulaToAddDataset: string;
|
|
123
|
+
}
|
|
119
124
|
export interface IRequestGraphicData {
|
|
120
125
|
method: string;
|
|
121
126
|
url: string;
|
|
@@ -127,18 +132,18 @@ export declare const RequestGraphicDataSchema: Schema<any, import("mongoose").Mo
|
|
|
127
132
|
}, {
|
|
128
133
|
method: string;
|
|
129
134
|
url: string;
|
|
130
|
-
body?: any;
|
|
131
135
|
dataset?: any;
|
|
136
|
+
body?: any;
|
|
132
137
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
133
138
|
method: string;
|
|
134
139
|
url: string;
|
|
135
|
-
body?: any;
|
|
136
140
|
dataset?: any;
|
|
141
|
+
body?: any;
|
|
137
142
|
}>, {}> & import("mongoose").FlatRecord<{
|
|
138
143
|
method: string;
|
|
139
144
|
url: string;
|
|
140
|
-
body?: any;
|
|
141
145
|
dataset?: any;
|
|
146
|
+
body?: any;
|
|
142
147
|
}> & {
|
|
143
148
|
_id: Types.ObjectId;
|
|
144
149
|
} & {
|
|
@@ -271,18 +276,18 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
271
276
|
requestGraphicData: Types.DocumentArray<{
|
|
272
277
|
method: string;
|
|
273
278
|
url: string;
|
|
274
|
-
body?: any;
|
|
275
279
|
dataset?: any;
|
|
280
|
+
body?: any;
|
|
276
281
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
277
282
|
method: string;
|
|
278
283
|
url: string;
|
|
279
|
-
body?: any;
|
|
280
284
|
dataset?: any;
|
|
285
|
+
body?: any;
|
|
281
286
|
}> & {
|
|
282
287
|
method: string;
|
|
283
288
|
url: string;
|
|
284
|
-
body?: any;
|
|
285
289
|
dataset?: any;
|
|
290
|
+
body?: any;
|
|
286
291
|
}>;
|
|
287
292
|
tips: Types.DocumentArray<{
|
|
288
293
|
type: string;
|
|
@@ -429,18 +434,18 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
429
434
|
requestGraphicData: Types.DocumentArray<{
|
|
430
435
|
method: string;
|
|
431
436
|
url: string;
|
|
432
|
-
body?: any;
|
|
433
437
|
dataset?: any;
|
|
438
|
+
body?: any;
|
|
434
439
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
435
440
|
method: string;
|
|
436
441
|
url: string;
|
|
437
|
-
body?: any;
|
|
438
442
|
dataset?: any;
|
|
443
|
+
body?: any;
|
|
439
444
|
}> & {
|
|
440
445
|
method: string;
|
|
441
446
|
url: string;
|
|
442
|
-
body?: any;
|
|
443
447
|
dataset?: any;
|
|
448
|
+
body?: any;
|
|
444
449
|
}>;
|
|
445
450
|
tips: Types.DocumentArray<{
|
|
446
451
|
type: string;
|
|
@@ -587,18 +592,18 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
587
592
|
requestGraphicData: Types.DocumentArray<{
|
|
588
593
|
method: string;
|
|
589
594
|
url: string;
|
|
590
|
-
body?: any;
|
|
591
595
|
dataset?: any;
|
|
596
|
+
body?: any;
|
|
592
597
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
593
598
|
method: string;
|
|
594
599
|
url: string;
|
|
595
|
-
body?: any;
|
|
596
600
|
dataset?: any;
|
|
601
|
+
body?: any;
|
|
597
602
|
}> & {
|
|
598
603
|
method: string;
|
|
599
604
|
url: string;
|
|
600
|
-
body?: any;
|
|
601
605
|
dataset?: any;
|
|
606
|
+
body?: any;
|
|
602
607
|
}>;
|
|
603
608
|
tips: Types.DocumentArray<{
|
|
604
609
|
type: string;
|
|
@@ -58,18 +58,18 @@ export declare const QAAnswerSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
58
58
|
requestGraphicData: Types.DocumentArray<{
|
|
59
59
|
method: string;
|
|
60
60
|
url: string;
|
|
61
|
-
body?: any;
|
|
62
61
|
dataset?: any;
|
|
62
|
+
body?: any;
|
|
63
63
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
64
64
|
method: string;
|
|
65
65
|
url: string;
|
|
66
|
-
body?: any;
|
|
67
66
|
dataset?: any;
|
|
67
|
+
body?: any;
|
|
68
68
|
}> & {
|
|
69
69
|
method: string;
|
|
70
70
|
url: string;
|
|
71
|
-
body?: any;
|
|
72
71
|
dataset?: any;
|
|
72
|
+
body?: any;
|
|
73
73
|
}>;
|
|
74
74
|
qa: {
|
|
75
75
|
prototype?: Types.ObjectId | null | undefined;
|
|
@@ -128,18 +128,18 @@ export declare const QAAnswerSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
128
128
|
requestGraphicData: Types.DocumentArray<{
|
|
129
129
|
method: string;
|
|
130
130
|
url: string;
|
|
131
|
-
body?: any;
|
|
132
131
|
dataset?: any;
|
|
132
|
+
body?: any;
|
|
133
133
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
134
134
|
method: string;
|
|
135
135
|
url: string;
|
|
136
|
-
body?: any;
|
|
137
136
|
dataset?: any;
|
|
137
|
+
body?: any;
|
|
138
138
|
}> & {
|
|
139
139
|
method: string;
|
|
140
140
|
url: string;
|
|
141
|
-
body?: any;
|
|
142
141
|
dataset?: any;
|
|
142
|
+
body?: any;
|
|
143
143
|
}>;
|
|
144
144
|
qa: {
|
|
145
145
|
prototype?: Types.ObjectId | null | undefined;
|
|
@@ -198,18 +198,18 @@ export declare const QAAnswerSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
198
198
|
requestGraphicData: Types.DocumentArray<{
|
|
199
199
|
method: string;
|
|
200
200
|
url: string;
|
|
201
|
-
body?: any;
|
|
202
201
|
dataset?: any;
|
|
202
|
+
body?: any;
|
|
203
203
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
204
204
|
method: string;
|
|
205
205
|
url: string;
|
|
206
|
-
body?: any;
|
|
207
206
|
dataset?: any;
|
|
207
|
+
body?: any;
|
|
208
208
|
}> & {
|
|
209
209
|
method: string;
|
|
210
210
|
url: string;
|
|
211
|
-
body?: any;
|
|
212
211
|
dataset?: any;
|
|
212
|
+
body?: any;
|
|
213
213
|
}>;
|
|
214
214
|
qa: {
|
|
215
215
|
prototype?: Types.ObjectId | null | undefined;
|
|
@@ -47,18 +47,18 @@ export declare const QPCAnswerSchema: Schema<any, import("mongoose").Model<any,
|
|
|
47
47
|
requestGraphicData: Types.DocumentArray<{
|
|
48
48
|
method: string;
|
|
49
49
|
url: string;
|
|
50
|
-
body?: any;
|
|
51
50
|
dataset?: any;
|
|
51
|
+
body?: any;
|
|
52
52
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
53
53
|
method: string;
|
|
54
54
|
url: string;
|
|
55
|
-
body?: any;
|
|
56
55
|
dataset?: any;
|
|
56
|
+
body?: any;
|
|
57
57
|
}> & {
|
|
58
58
|
method: string;
|
|
59
59
|
url: string;
|
|
60
|
-
body?: any;
|
|
61
60
|
dataset?: any;
|
|
61
|
+
body?: any;
|
|
62
62
|
}>;
|
|
63
63
|
qpc: {
|
|
64
64
|
prototype?: Types.ObjectId | null | undefined;
|
|
@@ -108,18 +108,18 @@ export declare const QPCAnswerSchema: Schema<any, import("mongoose").Model<any,
|
|
|
108
108
|
requestGraphicData: Types.DocumentArray<{
|
|
109
109
|
method: string;
|
|
110
110
|
url: string;
|
|
111
|
-
body?: any;
|
|
112
111
|
dataset?: any;
|
|
112
|
+
body?: any;
|
|
113
113
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
114
114
|
method: string;
|
|
115
115
|
url: string;
|
|
116
|
-
body?: any;
|
|
117
116
|
dataset?: any;
|
|
117
|
+
body?: any;
|
|
118
118
|
}> & {
|
|
119
119
|
method: string;
|
|
120
120
|
url: string;
|
|
121
|
-
body?: any;
|
|
122
121
|
dataset?: any;
|
|
122
|
+
body?: any;
|
|
123
123
|
}>;
|
|
124
124
|
qpc: {
|
|
125
125
|
prototype?: Types.ObjectId | null | undefined;
|
|
@@ -169,18 +169,18 @@ export declare const QPCAnswerSchema: Schema<any, import("mongoose").Model<any,
|
|
|
169
169
|
requestGraphicData: Types.DocumentArray<{
|
|
170
170
|
method: string;
|
|
171
171
|
url: string;
|
|
172
|
-
body?: any;
|
|
173
172
|
dataset?: any;
|
|
173
|
+
body?: any;
|
|
174
174
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
175
175
|
method: string;
|
|
176
176
|
url: string;
|
|
177
|
-
body?: any;
|
|
178
177
|
dataset?: any;
|
|
178
|
+
body?: any;
|
|
179
179
|
}> & {
|
|
180
180
|
method: string;
|
|
181
181
|
url: string;
|
|
182
|
-
body?: any;
|
|
183
182
|
dataset?: any;
|
|
183
|
+
body?: any;
|
|
184
184
|
}>;
|
|
185
185
|
qpc: {
|
|
186
186
|
prototype?: Types.ObjectId | null | undefined;
|
package/package.json
CHANGED