c2-clinical 1.0.178 → 1.0.182
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/on-answer/OnAnswerQuestionsFlowTester.js +9 -9
- package/dist/flow/on-answer/ProcessAnswerFlowTester.js +3 -3
- package/dist/flow/on-answer/item/GetAnswerRelationedsFlowItemTester.js +1 -1
- package/dist/models/anamnese/AnamneseAnswer.d.ts +36 -27
- package/dist/models/anthropometry/AnthropometryAnswer.d.ts +36 -27
- package/dist/models/form/FormUnit.d.ts +20 -62
- package/dist/models/form/FormUnit.js +3 -2
- package/dist/models/qa/QAAnswer.d.ts +9 -0
- package/dist/models/qpc/QPCAnswer.d.ts +9 -0
- package/package.json +1 -1
|
@@ -3,10 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const enum_1 = require("../../models/enum");
|
|
6
7
|
const GroupFormUnitsFlow_1 = __importDefault(require("../group/GroupFormUnitsFlow"));
|
|
7
8
|
const ConvertRowToFormUnitsFlowItem_1 = __importDefault(require("./item/ConvertRowToFormUnitsFlowItem"));
|
|
8
9
|
const ProcessAnswerFlowTester_1 = __importDefault(require("./ProcessAnswerFlowTester"));
|
|
9
|
-
const enum_1 = require("../../models/enum");
|
|
10
10
|
class OnAnswerQuestionsFlowTester {
|
|
11
11
|
execute(answered, answersBank, metActivitiesPatient = []) {
|
|
12
12
|
const questionAnswered = answersBank.find((q) => q._id.toString() === answered._id.toString());
|
|
@@ -30,23 +30,23 @@ class OnAnswerQuestionsFlowTester {
|
|
|
30
30
|
const ret = this.execute(answered, bankAnswer, metActivitiesPatient);
|
|
31
31
|
bankAnswer = ret.bank;
|
|
32
32
|
}
|
|
33
|
-
//processar os graficos
|
|
33
|
+
//processar os ultimos pontos dos graficos
|
|
34
34
|
bankAnswer
|
|
35
35
|
.filter((fu) => fu.type === enum_1.TypeFormUnitEnum.GRAPHIC)
|
|
36
36
|
.forEach((fu) => {
|
|
37
|
-
if (fu.
|
|
38
|
-
fu.
|
|
39
|
-
var
|
|
40
|
-
|
|
37
|
+
if (fu.graphicData?.datasetPersonal?.length) {
|
|
38
|
+
fu.graphicData?.datasetPersonal?.forEach((datasetPersonal) => {
|
|
39
|
+
var lastPoint = {};
|
|
40
|
+
datasetPersonal.codesToData?.forEach((code) => {
|
|
41
41
|
const answer = bankAnswer.find((fu) => fu.code === code);
|
|
42
42
|
if (answer) {
|
|
43
|
-
|
|
44
|
-
...
|
|
43
|
+
lastPoint = {
|
|
44
|
+
...lastPoint,
|
|
45
45
|
[answer.description]: answer.answer
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
|
-
|
|
49
|
+
datasetPersonal.lastPoint = lastPoint;
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
});
|
|
@@ -64,9 +64,9 @@ class ProcessAnswerFlowTester {
|
|
|
64
64
|
ExecFormulaFlowTester_1.default.execute(option.formulaToEnable, allQuestionsAnswereds, attendanceMetActivities) ?? false;
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
-
//
|
|
68
|
-
if (relationed?.graphicData?.
|
|
69
|
-
relationed.graphicData.
|
|
67
|
+
// formulaToDatasetsBackground para graphicData
|
|
68
|
+
if (relationed?.graphicData?.formulaToDatasetsBackground) {
|
|
69
|
+
relationed.graphicData.datasetsBackground = ExecFormulaFlowTester_1.default.execute(relationed.graphicData.formulaToDatasetsBackground, allQuestionsAnswereds, attendanceMetActivities);
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
72
|
let questionsRelacionedsAnsweredsRet = [...autoAnswereds];
|
|
@@ -14,7 +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?.
|
|
17
|
+
regex.test(fu.graphicData?.formulaToDatasetsBackground) ||
|
|
18
18
|
fu.validations?.some((v) => regex.test(v.formulaToMessage)) ||
|
|
19
19
|
fu.options?.some((v) => regex.test(v.formulaToEnable)));
|
|
20
20
|
});
|
|
@@ -55,34 +55,37 @@ export declare const AnamneseAnswerSchema: Schema<any, import("mongoose").Model<
|
|
|
55
55
|
formulaToMessage: string;
|
|
56
56
|
message?: string | null | undefined;
|
|
57
57
|
}>;
|
|
58
|
+
anamnese: {
|
|
59
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
60
|
+
cacheHexString?: unknown;
|
|
61
|
+
generate?: {} | null | undefined;
|
|
62
|
+
createFromTime?: {} | null | undefined;
|
|
63
|
+
createFromHexString?: {} | null | undefined;
|
|
64
|
+
createFromBase64?: {} | null | undefined;
|
|
65
|
+
isValid?: {} | null | undefined;
|
|
66
|
+
};
|
|
58
67
|
requestGraphicData: Types.DocumentArray<{
|
|
59
68
|
method: string;
|
|
60
69
|
url: string;
|
|
61
70
|
codes: string[];
|
|
71
|
+
datasetsToAdd: any[];
|
|
62
72
|
body?: any;
|
|
63
73
|
dataset?: any;
|
|
64
74
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
65
75
|
method: string;
|
|
66
76
|
url: string;
|
|
67
77
|
codes: string[];
|
|
78
|
+
datasetsToAdd: any[];
|
|
68
79
|
body?: any;
|
|
69
80
|
dataset?: any;
|
|
70
81
|
}> & {
|
|
71
82
|
method: string;
|
|
72
83
|
url: string;
|
|
73
84
|
codes: string[];
|
|
85
|
+
datasetsToAdd: any[];
|
|
74
86
|
body?: any;
|
|
75
87
|
dataset?: any;
|
|
76
88
|
}>;
|
|
77
|
-
anamnese: {
|
|
78
|
-
prototype?: Types.ObjectId | null | undefined;
|
|
79
|
-
cacheHexString?: unknown;
|
|
80
|
-
generate?: {} | null | undefined;
|
|
81
|
-
createFromTime?: {} | null | undefined;
|
|
82
|
-
createFromHexString?: {} | null | undefined;
|
|
83
|
-
createFromBase64?: {} | null | undefined;
|
|
84
|
-
isValid?: {} | null | undefined;
|
|
85
|
-
};
|
|
86
89
|
answer?: any;
|
|
87
90
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
|
|
88
91
|
account: {
|
|
@@ -128,34 +131,37 @@ export declare const AnamneseAnswerSchema: Schema<any, import("mongoose").Model<
|
|
|
128
131
|
formulaToMessage: string;
|
|
129
132
|
message?: string | null | undefined;
|
|
130
133
|
}>;
|
|
134
|
+
anamnese: {
|
|
135
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
136
|
+
cacheHexString?: unknown;
|
|
137
|
+
generate?: {} | null | undefined;
|
|
138
|
+
createFromTime?: {} | null | undefined;
|
|
139
|
+
createFromHexString?: {} | null | undefined;
|
|
140
|
+
createFromBase64?: {} | null | undefined;
|
|
141
|
+
isValid?: {} | null | undefined;
|
|
142
|
+
};
|
|
131
143
|
requestGraphicData: Types.DocumentArray<{
|
|
132
144
|
method: string;
|
|
133
145
|
url: string;
|
|
134
146
|
codes: string[];
|
|
147
|
+
datasetsToAdd: any[];
|
|
135
148
|
body?: any;
|
|
136
149
|
dataset?: any;
|
|
137
150
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
138
151
|
method: string;
|
|
139
152
|
url: string;
|
|
140
153
|
codes: string[];
|
|
154
|
+
datasetsToAdd: any[];
|
|
141
155
|
body?: any;
|
|
142
156
|
dataset?: any;
|
|
143
157
|
}> & {
|
|
144
158
|
method: string;
|
|
145
159
|
url: string;
|
|
146
160
|
codes: string[];
|
|
161
|
+
datasetsToAdd: any[];
|
|
147
162
|
body?: any;
|
|
148
163
|
dataset?: any;
|
|
149
164
|
}>;
|
|
150
|
-
anamnese: {
|
|
151
|
-
prototype?: Types.ObjectId | null | undefined;
|
|
152
|
-
cacheHexString?: unknown;
|
|
153
|
-
generate?: {} | null | undefined;
|
|
154
|
-
createFromTime?: {} | null | undefined;
|
|
155
|
-
createFromHexString?: {} | null | undefined;
|
|
156
|
-
createFromBase64?: {} | null | undefined;
|
|
157
|
-
isValid?: {} | null | undefined;
|
|
158
|
-
};
|
|
159
165
|
answer?: any;
|
|
160
166
|
}>, {}> & import("mongoose").FlatRecord<{} & {
|
|
161
167
|
account: {
|
|
@@ -201,34 +207,37 @@ export declare const AnamneseAnswerSchema: Schema<any, import("mongoose").Model<
|
|
|
201
207
|
formulaToMessage: string;
|
|
202
208
|
message?: string | null | undefined;
|
|
203
209
|
}>;
|
|
210
|
+
anamnese: {
|
|
211
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
212
|
+
cacheHexString?: unknown;
|
|
213
|
+
generate?: {} | null | undefined;
|
|
214
|
+
createFromTime?: {} | null | undefined;
|
|
215
|
+
createFromHexString?: {} | null | undefined;
|
|
216
|
+
createFromBase64?: {} | null | undefined;
|
|
217
|
+
isValid?: {} | null | undefined;
|
|
218
|
+
};
|
|
204
219
|
requestGraphicData: Types.DocumentArray<{
|
|
205
220
|
method: string;
|
|
206
221
|
url: string;
|
|
207
222
|
codes: string[];
|
|
223
|
+
datasetsToAdd: any[];
|
|
208
224
|
body?: any;
|
|
209
225
|
dataset?: any;
|
|
210
226
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
211
227
|
method: string;
|
|
212
228
|
url: string;
|
|
213
229
|
codes: string[];
|
|
230
|
+
datasetsToAdd: any[];
|
|
214
231
|
body?: any;
|
|
215
232
|
dataset?: any;
|
|
216
233
|
}> & {
|
|
217
234
|
method: string;
|
|
218
235
|
url: string;
|
|
219
236
|
codes: string[];
|
|
237
|
+
datasetsToAdd: any[];
|
|
220
238
|
body?: any;
|
|
221
239
|
dataset?: any;
|
|
222
240
|
}>;
|
|
223
|
-
anamnese: {
|
|
224
|
-
prototype?: Types.ObjectId | null | undefined;
|
|
225
|
-
cacheHexString?: unknown;
|
|
226
|
-
generate?: {} | null | undefined;
|
|
227
|
-
createFromTime?: {} | null | undefined;
|
|
228
|
-
createFromHexString?: {} | null | undefined;
|
|
229
|
-
createFromBase64?: {} | null | undefined;
|
|
230
|
-
isValid?: {} | null | undefined;
|
|
231
|
-
};
|
|
232
241
|
answer?: any;
|
|
233
242
|
}> & {
|
|
234
243
|
_id: Types.ObjectId;
|
|
@@ -63,34 +63,37 @@ export declare const AnthropometryAnswerSchema: Schema<any, import("mongoose").M
|
|
|
63
63
|
}> & {
|
|
64
64
|
_id?: unknown;
|
|
65
65
|
}>;
|
|
66
|
+
patient: {
|
|
67
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
68
|
+
cacheHexString?: unknown;
|
|
69
|
+
generate?: {} | null | undefined;
|
|
70
|
+
createFromTime?: {} | null | undefined;
|
|
71
|
+
createFromHexString?: {} | null | undefined;
|
|
72
|
+
createFromBase64?: {} | null | undefined;
|
|
73
|
+
isValid?: {} | null | undefined;
|
|
74
|
+
};
|
|
66
75
|
requestGraphicData: Types.DocumentArray<{
|
|
67
76
|
method: string;
|
|
68
77
|
url: string;
|
|
69
78
|
codes: string[];
|
|
79
|
+
datasetsToAdd: any[];
|
|
70
80
|
body?: any;
|
|
71
81
|
dataset?: any;
|
|
72
82
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
73
83
|
method: string;
|
|
74
84
|
url: string;
|
|
75
85
|
codes: string[];
|
|
86
|
+
datasetsToAdd: any[];
|
|
76
87
|
body?: any;
|
|
77
88
|
dataset?: any;
|
|
78
89
|
}> & {
|
|
79
90
|
method: string;
|
|
80
91
|
url: string;
|
|
81
92
|
codes: string[];
|
|
93
|
+
datasetsToAdd: any[];
|
|
82
94
|
body?: any;
|
|
83
95
|
dataset?: any;
|
|
84
96
|
}>;
|
|
85
|
-
patient: {
|
|
86
|
-
prototype?: Types.ObjectId | null | undefined;
|
|
87
|
-
cacheHexString?: unknown;
|
|
88
|
-
generate?: {} | null | undefined;
|
|
89
|
-
createFromTime?: {} | null | undefined;
|
|
90
|
-
createFromHexString?: {} | null | undefined;
|
|
91
|
-
createFromBase64?: {} | null | undefined;
|
|
92
|
-
isValid?: {} | null | undefined;
|
|
93
|
-
};
|
|
94
97
|
anthropometry: {
|
|
95
98
|
prototype?: Types.ObjectId | null | undefined;
|
|
96
99
|
cacheHexString?: unknown;
|
|
@@ -151,34 +154,37 @@ export declare const AnthropometryAnswerSchema: Schema<any, import("mongoose").M
|
|
|
151
154
|
}> & {
|
|
152
155
|
_id?: unknown;
|
|
153
156
|
}>;
|
|
157
|
+
patient: {
|
|
158
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
159
|
+
cacheHexString?: unknown;
|
|
160
|
+
generate?: {} | null | undefined;
|
|
161
|
+
createFromTime?: {} | null | undefined;
|
|
162
|
+
createFromHexString?: {} | null | undefined;
|
|
163
|
+
createFromBase64?: {} | null | undefined;
|
|
164
|
+
isValid?: {} | null | undefined;
|
|
165
|
+
};
|
|
154
166
|
requestGraphicData: Types.DocumentArray<{
|
|
155
167
|
method: string;
|
|
156
168
|
url: string;
|
|
157
169
|
codes: string[];
|
|
170
|
+
datasetsToAdd: any[];
|
|
158
171
|
body?: any;
|
|
159
172
|
dataset?: any;
|
|
160
173
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
161
174
|
method: string;
|
|
162
175
|
url: string;
|
|
163
176
|
codes: string[];
|
|
177
|
+
datasetsToAdd: any[];
|
|
164
178
|
body?: any;
|
|
165
179
|
dataset?: any;
|
|
166
180
|
}> & {
|
|
167
181
|
method: string;
|
|
168
182
|
url: string;
|
|
169
183
|
codes: string[];
|
|
184
|
+
datasetsToAdd: any[];
|
|
170
185
|
body?: any;
|
|
171
186
|
dataset?: any;
|
|
172
187
|
}>;
|
|
173
|
-
patient: {
|
|
174
|
-
prototype?: Types.ObjectId | null | undefined;
|
|
175
|
-
cacheHexString?: unknown;
|
|
176
|
-
generate?: {} | null | undefined;
|
|
177
|
-
createFromTime?: {} | null | undefined;
|
|
178
|
-
createFromHexString?: {} | null | undefined;
|
|
179
|
-
createFromBase64?: {} | null | undefined;
|
|
180
|
-
isValid?: {} | null | undefined;
|
|
181
|
-
};
|
|
182
188
|
anthropometry: {
|
|
183
189
|
prototype?: Types.ObjectId | null | undefined;
|
|
184
190
|
cacheHexString?: unknown;
|
|
@@ -239,34 +245,37 @@ export declare const AnthropometryAnswerSchema: Schema<any, import("mongoose").M
|
|
|
239
245
|
}> & {
|
|
240
246
|
_id?: unknown;
|
|
241
247
|
}>;
|
|
248
|
+
patient: {
|
|
249
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
250
|
+
cacheHexString?: unknown;
|
|
251
|
+
generate?: {} | null | undefined;
|
|
252
|
+
createFromTime?: {} | null | undefined;
|
|
253
|
+
createFromHexString?: {} | null | undefined;
|
|
254
|
+
createFromBase64?: {} | null | undefined;
|
|
255
|
+
isValid?: {} | null | undefined;
|
|
256
|
+
};
|
|
242
257
|
requestGraphicData: Types.DocumentArray<{
|
|
243
258
|
method: string;
|
|
244
259
|
url: string;
|
|
245
260
|
codes: string[];
|
|
261
|
+
datasetsToAdd: any[];
|
|
246
262
|
body?: any;
|
|
247
263
|
dataset?: any;
|
|
248
264
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
249
265
|
method: string;
|
|
250
266
|
url: string;
|
|
251
267
|
codes: string[];
|
|
268
|
+
datasetsToAdd: any[];
|
|
252
269
|
body?: any;
|
|
253
270
|
dataset?: any;
|
|
254
271
|
}> & {
|
|
255
272
|
method: string;
|
|
256
273
|
url: string;
|
|
257
274
|
codes: string[];
|
|
275
|
+
datasetsToAdd: any[];
|
|
258
276
|
body?: any;
|
|
259
277
|
dataset?: any;
|
|
260
278
|
}>;
|
|
261
|
-
patient: {
|
|
262
|
-
prototype?: Types.ObjectId | null | undefined;
|
|
263
|
-
cacheHexString?: unknown;
|
|
264
|
-
generate?: {} | null | undefined;
|
|
265
|
-
createFromTime?: {} | null | undefined;
|
|
266
|
-
createFromHexString?: {} | null | undefined;
|
|
267
|
-
createFromBase64?: {} | null | undefined;
|
|
268
|
-
isValid?: {} | null | undefined;
|
|
269
|
-
};
|
|
270
279
|
anthropometry: {
|
|
271
280
|
prototype?: Types.ObjectId | null | undefined;
|
|
272
281
|
cacheHexString?: unknown;
|
|
@@ -86,7 +86,6 @@ export interface IFormUnit extends IDefault {
|
|
|
86
86
|
codeEnableFreeText: string;
|
|
87
87
|
labelFreeText: string;
|
|
88
88
|
graphicData: IGraphicData;
|
|
89
|
-
requestGraphicData: IRequestGraphicData[];
|
|
90
89
|
children?: IFormUnit[];
|
|
91
90
|
lines?: IRow[];
|
|
92
91
|
modalConfig?: IModalConfig;
|
|
@@ -116,11 +115,23 @@ export interface IQuestionOption {
|
|
|
116
115
|
image: string;
|
|
117
116
|
color: string;
|
|
118
117
|
}
|
|
119
|
-
export interface
|
|
118
|
+
export interface IDataset {
|
|
120
119
|
[key: string]: any;
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
120
|
+
label: string;
|
|
121
|
+
data: any[];
|
|
122
|
+
}
|
|
123
|
+
export interface IDatasetsPersonal {
|
|
124
|
+
codesToData: string[];
|
|
125
|
+
datasets: IDataset;
|
|
126
|
+
lastPoint: {
|
|
127
|
+
[key: string]: any;
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
export interface IGraphicData {
|
|
131
|
+
config: any;
|
|
132
|
+
datasetsBackground: IDataset[];
|
|
133
|
+
formulaToDatasetsBackground: string;
|
|
134
|
+
datasetPersonal: IDatasetsPersonal[];
|
|
124
135
|
}
|
|
125
136
|
export interface IRequestGraphicData {
|
|
126
137
|
method: string;
|
|
@@ -128,6 +139,7 @@ export interface IRequestGraphicData {
|
|
|
128
139
|
body: any;
|
|
129
140
|
dataset: any;
|
|
130
141
|
codes: string[];
|
|
142
|
+
datasetsToAdd: any[];
|
|
131
143
|
}
|
|
132
144
|
export declare const RequestGraphicDataSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
133
145
|
_id: false;
|
|
@@ -135,18 +147,21 @@ export declare const RequestGraphicDataSchema: Schema<any, import("mongoose").Mo
|
|
|
135
147
|
method: string;
|
|
136
148
|
url: string;
|
|
137
149
|
codes: string[];
|
|
150
|
+
datasetsToAdd: any[];
|
|
138
151
|
body?: any;
|
|
139
152
|
dataset?: any;
|
|
140
153
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
141
154
|
method: string;
|
|
142
155
|
url: string;
|
|
143
156
|
codes: string[];
|
|
157
|
+
datasetsToAdd: any[];
|
|
144
158
|
body?: any;
|
|
145
159
|
dataset?: any;
|
|
146
160
|
}>, {}> & import("mongoose").FlatRecord<{
|
|
147
161
|
method: string;
|
|
148
162
|
url: string;
|
|
149
163
|
codes: string[];
|
|
164
|
+
datasetsToAdd: any[];
|
|
150
165
|
body?: any;
|
|
151
166
|
dataset?: any;
|
|
152
167
|
}> & {
|
|
@@ -278,25 +293,6 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
278
293
|
show: boolean;
|
|
279
294
|
readOnly: boolean;
|
|
280
295
|
ellegibleForComparison: boolean;
|
|
281
|
-
requestGraphicData: Types.DocumentArray<{
|
|
282
|
-
method: string;
|
|
283
|
-
url: string;
|
|
284
|
-
codes: string[];
|
|
285
|
-
body?: any;
|
|
286
|
-
dataset?: any;
|
|
287
|
-
}, Types.Subdocument<Types.ObjectId, any, {
|
|
288
|
-
method: string;
|
|
289
|
-
url: string;
|
|
290
|
-
codes: string[];
|
|
291
|
-
body?: any;
|
|
292
|
-
dataset?: any;
|
|
293
|
-
}> & {
|
|
294
|
-
method: string;
|
|
295
|
-
url: string;
|
|
296
|
-
codes: string[];
|
|
297
|
-
body?: any;
|
|
298
|
-
dataset?: any;
|
|
299
|
-
}>;
|
|
300
296
|
tips: Types.DocumentArray<{
|
|
301
297
|
type: string;
|
|
302
298
|
text?: string | null | undefined;
|
|
@@ -439,25 +435,6 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
439
435
|
show: boolean;
|
|
440
436
|
readOnly: boolean;
|
|
441
437
|
ellegibleForComparison: boolean;
|
|
442
|
-
requestGraphicData: Types.DocumentArray<{
|
|
443
|
-
method: string;
|
|
444
|
-
url: string;
|
|
445
|
-
codes: string[];
|
|
446
|
-
body?: any;
|
|
447
|
-
dataset?: any;
|
|
448
|
-
}, Types.Subdocument<Types.ObjectId, any, {
|
|
449
|
-
method: string;
|
|
450
|
-
url: string;
|
|
451
|
-
codes: string[];
|
|
452
|
-
body?: any;
|
|
453
|
-
dataset?: any;
|
|
454
|
-
}> & {
|
|
455
|
-
method: string;
|
|
456
|
-
url: string;
|
|
457
|
-
codes: string[];
|
|
458
|
-
body?: any;
|
|
459
|
-
dataset?: any;
|
|
460
|
-
}>;
|
|
461
438
|
tips: Types.DocumentArray<{
|
|
462
439
|
type: string;
|
|
463
440
|
text?: string | null | undefined;
|
|
@@ -600,25 +577,6 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
600
577
|
show: boolean;
|
|
601
578
|
readOnly: boolean;
|
|
602
579
|
ellegibleForComparison: boolean;
|
|
603
|
-
requestGraphicData: Types.DocumentArray<{
|
|
604
|
-
method: string;
|
|
605
|
-
url: string;
|
|
606
|
-
codes: string[];
|
|
607
|
-
body?: any;
|
|
608
|
-
dataset?: any;
|
|
609
|
-
}, Types.Subdocument<Types.ObjectId, any, {
|
|
610
|
-
method: string;
|
|
611
|
-
url: string;
|
|
612
|
-
codes: string[];
|
|
613
|
-
body?: any;
|
|
614
|
-
dataset?: any;
|
|
615
|
-
}> & {
|
|
616
|
-
method: string;
|
|
617
|
-
url: string;
|
|
618
|
-
codes: string[];
|
|
619
|
-
body?: any;
|
|
620
|
-
dataset?: any;
|
|
621
|
-
}>;
|
|
622
580
|
tips: Types.DocumentArray<{
|
|
623
581
|
type: string;
|
|
624
582
|
text?: string | null | undefined;
|
|
@@ -8,7 +8,8 @@ exports.RequestGraphicDataSchema = new mongoose_1.Schema({
|
|
|
8
8
|
url: { type: String, required: true },
|
|
9
9
|
body: { type: mongoose_1.Schema.Types.Mixed },
|
|
10
10
|
dataset: { type: mongoose_1.Schema.Types.Mixed },
|
|
11
|
-
codes: { type: [String] }
|
|
11
|
+
codes: { type: [String] },
|
|
12
|
+
datasetsToAdd: { type: [mongoose_1.Schema.Types.Mixed] }
|
|
12
13
|
}, { _id: false });
|
|
13
14
|
exports.QuestionOptionSchema = new mongoose_1.Schema({
|
|
14
15
|
sequence: { type: Number, required: true },
|
|
@@ -74,7 +75,7 @@ exports.FormUnitSchema = new mongoose_1.Schema({
|
|
|
74
75
|
labelFreeText: { type: String },
|
|
75
76
|
//DADOS PARA GRAFICOS
|
|
76
77
|
graphicData: { type: mongoose_1.Schema.Types.Mixed },
|
|
77
|
-
requestGraphicData: { type: [
|
|
78
|
+
// requestGraphicData: { type: [RequestGraphicDataSchema] },
|
|
78
79
|
//DADOS PARA MODAL
|
|
79
80
|
modalConfig: {
|
|
80
81
|
type: {
|
|
@@ -59,18 +59,21 @@ export declare const QAAnswerSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
59
59
|
method: string;
|
|
60
60
|
url: string;
|
|
61
61
|
codes: string[];
|
|
62
|
+
datasetsToAdd: any[];
|
|
62
63
|
body?: any;
|
|
63
64
|
dataset?: any;
|
|
64
65
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
65
66
|
method: string;
|
|
66
67
|
url: string;
|
|
67
68
|
codes: string[];
|
|
69
|
+
datasetsToAdd: any[];
|
|
68
70
|
body?: any;
|
|
69
71
|
dataset?: any;
|
|
70
72
|
}> & {
|
|
71
73
|
method: string;
|
|
72
74
|
url: string;
|
|
73
75
|
codes: string[];
|
|
76
|
+
datasetsToAdd: any[];
|
|
74
77
|
body?: any;
|
|
75
78
|
dataset?: any;
|
|
76
79
|
}>;
|
|
@@ -132,18 +135,21 @@ export declare const QAAnswerSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
132
135
|
method: string;
|
|
133
136
|
url: string;
|
|
134
137
|
codes: string[];
|
|
138
|
+
datasetsToAdd: any[];
|
|
135
139
|
body?: any;
|
|
136
140
|
dataset?: any;
|
|
137
141
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
138
142
|
method: string;
|
|
139
143
|
url: string;
|
|
140
144
|
codes: string[];
|
|
145
|
+
datasetsToAdd: any[];
|
|
141
146
|
body?: any;
|
|
142
147
|
dataset?: any;
|
|
143
148
|
}> & {
|
|
144
149
|
method: string;
|
|
145
150
|
url: string;
|
|
146
151
|
codes: string[];
|
|
152
|
+
datasetsToAdd: any[];
|
|
147
153
|
body?: any;
|
|
148
154
|
dataset?: any;
|
|
149
155
|
}>;
|
|
@@ -205,18 +211,21 @@ export declare const QAAnswerSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
205
211
|
method: string;
|
|
206
212
|
url: string;
|
|
207
213
|
codes: string[];
|
|
214
|
+
datasetsToAdd: any[];
|
|
208
215
|
body?: any;
|
|
209
216
|
dataset?: any;
|
|
210
217
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
211
218
|
method: string;
|
|
212
219
|
url: string;
|
|
213
220
|
codes: string[];
|
|
221
|
+
datasetsToAdd: any[];
|
|
214
222
|
body?: any;
|
|
215
223
|
dataset?: any;
|
|
216
224
|
}> & {
|
|
217
225
|
method: string;
|
|
218
226
|
url: string;
|
|
219
227
|
codes: string[];
|
|
228
|
+
datasetsToAdd: any[];
|
|
220
229
|
body?: any;
|
|
221
230
|
dataset?: any;
|
|
222
231
|
}>;
|
|
@@ -48,18 +48,21 @@ export declare const QPCAnswerSchema: Schema<any, import("mongoose").Model<any,
|
|
|
48
48
|
method: string;
|
|
49
49
|
url: string;
|
|
50
50
|
codes: string[];
|
|
51
|
+
datasetsToAdd: any[];
|
|
51
52
|
body?: any;
|
|
52
53
|
dataset?: any;
|
|
53
54
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
54
55
|
method: string;
|
|
55
56
|
url: string;
|
|
56
57
|
codes: string[];
|
|
58
|
+
datasetsToAdd: any[];
|
|
57
59
|
body?: any;
|
|
58
60
|
dataset?: any;
|
|
59
61
|
}> & {
|
|
60
62
|
method: string;
|
|
61
63
|
url: string;
|
|
62
64
|
codes: string[];
|
|
65
|
+
datasetsToAdd: any[];
|
|
63
66
|
body?: any;
|
|
64
67
|
dataset?: any;
|
|
65
68
|
}>;
|
|
@@ -112,18 +115,21 @@ export declare const QPCAnswerSchema: Schema<any, import("mongoose").Model<any,
|
|
|
112
115
|
method: string;
|
|
113
116
|
url: string;
|
|
114
117
|
codes: string[];
|
|
118
|
+
datasetsToAdd: any[];
|
|
115
119
|
body?: any;
|
|
116
120
|
dataset?: any;
|
|
117
121
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
118
122
|
method: string;
|
|
119
123
|
url: string;
|
|
120
124
|
codes: string[];
|
|
125
|
+
datasetsToAdd: any[];
|
|
121
126
|
body?: any;
|
|
122
127
|
dataset?: any;
|
|
123
128
|
}> & {
|
|
124
129
|
method: string;
|
|
125
130
|
url: string;
|
|
126
131
|
codes: string[];
|
|
132
|
+
datasetsToAdd: any[];
|
|
127
133
|
body?: any;
|
|
128
134
|
dataset?: any;
|
|
129
135
|
}>;
|
|
@@ -176,18 +182,21 @@ export declare const QPCAnswerSchema: Schema<any, import("mongoose").Model<any,
|
|
|
176
182
|
method: string;
|
|
177
183
|
url: string;
|
|
178
184
|
codes: string[];
|
|
185
|
+
datasetsToAdd: any[];
|
|
179
186
|
body?: any;
|
|
180
187
|
dataset?: any;
|
|
181
188
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
182
189
|
method: string;
|
|
183
190
|
url: string;
|
|
184
191
|
codes: string[];
|
|
192
|
+
datasetsToAdd: any[];
|
|
185
193
|
body?: any;
|
|
186
194
|
dataset?: any;
|
|
187
195
|
}> & {
|
|
188
196
|
method: string;
|
|
189
197
|
url: string;
|
|
190
198
|
codes: string[];
|
|
199
|
+
datasetsToAdd: any[];
|
|
191
200
|
body?: any;
|
|
192
201
|
dataset?: any;
|
|
193
202
|
}>;
|