c2-clinical 1.0.76 → 1.0.78
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/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import ExecFormulaFlow from "./flow/on-answer/ExecFormulaFlow";
|
|
|
4
4
|
import OnAnswerQuestionsFlow from "./flow/on-answer/OnAnswerQuestionsFlow";
|
|
5
5
|
export * from "./models/enum";
|
|
6
6
|
export * from "./models/Answer";
|
|
7
|
+
export * from "./models/anamnese/AnamneseAnswer";
|
|
7
8
|
export * from "./models/antrophometric/Antrophometric";
|
|
8
9
|
export * from "./models/antrophometric/AntrophometricAnswer";
|
|
9
10
|
export * from "./models/Default";
|
package/dist/index.js
CHANGED
|
@@ -26,6 +26,7 @@ const OnAnswerQuestionsFlow_1 = __importDefault(require("./flow/on-answer/OnAnsw
|
|
|
26
26
|
exports.OnAnswerQuestionsFlow = OnAnswerQuestionsFlow_1.default;
|
|
27
27
|
__exportStar(require("./models/enum"), exports);
|
|
28
28
|
__exportStar(require("./models/Answer"), exports);
|
|
29
|
+
__exportStar(require("./models/anamnese/AnamneseAnswer"), exports);
|
|
29
30
|
__exportStar(require("./models/antrophometric/Antrophometric"), exports);
|
|
30
31
|
__exportStar(require("./models/antrophometric/AntrophometricAnswer"), exports);
|
|
31
32
|
__exportStar(require("./models/Default"), exports);
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { Schema, Types } from "mongoose";
|
|
2
|
+
import { IAnswer } from "../Answer";
|
|
3
|
+
import { IForm } from "../form/Form";
|
|
4
|
+
export interface IAnamneseAnswer extends IAnswer {
|
|
5
|
+
form: Types.ObjectId | IForm;
|
|
6
|
+
}
|
|
7
|
+
export declare const AnamneseAnswerSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
8
|
+
timestamps: {
|
|
9
|
+
createdAt: string;
|
|
10
|
+
updatedAt: string;
|
|
11
|
+
};
|
|
12
|
+
}, {} & {
|
|
13
|
+
account: any;
|
|
14
|
+
reference: any;
|
|
15
|
+
form: any;
|
|
16
|
+
validations: Types.DocumentArray<{
|
|
17
|
+
type: string;
|
|
18
|
+
typeOutput: string;
|
|
19
|
+
formulaToMessage: string;
|
|
20
|
+
}, Types.Subdocument<Types.ObjectId, any, {
|
|
21
|
+
type: string;
|
|
22
|
+
typeOutput: string;
|
|
23
|
+
formulaToMessage: string;
|
|
24
|
+
}> & {
|
|
25
|
+
type: string;
|
|
26
|
+
typeOutput: string;
|
|
27
|
+
formulaToMessage: string;
|
|
28
|
+
}>;
|
|
29
|
+
requestGraphicData: Types.DocumentArray<{
|
|
30
|
+
method: string;
|
|
31
|
+
url: string;
|
|
32
|
+
body?: any;
|
|
33
|
+
dataset?: any;
|
|
34
|
+
}, Types.Subdocument<Types.ObjectId, any, {
|
|
35
|
+
method: string;
|
|
36
|
+
url: string;
|
|
37
|
+
body?: any;
|
|
38
|
+
dataset?: any;
|
|
39
|
+
}> & {
|
|
40
|
+
method: string;
|
|
41
|
+
url: string;
|
|
42
|
+
body?: any;
|
|
43
|
+
dataset?: any;
|
|
44
|
+
}>;
|
|
45
|
+
answer?: any;
|
|
46
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
|
|
47
|
+
account: any;
|
|
48
|
+
reference: any;
|
|
49
|
+
form: any;
|
|
50
|
+
validations: Types.DocumentArray<{
|
|
51
|
+
type: string;
|
|
52
|
+
typeOutput: string;
|
|
53
|
+
formulaToMessage: string;
|
|
54
|
+
}, Types.Subdocument<Types.ObjectId, any, {
|
|
55
|
+
type: string;
|
|
56
|
+
typeOutput: string;
|
|
57
|
+
formulaToMessage: string;
|
|
58
|
+
}> & {
|
|
59
|
+
type: string;
|
|
60
|
+
typeOutput: string;
|
|
61
|
+
formulaToMessage: string;
|
|
62
|
+
}>;
|
|
63
|
+
requestGraphicData: Types.DocumentArray<{
|
|
64
|
+
method: string;
|
|
65
|
+
url: string;
|
|
66
|
+
body?: any;
|
|
67
|
+
dataset?: any;
|
|
68
|
+
}, Types.Subdocument<Types.ObjectId, any, {
|
|
69
|
+
method: string;
|
|
70
|
+
url: string;
|
|
71
|
+
body?: any;
|
|
72
|
+
dataset?: any;
|
|
73
|
+
}> & {
|
|
74
|
+
method: string;
|
|
75
|
+
url: string;
|
|
76
|
+
body?: any;
|
|
77
|
+
dataset?: any;
|
|
78
|
+
}>;
|
|
79
|
+
answer?: any;
|
|
80
|
+
}>, {}> & import("mongoose").FlatRecord<{} & {
|
|
81
|
+
account: any;
|
|
82
|
+
reference: any;
|
|
83
|
+
form: any;
|
|
84
|
+
validations: Types.DocumentArray<{
|
|
85
|
+
type: string;
|
|
86
|
+
typeOutput: string;
|
|
87
|
+
formulaToMessage: string;
|
|
88
|
+
}, Types.Subdocument<Types.ObjectId, any, {
|
|
89
|
+
type: string;
|
|
90
|
+
typeOutput: string;
|
|
91
|
+
formulaToMessage: string;
|
|
92
|
+
}> & {
|
|
93
|
+
type: string;
|
|
94
|
+
typeOutput: string;
|
|
95
|
+
formulaToMessage: string;
|
|
96
|
+
}>;
|
|
97
|
+
requestGraphicData: Types.DocumentArray<{
|
|
98
|
+
method: string;
|
|
99
|
+
url: string;
|
|
100
|
+
body?: any;
|
|
101
|
+
dataset?: any;
|
|
102
|
+
}, Types.Subdocument<Types.ObjectId, any, {
|
|
103
|
+
method: string;
|
|
104
|
+
url: string;
|
|
105
|
+
body?: any;
|
|
106
|
+
dataset?: any;
|
|
107
|
+
}> & {
|
|
108
|
+
method: string;
|
|
109
|
+
url: string;
|
|
110
|
+
body?: any;
|
|
111
|
+
dataset?: any;
|
|
112
|
+
}>;
|
|
113
|
+
answer?: any;
|
|
114
|
+
}> & {
|
|
115
|
+
_id: Types.ObjectId;
|
|
116
|
+
} & {
|
|
117
|
+
__v: number;
|
|
118
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AnamneseAnswerSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const FormUnit_1 = require("../form/FormUnit");
|
|
6
|
+
exports.AnamneseAnswerSchema = new mongoose_1.Schema({
|
|
7
|
+
account: { type: mongoose_1.Types.ObjectId, ref: "account", required: true },
|
|
8
|
+
form: { type: mongoose_1.Types.ObjectId, ref: "form", required: true },
|
|
9
|
+
reference: { type: mongoose_1.Types.ObjectId, ref: "form-unit", required: true },
|
|
10
|
+
answer: { type: mongoose_1.Schema.Types.Mixed },
|
|
11
|
+
validations: { type: [FormUnit_1.ValidationSchema] },
|
|
12
|
+
requestGraphicData: { type: [FormUnit_1.RequestGraphicDataSchema] }
|
|
13
|
+
}, {
|
|
14
|
+
timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
|
|
15
|
+
});
|
|
16
|
+
exports.AnamneseAnswerSchema.index({ account: 1 }, { unique: true });
|
|
17
|
+
exports.AnamneseAnswerSchema.index({ account: 1, form: 1 }, { unique: false });
|
package/package.json
CHANGED