c2-clinical 1.0.27 → 1.0.28
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 +1 -1
- package/dist/index.js +1 -1
- package/dist/models/Recurrence.d.ts +102 -0
- package/dist/models/Recurrence.js +116 -0
- package/dist/models/enum.d.ts +5 -0
- package/dist/models/enum.js +7 -1
- package/dist/models/qa/QA.d.ts +47 -0
- package/dist/models/qa/QA.js +15 -0
- package/dist/models/qa/QAAnswer.d.ts +118 -0
- package/dist/models/qa/QAAnswer.js +15 -0
- package/dist/models/qa/QARecurrence.d.ts +30 -1
- package/dist/models/qa/QARecurrence.js +9 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export * from "./models/Default";
|
|
|
13
13
|
export * from "./models/form/Form";
|
|
14
14
|
export * from "./models/form/FormUnit";
|
|
15
15
|
export * from "./models/qa/QARecurrence";
|
|
16
|
-
export * from "./models/
|
|
16
|
+
export * from "./models/Recurrence";
|
|
17
17
|
export * from "./models/qpc/QPC";
|
|
18
18
|
export * from "./models/qpc/QPCAnswer";
|
|
19
19
|
export { GroupFormUnitsFlow, OnAnswerQuestionsFlow, ExecFormulaFlow };
|
package/dist/index.js
CHANGED
|
@@ -36,6 +36,6 @@ __exportStar(require("./models/Default"), exports);
|
|
|
36
36
|
__exportStar(require("./models/form/Form"), exports);
|
|
37
37
|
__exportStar(require("./models/form/FormUnit"), exports);
|
|
38
38
|
__exportStar(require("./models/qa/QARecurrence"), exports);
|
|
39
|
-
__exportStar(require("./models/
|
|
39
|
+
__exportStar(require("./models/Recurrence"), exports);
|
|
40
40
|
__exportStar(require("./models/qpc/QPC"), exports);
|
|
41
41
|
__exportStar(require("./models/qpc/QPCAnswer"), exports);
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import * as mongoose from "mongoose";
|
|
2
|
+
export declare enum RecurrencePeriod {
|
|
3
|
+
INTERVAL_DAILY_FIXED = "INTERVAL_DAILY_FIXED",
|
|
4
|
+
DAYS_SPECIFIC = "DAYS_SPECIFIC",
|
|
5
|
+
DAILY = "DAILY",
|
|
6
|
+
WEEKLY = "WEEKLY",
|
|
7
|
+
BI_WEEKLY = "BI_WEEKLY",
|
|
8
|
+
MONTHLY = "MONTHLY",
|
|
9
|
+
BI_MONTHLY = "BI_MONTHLY",
|
|
10
|
+
TRI_MONTHLY = "TRI_MONTHLY",
|
|
11
|
+
YEARLY = "YEARLY"
|
|
12
|
+
}
|
|
13
|
+
export declare enum RecurrenceDaysOfWeek {
|
|
14
|
+
"SUNDAY" = "sunday",
|
|
15
|
+
"MONDAY" = "monday",
|
|
16
|
+
"TUESDAY" = "tuesday",
|
|
17
|
+
"WEDNESDAY" = "wednesday",
|
|
18
|
+
"THURSDAY" = "thursday",
|
|
19
|
+
"FRIDAY" = "friday",
|
|
20
|
+
"SATURDAY" = "saturday"
|
|
21
|
+
}
|
|
22
|
+
export declare enum RecurrenceDaysOfMonth {
|
|
23
|
+
"_1" = 1,
|
|
24
|
+
"_2" = 2,
|
|
25
|
+
"_3" = 3,
|
|
26
|
+
"_4" = 4,
|
|
27
|
+
"_5" = 5,
|
|
28
|
+
"_6" = 6,
|
|
29
|
+
"_7" = 7,
|
|
30
|
+
"_8" = 8,
|
|
31
|
+
"_9" = 9,
|
|
32
|
+
"_10" = 10,
|
|
33
|
+
"_11" = 11,
|
|
34
|
+
"_12" = 12,
|
|
35
|
+
"_13" = 13,
|
|
36
|
+
"_14" = 14,
|
|
37
|
+
"_15" = 15,
|
|
38
|
+
"_16" = 16,
|
|
39
|
+
"_17" = 17,
|
|
40
|
+
"_18" = 18,
|
|
41
|
+
"_19" = 19,
|
|
42
|
+
"_20" = 20,
|
|
43
|
+
"_21" = 21,
|
|
44
|
+
"_22" = 22,
|
|
45
|
+
"_23" = 23,
|
|
46
|
+
"_24" = 24,
|
|
47
|
+
"_25" = 25,
|
|
48
|
+
"_26" = 26,
|
|
49
|
+
"_27" = 27,
|
|
50
|
+
"_28" = 28,
|
|
51
|
+
"_29" = 29,
|
|
52
|
+
"_30" = 30,
|
|
53
|
+
"_31" = 31
|
|
54
|
+
}
|
|
55
|
+
export declare const RecurrenceSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
56
|
+
_id: false;
|
|
57
|
+
}, {
|
|
58
|
+
daysOfWeek: string[];
|
|
59
|
+
daysOfMonth: number[];
|
|
60
|
+
specificsDate: any;
|
|
61
|
+
code?: string | null | undefined;
|
|
62
|
+
period?: string | null | undefined;
|
|
63
|
+
intervalOfPeriods?: number | null | undefined;
|
|
64
|
+
intervalInDays?: number | null | undefined;
|
|
65
|
+
repeatUntilXBookings?: number | null | undefined;
|
|
66
|
+
repeatUntilDate?: NativeDate | null | undefined;
|
|
67
|
+
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
68
|
+
daysOfWeek: string[];
|
|
69
|
+
daysOfMonth: number[];
|
|
70
|
+
specificsDate: any;
|
|
71
|
+
code?: string | null | undefined;
|
|
72
|
+
period?: string | null | undefined;
|
|
73
|
+
intervalOfPeriods?: number | null | undefined;
|
|
74
|
+
intervalInDays?: number | null | undefined;
|
|
75
|
+
repeatUntilXBookings?: number | null | undefined;
|
|
76
|
+
repeatUntilDate?: NativeDate | null | undefined;
|
|
77
|
+
}>, {}> & mongoose.FlatRecord<{
|
|
78
|
+
daysOfWeek: string[];
|
|
79
|
+
daysOfMonth: number[];
|
|
80
|
+
specificsDate: any;
|
|
81
|
+
code?: string | null | undefined;
|
|
82
|
+
period?: string | null | undefined;
|
|
83
|
+
intervalOfPeriods?: number | null | undefined;
|
|
84
|
+
intervalInDays?: number | null | undefined;
|
|
85
|
+
repeatUntilXBookings?: number | null | undefined;
|
|
86
|
+
repeatUntilDate?: NativeDate | null | undefined;
|
|
87
|
+
}> & {
|
|
88
|
+
_id: mongoose.Types.ObjectId;
|
|
89
|
+
} & {
|
|
90
|
+
__v: number;
|
|
91
|
+
}>;
|
|
92
|
+
export interface IRecurrence {
|
|
93
|
+
code: string;
|
|
94
|
+
intervalInDays: number;
|
|
95
|
+
period: RecurrencePeriod;
|
|
96
|
+
intervalOfPeriods: number;
|
|
97
|
+
repeatUntilX: number;
|
|
98
|
+
repeatUntilDate: Date;
|
|
99
|
+
daysOfWeek: RecurrenceDaysOfWeek[];
|
|
100
|
+
daysOfMonth: number[];
|
|
101
|
+
specificsDate: Date[];
|
|
102
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.RecurrenceSchema = exports.RecurrenceDaysOfMonth = exports.RecurrenceDaysOfWeek = exports.RecurrencePeriod = void 0;
|
|
37
|
+
const mongoose = __importStar(require("mongoose"));
|
|
38
|
+
var RecurrencePeriod;
|
|
39
|
+
(function (RecurrencePeriod) {
|
|
40
|
+
RecurrencePeriod["INTERVAL_DAILY_FIXED"] = "INTERVAL_DAILY_FIXED";
|
|
41
|
+
RecurrencePeriod["DAYS_SPECIFIC"] = "DAYS_SPECIFIC";
|
|
42
|
+
RecurrencePeriod["DAILY"] = "DAILY";
|
|
43
|
+
RecurrencePeriod["WEEKLY"] = "WEEKLY";
|
|
44
|
+
RecurrencePeriod["BI_WEEKLY"] = "BI_WEEKLY";
|
|
45
|
+
RecurrencePeriod["MONTHLY"] = "MONTHLY";
|
|
46
|
+
RecurrencePeriod["BI_MONTHLY"] = "BI_MONTHLY";
|
|
47
|
+
RecurrencePeriod["TRI_MONTHLY"] = "TRI_MONTHLY";
|
|
48
|
+
RecurrencePeriod["YEARLY"] = "YEARLY";
|
|
49
|
+
})(RecurrencePeriod || (exports.RecurrencePeriod = RecurrencePeriod = {}));
|
|
50
|
+
var RecurrenceDaysOfWeek;
|
|
51
|
+
(function (RecurrenceDaysOfWeek) {
|
|
52
|
+
RecurrenceDaysOfWeek["SUNDAY"] = "sunday";
|
|
53
|
+
RecurrenceDaysOfWeek["MONDAY"] = "monday";
|
|
54
|
+
RecurrenceDaysOfWeek["TUESDAY"] = "tuesday";
|
|
55
|
+
RecurrenceDaysOfWeek["WEDNESDAY"] = "wednesday";
|
|
56
|
+
RecurrenceDaysOfWeek["THURSDAY"] = "thursday";
|
|
57
|
+
RecurrenceDaysOfWeek["FRIDAY"] = "friday";
|
|
58
|
+
RecurrenceDaysOfWeek["SATURDAY"] = "saturday";
|
|
59
|
+
})(RecurrenceDaysOfWeek || (exports.RecurrenceDaysOfWeek = RecurrenceDaysOfWeek = {}));
|
|
60
|
+
var RecurrenceDaysOfMonth;
|
|
61
|
+
(function (RecurrenceDaysOfMonth) {
|
|
62
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_1"] = 1] = "_1";
|
|
63
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_2"] = 2] = "_2";
|
|
64
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_3"] = 3] = "_3";
|
|
65
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_4"] = 4] = "_4";
|
|
66
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_5"] = 5] = "_5";
|
|
67
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_6"] = 6] = "_6";
|
|
68
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_7"] = 7] = "_7";
|
|
69
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_8"] = 8] = "_8";
|
|
70
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_9"] = 9] = "_9";
|
|
71
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_10"] = 10] = "_10";
|
|
72
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_11"] = 11] = "_11";
|
|
73
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_12"] = 12] = "_12";
|
|
74
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_13"] = 13] = "_13";
|
|
75
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_14"] = 14] = "_14";
|
|
76
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_15"] = 15] = "_15";
|
|
77
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_16"] = 16] = "_16";
|
|
78
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_17"] = 17] = "_17";
|
|
79
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_18"] = 18] = "_18";
|
|
80
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_19"] = 19] = "_19";
|
|
81
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_20"] = 20] = "_20";
|
|
82
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_21"] = 21] = "_21";
|
|
83
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_22"] = 22] = "_22";
|
|
84
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_23"] = 23] = "_23";
|
|
85
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_24"] = 24] = "_24";
|
|
86
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_25"] = 25] = "_25";
|
|
87
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_26"] = 26] = "_26";
|
|
88
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_27"] = 27] = "_27";
|
|
89
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_28"] = 28] = "_28";
|
|
90
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_29"] = 29] = "_29";
|
|
91
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_30"] = 30] = "_30";
|
|
92
|
+
RecurrenceDaysOfMonth[RecurrenceDaysOfMonth["_31"] = 31] = "_31";
|
|
93
|
+
})(RecurrenceDaysOfMonth || (exports.RecurrenceDaysOfMonth = RecurrenceDaysOfMonth = {}));
|
|
94
|
+
exports.RecurrenceSchema = new mongoose.Schema({
|
|
95
|
+
code: { type: String },
|
|
96
|
+
period: { type: String, enum: RecurrencePeriod },
|
|
97
|
+
intervalOfPeriods: { type: Number },
|
|
98
|
+
intervalInDays: { type: Number },
|
|
99
|
+
repeatUntilXBookings: { type: Number },
|
|
100
|
+
repeatUntilDate: { type: Date },
|
|
101
|
+
daysOfWeek: { type: [String], enum: RecurrenceDaysOfWeek },
|
|
102
|
+
daysOfMonth: {
|
|
103
|
+
type: [Number],
|
|
104
|
+
min: 1,
|
|
105
|
+
max: 31,
|
|
106
|
+
validate: {
|
|
107
|
+
validator: function (value) {
|
|
108
|
+
return !value || value.every((v) => v >= 1 && v <= 31);
|
|
109
|
+
},
|
|
110
|
+
message: (props) => `${props.value} não é uma lista de dias do mês válido. Os valores devem estar entre 1 e 31.`
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
specificsDate: { type: [Date] }
|
|
114
|
+
}, {
|
|
115
|
+
_id: false
|
|
116
|
+
});
|
package/dist/models/enum.d.ts
CHANGED
package/dist/models/enum.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TypeMessageEnum = exports.TypeOutputValidationEnum = exports.TypeValidationEnum = exports.TypeAnswerEnum = exports.TypeFormUnitEnum = exports.OwnerEnum = exports.TypeFormEnum = exports.CategoryFormEnum = exports.MetTargetConditionEnum = exports.StatusQPCEnum = exports.GenreEnum = void 0;
|
|
3
|
+
exports.TypeMessageEnum = exports.TypeOutputValidationEnum = exports.TypeValidationEnum = exports.TypeAnswerEnum = exports.TypeFormUnitEnum = exports.OwnerEnum = exports.TypeFormEnum = exports.CategoryFormEnum = exports.MetTargetConditionEnum = exports.StatusQPCEnum = exports.GenreEnum = exports.ChannelNotificationEnum = void 0;
|
|
4
|
+
var ChannelNotificationEnum;
|
|
5
|
+
(function (ChannelNotificationEnum) {
|
|
6
|
+
ChannelNotificationEnum["EMAIL"] = "EMAIL";
|
|
7
|
+
ChannelNotificationEnum["WHATSAPP"] = "WHATSAPP";
|
|
8
|
+
ChannelNotificationEnum["APP"] = "APP";
|
|
9
|
+
})(ChannelNotificationEnum || (exports.ChannelNotificationEnum = ChannelNotificationEnum = {}));
|
|
4
10
|
var GenreEnum;
|
|
5
11
|
(function (GenreEnum) {
|
|
6
12
|
GenreEnum["MALE"] = "MALE";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Schema, Types } from "mongoose";
|
|
2
|
+
import { IDefault } from "../Default";
|
|
3
|
+
import { IForm } from "../form/Form";
|
|
4
|
+
import { IPatient } from "../patient/Patient";
|
|
5
|
+
import { IQARecurrence } from "./QARecurrence";
|
|
6
|
+
export interface IQPC extends IDefault {
|
|
7
|
+
patient: Types.ObjectId | IPatient;
|
|
8
|
+
recurrence: Types.ObjectId | IQARecurrence;
|
|
9
|
+
form: Types.ObjectId | IForm;
|
|
10
|
+
answeredDateTime: Date;
|
|
11
|
+
dueDate: Date;
|
|
12
|
+
code: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const QASchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
15
|
+
timestamps: {
|
|
16
|
+
createdAt: string;
|
|
17
|
+
updatedAt: string;
|
|
18
|
+
};
|
|
19
|
+
}, {} & {
|
|
20
|
+
account: any;
|
|
21
|
+
form: any;
|
|
22
|
+
patient: any;
|
|
23
|
+
recurrence: any;
|
|
24
|
+
code?: string | null | undefined;
|
|
25
|
+
answeredDateTime?: NativeDate | null | undefined;
|
|
26
|
+
dueDate?: NativeDate | null | undefined;
|
|
27
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
|
|
28
|
+
account: any;
|
|
29
|
+
form: any;
|
|
30
|
+
patient: any;
|
|
31
|
+
recurrence: any;
|
|
32
|
+
code?: string | null | undefined;
|
|
33
|
+
answeredDateTime?: NativeDate | null | undefined;
|
|
34
|
+
dueDate?: NativeDate | null | undefined;
|
|
35
|
+
}>, {}> & import("mongoose").FlatRecord<{} & {
|
|
36
|
+
account: any;
|
|
37
|
+
form: any;
|
|
38
|
+
patient: any;
|
|
39
|
+
recurrence: any;
|
|
40
|
+
code?: string | null | undefined;
|
|
41
|
+
answeredDateTime?: NativeDate | null | undefined;
|
|
42
|
+
dueDate?: NativeDate | null | undefined;
|
|
43
|
+
}> & {
|
|
44
|
+
_id: Types.ObjectId;
|
|
45
|
+
} & {
|
|
46
|
+
__v: number;
|
|
47
|
+
}>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QASchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
exports.QASchema = 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
|
+
recurrence: { type: mongoose_1.Types.ObjectId, ref: "qa-recurrence", required: true },
|
|
10
|
+
dueDate: { type: Date },
|
|
11
|
+
answeredDateTime: { type: Date },
|
|
12
|
+
code: { type: String }
|
|
13
|
+
}, {
|
|
14
|
+
timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
|
|
15
|
+
});
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { Schema, Types } from "mongoose";
|
|
2
|
+
import { IAnswer } from "../Answer";
|
|
3
|
+
import { IForm } from "../form/Form";
|
|
4
|
+
export interface IQAAnswer extends IAnswer {
|
|
5
|
+
form: Types.ObjectId | IForm;
|
|
6
|
+
}
|
|
7
|
+
export declare const QPCAnswerSchema: 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,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QPCAnswerSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const FormUnit_1 = require("../form/FormUnit");
|
|
6
|
+
exports.QPCAnswerSchema = 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
|
+
});
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import { Schema, Types } from "mongoose";
|
|
2
2
|
import { IDefault } from "../Default";
|
|
3
|
+
import { ChannelNotificationEnum } from "../enum";
|
|
3
4
|
import { IForm } from "../form/Form";
|
|
4
|
-
|
|
5
|
+
import { IPatient } from "../patient/Patient";
|
|
6
|
+
import { IRecurrence } from "../Recurrence";
|
|
7
|
+
export interface IQARecurrence extends IDefault {
|
|
5
8
|
answeredDateTime: Date;
|
|
6
9
|
form: Types.ObjectId | IForm;
|
|
10
|
+
patient: Types.ObjectId | IPatient;
|
|
11
|
+
recurrence: IRecurrence;
|
|
12
|
+
code: string;
|
|
13
|
+
daysToRememberPatient: number;
|
|
14
|
+
sendOnCreate: boolean;
|
|
15
|
+
notifyPatientChannel: ChannelNotificationEnum[];
|
|
16
|
+
notifyOwnerIfDued: boolean;
|
|
17
|
+
notifyOwnerReactiveOnEnd: boolean;
|
|
7
18
|
}
|
|
8
19
|
export declare const QARecurrencechema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
9
20
|
timestamps: {
|
|
@@ -14,6 +25,8 @@ export declare const QARecurrencechema: Schema<any, import("mongoose").Model<any
|
|
|
14
25
|
account: any;
|
|
15
26
|
form: any;
|
|
16
27
|
patient: any;
|
|
28
|
+
notifyPatientChannel: string[];
|
|
29
|
+
code?: string | null | undefined;
|
|
17
30
|
recurrence?: {
|
|
18
31
|
daysOfWeek: string[];
|
|
19
32
|
daysOfMonth: number[];
|
|
@@ -25,10 +38,16 @@ export declare const QARecurrencechema: Schema<any, import("mongoose").Model<any
|
|
|
25
38
|
repeatUntilXBookings?: number | null | undefined;
|
|
26
39
|
repeatUntilDate?: NativeDate | null | undefined;
|
|
27
40
|
} | null | undefined;
|
|
41
|
+
daysToRememberPatient?: number | null | undefined;
|
|
42
|
+
sendOnCreate?: any;
|
|
43
|
+
notifyOwnerIfDued?: any;
|
|
44
|
+
notifyOwnerReactiveOnEnd?: any;
|
|
28
45
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
|
|
29
46
|
account: any;
|
|
30
47
|
form: any;
|
|
31
48
|
patient: any;
|
|
49
|
+
notifyPatientChannel: string[];
|
|
50
|
+
code?: string | null | undefined;
|
|
32
51
|
recurrence?: {
|
|
33
52
|
daysOfWeek: string[];
|
|
34
53
|
daysOfMonth: number[];
|
|
@@ -40,10 +59,16 @@ export declare const QARecurrencechema: Schema<any, import("mongoose").Model<any
|
|
|
40
59
|
repeatUntilXBookings?: number | null | undefined;
|
|
41
60
|
repeatUntilDate?: NativeDate | null | undefined;
|
|
42
61
|
} | null | undefined;
|
|
62
|
+
daysToRememberPatient?: number | null | undefined;
|
|
63
|
+
sendOnCreate?: any;
|
|
64
|
+
notifyOwnerIfDued?: any;
|
|
65
|
+
notifyOwnerReactiveOnEnd?: any;
|
|
43
66
|
}>, {}> & import("mongoose").FlatRecord<{} & {
|
|
44
67
|
account: any;
|
|
45
68
|
form: any;
|
|
46
69
|
patient: any;
|
|
70
|
+
notifyPatientChannel: string[];
|
|
71
|
+
code?: string | null | undefined;
|
|
47
72
|
recurrence?: {
|
|
48
73
|
daysOfWeek: string[];
|
|
49
74
|
daysOfMonth: number[];
|
|
@@ -55,6 +80,10 @@ export declare const QARecurrencechema: Schema<any, import("mongoose").Model<any
|
|
|
55
80
|
repeatUntilXBookings?: number | null | undefined;
|
|
56
81
|
repeatUntilDate?: NativeDate | null | undefined;
|
|
57
82
|
} | null | undefined;
|
|
83
|
+
daysToRememberPatient?: number | null | undefined;
|
|
84
|
+
sendOnCreate?: any;
|
|
85
|
+
notifyOwnerIfDued?: any;
|
|
86
|
+
notifyOwnerReactiveOnEnd?: any;
|
|
58
87
|
}> & {
|
|
59
88
|
_id: Types.ObjectId;
|
|
60
89
|
} & {
|
|
@@ -2,12 +2,19 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.QARecurrencechema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
|
-
const
|
|
5
|
+
const enum_1 = require("../enum");
|
|
6
|
+
const Recurrence_1 = require("../Recurrence");
|
|
6
7
|
exports.QARecurrencechema = new mongoose_1.Schema({
|
|
7
8
|
account: { type: mongoose_1.Types.ObjectId, ref: "account", required: true },
|
|
8
9
|
form: { type: mongoose_1.Types.ObjectId, ref: "form", required: true },
|
|
9
10
|
patient: { type: mongoose_1.Types.ObjectId, ref: "patient", required: true },
|
|
10
|
-
recurrence: { type: Recurrence_1.RecurrenceSchema }
|
|
11
|
+
recurrence: { type: Recurrence_1.RecurrenceSchema },
|
|
12
|
+
code: { type: String },
|
|
13
|
+
daysToRememberPatient: { type: Number },
|
|
14
|
+
sendOnCreate: { type: Boolean },
|
|
15
|
+
notifyPatientChannel: { type: [String], enum: enum_1.ChannelNotificationEnum },
|
|
16
|
+
notifyOwnerIfDued: { type: Boolean },
|
|
17
|
+
notifyOwnerReactiveOnEnd: { type: Boolean }
|
|
11
18
|
}, {
|
|
12
19
|
timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
|
|
13
20
|
});
|
package/package.json
CHANGED