c2-clinical 1.0.10 → 1.0.12
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/BuildTreeFlowItem.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +6 -0
- package/dist/models/File.d.ts +6 -6
- package/dist/models/form/Form.d.ts +3 -3
- package/dist/models/form/FormUnit.d.ts +15 -15
- package/dist/models/qpc/QPC.d.ts +6 -6
- package/dist/models/qpc/QPCAnswer.d.ts +9 -9
- package/package.json +1 -1
|
@@ -19,7 +19,7 @@ class BuildTreeFlowItem {
|
|
|
19
19
|
return rootFormUnit;
|
|
20
20
|
}
|
|
21
21
|
iterate(parent, children) {
|
|
22
|
-
parent.children = children.filter((child) => child.parent.toString() === parent._id.toString());
|
|
22
|
+
parent.children = children.filter((child) => child.parent._id.toString() === parent._id.toString());
|
|
23
23
|
parent.children.sort((a, b) => a.line - b.line);
|
|
24
24
|
if (parent.children.length > 0) {
|
|
25
25
|
parent.children.forEach((parentPossible) => {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import GroupFormUnitsFlow from "./flow/group/GroupFormUnitsFlow";
|
|
1
2
|
export * from "./models/File";
|
|
2
3
|
export * from "./models/IAccount";
|
|
3
4
|
export * from "./models/IDefault";
|
|
@@ -5,3 +6,4 @@ export * from "./models/form/Form";
|
|
|
5
6
|
export * from "./models/form/FormUnit";
|
|
6
7
|
export * from "./models/qpc/QPC";
|
|
7
8
|
export * from "./models/qpc/QPCAnswer";
|
|
9
|
+
export { GroupFormUnitsFlow };
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,13 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
13
13
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
+
};
|
|
16
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.GroupFormUnitsFlow = void 0;
|
|
21
|
+
const GroupFormUnitsFlow_1 = __importDefault(require("./flow/group/GroupFormUnitsFlow"));
|
|
22
|
+
exports.GroupFormUnitsFlow = GroupFormUnitsFlow_1.default;
|
|
17
23
|
__exportStar(require("./models/File"), exports);
|
|
18
24
|
__exportStar(require("./models/IAccount"), exports);
|
|
19
25
|
__exportStar(require("./models/IDefault"), exports);
|
package/dist/models/File.d.ts
CHANGED
|
@@ -13,20 +13,20 @@ export declare const FileSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
13
13
|
updatedAt: string;
|
|
14
14
|
};
|
|
15
15
|
}, {} & {
|
|
16
|
-
contentType: string;
|
|
17
16
|
description: string;
|
|
18
|
-
|
|
17
|
+
contentType: string;
|
|
19
18
|
url?: string | null | undefined;
|
|
19
|
+
format?: string | null | undefined;
|
|
20
20
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
|
|
21
|
-
contentType: string;
|
|
22
21
|
description: string;
|
|
23
|
-
|
|
22
|
+
contentType: string;
|
|
24
23
|
url?: string | null | undefined;
|
|
24
|
+
format?: string | null | undefined;
|
|
25
25
|
}>, {}> & import("mongoose").FlatRecord<{} & {
|
|
26
|
-
contentType: string;
|
|
27
26
|
description: string;
|
|
28
|
-
|
|
27
|
+
contentType: string;
|
|
29
28
|
url?: string | null | undefined;
|
|
29
|
+
format?: string | null | undefined;
|
|
30
30
|
}> & {
|
|
31
31
|
_id: import("mongoose").Types.ObjectId;
|
|
32
32
|
} & {
|
|
@@ -40,8 +40,8 @@ export declare const FormSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
40
40
|
type: string;
|
|
41
41
|
category: string;
|
|
42
42
|
owner: string;
|
|
43
|
-
description?: string | null | undefined;
|
|
44
43
|
account?: any;
|
|
44
|
+
description?: string | null | undefined;
|
|
45
45
|
observation?: string | null | undefined;
|
|
46
46
|
content?: string | null | undefined;
|
|
47
47
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
|
|
@@ -49,8 +49,8 @@ export declare const FormSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
49
49
|
type: string;
|
|
50
50
|
category: string;
|
|
51
51
|
owner: string;
|
|
52
|
-
description?: string | null | undefined;
|
|
53
52
|
account?: any;
|
|
53
|
+
description?: string | null | undefined;
|
|
54
54
|
observation?: string | null | undefined;
|
|
55
55
|
content?: string | null | undefined;
|
|
56
56
|
}>, {}> & import("mongoose").FlatRecord<{} & {
|
|
@@ -58,8 +58,8 @@ export declare const FormSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
58
58
|
type: string;
|
|
59
59
|
category: string;
|
|
60
60
|
owner: string;
|
|
61
|
-
description?: string | null | undefined;
|
|
62
61
|
account?: any;
|
|
62
|
+
description?: string | null | undefined;
|
|
63
63
|
observation?: string | null | undefined;
|
|
64
64
|
content?: string | null | undefined;
|
|
65
65
|
}> & {
|
|
@@ -114,18 +114,18 @@ export interface IRequestGraphicData {
|
|
|
114
114
|
export declare const RequestGraphicDataSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
115
115
|
_id: false;
|
|
116
116
|
}, {
|
|
117
|
-
url: string;
|
|
118
117
|
method: string;
|
|
118
|
+
url: string;
|
|
119
119
|
body?: any;
|
|
120
120
|
dataset?: any;
|
|
121
121
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
122
|
-
url: string;
|
|
123
122
|
method: string;
|
|
123
|
+
url: string;
|
|
124
124
|
body?: any;
|
|
125
125
|
dataset?: any;
|
|
126
126
|
}>, {}> & import("mongoose").FlatRecord<{
|
|
127
|
-
url: string;
|
|
128
127
|
method: string;
|
|
128
|
+
url: string;
|
|
129
129
|
body?: any;
|
|
130
130
|
dataset?: any;
|
|
131
131
|
}> & {
|
|
@@ -250,23 +250,23 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
250
250
|
show: any;
|
|
251
251
|
readOnly: any;
|
|
252
252
|
requestGraphicData: Types.DocumentArray<{
|
|
253
|
-
url: string;
|
|
254
253
|
method: string;
|
|
254
|
+
url: string;
|
|
255
255
|
body?: any;
|
|
256
256
|
dataset?: any;
|
|
257
257
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
258
|
-
url: string;
|
|
259
258
|
method: string;
|
|
259
|
+
url: string;
|
|
260
260
|
body?: any;
|
|
261
261
|
dataset?: any;
|
|
262
262
|
}> & {
|
|
263
|
-
url: string;
|
|
264
263
|
method: string;
|
|
264
|
+
url: string;
|
|
265
265
|
body?: any;
|
|
266
266
|
dataset?: any;
|
|
267
267
|
}>;
|
|
268
|
-
description?: string | null | undefined;
|
|
269
268
|
account?: any;
|
|
269
|
+
description?: string | null | undefined;
|
|
270
270
|
reference?: any;
|
|
271
271
|
example?: string | null | undefined;
|
|
272
272
|
parent?: any;
|
|
@@ -332,23 +332,23 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
332
332
|
show: any;
|
|
333
333
|
readOnly: any;
|
|
334
334
|
requestGraphicData: Types.DocumentArray<{
|
|
335
|
-
url: string;
|
|
336
335
|
method: string;
|
|
336
|
+
url: string;
|
|
337
337
|
body?: any;
|
|
338
338
|
dataset?: any;
|
|
339
339
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
340
|
-
url: string;
|
|
341
340
|
method: string;
|
|
341
|
+
url: string;
|
|
342
342
|
body?: any;
|
|
343
343
|
dataset?: any;
|
|
344
344
|
}> & {
|
|
345
|
-
url: string;
|
|
346
345
|
method: string;
|
|
346
|
+
url: string;
|
|
347
347
|
body?: any;
|
|
348
348
|
dataset?: any;
|
|
349
349
|
}>;
|
|
350
|
-
description?: string | null | undefined;
|
|
351
350
|
account?: any;
|
|
351
|
+
description?: string | null | undefined;
|
|
352
352
|
reference?: any;
|
|
353
353
|
example?: string | null | undefined;
|
|
354
354
|
parent?: any;
|
|
@@ -414,23 +414,23 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
414
414
|
show: any;
|
|
415
415
|
readOnly: any;
|
|
416
416
|
requestGraphicData: Types.DocumentArray<{
|
|
417
|
-
url: string;
|
|
418
417
|
method: string;
|
|
418
|
+
url: string;
|
|
419
419
|
body?: any;
|
|
420
420
|
dataset?: any;
|
|
421
421
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
422
|
-
url: string;
|
|
423
422
|
method: string;
|
|
423
|
+
url: string;
|
|
424
424
|
body?: any;
|
|
425
425
|
dataset?: any;
|
|
426
426
|
}> & {
|
|
427
|
-
url: string;
|
|
428
427
|
method: string;
|
|
428
|
+
url: string;
|
|
429
429
|
body?: any;
|
|
430
430
|
dataset?: any;
|
|
431
431
|
}>;
|
|
432
|
-
description?: string | null | undefined;
|
|
433
432
|
account?: any;
|
|
433
|
+
description?: string | null | undefined;
|
|
434
434
|
reference?: any;
|
|
435
435
|
example?: string | null | undefined;
|
|
436
436
|
parent?: any;
|
package/dist/models/qpc/QPC.d.ts
CHANGED
|
@@ -26,10 +26,10 @@ export declare const QPCSchema: Schema<any, import("mongoose").Model<any, any, a
|
|
|
26
26
|
bornDate: NativeDate;
|
|
27
27
|
status: string;
|
|
28
28
|
photo?: ({} & {
|
|
29
|
-
contentType: string;
|
|
30
29
|
description: string;
|
|
31
|
-
|
|
30
|
+
contentType: string;
|
|
32
31
|
url?: string | null | undefined;
|
|
32
|
+
format?: string | null | undefined;
|
|
33
33
|
}) | null | undefined;
|
|
34
34
|
answeredDateTime?: NativeDate | null | undefined;
|
|
35
35
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
|
|
@@ -39,10 +39,10 @@ export declare const QPCSchema: Schema<any, import("mongoose").Model<any, any, a
|
|
|
39
39
|
bornDate: NativeDate;
|
|
40
40
|
status: string;
|
|
41
41
|
photo?: ({} & {
|
|
42
|
-
contentType: string;
|
|
43
42
|
description: string;
|
|
44
|
-
|
|
43
|
+
contentType: string;
|
|
45
44
|
url?: string | null | undefined;
|
|
45
|
+
format?: string | null | undefined;
|
|
46
46
|
}) | null | undefined;
|
|
47
47
|
answeredDateTime?: NativeDate | null | undefined;
|
|
48
48
|
}>, {}> & import("mongoose").FlatRecord<{} & {
|
|
@@ -52,10 +52,10 @@ export declare const QPCSchema: Schema<any, import("mongoose").Model<any, any, a
|
|
|
52
52
|
bornDate: NativeDate;
|
|
53
53
|
status: string;
|
|
54
54
|
photo?: ({} & {
|
|
55
|
-
contentType: string;
|
|
56
55
|
description: string;
|
|
57
|
-
|
|
56
|
+
contentType: string;
|
|
58
57
|
url?: string | null | undefined;
|
|
58
|
+
format?: string | null | undefined;
|
|
59
59
|
}) | null | undefined;
|
|
60
60
|
answeredDateTime?: NativeDate | null | undefined;
|
|
61
61
|
}> & {
|
|
@@ -26,18 +26,18 @@ export declare const QPCAnswerSchema: Schema<any, import("mongoose").Model<any,
|
|
|
26
26
|
formulaToMessage: string;
|
|
27
27
|
}>;
|
|
28
28
|
requestGraphicData: Types.DocumentArray<{
|
|
29
|
-
url: string;
|
|
30
29
|
method: string;
|
|
30
|
+
url: string;
|
|
31
31
|
body?: any;
|
|
32
32
|
dataset?: any;
|
|
33
33
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
34
|
-
url: string;
|
|
35
34
|
method: string;
|
|
35
|
+
url: string;
|
|
36
36
|
body?: any;
|
|
37
37
|
dataset?: any;
|
|
38
38
|
}> & {
|
|
39
|
-
url: string;
|
|
40
39
|
method: string;
|
|
40
|
+
url: string;
|
|
41
41
|
body?: any;
|
|
42
42
|
dataset?: any;
|
|
43
43
|
}>;
|
|
@@ -60,18 +60,18 @@ export declare const QPCAnswerSchema: Schema<any, import("mongoose").Model<any,
|
|
|
60
60
|
formulaToMessage: string;
|
|
61
61
|
}>;
|
|
62
62
|
requestGraphicData: Types.DocumentArray<{
|
|
63
|
-
url: string;
|
|
64
63
|
method: string;
|
|
64
|
+
url: string;
|
|
65
65
|
body?: any;
|
|
66
66
|
dataset?: any;
|
|
67
67
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
68
|
-
url: string;
|
|
69
68
|
method: string;
|
|
69
|
+
url: string;
|
|
70
70
|
body?: any;
|
|
71
71
|
dataset?: any;
|
|
72
72
|
}> & {
|
|
73
|
-
url: string;
|
|
74
73
|
method: string;
|
|
74
|
+
url: string;
|
|
75
75
|
body?: any;
|
|
76
76
|
dataset?: any;
|
|
77
77
|
}>;
|
|
@@ -94,18 +94,18 @@ export declare const QPCAnswerSchema: Schema<any, import("mongoose").Model<any,
|
|
|
94
94
|
formulaToMessage: string;
|
|
95
95
|
}>;
|
|
96
96
|
requestGraphicData: Types.DocumentArray<{
|
|
97
|
-
url: string;
|
|
98
97
|
method: string;
|
|
98
|
+
url: string;
|
|
99
99
|
body?: any;
|
|
100
100
|
dataset?: any;
|
|
101
101
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
102
|
-
url: string;
|
|
103
102
|
method: string;
|
|
103
|
+
url: string;
|
|
104
104
|
body?: any;
|
|
105
105
|
dataset?: any;
|
|
106
106
|
}> & {
|
|
107
|
-
url: string;
|
|
108
107
|
method: string;
|
|
108
|
+
url: string;
|
|
109
109
|
body?: any;
|
|
110
110
|
dataset?: any;
|
|
111
111
|
}>;
|
package/package.json
CHANGED