c2-clinical 1.0.192 → 1.0.194
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/models/energy-expenditure/EnergyExpenditure.d.ts +118 -0
- package/dist/models/energy-expenditure/EnergyExpenditure.js +15 -0
- package/dist/models/energy-expenditure/EnergyExpenditureMetActivity.d.ts +43 -0
- package/dist/models/energy-expenditure/EnergyExpenditureMetActivity.js +17 -0
- package/dist/models/enum.d.ts +1 -0
- package/dist/models/enum.js +1 -0
- package/dist/models/met-activity/MetActivity.d.ts +32 -0
- package/dist/models/met-activity/MetActivity.js +13 -0
- package/package.json +1 -1
|
@@ -0,0 +1,118 @@
|
|
|
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 IEnergyExpenditure extends IDefault {
|
|
6
|
+
patient: Types.ObjectId | IPatient;
|
|
7
|
+
form: Types.ObjectId | IForm;
|
|
8
|
+
showingToPatient: boolean;
|
|
9
|
+
energyExpenditureDateTime: Date;
|
|
10
|
+
code: string;
|
|
11
|
+
description: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const EnergyExpenditureSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
14
|
+
timestamps: {
|
|
15
|
+
createdAt: string;
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
};
|
|
18
|
+
}, {} & {
|
|
19
|
+
account: {
|
|
20
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
21
|
+
cacheHexString?: unknown;
|
|
22
|
+
generate?: {} | null | undefined;
|
|
23
|
+
createFromTime?: {} | null | undefined;
|
|
24
|
+
createFromHexString?: {} | null | undefined;
|
|
25
|
+
createFromBase64?: {} | null | undefined;
|
|
26
|
+
isValid?: {} | null | undefined;
|
|
27
|
+
};
|
|
28
|
+
form: {
|
|
29
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
30
|
+
cacheHexString?: unknown;
|
|
31
|
+
generate?: {} | null | undefined;
|
|
32
|
+
createFromTime?: {} | null | undefined;
|
|
33
|
+
createFromHexString?: {} | null | undefined;
|
|
34
|
+
createFromBase64?: {} | null | undefined;
|
|
35
|
+
isValid?: {} | null | undefined;
|
|
36
|
+
};
|
|
37
|
+
patient: {
|
|
38
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
39
|
+
cacheHexString?: unknown;
|
|
40
|
+
generate?: {} | null | undefined;
|
|
41
|
+
createFromTime?: {} | null | undefined;
|
|
42
|
+
createFromHexString?: {} | null | undefined;
|
|
43
|
+
createFromBase64?: {} | null | undefined;
|
|
44
|
+
isValid?: {} | null | undefined;
|
|
45
|
+
};
|
|
46
|
+
showingToPatient: boolean;
|
|
47
|
+
description?: string | null | undefined;
|
|
48
|
+
code?: string | null | undefined;
|
|
49
|
+
energyExpenditureDateTime?: NativeDate | null | undefined;
|
|
50
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
|
|
51
|
+
account: {
|
|
52
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
53
|
+
cacheHexString?: unknown;
|
|
54
|
+
generate?: {} | null | undefined;
|
|
55
|
+
createFromTime?: {} | null | undefined;
|
|
56
|
+
createFromHexString?: {} | null | undefined;
|
|
57
|
+
createFromBase64?: {} | null | undefined;
|
|
58
|
+
isValid?: {} | null | undefined;
|
|
59
|
+
};
|
|
60
|
+
form: {
|
|
61
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
62
|
+
cacheHexString?: unknown;
|
|
63
|
+
generate?: {} | null | undefined;
|
|
64
|
+
createFromTime?: {} | null | undefined;
|
|
65
|
+
createFromHexString?: {} | null | undefined;
|
|
66
|
+
createFromBase64?: {} | null | undefined;
|
|
67
|
+
isValid?: {} | null | undefined;
|
|
68
|
+
};
|
|
69
|
+
patient: {
|
|
70
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
71
|
+
cacheHexString?: unknown;
|
|
72
|
+
generate?: {} | null | undefined;
|
|
73
|
+
createFromTime?: {} | null | undefined;
|
|
74
|
+
createFromHexString?: {} | null | undefined;
|
|
75
|
+
createFromBase64?: {} | null | undefined;
|
|
76
|
+
isValid?: {} | null | undefined;
|
|
77
|
+
};
|
|
78
|
+
showingToPatient: boolean;
|
|
79
|
+
description?: string | null | undefined;
|
|
80
|
+
code?: string | null | undefined;
|
|
81
|
+
energyExpenditureDateTime?: NativeDate | null | undefined;
|
|
82
|
+
}>, {}> & import("mongoose").FlatRecord<{} & {
|
|
83
|
+
account: {
|
|
84
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
85
|
+
cacheHexString?: unknown;
|
|
86
|
+
generate?: {} | null | undefined;
|
|
87
|
+
createFromTime?: {} | null | undefined;
|
|
88
|
+
createFromHexString?: {} | null | undefined;
|
|
89
|
+
createFromBase64?: {} | null | undefined;
|
|
90
|
+
isValid?: {} | null | undefined;
|
|
91
|
+
};
|
|
92
|
+
form: {
|
|
93
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
94
|
+
cacheHexString?: unknown;
|
|
95
|
+
generate?: {} | null | undefined;
|
|
96
|
+
createFromTime?: {} | null | undefined;
|
|
97
|
+
createFromHexString?: {} | null | undefined;
|
|
98
|
+
createFromBase64?: {} | null | undefined;
|
|
99
|
+
isValid?: {} | null | undefined;
|
|
100
|
+
};
|
|
101
|
+
patient: {
|
|
102
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
103
|
+
cacheHexString?: unknown;
|
|
104
|
+
generate?: {} | null | undefined;
|
|
105
|
+
createFromTime?: {} | null | undefined;
|
|
106
|
+
createFromHexString?: {} | null | undefined;
|
|
107
|
+
createFromBase64?: {} | null | undefined;
|
|
108
|
+
isValid?: {} | null | undefined;
|
|
109
|
+
};
|
|
110
|
+
showingToPatient: boolean;
|
|
111
|
+
description?: string | null | undefined;
|
|
112
|
+
code?: string | null | undefined;
|
|
113
|
+
energyExpenditureDateTime?: NativeDate | null | undefined;
|
|
114
|
+
}> & {
|
|
115
|
+
_id: Types.ObjectId;
|
|
116
|
+
} & {
|
|
117
|
+
__v: number;
|
|
118
|
+
}>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EnergyExpenditureSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
exports.EnergyExpenditureSchema = 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
|
+
energyExpenditureDateTime: { type: Date },
|
|
11
|
+
code: { type: String },
|
|
12
|
+
description: { type: String }
|
|
13
|
+
}, {
|
|
14
|
+
timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
|
|
15
|
+
});
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Schema, Types } from "mongoose";
|
|
2
|
+
import { IDefault } from "../Default";
|
|
3
|
+
import { IMetActivity } from "../met-activity/MetActivity";
|
|
4
|
+
import { IPatient } from "../patient/Patient";
|
|
5
|
+
import { IEnergyExpenditure } from "./EnergyExpenditure";
|
|
6
|
+
export interface IEnergyExpenditureMetActivity extends IDefault {
|
|
7
|
+
energyExpenditure: Types.ObjectId | IEnergyExpenditure;
|
|
8
|
+
patient: Types.ObjectId | IPatient;
|
|
9
|
+
met: Types.ObjectId | IMetActivity;
|
|
10
|
+
totalTime: string;
|
|
11
|
+
timeCoefficient: number;
|
|
12
|
+
}
|
|
13
|
+
export declare const EnergyExpenditureMetActivitySchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
14
|
+
timestamps: {
|
|
15
|
+
createdAt: string;
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
};
|
|
18
|
+
}, {} & {
|
|
19
|
+
account: Types.ObjectId;
|
|
20
|
+
patient: Types.ObjectId;
|
|
21
|
+
met: Types.ObjectId;
|
|
22
|
+
totalTime: string;
|
|
23
|
+
timeCoefficient: number;
|
|
24
|
+
energyExpenditure?: Types.ObjectId | null | undefined;
|
|
25
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
|
|
26
|
+
account: Types.ObjectId;
|
|
27
|
+
patient: Types.ObjectId;
|
|
28
|
+
met: Types.ObjectId;
|
|
29
|
+
totalTime: string;
|
|
30
|
+
timeCoefficient: number;
|
|
31
|
+
energyExpenditure?: Types.ObjectId | null | undefined;
|
|
32
|
+
}>, {}> & import("mongoose").FlatRecord<{} & {
|
|
33
|
+
account: Types.ObjectId;
|
|
34
|
+
patient: Types.ObjectId;
|
|
35
|
+
met: Types.ObjectId;
|
|
36
|
+
totalTime: string;
|
|
37
|
+
timeCoefficient: number;
|
|
38
|
+
energyExpenditure?: Types.ObjectId | null | undefined;
|
|
39
|
+
}> & {
|
|
40
|
+
_id: Types.ObjectId;
|
|
41
|
+
} & {
|
|
42
|
+
__v: number;
|
|
43
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EnergyExpenditureMetActivitySchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
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
|
+
met: { type: mongoose_1.Schema.Types.ObjectId, ref: "met-activity", required: true },
|
|
10
|
+
totalTime: { type: String, default: "00:00" },
|
|
11
|
+
timeCoefficient: { type: Number, default: 0 }
|
|
12
|
+
}, {
|
|
13
|
+
timestamps: {
|
|
14
|
+
createdAt: "createdAtDateTime",
|
|
15
|
+
updatedAt: "updatedAtDateTime"
|
|
16
|
+
}
|
|
17
|
+
});
|
package/dist/models/enum.d.ts
CHANGED
package/dist/models/enum.js
CHANGED
|
@@ -98,6 +98,7 @@ var TypeAnswerEnum;
|
|
|
98
98
|
})(TypeAnswerEnum || (exports.TypeAnswerEnum = TypeAnswerEnum = {}));
|
|
99
99
|
var VariantViewEnum;
|
|
100
100
|
(function (VariantViewEnum) {
|
|
101
|
+
VariantViewEnum["RESULT"] = "RESULT";
|
|
101
102
|
VariantViewEnum["CHECKBOX"] = "CHECKBOX";
|
|
102
103
|
VariantViewEnum["RADIO_BUTTON"] = "RADIO_BUTTON";
|
|
103
104
|
VariantViewEnum["SELECT"] = "SELECT";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MetTargetConditionEnum } from "../enum";
|
|
2
2
|
import { IDefaultAdmin } from "../Default";
|
|
3
|
+
import { Schema } from "mongoose";
|
|
3
4
|
export interface IMetActivity extends IDefaultAdmin {
|
|
4
5
|
activityName: string;
|
|
5
6
|
activityDescription: string;
|
|
@@ -7,3 +8,34 @@ export interface IMetActivity extends IDefaultAdmin {
|
|
|
7
8
|
metValue: number;
|
|
8
9
|
targetCondition: MetTargetConditionEnum;
|
|
9
10
|
}
|
|
11
|
+
export declare const MetActivitySchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
12
|
+
timestamps: {
|
|
13
|
+
createdAt: string;
|
|
14
|
+
updatedAt: string;
|
|
15
|
+
};
|
|
16
|
+
}, {} & {
|
|
17
|
+
account: import("mongoose").Types.ObjectId;
|
|
18
|
+
activityName: string;
|
|
19
|
+
metValue: number;
|
|
20
|
+
targetCondition: string;
|
|
21
|
+
activityDescription?: string | null | undefined;
|
|
22
|
+
activityCode?: string | null | undefined;
|
|
23
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
|
|
24
|
+
account: import("mongoose").Types.ObjectId;
|
|
25
|
+
activityName: string;
|
|
26
|
+
metValue: number;
|
|
27
|
+
targetCondition: string;
|
|
28
|
+
activityDescription?: string | null | undefined;
|
|
29
|
+
activityCode?: string | null | undefined;
|
|
30
|
+
}>, {}> & import("mongoose").FlatRecord<{} & {
|
|
31
|
+
account: import("mongoose").Types.ObjectId;
|
|
32
|
+
activityName: string;
|
|
33
|
+
metValue: number;
|
|
34
|
+
targetCondition: string;
|
|
35
|
+
activityDescription?: string | null | undefined;
|
|
36
|
+
activityCode?: string | null | undefined;
|
|
37
|
+
}> & {
|
|
38
|
+
_id: import("mongoose").Types.ObjectId;
|
|
39
|
+
} & {
|
|
40
|
+
__v: number;
|
|
41
|
+
}>;
|
|
@@ -1,2 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MetActivitySchema = void 0;
|
|
4
|
+
const enum_1 = require("../enum");
|
|
5
|
+
const mongoose_1 = require("mongoose");
|
|
6
|
+
exports.MetActivitySchema = new mongoose_1.Schema({
|
|
7
|
+
account: { type: mongoose_1.Schema.Types.ObjectId, ref: "account", required: true },
|
|
8
|
+
activityName: { type: String, required: true },
|
|
9
|
+
activityDescription: { type: String },
|
|
10
|
+
activityCode: { type: String },
|
|
11
|
+
metValue: { type: Number, required: true },
|
|
12
|
+
targetCondition: { type: String, enum: enum_1.MetTargetConditionEnum, required: true }
|
|
13
|
+
}, {
|
|
14
|
+
timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
|
|
15
|
+
});
|