c2-clinical 1.0.7 → 1.0.9
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.
|
@@ -16,9 +16,15 @@ export declare enum TypeFormEnum {
|
|
|
16
16
|
STRUCTURED = "STRUCTURED",
|
|
17
17
|
FREE_TEXT = "FREE_TEXT"
|
|
18
18
|
}
|
|
19
|
+
export declare enum OwnerEnum {
|
|
20
|
+
SYSTEM = "SYSTEM",
|
|
21
|
+
NUTRITIONIST_REFERENCE = "NUTRITIONIST_REFERENCE",
|
|
22
|
+
ACCOUNT = "ACCOUNT"
|
|
23
|
+
}
|
|
19
24
|
export interface IForm extends IDefault {
|
|
20
25
|
type: TypeFormEnum;
|
|
21
26
|
category: CategoryFormEnum;
|
|
27
|
+
owner: OwnerEnum;
|
|
22
28
|
name: string;
|
|
23
29
|
description: string;
|
|
24
30
|
observation: string;
|
|
@@ -33,6 +39,7 @@ export declare const FormSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
33
39
|
name: string;
|
|
34
40
|
type: string;
|
|
35
41
|
category: string;
|
|
42
|
+
owner: string;
|
|
36
43
|
description?: string | null | undefined;
|
|
37
44
|
account?: any;
|
|
38
45
|
observation?: string | null | undefined;
|
|
@@ -41,6 +48,7 @@ export declare const FormSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
41
48
|
name: string;
|
|
42
49
|
type: string;
|
|
43
50
|
category: string;
|
|
51
|
+
owner: string;
|
|
44
52
|
description?: string | null | undefined;
|
|
45
53
|
account?: any;
|
|
46
54
|
observation?: string | null | undefined;
|
|
@@ -49,6 +57,7 @@ export declare const FormSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
49
57
|
name: string;
|
|
50
58
|
type: string;
|
|
51
59
|
category: string;
|
|
60
|
+
owner: string;
|
|
52
61
|
description?: string | null | undefined;
|
|
53
62
|
account?: any;
|
|
54
63
|
observation?: string | null | undefined;
|
package/dist/models/form/Form.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FormSchema = exports.TypeFormEnum = exports.CategoryFormEnum = void 0;
|
|
3
|
+
exports.FormSchema = exports.OwnerEnum = exports.TypeFormEnum = exports.CategoryFormEnum = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
// import { AdminQuestionSchema, CategoryQuestionEnum } from "./AdminQuestionV2";
|
|
6
6
|
/**
|
|
@@ -21,11 +21,18 @@ var TypeFormEnum;
|
|
|
21
21
|
TypeFormEnum["STRUCTURED"] = "STRUCTURED";
|
|
22
22
|
TypeFormEnum["FREE_TEXT"] = "FREE_TEXT";
|
|
23
23
|
})(TypeFormEnum || (exports.TypeFormEnum = TypeFormEnum = {}));
|
|
24
|
+
var OwnerEnum;
|
|
25
|
+
(function (OwnerEnum) {
|
|
26
|
+
OwnerEnum["SYSTEM"] = "SYSTEM";
|
|
27
|
+
OwnerEnum["NUTRITIONIST_REFERENCE"] = "NUTRITIONIST_REFERENCE";
|
|
28
|
+
OwnerEnum["ACCOUNT"] = "ACCOUNT";
|
|
29
|
+
})(OwnerEnum || (exports.OwnerEnum = OwnerEnum = {}));
|
|
24
30
|
exports.FormSchema = new mongoose_1.Schema({
|
|
25
31
|
//account só é usado quando o form for montado por uma conta, quando for default ele deve estar sem preenchimento
|
|
26
32
|
account: { type: mongoose_1.Schema.Types.ObjectId, ref: "account" },
|
|
27
33
|
type: { type: String, enum: TypeFormEnum, required: true },
|
|
28
34
|
category: { type: String, enum: CategoryFormEnum, required: true },
|
|
35
|
+
owner: { type: String, enum: OwnerEnum, required: true },
|
|
29
36
|
name: { type: String, required: true },
|
|
30
37
|
description: { type: String },
|
|
31
38
|
observation: { type: String },
|
|
@@ -74,6 +74,7 @@ export interface IFormUnit extends IDefault {
|
|
|
74
74
|
sequence: number;
|
|
75
75
|
code: string;
|
|
76
76
|
description: string;
|
|
77
|
+
example: string;
|
|
77
78
|
parent: Types.ObjectId | IFormUnit;
|
|
78
79
|
line: number;
|
|
79
80
|
column: number;
|
|
@@ -266,6 +267,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
266
267
|
description?: string | null | undefined;
|
|
267
268
|
account?: any;
|
|
268
269
|
reference?: any;
|
|
270
|
+
example?: string | null | undefined;
|
|
269
271
|
parent?: any;
|
|
270
272
|
line?: number | null | undefined;
|
|
271
273
|
column?: number | null | undefined;
|
|
@@ -347,6 +349,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
347
349
|
description?: string | null | undefined;
|
|
348
350
|
account?: any;
|
|
349
351
|
reference?: any;
|
|
352
|
+
example?: string | null | undefined;
|
|
350
353
|
parent?: any;
|
|
351
354
|
line?: number | null | undefined;
|
|
352
355
|
column?: number | null | undefined;
|
|
@@ -428,6 +431,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
428
431
|
description?: string | null | undefined;
|
|
429
432
|
account?: any;
|
|
430
433
|
reference?: any;
|
|
434
|
+
example?: string | null | undefined;
|
|
431
435
|
parent?: any;
|
|
432
436
|
line?: number | null | undefined;
|
|
433
437
|
column?: number | null | undefined;
|
|
@@ -95,6 +95,7 @@ exports.FormUnitSchema = new mongoose_1.Schema({
|
|
|
95
95
|
sequence: { type: Number, required: true, immutable: true },
|
|
96
96
|
code: { type: String, required: true },
|
|
97
97
|
description: { type: String },
|
|
98
|
+
example: { type: String },
|
|
98
99
|
parent: { type: mongoose_1.Schema.Types.ObjectId, ref: "form-unit" },
|
|
99
100
|
line: { type: Number },
|
|
100
101
|
column: { type: Number },
|
package/package.json
CHANGED