c2-clinical 1.0.189 → 1.0.190
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 +622 -2049
- package/dist/models/anamnese/AnamneseAnswer.d.ts +18 -18
- package/dist/models/form/FormUnit.d.ts +24 -24
- package/dist/models/form/FormUnit.js +2 -2
- package/dist/models/qa/QAAnswer.d.ts +18 -18
- package/dist/models/qpc/QPCAnswer.d.ts +18 -18
- package/package.json +1 -1
|
@@ -40,19 +40,19 @@ export declare const AnamneseAnswerSchema: Schema<any, import("mongoose").Model<
|
|
|
40
40
|
isValid?: {} | null | undefined;
|
|
41
41
|
};
|
|
42
42
|
validations: Types.DocumentArray<{
|
|
43
|
-
type: string;
|
|
44
43
|
typeOutput: string;
|
|
45
|
-
|
|
44
|
+
type?: string | null | undefined;
|
|
45
|
+
formulaToMessage?: string | null | undefined;
|
|
46
46
|
message?: string | null | undefined;
|
|
47
47
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
48
|
-
type: string;
|
|
49
48
|
typeOutput: string;
|
|
50
|
-
|
|
49
|
+
type?: string | null | undefined;
|
|
50
|
+
formulaToMessage?: string | null | undefined;
|
|
51
51
|
message?: string | null | undefined;
|
|
52
52
|
}> & {
|
|
53
|
-
type: string;
|
|
54
53
|
typeOutput: string;
|
|
55
|
-
|
|
54
|
+
type?: string | null | undefined;
|
|
55
|
+
formulaToMessage?: string | null | undefined;
|
|
56
56
|
message?: string | null | undefined;
|
|
57
57
|
}>;
|
|
58
58
|
anamnese: {
|
|
@@ -116,19 +116,19 @@ export declare const AnamneseAnswerSchema: Schema<any, import("mongoose").Model<
|
|
|
116
116
|
isValid?: {} | null | undefined;
|
|
117
117
|
};
|
|
118
118
|
validations: Types.DocumentArray<{
|
|
119
|
-
type: string;
|
|
120
119
|
typeOutput: string;
|
|
121
|
-
|
|
120
|
+
type?: string | null | undefined;
|
|
121
|
+
formulaToMessage?: string | null | undefined;
|
|
122
122
|
message?: string | null | undefined;
|
|
123
123
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
124
|
-
type: string;
|
|
125
124
|
typeOutput: string;
|
|
126
|
-
|
|
125
|
+
type?: string | null | undefined;
|
|
126
|
+
formulaToMessage?: string | null | undefined;
|
|
127
127
|
message?: string | null | undefined;
|
|
128
128
|
}> & {
|
|
129
|
-
type: string;
|
|
130
129
|
typeOutput: string;
|
|
131
|
-
|
|
130
|
+
type?: string | null | undefined;
|
|
131
|
+
formulaToMessage?: string | null | undefined;
|
|
132
132
|
message?: string | null | undefined;
|
|
133
133
|
}>;
|
|
134
134
|
anamnese: {
|
|
@@ -192,19 +192,19 @@ export declare const AnamneseAnswerSchema: Schema<any, import("mongoose").Model<
|
|
|
192
192
|
isValid?: {} | null | undefined;
|
|
193
193
|
};
|
|
194
194
|
validations: Types.DocumentArray<{
|
|
195
|
-
type: string;
|
|
196
195
|
typeOutput: string;
|
|
197
|
-
|
|
196
|
+
type?: string | null | undefined;
|
|
197
|
+
formulaToMessage?: string | null | undefined;
|
|
198
198
|
message?: string | null | undefined;
|
|
199
199
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
200
|
-
type: string;
|
|
201
200
|
typeOutput: string;
|
|
202
|
-
|
|
201
|
+
type?: string | null | undefined;
|
|
202
|
+
formulaToMessage?: string | null | undefined;
|
|
203
203
|
message?: string | null | undefined;
|
|
204
204
|
}> & {
|
|
205
|
-
type: string;
|
|
206
205
|
typeOutput: string;
|
|
207
|
-
|
|
206
|
+
type?: string | null | undefined;
|
|
207
|
+
formulaToMessage?: string | null | undefined;
|
|
208
208
|
message?: string | null | undefined;
|
|
209
209
|
}>;
|
|
210
210
|
anamnese: {
|
|
@@ -213,19 +213,19 @@ export declare const QuestionOptionSchema: Schema<any, import("mongoose").Model<
|
|
|
213
213
|
export declare const ValidationSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
214
214
|
_id: false;
|
|
215
215
|
}, {
|
|
216
|
-
type: string;
|
|
217
216
|
typeOutput: string;
|
|
218
|
-
|
|
217
|
+
type?: string | null | undefined;
|
|
218
|
+
formulaToMessage?: string | null | undefined;
|
|
219
219
|
message?: string | null | undefined;
|
|
220
220
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
221
|
-
type: string;
|
|
222
221
|
typeOutput: string;
|
|
223
|
-
|
|
222
|
+
type?: string | null | undefined;
|
|
223
|
+
formulaToMessage?: string | null | undefined;
|
|
224
224
|
message?: string | null | undefined;
|
|
225
225
|
}>, {}> & import("mongoose").FlatRecord<{
|
|
226
|
-
type: string;
|
|
227
226
|
typeOutput: string;
|
|
228
|
-
|
|
227
|
+
type?: string | null | undefined;
|
|
228
|
+
formulaToMessage?: string | null | undefined;
|
|
229
229
|
message?: string | null | undefined;
|
|
230
230
|
}> & {
|
|
231
231
|
_id: Types.ObjectId;
|
|
@@ -280,19 +280,19 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
280
280
|
}>;
|
|
281
281
|
formulaToShow: string;
|
|
282
282
|
validations: Types.DocumentArray<{
|
|
283
|
-
type: string;
|
|
284
283
|
typeOutput: string;
|
|
285
|
-
|
|
284
|
+
type?: string | null | undefined;
|
|
285
|
+
formulaToMessage?: string | null | undefined;
|
|
286
286
|
message?: string | null | undefined;
|
|
287
287
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
288
|
-
type: string;
|
|
289
288
|
typeOutput: string;
|
|
290
|
-
|
|
289
|
+
type?: string | null | undefined;
|
|
290
|
+
formulaToMessage?: string | null | undefined;
|
|
291
291
|
message?: string | null | undefined;
|
|
292
292
|
}> & {
|
|
293
|
-
type: string;
|
|
294
293
|
typeOutput: string;
|
|
295
|
-
|
|
294
|
+
type?: string | null | undefined;
|
|
295
|
+
formulaToMessage?: string | null | undefined;
|
|
296
296
|
message?: string | null | undefined;
|
|
297
297
|
}>;
|
|
298
298
|
show: boolean;
|
|
@@ -426,19 +426,19 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
426
426
|
}>;
|
|
427
427
|
formulaToShow: string;
|
|
428
428
|
validations: Types.DocumentArray<{
|
|
429
|
-
type: string;
|
|
430
429
|
typeOutput: string;
|
|
431
|
-
|
|
430
|
+
type?: string | null | undefined;
|
|
431
|
+
formulaToMessage?: string | null | undefined;
|
|
432
432
|
message?: string | null | undefined;
|
|
433
433
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
434
|
-
type: string;
|
|
435
434
|
typeOutput: string;
|
|
436
|
-
|
|
435
|
+
type?: string | null | undefined;
|
|
436
|
+
formulaToMessage?: string | null | undefined;
|
|
437
437
|
message?: string | null | undefined;
|
|
438
438
|
}> & {
|
|
439
|
-
type: string;
|
|
440
439
|
typeOutput: string;
|
|
441
|
-
|
|
440
|
+
type?: string | null | undefined;
|
|
441
|
+
formulaToMessage?: string | null | undefined;
|
|
442
442
|
message?: string | null | undefined;
|
|
443
443
|
}>;
|
|
444
444
|
show: boolean;
|
|
@@ -572,19 +572,19 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
572
572
|
}>;
|
|
573
573
|
formulaToShow: string;
|
|
574
574
|
validations: Types.DocumentArray<{
|
|
575
|
-
type: string;
|
|
576
575
|
typeOutput: string;
|
|
577
|
-
|
|
576
|
+
type?: string | null | undefined;
|
|
577
|
+
formulaToMessage?: string | null | undefined;
|
|
578
578
|
message?: string | null | undefined;
|
|
579
579
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
580
|
-
type: string;
|
|
581
580
|
typeOutput: string;
|
|
582
|
-
|
|
581
|
+
type?: string | null | undefined;
|
|
582
|
+
formulaToMessage?: string | null | undefined;
|
|
583
583
|
message?: string | null | undefined;
|
|
584
584
|
}> & {
|
|
585
|
-
type: string;
|
|
586
585
|
typeOutput: string;
|
|
587
|
-
|
|
586
|
+
type?: string | null | undefined;
|
|
587
|
+
formulaToMessage?: string | null | undefined;
|
|
588
588
|
message?: string | null | undefined;
|
|
589
589
|
}>;
|
|
590
590
|
show: boolean;
|
|
@@ -23,13 +23,13 @@ exports.QuestionOptionSchema = new mongoose_1.Schema({
|
|
|
23
23
|
active: { type: Boolean, required: true, default: true }
|
|
24
24
|
}, { _id: false });
|
|
25
25
|
exports.ValidationSchema = new mongoose_1.Schema({
|
|
26
|
-
type: { type: String, enum: enum_1.TypeValidationEnum
|
|
26
|
+
type: { type: String, enum: enum_1.TypeValidationEnum },
|
|
27
27
|
typeOutput: {
|
|
28
28
|
type: String,
|
|
29
29
|
enum: enum_1.TypeOutputValidationEnum,
|
|
30
30
|
default: enum_1.TypeOutputValidationEnum.TEXT
|
|
31
31
|
},
|
|
32
|
-
formulaToMessage: { type: String
|
|
32
|
+
formulaToMessage: { type: String },
|
|
33
33
|
message: { type: String }
|
|
34
34
|
}, { _id: false });
|
|
35
35
|
exports.FormUnitSchema = new mongoose_1.Schema({
|
|
@@ -40,19 +40,19 @@ export declare const QAAnswerSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
40
40
|
isValid?: {} | null | undefined;
|
|
41
41
|
};
|
|
42
42
|
validations: Types.DocumentArray<{
|
|
43
|
-
type: string;
|
|
44
43
|
typeOutput: string;
|
|
45
|
-
|
|
44
|
+
type?: string | null | undefined;
|
|
45
|
+
formulaToMessage?: string | null | undefined;
|
|
46
46
|
message?: string | null | undefined;
|
|
47
47
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
48
|
-
type: string;
|
|
49
48
|
typeOutput: string;
|
|
50
|
-
|
|
49
|
+
type?: string | null | undefined;
|
|
50
|
+
formulaToMessage?: string | null | undefined;
|
|
51
51
|
message?: string | null | undefined;
|
|
52
52
|
}> & {
|
|
53
|
-
type: string;
|
|
54
53
|
typeOutput: string;
|
|
55
|
-
|
|
54
|
+
type?: string | null | undefined;
|
|
55
|
+
formulaToMessage?: string | null | undefined;
|
|
56
56
|
message?: string | null | undefined;
|
|
57
57
|
}>;
|
|
58
58
|
requestGraphicData: Types.DocumentArray<{
|
|
@@ -116,19 +116,19 @@ export declare const QAAnswerSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
116
116
|
isValid?: {} | null | undefined;
|
|
117
117
|
};
|
|
118
118
|
validations: Types.DocumentArray<{
|
|
119
|
-
type: string;
|
|
120
119
|
typeOutput: string;
|
|
121
|
-
|
|
120
|
+
type?: string | null | undefined;
|
|
121
|
+
formulaToMessage?: string | null | undefined;
|
|
122
122
|
message?: string | null | undefined;
|
|
123
123
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
124
|
-
type: string;
|
|
125
124
|
typeOutput: string;
|
|
126
|
-
|
|
125
|
+
type?: string | null | undefined;
|
|
126
|
+
formulaToMessage?: string | null | undefined;
|
|
127
127
|
message?: string | null | undefined;
|
|
128
128
|
}> & {
|
|
129
|
-
type: string;
|
|
130
129
|
typeOutput: string;
|
|
131
|
-
|
|
130
|
+
type?: string | null | undefined;
|
|
131
|
+
formulaToMessage?: string | null | undefined;
|
|
132
132
|
message?: string | null | undefined;
|
|
133
133
|
}>;
|
|
134
134
|
requestGraphicData: Types.DocumentArray<{
|
|
@@ -192,19 +192,19 @@ export declare const QAAnswerSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
192
192
|
isValid?: {} | null | undefined;
|
|
193
193
|
};
|
|
194
194
|
validations: Types.DocumentArray<{
|
|
195
|
-
type: string;
|
|
196
195
|
typeOutput: string;
|
|
197
|
-
|
|
196
|
+
type?: string | null | undefined;
|
|
197
|
+
formulaToMessage?: string | null | undefined;
|
|
198
198
|
message?: string | null | undefined;
|
|
199
199
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
200
|
-
type: string;
|
|
201
200
|
typeOutput: string;
|
|
202
|
-
|
|
201
|
+
type?: string | null | undefined;
|
|
202
|
+
formulaToMessage?: string | null | undefined;
|
|
203
203
|
message?: string | null | undefined;
|
|
204
204
|
}> & {
|
|
205
|
-
type: string;
|
|
206
205
|
typeOutput: string;
|
|
207
|
-
|
|
206
|
+
type?: string | null | undefined;
|
|
207
|
+
formulaToMessage?: string | null | undefined;
|
|
208
208
|
message?: string | null | undefined;
|
|
209
209
|
}>;
|
|
210
210
|
requestGraphicData: Types.DocumentArray<{
|
|
@@ -29,19 +29,19 @@ export declare const QPCAnswerSchema: Schema<any, import("mongoose").Model<any,
|
|
|
29
29
|
isValid?: {} | null | undefined;
|
|
30
30
|
};
|
|
31
31
|
validations: Types.DocumentArray<{
|
|
32
|
-
type: string;
|
|
33
32
|
typeOutput: string;
|
|
34
|
-
|
|
33
|
+
type?: string | null | undefined;
|
|
34
|
+
formulaToMessage?: string | null | undefined;
|
|
35
35
|
message?: string | null | undefined;
|
|
36
36
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
37
|
-
type: string;
|
|
38
37
|
typeOutput: string;
|
|
39
|
-
|
|
38
|
+
type?: string | null | undefined;
|
|
39
|
+
formulaToMessage?: string | null | undefined;
|
|
40
40
|
message?: string | null | undefined;
|
|
41
41
|
}> & {
|
|
42
|
-
type: string;
|
|
43
42
|
typeOutput: string;
|
|
44
|
-
|
|
43
|
+
type?: string | null | undefined;
|
|
44
|
+
formulaToMessage?: string | null | undefined;
|
|
45
45
|
message?: string | null | undefined;
|
|
46
46
|
}>;
|
|
47
47
|
requestGraphicData: Types.DocumentArray<{
|
|
@@ -96,19 +96,19 @@ export declare const QPCAnswerSchema: Schema<any, import("mongoose").Model<any,
|
|
|
96
96
|
isValid?: {} | null | undefined;
|
|
97
97
|
};
|
|
98
98
|
validations: Types.DocumentArray<{
|
|
99
|
-
type: string;
|
|
100
99
|
typeOutput: string;
|
|
101
|
-
|
|
100
|
+
type?: string | null | undefined;
|
|
101
|
+
formulaToMessage?: string | null | undefined;
|
|
102
102
|
message?: string | null | undefined;
|
|
103
103
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
104
|
-
type: string;
|
|
105
104
|
typeOutput: string;
|
|
106
|
-
|
|
105
|
+
type?: string | null | undefined;
|
|
106
|
+
formulaToMessage?: string | null | undefined;
|
|
107
107
|
message?: string | null | undefined;
|
|
108
108
|
}> & {
|
|
109
|
-
type: string;
|
|
110
109
|
typeOutput: string;
|
|
111
|
-
|
|
110
|
+
type?: string | null | undefined;
|
|
111
|
+
formulaToMessage?: string | null | undefined;
|
|
112
112
|
message?: string | null | undefined;
|
|
113
113
|
}>;
|
|
114
114
|
requestGraphicData: Types.DocumentArray<{
|
|
@@ -163,19 +163,19 @@ export declare const QPCAnswerSchema: Schema<any, import("mongoose").Model<any,
|
|
|
163
163
|
isValid?: {} | null | undefined;
|
|
164
164
|
};
|
|
165
165
|
validations: Types.DocumentArray<{
|
|
166
|
-
type: string;
|
|
167
166
|
typeOutput: string;
|
|
168
|
-
|
|
167
|
+
type?: string | null | undefined;
|
|
168
|
+
formulaToMessage?: string | null | undefined;
|
|
169
169
|
message?: string | null | undefined;
|
|
170
170
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
171
|
-
type: string;
|
|
172
171
|
typeOutput: string;
|
|
173
|
-
|
|
172
|
+
type?: string | null | undefined;
|
|
173
|
+
formulaToMessage?: string | null | undefined;
|
|
174
174
|
message?: string | null | undefined;
|
|
175
175
|
}> & {
|
|
176
|
-
type: string;
|
|
177
176
|
typeOutput: string;
|
|
178
|
-
|
|
177
|
+
type?: string | null | undefined;
|
|
178
|
+
formulaToMessage?: string | null | undefined;
|
|
179
179
|
message?: string | null | undefined;
|
|
180
180
|
}>;
|
|
181
181
|
requestGraphicData: Types.DocumentArray<{
|