c2-clinical 1.0.194 → 1.0.196
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 +3 -0
- package/dist/index.js +3 -0
- package/dist/models/energy-expenditure/EnergyExpenditure.d.ts +41 -0
- package/dist/models/energy-expenditure/EnergyExpenditure.js +5 -1
- package/dist/models/energy-expenditure/EnergyExpenditureMetActivity.d.ts +2 -15
- package/dist/models/energy-expenditure/EnergyExpenditureMetActivity.js +2 -4
- package/dist/models/enum.d.ts +3 -1
- package/dist/models/enum.js +2 -0
- package/dist/models/form/FormUnit.d.ts +4 -0
- package/dist/models/form/FormUnit.js +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,9 @@ export * from "./models/anamnese/Anamnese";
|
|
|
14
14
|
export * from "./models/anamnese/AnamneseAnswer";
|
|
15
15
|
export * from "./models/anthropometry/Anthropometry";
|
|
16
16
|
export * from "./models/anthropometry/AnthropometryAnswer";
|
|
17
|
+
export * from "./models/energy-expenditure/EnergyExpenditure";
|
|
18
|
+
export * from "./models/energy-expenditure/EnergyExpenditureMetActivity";
|
|
19
|
+
export * from "./models/met-activity/MetActivity";
|
|
17
20
|
export * from "./models/form/Form";
|
|
18
21
|
export * from "./models/form/FormUnit";
|
|
19
22
|
export * from "./models/patient/Address";
|
package/dist/index.js
CHANGED
|
@@ -39,6 +39,9 @@ __exportStar(require("./models/anamnese/Anamnese"), exports);
|
|
|
39
39
|
__exportStar(require("./models/anamnese/AnamneseAnswer"), exports);
|
|
40
40
|
__exportStar(require("./models/anthropometry/Anthropometry"), exports);
|
|
41
41
|
__exportStar(require("./models/anthropometry/AnthropometryAnswer"), exports);
|
|
42
|
+
__exportStar(require("./models/energy-expenditure/EnergyExpenditure"), exports);
|
|
43
|
+
__exportStar(require("./models/energy-expenditure/EnergyExpenditureMetActivity"), exports);
|
|
44
|
+
__exportStar(require("./models/met-activity/MetActivity"), exports);
|
|
42
45
|
__exportStar(require("./models/form/Form"), exports);
|
|
43
46
|
__exportStar(require("./models/form/FormUnit"), exports);
|
|
44
47
|
__exportStar(require("./models/patient/Address"), exports);
|
|
@@ -2,6 +2,7 @@ import { Schema, Types } from "mongoose";
|
|
|
2
2
|
import { IDefault } from "../Default";
|
|
3
3
|
import { IForm } from "../form/Form";
|
|
4
4
|
import { IPatient } from "../patient/Patient";
|
|
5
|
+
import { IEnergyExpenditureMetActivity } from "./EnergyExpenditureMetActivity";
|
|
5
6
|
export interface IEnergyExpenditure extends IDefault {
|
|
6
7
|
patient: Types.ObjectId | IPatient;
|
|
7
8
|
form: Types.ObjectId | IForm;
|
|
@@ -9,6 +10,7 @@ export interface IEnergyExpenditure extends IDefault {
|
|
|
9
10
|
energyExpenditureDateTime: Date;
|
|
10
11
|
code: string;
|
|
11
12
|
description: string;
|
|
13
|
+
metActivities: IEnergyExpenditureMetActivity[];
|
|
12
14
|
}
|
|
13
15
|
export declare const EnergyExpenditureSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
14
16
|
timestamps: {
|
|
@@ -44,6 +46,19 @@ export declare const EnergyExpenditureSchema: Schema<any, import("mongoose").Mod
|
|
|
44
46
|
isValid?: {} | null | undefined;
|
|
45
47
|
};
|
|
46
48
|
showingToPatient: boolean;
|
|
49
|
+
metActivities: Types.DocumentArray<{} & {
|
|
50
|
+
met: Types.ObjectId;
|
|
51
|
+
totalTime: string;
|
|
52
|
+
timeCoefficient: number;
|
|
53
|
+
}, Types.Subdocument<Types.ObjectId, any, {} & {
|
|
54
|
+
met: Types.ObjectId;
|
|
55
|
+
totalTime: string;
|
|
56
|
+
timeCoefficient: number;
|
|
57
|
+
}> & {} & {
|
|
58
|
+
met: Types.ObjectId;
|
|
59
|
+
totalTime: string;
|
|
60
|
+
timeCoefficient: number;
|
|
61
|
+
}>;
|
|
47
62
|
description?: string | null | undefined;
|
|
48
63
|
code?: string | null | undefined;
|
|
49
64
|
energyExpenditureDateTime?: NativeDate | null | undefined;
|
|
@@ -76,6 +91,19 @@ export declare const EnergyExpenditureSchema: Schema<any, import("mongoose").Mod
|
|
|
76
91
|
isValid?: {} | null | undefined;
|
|
77
92
|
};
|
|
78
93
|
showingToPatient: boolean;
|
|
94
|
+
metActivities: Types.DocumentArray<{} & {
|
|
95
|
+
met: Types.ObjectId;
|
|
96
|
+
totalTime: string;
|
|
97
|
+
timeCoefficient: number;
|
|
98
|
+
}, Types.Subdocument<Types.ObjectId, any, {} & {
|
|
99
|
+
met: Types.ObjectId;
|
|
100
|
+
totalTime: string;
|
|
101
|
+
timeCoefficient: number;
|
|
102
|
+
}> & {} & {
|
|
103
|
+
met: Types.ObjectId;
|
|
104
|
+
totalTime: string;
|
|
105
|
+
timeCoefficient: number;
|
|
106
|
+
}>;
|
|
79
107
|
description?: string | null | undefined;
|
|
80
108
|
code?: string | null | undefined;
|
|
81
109
|
energyExpenditureDateTime?: NativeDate | null | undefined;
|
|
@@ -108,6 +136,19 @@ export declare const EnergyExpenditureSchema: Schema<any, import("mongoose").Mod
|
|
|
108
136
|
isValid?: {} | null | undefined;
|
|
109
137
|
};
|
|
110
138
|
showingToPatient: boolean;
|
|
139
|
+
metActivities: Types.DocumentArray<{} & {
|
|
140
|
+
met: Types.ObjectId;
|
|
141
|
+
totalTime: string;
|
|
142
|
+
timeCoefficient: number;
|
|
143
|
+
}, Types.Subdocument<Types.ObjectId, any, {} & {
|
|
144
|
+
met: Types.ObjectId;
|
|
145
|
+
totalTime: string;
|
|
146
|
+
timeCoefficient: number;
|
|
147
|
+
}> & {} & {
|
|
148
|
+
met: Types.ObjectId;
|
|
149
|
+
totalTime: string;
|
|
150
|
+
timeCoefficient: number;
|
|
151
|
+
}>;
|
|
111
152
|
description?: string | null | undefined;
|
|
112
153
|
code?: string | null | undefined;
|
|
113
154
|
energyExpenditureDateTime?: NativeDate | null | undefined;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EnergyExpenditureSchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
|
+
const EnergyExpenditureMetActivity_1 = require("./EnergyExpenditureMetActivity");
|
|
5
6
|
exports.EnergyExpenditureSchema = new mongoose_1.Schema({
|
|
6
7
|
account: { type: mongoose_1.Types.ObjectId, ref: "account", required: true },
|
|
7
8
|
patient: { type: mongoose_1.Types.ObjectId, ref: "patient", required: true },
|
|
@@ -9,7 +10,10 @@ exports.EnergyExpenditureSchema = new mongoose_1.Schema({
|
|
|
9
10
|
showingToPatient: { type: Boolean, default: false },
|
|
10
11
|
energyExpenditureDateTime: { type: Date },
|
|
11
12
|
code: { type: String },
|
|
12
|
-
description: { type: String }
|
|
13
|
+
description: { type: String },
|
|
14
|
+
metActivities: {
|
|
15
|
+
type: [EnergyExpenditureMetActivity_1.EnergyExpenditureMetActivitySchema]
|
|
16
|
+
}
|
|
13
17
|
}, {
|
|
14
18
|
timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
|
|
15
19
|
});
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { Schema, Types } from "mongoose";
|
|
2
|
-
import { IDefault } from "../Default";
|
|
3
2
|
import { IMetActivity } from "../met-activity/MetActivity";
|
|
4
|
-
|
|
5
|
-
import { IEnergyExpenditure } from "./EnergyExpenditure";
|
|
6
|
-
export interface IEnergyExpenditureMetActivity extends IDefault {
|
|
7
|
-
energyExpenditure: Types.ObjectId | IEnergyExpenditure;
|
|
8
|
-
patient: Types.ObjectId | IPatient;
|
|
3
|
+
export interface IEnergyExpenditureMetActivity {
|
|
9
4
|
met: Types.ObjectId | IMetActivity;
|
|
10
5
|
totalTime: string;
|
|
11
6
|
timeCoefficient: number;
|
|
@@ -15,27 +10,19 @@ export declare const EnergyExpenditureMetActivitySchema: Schema<any, import("mon
|
|
|
15
10
|
createdAt: string;
|
|
16
11
|
updatedAt: string;
|
|
17
12
|
};
|
|
13
|
+
_id: false;
|
|
18
14
|
}, {} & {
|
|
19
|
-
account: Types.ObjectId;
|
|
20
|
-
patient: Types.ObjectId;
|
|
21
15
|
met: Types.ObjectId;
|
|
22
16
|
totalTime: string;
|
|
23
17
|
timeCoefficient: number;
|
|
24
|
-
energyExpenditure?: Types.ObjectId | null | undefined;
|
|
25
18
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
|
|
26
|
-
account: Types.ObjectId;
|
|
27
|
-
patient: Types.ObjectId;
|
|
28
19
|
met: Types.ObjectId;
|
|
29
20
|
totalTime: string;
|
|
30
21
|
timeCoefficient: number;
|
|
31
|
-
energyExpenditure?: Types.ObjectId | null | undefined;
|
|
32
22
|
}>, {}> & import("mongoose").FlatRecord<{} & {
|
|
33
|
-
account: Types.ObjectId;
|
|
34
|
-
patient: Types.ObjectId;
|
|
35
23
|
met: Types.ObjectId;
|
|
36
24
|
totalTime: string;
|
|
37
25
|
timeCoefficient: number;
|
|
38
|
-
energyExpenditure?: Types.ObjectId | null | undefined;
|
|
39
26
|
}> & {
|
|
40
27
|
_id: Types.ObjectId;
|
|
41
28
|
} & {
|
|
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.EnergyExpenditureMetActivitySchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
exports.EnergyExpenditureMetActivitySchema = new mongoose_1.Schema({
|
|
6
|
-
account: { type: mongoose_1.Schema.Types.ObjectId, ref: "account", required: true },
|
|
7
|
-
energyExpenditure: { type: mongoose_1.Schema.Types.ObjectId, ref: "energy-expenditure" },
|
|
8
|
-
patient: { type: mongoose_1.Schema.Types.ObjectId, ref: "patient", required: true },
|
|
9
6
|
met: { type: mongoose_1.Schema.Types.ObjectId, ref: "met-activity", required: true },
|
|
10
7
|
totalTime: { type: String, default: "00:00" },
|
|
11
8
|
timeCoefficient: { type: Number, default: 0 }
|
|
@@ -13,5 +10,6 @@ exports.EnergyExpenditureMetActivitySchema = new mongoose_1.Schema({
|
|
|
13
10
|
timestamps: {
|
|
14
11
|
createdAt: "createdAtDateTime",
|
|
15
12
|
updatedAt: "updatedAtDateTime"
|
|
16
|
-
}
|
|
13
|
+
},
|
|
14
|
+
_id: false
|
|
17
15
|
});
|
package/dist/models/enum.d.ts
CHANGED
|
@@ -80,6 +80,7 @@ export declare enum TypeAnswerEnum {
|
|
|
80
80
|
RANGE_DATE = "RANGE_DATE",
|
|
81
81
|
RANGE_TIME = "RANGE_TIME",
|
|
82
82
|
BOOLEAN = "BOOLEAN",
|
|
83
|
+
LIST_OBJECT = "LIST_OBJECT",
|
|
83
84
|
DATE = "DATE",
|
|
84
85
|
UPLOAD_FILE = "UPLOAD_FILE"
|
|
85
86
|
}
|
|
@@ -102,7 +103,8 @@ export declare enum TypeUploadFileEnum {
|
|
|
102
103
|
export declare enum TypeButtonAction {
|
|
103
104
|
OPEN_MODAL = "OPEN_MODAL",
|
|
104
105
|
CANCEL_MODAL = "CANCEL_MODAL",
|
|
105
|
-
CONFIRM_MODAL = "CONFIRM_MODAL"
|
|
106
|
+
CONFIRM_MODAL = "CONFIRM_MODAL",
|
|
107
|
+
OPEN_MODAL_ANSWER_EXTERNAL_FLOW = "OPEN_MODAL_ANSWER_EXTERNAL_FLOW"
|
|
106
108
|
}
|
|
107
109
|
export declare enum TypeValidationEnum {
|
|
108
110
|
WARNING = "WARNING",
|
package/dist/models/enum.js
CHANGED
|
@@ -93,6 +93,7 @@ var TypeAnswerEnum;
|
|
|
93
93
|
TypeAnswerEnum["RANGE_DATE"] = "RANGE_DATE";
|
|
94
94
|
TypeAnswerEnum["RANGE_TIME"] = "RANGE_TIME";
|
|
95
95
|
TypeAnswerEnum["BOOLEAN"] = "BOOLEAN";
|
|
96
|
+
TypeAnswerEnum["LIST_OBJECT"] = "LIST_OBJECT";
|
|
96
97
|
TypeAnswerEnum["DATE"] = "DATE";
|
|
97
98
|
TypeAnswerEnum["UPLOAD_FILE"] = "UPLOAD_FILE";
|
|
98
99
|
})(TypeAnswerEnum || (exports.TypeAnswerEnum = TypeAnswerEnum = {}));
|
|
@@ -119,6 +120,7 @@ var TypeButtonAction;
|
|
|
119
120
|
TypeButtonAction["OPEN_MODAL"] = "OPEN_MODAL";
|
|
120
121
|
TypeButtonAction["CANCEL_MODAL"] = "CANCEL_MODAL";
|
|
121
122
|
TypeButtonAction["CONFIRM_MODAL"] = "CONFIRM_MODAL";
|
|
123
|
+
TypeButtonAction["OPEN_MODAL_ANSWER_EXTERNAL_FLOW"] = "OPEN_MODAL_ANSWER_EXTERNAL_FLOW";
|
|
122
124
|
})(TypeButtonAction || (exports.TypeButtonAction = TypeButtonAction = {}));
|
|
123
125
|
var TypeValidationEnum;
|
|
124
126
|
(function (TypeValidationEnum) {
|
|
@@ -67,6 +67,7 @@ export interface IFormUnit extends IDefault {
|
|
|
67
67
|
category: CategoryFormEnum;
|
|
68
68
|
typeButtonAction: TypeButtonAction;
|
|
69
69
|
variantView: VariantViewEnum;
|
|
70
|
+
externalFlowCode: string;
|
|
70
71
|
measurementUnit: string;
|
|
71
72
|
options: IQuestionOption[];
|
|
72
73
|
isDefault: boolean;
|
|
@@ -333,6 +334,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
333
334
|
defaultAnswer?: string | null | undefined;
|
|
334
335
|
variantView?: string | null | undefined;
|
|
335
336
|
typeButtonAction?: string | null | undefined;
|
|
337
|
+
externalFlowCode?: string | null | undefined;
|
|
336
338
|
measurementUnit?: string | null | undefined;
|
|
337
339
|
formulaToAnswer?: string | null | undefined;
|
|
338
340
|
formulaToReferenceValue?: string | null | undefined;
|
|
@@ -480,6 +482,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
480
482
|
defaultAnswer?: string | null | undefined;
|
|
481
483
|
variantView?: string | null | undefined;
|
|
482
484
|
typeButtonAction?: string | null | undefined;
|
|
485
|
+
externalFlowCode?: string | null | undefined;
|
|
483
486
|
measurementUnit?: string | null | undefined;
|
|
484
487
|
formulaToAnswer?: string | null | undefined;
|
|
485
488
|
formulaToReferenceValue?: string | null | undefined;
|
|
@@ -627,6 +630,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
627
630
|
defaultAnswer?: string | null | undefined;
|
|
628
631
|
variantView?: string | null | undefined;
|
|
629
632
|
typeButtonAction?: string | null | undefined;
|
|
633
|
+
externalFlowCode?: string | null | undefined;
|
|
630
634
|
measurementUnit?: string | null | undefined;
|
|
631
635
|
formulaToAnswer?: string | null | undefined;
|
|
632
636
|
formulaToReferenceValue?: string | null | undefined;
|
|
@@ -57,6 +57,7 @@ exports.FormUnitSchema = new mongoose_1.Schema({
|
|
|
57
57
|
category: { type: String, enum: enum_1.CategoryFormEnum, required: true },
|
|
58
58
|
variantView: { type: String, enum: enum_1.VariantViewEnum },
|
|
59
59
|
typeButtonAction: { type: String, enum: enum_1.TypeButtonAction },
|
|
60
|
+
externalFlowCode: { type: String },
|
|
60
61
|
measurementUnit: { type: String },
|
|
61
62
|
options: { type: [exports.QuestionOptionSchema] },
|
|
62
63
|
formulaToAnswer: { type: String },
|