c2-clinical 1.0.225 → 1.0.227
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 +2 -0
- package/dist/index.js +2 -0
- package/dist/models/enum.d.ts +2 -1
- package/dist/models/enum.js +1 -0
- package/dist/models/macronutrients-distribution/MarconutrientsDistribution.d.ts +110 -0
- package/dist/models/macronutrients-distribution/MarconutrientsDistribution.js +13 -0
- package/dist/models/macronutrients-distribution/MarconutrientsDistributionAnswer.d.ts +293 -0
- package/dist/models/macronutrients-distribution/MarconutrientsDistributionAnswer.js +38 -0
- package/dist/models/nutritional-plan/NutritionalPlan.d.ts +27 -0
- package/dist/models/nutritional-plan/NutritionalPlan.js +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,8 @@ export * from "./models/food/Food";
|
|
|
20
20
|
export * from "./models/food/FoodEquivalent";
|
|
21
21
|
export * from "./models/form/Form";
|
|
22
22
|
export * from "./models/form/FormUnit";
|
|
23
|
+
export * from "./models/macronutrients-distribution/MarconutrientsDistribution";
|
|
24
|
+
export * from "./models/macronutrients-distribution/MarconutrientsDistributionAnswer";
|
|
23
25
|
export * from "./models/met-activity/MetActivity";
|
|
24
26
|
export * from "./models/nutritional-plan/NutritionalPlan";
|
|
25
27
|
export * from "./models/patient/Address";
|
package/dist/index.js
CHANGED
|
@@ -46,6 +46,8 @@ __exportStar(require("./models/food/Food"), exports);
|
|
|
46
46
|
__exportStar(require("./models/food/FoodEquivalent"), exports);
|
|
47
47
|
__exportStar(require("./models/form/Form"), exports);
|
|
48
48
|
__exportStar(require("./models/form/FormUnit"), exports);
|
|
49
|
+
__exportStar(require("./models/macronutrients-distribution/MarconutrientsDistribution"), exports);
|
|
50
|
+
__exportStar(require("./models/macronutrients-distribution/MarconutrientsDistributionAnswer"), exports);
|
|
49
51
|
__exportStar(require("./models/met-activity/MetActivity"), exports);
|
|
50
52
|
__exportStar(require("./models/nutritional-plan/NutritionalPlan"), exports);
|
|
51
53
|
__exportStar(require("./models/patient/Address"), exports);
|
package/dist/models/enum.d.ts
CHANGED
|
@@ -34,7 +34,8 @@ export declare enum CategoryFormEnum {
|
|
|
34
34
|
ANTHROPOMETRY = "ANTHROPOMETRY",
|
|
35
35
|
ENERGY_EXPENDITURE = "ENERGY_EXPENDITURE",
|
|
36
36
|
EXAM_RESULT = "EXAM_RESULT",
|
|
37
|
-
PREGNANCY_MONITORING = "PREGNANCY_MONITORING"
|
|
37
|
+
PREGNANCY_MONITORING = "PREGNANCY_MONITORING",
|
|
38
|
+
MACRONUTRIENTS_DISTRIBUTION = "MACRONUTRIENTS_DISTRIBUTION"
|
|
38
39
|
}
|
|
39
40
|
export declare enum TypeFormEnum {
|
|
40
41
|
STRUCTURED = "STRUCTURED",
|
package/dist/models/enum.js
CHANGED
|
@@ -44,6 +44,7 @@ var CategoryFormEnum;
|
|
|
44
44
|
CategoryFormEnum["ENERGY_EXPENDITURE"] = "ENERGY_EXPENDITURE";
|
|
45
45
|
CategoryFormEnum["EXAM_RESULT"] = "EXAM_RESULT";
|
|
46
46
|
CategoryFormEnum["PREGNANCY_MONITORING"] = "PREGNANCY_MONITORING";
|
|
47
|
+
CategoryFormEnum["MACRONUTRIENTS_DISTRIBUTION"] = "MACRONUTRIENTS_DISTRIBUTION";
|
|
47
48
|
})(CategoryFormEnum || (exports.CategoryFormEnum = CategoryFormEnum = {}));
|
|
48
49
|
var TypeFormEnum;
|
|
49
50
|
(function (TypeFormEnum) {
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { Schema, Types } from "mongoose";
|
|
2
|
+
import { IDefault } from "../Default";
|
|
3
|
+
import { IForm } from "../form/Form";
|
|
4
|
+
import { IPatient } from "../patient/Patient";
|
|
5
|
+
export interface IMarconutrientsDistribution extends IDefault {
|
|
6
|
+
patient: Types.ObjectId | IPatient;
|
|
7
|
+
form: Types.ObjectId | IForm;
|
|
8
|
+
showingToPatient: boolean;
|
|
9
|
+
macronutrientsDistributionDateTime: Date;
|
|
10
|
+
}
|
|
11
|
+
export declare const MarconutrientsDistributionSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
12
|
+
timestamps: {
|
|
13
|
+
createdAt: string;
|
|
14
|
+
updatedAt: string;
|
|
15
|
+
};
|
|
16
|
+
}, {} & {
|
|
17
|
+
account: {
|
|
18
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
19
|
+
cacheHexString?: unknown;
|
|
20
|
+
generate?: {} | null | undefined;
|
|
21
|
+
createFromTime?: {} | null | undefined;
|
|
22
|
+
createFromHexString?: {} | null | undefined;
|
|
23
|
+
createFromBase64?: {} | null | undefined;
|
|
24
|
+
isValid?: {} | null | undefined;
|
|
25
|
+
};
|
|
26
|
+
form: {
|
|
27
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
28
|
+
cacheHexString?: unknown;
|
|
29
|
+
generate?: {} | null | undefined;
|
|
30
|
+
createFromTime?: {} | null | undefined;
|
|
31
|
+
createFromHexString?: {} | null | undefined;
|
|
32
|
+
createFromBase64?: {} | null | undefined;
|
|
33
|
+
isValid?: {} | null | undefined;
|
|
34
|
+
};
|
|
35
|
+
patient: {
|
|
36
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
37
|
+
cacheHexString?: unknown;
|
|
38
|
+
generate?: {} | null | undefined;
|
|
39
|
+
createFromTime?: {} | null | undefined;
|
|
40
|
+
createFromHexString?: {} | null | undefined;
|
|
41
|
+
createFromBase64?: {} | null | undefined;
|
|
42
|
+
isValid?: {} | null | undefined;
|
|
43
|
+
};
|
|
44
|
+
showingToPatient: boolean;
|
|
45
|
+
macronutrientsDistributionDateTime?: NativeDate | null | undefined;
|
|
46
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
|
|
47
|
+
account: {
|
|
48
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
49
|
+
cacheHexString?: unknown;
|
|
50
|
+
generate?: {} | null | undefined;
|
|
51
|
+
createFromTime?: {} | null | undefined;
|
|
52
|
+
createFromHexString?: {} | null | undefined;
|
|
53
|
+
createFromBase64?: {} | null | undefined;
|
|
54
|
+
isValid?: {} | null | undefined;
|
|
55
|
+
};
|
|
56
|
+
form: {
|
|
57
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
58
|
+
cacheHexString?: unknown;
|
|
59
|
+
generate?: {} | null | undefined;
|
|
60
|
+
createFromTime?: {} | null | undefined;
|
|
61
|
+
createFromHexString?: {} | null | undefined;
|
|
62
|
+
createFromBase64?: {} | null | undefined;
|
|
63
|
+
isValid?: {} | null | undefined;
|
|
64
|
+
};
|
|
65
|
+
patient: {
|
|
66
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
67
|
+
cacheHexString?: unknown;
|
|
68
|
+
generate?: {} | null | undefined;
|
|
69
|
+
createFromTime?: {} | null | undefined;
|
|
70
|
+
createFromHexString?: {} | null | undefined;
|
|
71
|
+
createFromBase64?: {} | null | undefined;
|
|
72
|
+
isValid?: {} | null | undefined;
|
|
73
|
+
};
|
|
74
|
+
showingToPatient: boolean;
|
|
75
|
+
macronutrientsDistributionDateTime?: NativeDate | null | undefined;
|
|
76
|
+
}>, {}> & import("mongoose").FlatRecord<{} & {
|
|
77
|
+
account: {
|
|
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
|
+
form: {
|
|
87
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
88
|
+
cacheHexString?: unknown;
|
|
89
|
+
generate?: {} | null | undefined;
|
|
90
|
+
createFromTime?: {} | null | undefined;
|
|
91
|
+
createFromHexString?: {} | null | undefined;
|
|
92
|
+
createFromBase64?: {} | null | undefined;
|
|
93
|
+
isValid?: {} | null | undefined;
|
|
94
|
+
};
|
|
95
|
+
patient: {
|
|
96
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
97
|
+
cacheHexString?: unknown;
|
|
98
|
+
generate?: {} | null | undefined;
|
|
99
|
+
createFromTime?: {} | null | undefined;
|
|
100
|
+
createFromHexString?: {} | null | undefined;
|
|
101
|
+
createFromBase64?: {} | null | undefined;
|
|
102
|
+
isValid?: {} | null | undefined;
|
|
103
|
+
};
|
|
104
|
+
showingToPatient: boolean;
|
|
105
|
+
macronutrientsDistributionDateTime?: NativeDate | null | undefined;
|
|
106
|
+
}> & {
|
|
107
|
+
_id: Types.ObjectId;
|
|
108
|
+
} & {
|
|
109
|
+
__v: number;
|
|
110
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MarconutrientsDistributionSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
exports.MarconutrientsDistributionSchema = new mongoose_1.Schema({
|
|
6
|
+
account: { type: mongoose_1.Types.ObjectId, ref: "account", required: true },
|
|
7
|
+
patient: { type: mongoose_1.Types.ObjectId, ref: "patient", required: true },
|
|
8
|
+
form: { type: mongoose_1.Types.ObjectId, ref: "form", required: true },
|
|
9
|
+
showingToPatient: { type: Boolean, default: false },
|
|
10
|
+
macronutrientsDistributionDateTime: { type: Date }
|
|
11
|
+
}, {
|
|
12
|
+
timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
|
|
13
|
+
});
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
import { Schema, Types } from "mongoose";
|
|
2
|
+
import { IAnswer } from "../Answer";
|
|
3
|
+
import { IForm } from "../form/Form";
|
|
4
|
+
import { IPatient } from "../patient/Patient";
|
|
5
|
+
import { IMarconutrientsDistribution } from "./MarconutrientsDistribution";
|
|
6
|
+
export interface IMarconutrientsDistributionAnswer extends IAnswer {
|
|
7
|
+
form: Types.ObjectId | IForm;
|
|
8
|
+
macronutrientsDistribution: Types.ObjectId | IMarconutrientsDistribution;
|
|
9
|
+
patient: Types.ObjectId | IPatient;
|
|
10
|
+
}
|
|
11
|
+
export declare const MarconutrientsDistributionAnswerSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
12
|
+
timestamps: {
|
|
13
|
+
createdAt: string;
|
|
14
|
+
updatedAt: string;
|
|
15
|
+
};
|
|
16
|
+
}, {} & {
|
|
17
|
+
account: {
|
|
18
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
19
|
+
cacheHexString?: unknown;
|
|
20
|
+
generate?: {} | null | undefined;
|
|
21
|
+
createFromTime?: {} | null | undefined;
|
|
22
|
+
createFromHexString?: {} | null | undefined;
|
|
23
|
+
createFromBase64?: {} | null | undefined;
|
|
24
|
+
isValid?: {} | null | undefined;
|
|
25
|
+
};
|
|
26
|
+
reference: {
|
|
27
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
28
|
+
cacheHexString?: unknown;
|
|
29
|
+
generate?: {} | null | undefined;
|
|
30
|
+
createFromTime?: {} | null | undefined;
|
|
31
|
+
createFromHexString?: {} | null | undefined;
|
|
32
|
+
createFromBase64?: {} | null | undefined;
|
|
33
|
+
isValid?: {} | null | undefined;
|
|
34
|
+
};
|
|
35
|
+
form: {
|
|
36
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
37
|
+
cacheHexString?: unknown;
|
|
38
|
+
generate?: {} | null | undefined;
|
|
39
|
+
createFromTime?: {} | null | undefined;
|
|
40
|
+
createFromHexString?: {} | null | undefined;
|
|
41
|
+
createFromBase64?: {} | null | undefined;
|
|
42
|
+
isValid?: {} | null | undefined;
|
|
43
|
+
};
|
|
44
|
+
validations: Types.DocumentArray<{
|
|
45
|
+
typeOutput: string;
|
|
46
|
+
type?: string | null | undefined;
|
|
47
|
+
message?: string | null | undefined;
|
|
48
|
+
}, Types.Subdocument<Types.ObjectId, any, {
|
|
49
|
+
typeOutput: string;
|
|
50
|
+
type?: string | null | undefined;
|
|
51
|
+
message?: string | null | undefined;
|
|
52
|
+
}> & {
|
|
53
|
+
typeOutput: string;
|
|
54
|
+
type?: string | null | undefined;
|
|
55
|
+
message?: string | null | undefined;
|
|
56
|
+
}> | Types.DocumentArray<{
|
|
57
|
+
_id?: unknown;
|
|
58
|
+
}, Types.Subdocument<unknown, any, {
|
|
59
|
+
_id?: unknown;
|
|
60
|
+
}> & {
|
|
61
|
+
_id?: unknown;
|
|
62
|
+
}>;
|
|
63
|
+
patient: {
|
|
64
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
65
|
+
cacheHexString?: unknown;
|
|
66
|
+
generate?: {} | null | undefined;
|
|
67
|
+
createFromTime?: {} | null | undefined;
|
|
68
|
+
createFromHexString?: {} | null | undefined;
|
|
69
|
+
createFromBase64?: {} | null | undefined;
|
|
70
|
+
isValid?: {} | null | undefined;
|
|
71
|
+
};
|
|
72
|
+
requestGraphicData: Types.DocumentArray<{
|
|
73
|
+
method: string;
|
|
74
|
+
url: string;
|
|
75
|
+
codes: string[];
|
|
76
|
+
datasetsToAdd: any[];
|
|
77
|
+
body?: any;
|
|
78
|
+
dataset?: any;
|
|
79
|
+
}, Types.Subdocument<Types.ObjectId, any, {
|
|
80
|
+
method: string;
|
|
81
|
+
url: string;
|
|
82
|
+
codes: string[];
|
|
83
|
+
datasetsToAdd: any[];
|
|
84
|
+
body?: any;
|
|
85
|
+
dataset?: any;
|
|
86
|
+
}> & {
|
|
87
|
+
method: string;
|
|
88
|
+
url: string;
|
|
89
|
+
codes: string[];
|
|
90
|
+
datasetsToAdd: any[];
|
|
91
|
+
body?: any;
|
|
92
|
+
dataset?: any;
|
|
93
|
+
}>;
|
|
94
|
+
macronutrientsDistribution: {
|
|
95
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
96
|
+
cacheHexString?: unknown;
|
|
97
|
+
generate?: {} | null | undefined;
|
|
98
|
+
createFromTime?: {} | null | undefined;
|
|
99
|
+
createFromHexString?: {} | null | undefined;
|
|
100
|
+
createFromBase64?: {} | null | undefined;
|
|
101
|
+
isValid?: {} | null | undefined;
|
|
102
|
+
};
|
|
103
|
+
answer?: any;
|
|
104
|
+
referenceValue?: any;
|
|
105
|
+
classificationLabel?: any;
|
|
106
|
+
classificationColor?: any;
|
|
107
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
|
|
108
|
+
account: {
|
|
109
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
110
|
+
cacheHexString?: unknown;
|
|
111
|
+
generate?: {} | null | undefined;
|
|
112
|
+
createFromTime?: {} | null | undefined;
|
|
113
|
+
createFromHexString?: {} | null | undefined;
|
|
114
|
+
createFromBase64?: {} | null | undefined;
|
|
115
|
+
isValid?: {} | null | undefined;
|
|
116
|
+
};
|
|
117
|
+
reference: {
|
|
118
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
119
|
+
cacheHexString?: unknown;
|
|
120
|
+
generate?: {} | null | undefined;
|
|
121
|
+
createFromTime?: {} | null | undefined;
|
|
122
|
+
createFromHexString?: {} | null | undefined;
|
|
123
|
+
createFromBase64?: {} | null | undefined;
|
|
124
|
+
isValid?: {} | null | undefined;
|
|
125
|
+
};
|
|
126
|
+
form: {
|
|
127
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
128
|
+
cacheHexString?: unknown;
|
|
129
|
+
generate?: {} | null | undefined;
|
|
130
|
+
createFromTime?: {} | null | undefined;
|
|
131
|
+
createFromHexString?: {} | null | undefined;
|
|
132
|
+
createFromBase64?: {} | null | undefined;
|
|
133
|
+
isValid?: {} | null | undefined;
|
|
134
|
+
};
|
|
135
|
+
validations: Types.DocumentArray<{
|
|
136
|
+
typeOutput: string;
|
|
137
|
+
type?: string | null | undefined;
|
|
138
|
+
message?: string | null | undefined;
|
|
139
|
+
}, Types.Subdocument<Types.ObjectId, any, {
|
|
140
|
+
typeOutput: string;
|
|
141
|
+
type?: string | null | undefined;
|
|
142
|
+
message?: string | null | undefined;
|
|
143
|
+
}> & {
|
|
144
|
+
typeOutput: string;
|
|
145
|
+
type?: string | null | undefined;
|
|
146
|
+
message?: string | null | undefined;
|
|
147
|
+
}> | Types.DocumentArray<{
|
|
148
|
+
_id?: unknown;
|
|
149
|
+
}, Types.Subdocument<unknown, any, {
|
|
150
|
+
_id?: unknown;
|
|
151
|
+
}> & {
|
|
152
|
+
_id?: unknown;
|
|
153
|
+
}>;
|
|
154
|
+
patient: {
|
|
155
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
156
|
+
cacheHexString?: unknown;
|
|
157
|
+
generate?: {} | null | undefined;
|
|
158
|
+
createFromTime?: {} | null | undefined;
|
|
159
|
+
createFromHexString?: {} | null | undefined;
|
|
160
|
+
createFromBase64?: {} | null | undefined;
|
|
161
|
+
isValid?: {} | null | undefined;
|
|
162
|
+
};
|
|
163
|
+
requestGraphicData: Types.DocumentArray<{
|
|
164
|
+
method: string;
|
|
165
|
+
url: string;
|
|
166
|
+
codes: string[];
|
|
167
|
+
datasetsToAdd: any[];
|
|
168
|
+
body?: any;
|
|
169
|
+
dataset?: any;
|
|
170
|
+
}, Types.Subdocument<Types.ObjectId, any, {
|
|
171
|
+
method: string;
|
|
172
|
+
url: string;
|
|
173
|
+
codes: string[];
|
|
174
|
+
datasetsToAdd: any[];
|
|
175
|
+
body?: any;
|
|
176
|
+
dataset?: any;
|
|
177
|
+
}> & {
|
|
178
|
+
method: string;
|
|
179
|
+
url: string;
|
|
180
|
+
codes: string[];
|
|
181
|
+
datasetsToAdd: any[];
|
|
182
|
+
body?: any;
|
|
183
|
+
dataset?: any;
|
|
184
|
+
}>;
|
|
185
|
+
macronutrientsDistribution: {
|
|
186
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
187
|
+
cacheHexString?: unknown;
|
|
188
|
+
generate?: {} | null | undefined;
|
|
189
|
+
createFromTime?: {} | null | undefined;
|
|
190
|
+
createFromHexString?: {} | null | undefined;
|
|
191
|
+
createFromBase64?: {} | null | undefined;
|
|
192
|
+
isValid?: {} | null | undefined;
|
|
193
|
+
};
|
|
194
|
+
answer?: any;
|
|
195
|
+
referenceValue?: any;
|
|
196
|
+
classificationLabel?: any;
|
|
197
|
+
classificationColor?: any;
|
|
198
|
+
}>, {}> & import("mongoose").FlatRecord<{} & {
|
|
199
|
+
account: {
|
|
200
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
201
|
+
cacheHexString?: unknown;
|
|
202
|
+
generate?: {} | null | undefined;
|
|
203
|
+
createFromTime?: {} | null | undefined;
|
|
204
|
+
createFromHexString?: {} | null | undefined;
|
|
205
|
+
createFromBase64?: {} | null | undefined;
|
|
206
|
+
isValid?: {} | null | undefined;
|
|
207
|
+
};
|
|
208
|
+
reference: {
|
|
209
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
210
|
+
cacheHexString?: unknown;
|
|
211
|
+
generate?: {} | null | undefined;
|
|
212
|
+
createFromTime?: {} | null | undefined;
|
|
213
|
+
createFromHexString?: {} | null | undefined;
|
|
214
|
+
createFromBase64?: {} | null | undefined;
|
|
215
|
+
isValid?: {} | null | undefined;
|
|
216
|
+
};
|
|
217
|
+
form: {
|
|
218
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
219
|
+
cacheHexString?: unknown;
|
|
220
|
+
generate?: {} | null | undefined;
|
|
221
|
+
createFromTime?: {} | null | undefined;
|
|
222
|
+
createFromHexString?: {} | null | undefined;
|
|
223
|
+
createFromBase64?: {} | null | undefined;
|
|
224
|
+
isValid?: {} | null | undefined;
|
|
225
|
+
};
|
|
226
|
+
validations: Types.DocumentArray<{
|
|
227
|
+
typeOutput: string;
|
|
228
|
+
type?: string | null | undefined;
|
|
229
|
+
message?: string | null | undefined;
|
|
230
|
+
}, Types.Subdocument<Types.ObjectId, any, {
|
|
231
|
+
typeOutput: string;
|
|
232
|
+
type?: string | null | undefined;
|
|
233
|
+
message?: string | null | undefined;
|
|
234
|
+
}> & {
|
|
235
|
+
typeOutput: string;
|
|
236
|
+
type?: string | null | undefined;
|
|
237
|
+
message?: string | null | undefined;
|
|
238
|
+
}> | Types.DocumentArray<{
|
|
239
|
+
_id?: unknown;
|
|
240
|
+
}, Types.Subdocument<unknown, any, {
|
|
241
|
+
_id?: unknown;
|
|
242
|
+
}> & {
|
|
243
|
+
_id?: unknown;
|
|
244
|
+
}>;
|
|
245
|
+
patient: {
|
|
246
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
247
|
+
cacheHexString?: unknown;
|
|
248
|
+
generate?: {} | null | undefined;
|
|
249
|
+
createFromTime?: {} | null | undefined;
|
|
250
|
+
createFromHexString?: {} | null | undefined;
|
|
251
|
+
createFromBase64?: {} | null | undefined;
|
|
252
|
+
isValid?: {} | null | undefined;
|
|
253
|
+
};
|
|
254
|
+
requestGraphicData: Types.DocumentArray<{
|
|
255
|
+
method: string;
|
|
256
|
+
url: string;
|
|
257
|
+
codes: string[];
|
|
258
|
+
datasetsToAdd: any[];
|
|
259
|
+
body?: any;
|
|
260
|
+
dataset?: any;
|
|
261
|
+
}, Types.Subdocument<Types.ObjectId, any, {
|
|
262
|
+
method: string;
|
|
263
|
+
url: string;
|
|
264
|
+
codes: string[];
|
|
265
|
+
datasetsToAdd: any[];
|
|
266
|
+
body?: any;
|
|
267
|
+
dataset?: any;
|
|
268
|
+
}> & {
|
|
269
|
+
method: string;
|
|
270
|
+
url: string;
|
|
271
|
+
codes: string[];
|
|
272
|
+
datasetsToAdd: any[];
|
|
273
|
+
body?: any;
|
|
274
|
+
dataset?: any;
|
|
275
|
+
}>;
|
|
276
|
+
macronutrientsDistribution: {
|
|
277
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
278
|
+
cacheHexString?: unknown;
|
|
279
|
+
generate?: {} | null | undefined;
|
|
280
|
+
createFromTime?: {} | null | undefined;
|
|
281
|
+
createFromHexString?: {} | null | undefined;
|
|
282
|
+
createFromBase64?: {} | null | undefined;
|
|
283
|
+
isValid?: {} | null | undefined;
|
|
284
|
+
};
|
|
285
|
+
answer?: any;
|
|
286
|
+
referenceValue?: any;
|
|
287
|
+
classificationLabel?: any;
|
|
288
|
+
classificationColor?: any;
|
|
289
|
+
}> & {
|
|
290
|
+
_id: Types.ObjectId;
|
|
291
|
+
} & {
|
|
292
|
+
__v: number;
|
|
293
|
+
}>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MarconutrientsDistributionAnswerSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const enum_1 = require("../enum");
|
|
6
|
+
const FormUnit_1 = require("../form/FormUnit");
|
|
7
|
+
exports.MarconutrientsDistributionAnswerSchema = new mongoose_1.Schema({
|
|
8
|
+
account: { type: mongoose_1.Types.ObjectId, ref: "account", required: true },
|
|
9
|
+
macronutrientsDistribution: {
|
|
10
|
+
type: mongoose_1.Types.ObjectId,
|
|
11
|
+
ref: "macronutrients-distribution",
|
|
12
|
+
required: true
|
|
13
|
+
},
|
|
14
|
+
patient: { type: mongoose_1.Types.ObjectId, ref: "patient", required: true },
|
|
15
|
+
form: { type: mongoose_1.Types.ObjectId, ref: "form", required: true },
|
|
16
|
+
reference: { type: mongoose_1.Types.ObjectId, ref: "form-unit", required: true },
|
|
17
|
+
answer: { type: mongoose_1.Schema.Types.Mixed },
|
|
18
|
+
referenceValue: { type: mongoose_1.Schema.Types.Mixed },
|
|
19
|
+
classificationLabel: { type: mongoose_1.Schema.Types.Mixed },
|
|
20
|
+
classificationColor: { type: mongoose_1.Schema.Types.Mixed },
|
|
21
|
+
validations: {
|
|
22
|
+
type: [
|
|
23
|
+
{
|
|
24
|
+
type: { type: String, enum: enum_1.TypeValidationEnum },
|
|
25
|
+
typeOutput: {
|
|
26
|
+
type: String,
|
|
27
|
+
enum: enum_1.TypeOutputValidationEnum,
|
|
28
|
+
default: enum_1.TypeOutputValidationEnum.TEXT
|
|
29
|
+
},
|
|
30
|
+
message: { type: String }
|
|
31
|
+
},
|
|
32
|
+
{ _id: false }
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
requestGraphicData: { type: [FormUnit_1.RequestGraphicDataSchema] }
|
|
36
|
+
}, {
|
|
37
|
+
timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
|
|
38
|
+
});
|
|
@@ -5156,6 +5156,15 @@ export declare const NutritionalPlanSchema: Schema<any, import("mongoose").Model
|
|
|
5156
5156
|
lactoVegetarian: boolean;
|
|
5157
5157
|
ovoVegetarian: boolean;
|
|
5158
5158
|
};
|
|
5159
|
+
macronutrientsDistribution?: {
|
|
5160
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
5161
|
+
cacheHexString?: unknown;
|
|
5162
|
+
generate?: {} | null | undefined;
|
|
5163
|
+
createFromTime?: {} | null | undefined;
|
|
5164
|
+
createFromHexString?: {} | null | undefined;
|
|
5165
|
+
createFromBase64?: {} | null | undefined;
|
|
5166
|
+
isValid?: {} | null | undefined;
|
|
5167
|
+
} | null | undefined;
|
|
5159
5168
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
|
|
5160
5169
|
type: string;
|
|
5161
5170
|
patient: {
|
|
@@ -7377,6 +7386,15 @@ export declare const NutritionalPlanSchema: Schema<any, import("mongoose").Model
|
|
|
7377
7386
|
lactoVegetarian: boolean;
|
|
7378
7387
|
ovoVegetarian: boolean;
|
|
7379
7388
|
};
|
|
7389
|
+
macronutrientsDistribution?: {
|
|
7390
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
7391
|
+
cacheHexString?: unknown;
|
|
7392
|
+
generate?: {} | null | undefined;
|
|
7393
|
+
createFromTime?: {} | null | undefined;
|
|
7394
|
+
createFromHexString?: {} | null | undefined;
|
|
7395
|
+
createFromBase64?: {} | null | undefined;
|
|
7396
|
+
isValid?: {} | null | undefined;
|
|
7397
|
+
} | null | undefined;
|
|
7380
7398
|
}>, {}> & import("mongoose").FlatRecord<{} & {
|
|
7381
7399
|
type: string;
|
|
7382
7400
|
patient: {
|
|
@@ -9598,6 +9616,15 @@ export declare const NutritionalPlanSchema: Schema<any, import("mongoose").Model
|
|
|
9598
9616
|
lactoVegetarian: boolean;
|
|
9599
9617
|
ovoVegetarian: boolean;
|
|
9600
9618
|
};
|
|
9619
|
+
macronutrientsDistribution?: {
|
|
9620
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
9621
|
+
cacheHexString?: unknown;
|
|
9622
|
+
generate?: {} | null | undefined;
|
|
9623
|
+
createFromTime?: {} | null | undefined;
|
|
9624
|
+
createFromHexString?: {} | null | undefined;
|
|
9625
|
+
createFromBase64?: {} | null | undefined;
|
|
9626
|
+
isValid?: {} | null | undefined;
|
|
9627
|
+
} | null | undefined;
|
|
9601
9628
|
}> & {
|
|
9602
9629
|
_id: Types.ObjectId;
|
|
9603
9630
|
} & {
|
|
@@ -78,7 +78,8 @@ exports.NutritionalPlanSchema = new mongoose_1.Schema({
|
|
|
78
78
|
ovoVegetarian: false
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
|
-
items: { type: [exports.NutritionalPlanItemSchema] }
|
|
81
|
+
items: { type: [exports.NutritionalPlanItemSchema] },
|
|
82
|
+
macronutrientsDistribution: { type: mongoose_1.Types.ObjectId, ref: "macronutrients-distribution" }
|
|
82
83
|
}, {
|
|
83
84
|
timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
|
|
84
85
|
});
|