c2-clinical 1.0.168 → 1.0.170
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/__tests__/flow/on-answer/OnAnswerQuestionsFlowTester.test.js +2460 -9954
- package/dist/flow/on-answer/ProcessAnswerFlowTester.js +1 -4
- 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 +14 -13
- package/dist/models/qa/QAAnswer.d.ts +9 -9
- package/dist/models/qpc/QPCAnswer.d.ts +9 -9
- package/package.json +1 -1
|
@@ -69,10 +69,7 @@ class ProcessAnswerFlowTester {
|
|
|
69
69
|
}
|
|
70
70
|
// formulaToAddDataset para graphicData
|
|
71
71
|
if (relationed?.graphicData?.formulaToAddDataset) {
|
|
72
|
-
relationed.graphicData.
|
|
73
|
-
...(relationed.graphicData?.dataset || []),
|
|
74
|
-
...ExecFormulaFlowTester_1.default.execute(relationed.graphicData.formulaToAddDataset, allQuestionsAnswereds, attendanceMetActivities)
|
|
75
|
-
];
|
|
72
|
+
relationed.graphicData.datasetsToAdd = ExecFormulaFlowTester_1.default.execute(relationed.graphicData.formulaToAddDataset, allQuestionsAnswereds, attendanceMetActivities);
|
|
76
73
|
}
|
|
77
74
|
});
|
|
78
75
|
let questionsRelacionedsAnsweredsRet = [...autoAnswereds];
|
|
@@ -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
|
-
dataset?: any;
|
|
62
61
|
body?: any;
|
|
62
|
+
dataset?: any;
|
|
63
63
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
64
64
|
method: string;
|
|
65
65
|
url: string;
|
|
66
|
-
dataset?: any;
|
|
67
66
|
body?: any;
|
|
67
|
+
dataset?: any;
|
|
68
68
|
}> & {
|
|
69
69
|
method: string;
|
|
70
70
|
url: string;
|
|
71
|
-
dataset?: any;
|
|
72
71
|
body?: any;
|
|
72
|
+
dataset?: 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
|
-
dataset?: any;
|
|
132
131
|
body?: any;
|
|
132
|
+
dataset?: any;
|
|
133
133
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
134
134
|
method: string;
|
|
135
135
|
url: string;
|
|
136
|
-
dataset?: any;
|
|
137
136
|
body?: any;
|
|
137
|
+
dataset?: any;
|
|
138
138
|
}> & {
|
|
139
139
|
method: string;
|
|
140
140
|
url: string;
|
|
141
|
-
dataset?: any;
|
|
142
141
|
body?: any;
|
|
142
|
+
dataset?: 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
|
-
dataset?: any;
|
|
202
201
|
body?: any;
|
|
202
|
+
dataset?: any;
|
|
203
203
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
204
204
|
method: string;
|
|
205
205
|
url: string;
|
|
206
|
-
dataset?: any;
|
|
207
206
|
body?: any;
|
|
207
|
+
dataset?: any;
|
|
208
208
|
}> & {
|
|
209
209
|
method: string;
|
|
210
210
|
url: string;
|
|
211
|
-
dataset?: any;
|
|
212
211
|
body?: any;
|
|
212
|
+
dataset?: 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
|
-
dataset?: any;
|
|
70
69
|
body?: any;
|
|
70
|
+
dataset?: any;
|
|
71
71
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
72
72
|
method: string;
|
|
73
73
|
url: string;
|
|
74
|
-
dataset?: any;
|
|
75
74
|
body?: any;
|
|
75
|
+
dataset?: any;
|
|
76
76
|
}> & {
|
|
77
77
|
method: string;
|
|
78
78
|
url: string;
|
|
79
|
-
dataset?: any;
|
|
80
79
|
body?: any;
|
|
80
|
+
dataset?: 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
|
-
dataset?: any;
|
|
155
154
|
body?: any;
|
|
155
|
+
dataset?: any;
|
|
156
156
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
157
157
|
method: string;
|
|
158
158
|
url: string;
|
|
159
|
-
dataset?: any;
|
|
160
159
|
body?: any;
|
|
160
|
+
dataset?: any;
|
|
161
161
|
}> & {
|
|
162
162
|
method: string;
|
|
163
163
|
url: string;
|
|
164
|
-
dataset?: any;
|
|
165
164
|
body?: any;
|
|
165
|
+
dataset?: 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
|
-
dataset?: any;
|
|
240
239
|
body?: any;
|
|
240
|
+
dataset?: any;
|
|
241
241
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
242
242
|
method: string;
|
|
243
243
|
url: string;
|
|
244
|
-
dataset?: any;
|
|
245
244
|
body?: any;
|
|
245
|
+
dataset?: any;
|
|
246
246
|
}> & {
|
|
247
247
|
method: string;
|
|
248
248
|
url: string;
|
|
249
|
-
dataset?: any;
|
|
250
249
|
body?: any;
|
|
250
|
+
dataset?: any;
|
|
251
251
|
}>;
|
|
252
252
|
patient: {
|
|
253
253
|
prototype?: Types.ObjectId | null | undefined;
|
|
@@ -118,7 +118,8 @@ export interface IQuestionOption {
|
|
|
118
118
|
}
|
|
119
119
|
export interface IGraphicData {
|
|
120
120
|
[key: string]: any;
|
|
121
|
-
|
|
121
|
+
datasets: any[];
|
|
122
|
+
datasetsToAdd: any[];
|
|
122
123
|
formulaToAddDataset: string;
|
|
123
124
|
}
|
|
124
125
|
export interface IRequestGraphicData {
|
|
@@ -132,18 +133,18 @@ export declare const RequestGraphicDataSchema: Schema<any, import("mongoose").Mo
|
|
|
132
133
|
}, {
|
|
133
134
|
method: string;
|
|
134
135
|
url: string;
|
|
135
|
-
dataset?: any;
|
|
136
136
|
body?: any;
|
|
137
|
+
dataset?: any;
|
|
137
138
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
138
139
|
method: string;
|
|
139
140
|
url: string;
|
|
140
|
-
dataset?: any;
|
|
141
141
|
body?: any;
|
|
142
|
+
dataset?: any;
|
|
142
143
|
}>, {}> & import("mongoose").FlatRecord<{
|
|
143
144
|
method: string;
|
|
144
145
|
url: string;
|
|
145
|
-
dataset?: any;
|
|
146
146
|
body?: any;
|
|
147
|
+
dataset?: any;
|
|
147
148
|
}> & {
|
|
148
149
|
_id: Types.ObjectId;
|
|
149
150
|
} & {
|
|
@@ -276,18 +277,18 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
276
277
|
requestGraphicData: Types.DocumentArray<{
|
|
277
278
|
method: string;
|
|
278
279
|
url: string;
|
|
279
|
-
dataset?: any;
|
|
280
280
|
body?: any;
|
|
281
|
+
dataset?: any;
|
|
281
282
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
282
283
|
method: string;
|
|
283
284
|
url: string;
|
|
284
|
-
dataset?: any;
|
|
285
285
|
body?: any;
|
|
286
|
+
dataset?: any;
|
|
286
287
|
}> & {
|
|
287
288
|
method: string;
|
|
288
289
|
url: string;
|
|
289
|
-
dataset?: any;
|
|
290
290
|
body?: any;
|
|
291
|
+
dataset?: any;
|
|
291
292
|
}>;
|
|
292
293
|
tips: Types.DocumentArray<{
|
|
293
294
|
type: string;
|
|
@@ -434,18 +435,18 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
434
435
|
requestGraphicData: Types.DocumentArray<{
|
|
435
436
|
method: string;
|
|
436
437
|
url: string;
|
|
437
|
-
dataset?: any;
|
|
438
438
|
body?: any;
|
|
439
|
+
dataset?: any;
|
|
439
440
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
440
441
|
method: string;
|
|
441
442
|
url: string;
|
|
442
|
-
dataset?: any;
|
|
443
443
|
body?: any;
|
|
444
|
+
dataset?: any;
|
|
444
445
|
}> & {
|
|
445
446
|
method: string;
|
|
446
447
|
url: string;
|
|
447
|
-
dataset?: any;
|
|
448
448
|
body?: any;
|
|
449
|
+
dataset?: any;
|
|
449
450
|
}>;
|
|
450
451
|
tips: Types.DocumentArray<{
|
|
451
452
|
type: string;
|
|
@@ -592,18 +593,18 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
592
593
|
requestGraphicData: Types.DocumentArray<{
|
|
593
594
|
method: string;
|
|
594
595
|
url: string;
|
|
595
|
-
dataset?: any;
|
|
596
596
|
body?: any;
|
|
597
|
+
dataset?: any;
|
|
597
598
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
598
599
|
method: string;
|
|
599
600
|
url: string;
|
|
600
|
-
dataset?: any;
|
|
601
601
|
body?: any;
|
|
602
|
+
dataset?: any;
|
|
602
603
|
}> & {
|
|
603
604
|
method: string;
|
|
604
605
|
url: string;
|
|
605
|
-
dataset?: any;
|
|
606
606
|
body?: any;
|
|
607
|
+
dataset?: any;
|
|
607
608
|
}>;
|
|
608
609
|
tips: Types.DocumentArray<{
|
|
609
610
|
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
|
-
dataset?: any;
|
|
62
61
|
body?: any;
|
|
62
|
+
dataset?: any;
|
|
63
63
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
64
64
|
method: string;
|
|
65
65
|
url: string;
|
|
66
|
-
dataset?: any;
|
|
67
66
|
body?: any;
|
|
67
|
+
dataset?: any;
|
|
68
68
|
}> & {
|
|
69
69
|
method: string;
|
|
70
70
|
url: string;
|
|
71
|
-
dataset?: any;
|
|
72
71
|
body?: any;
|
|
72
|
+
dataset?: 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
|
-
dataset?: any;
|
|
132
131
|
body?: any;
|
|
132
|
+
dataset?: any;
|
|
133
133
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
134
134
|
method: string;
|
|
135
135
|
url: string;
|
|
136
|
-
dataset?: any;
|
|
137
136
|
body?: any;
|
|
137
|
+
dataset?: any;
|
|
138
138
|
}> & {
|
|
139
139
|
method: string;
|
|
140
140
|
url: string;
|
|
141
|
-
dataset?: any;
|
|
142
141
|
body?: any;
|
|
142
|
+
dataset?: 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
|
-
dataset?: any;
|
|
202
201
|
body?: any;
|
|
202
|
+
dataset?: any;
|
|
203
203
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
204
204
|
method: string;
|
|
205
205
|
url: string;
|
|
206
|
-
dataset?: any;
|
|
207
206
|
body?: any;
|
|
207
|
+
dataset?: any;
|
|
208
208
|
}> & {
|
|
209
209
|
method: string;
|
|
210
210
|
url: string;
|
|
211
|
-
dataset?: any;
|
|
212
211
|
body?: any;
|
|
212
|
+
dataset?: 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
|
-
dataset?: any;
|
|
51
50
|
body?: any;
|
|
51
|
+
dataset?: any;
|
|
52
52
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
53
53
|
method: string;
|
|
54
54
|
url: string;
|
|
55
|
-
dataset?: any;
|
|
56
55
|
body?: any;
|
|
56
|
+
dataset?: any;
|
|
57
57
|
}> & {
|
|
58
58
|
method: string;
|
|
59
59
|
url: string;
|
|
60
|
-
dataset?: any;
|
|
61
60
|
body?: any;
|
|
61
|
+
dataset?: 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
|
-
dataset?: any;
|
|
112
111
|
body?: any;
|
|
112
|
+
dataset?: any;
|
|
113
113
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
114
114
|
method: string;
|
|
115
115
|
url: string;
|
|
116
|
-
dataset?: any;
|
|
117
116
|
body?: any;
|
|
117
|
+
dataset?: any;
|
|
118
118
|
}> & {
|
|
119
119
|
method: string;
|
|
120
120
|
url: string;
|
|
121
|
-
dataset?: any;
|
|
122
121
|
body?: any;
|
|
122
|
+
dataset?: 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
|
-
dataset?: any;
|
|
173
172
|
body?: any;
|
|
173
|
+
dataset?: any;
|
|
174
174
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
175
175
|
method: string;
|
|
176
176
|
url: string;
|
|
177
|
-
dataset?: any;
|
|
178
177
|
body?: any;
|
|
178
|
+
dataset?: any;
|
|
179
179
|
}> & {
|
|
180
180
|
method: string;
|
|
181
181
|
url: string;
|
|
182
|
-
dataset?: any;
|
|
183
182
|
body?: any;
|
|
183
|
+
dataset?: any;
|
|
184
184
|
}>;
|
|
185
185
|
qpc: {
|
|
186
186
|
prototype?: Types.ObjectId | null | undefined;
|
package/package.json
CHANGED