c2-clinical 1.0.51 → 1.0.53
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 +10 -9
- package/dist/index.js +9 -8
- package/dist/models/antrophometric/Antrophometric.d.ts +42 -0
- package/dist/models/antrophometric/Antrophometric.js +14 -0
- package/dist/models/antrophometric/AntrophometricAnswer.d.ts +118 -0
- package/dist/models/antrophometric/AntrophometricAnswer.js +15 -0
- package/dist/models/patient/State.d.ts +3 -3
- package/dist/models/qa/QA.d.ts +3 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
|
+
import { IAccount } from "c2-account";
|
|
1
2
|
import GroupFormUnitsFlow from "./flow/group/GroupFormUnitsFlow";
|
|
2
3
|
import ExecFormulaFlow from "./flow/on-answer/ExecFormulaFlow";
|
|
3
4
|
import OnAnswerQuestionsFlow from "./flow/on-answer/OnAnswerQuestionsFlow";
|
|
4
|
-
import { IAccount } from "c2-account";
|
|
5
5
|
export * from "./models/enum";
|
|
6
6
|
export * from "./models/Answer";
|
|
7
|
+
export * from "./models/antrophometric/Antrophometric";
|
|
8
|
+
export * from "./models/Default";
|
|
9
|
+
export * from "./models/File";
|
|
10
|
+
export * from "./models/form/Form";
|
|
11
|
+
export * from "./models/form/FormUnit";
|
|
7
12
|
export * from "./models/patient/Address";
|
|
8
13
|
export * from "./models/patient/City";
|
|
9
14
|
export * from "./models/patient/Patient";
|
|
10
15
|
export * from "./models/patient/Phone";
|
|
11
16
|
export * from "./models/patient/State";
|
|
12
|
-
export * from "./models/File";
|
|
13
|
-
export * from "./models/Default";
|
|
14
|
-
export * from "./models/form/Form";
|
|
15
|
-
export * from "./models/form/FormUnit";
|
|
16
|
-
export * from "./models/Recurrence";
|
|
17
|
-
export * from "./models/qpc/QPC";
|
|
18
|
-
export * from "./models/qpc/QPCAnswer";
|
|
19
17
|
export * from "./models/qa/QA";
|
|
20
18
|
export * from "./models/qa/QAAnswer";
|
|
21
19
|
export * from "./models/qa/QAProgramming";
|
|
22
|
-
export
|
|
20
|
+
export * from "./models/qpc/QPC";
|
|
21
|
+
export * from "./models/qpc/QPCAnswer";
|
|
22
|
+
export * from "./models/Recurrence";
|
|
23
|
+
export { ExecFormulaFlow, GroupFormUnitsFlow, IAccount, OnAnswerQuestionsFlow };
|
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.
|
|
20
|
+
exports.OnAnswerQuestionsFlow = exports.GroupFormUnitsFlow = exports.ExecFormulaFlow = void 0;
|
|
21
21
|
const GroupFormUnitsFlow_1 = __importDefault(require("./flow/group/GroupFormUnitsFlow"));
|
|
22
22
|
exports.GroupFormUnitsFlow = GroupFormUnitsFlow_1.default;
|
|
23
23
|
const ExecFormulaFlow_1 = __importDefault(require("./flow/on-answer/ExecFormulaFlow"));
|
|
@@ -26,18 +26,19 @@ 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/antrophometric/Antrophometric"), exports);
|
|
30
|
+
__exportStar(require("./models/Default"), exports);
|
|
31
|
+
__exportStar(require("./models/File"), exports);
|
|
32
|
+
__exportStar(require("./models/form/Form"), exports);
|
|
33
|
+
__exportStar(require("./models/form/FormUnit"), exports);
|
|
29
34
|
__exportStar(require("./models/patient/Address"), exports);
|
|
30
35
|
__exportStar(require("./models/patient/City"), exports);
|
|
31
36
|
__exportStar(require("./models/patient/Patient"), exports);
|
|
32
37
|
__exportStar(require("./models/patient/Phone"), exports);
|
|
33
38
|
__exportStar(require("./models/patient/State"), exports);
|
|
34
|
-
__exportStar(require("./models/File"), exports);
|
|
35
|
-
__exportStar(require("./models/Default"), exports);
|
|
36
|
-
__exportStar(require("./models/form/Form"), exports);
|
|
37
|
-
__exportStar(require("./models/form/FormUnit"), exports);
|
|
38
|
-
__exportStar(require("./models/Recurrence"), exports);
|
|
39
|
-
__exportStar(require("./models/qpc/QPC"), exports);
|
|
40
|
-
__exportStar(require("./models/qpc/QPCAnswer"), exports);
|
|
41
39
|
__exportStar(require("./models/qa/QA"), exports);
|
|
42
40
|
__exportStar(require("./models/qa/QAAnswer"), exports);
|
|
43
41
|
__exportStar(require("./models/qa/QAProgramming"), exports);
|
|
42
|
+
__exportStar(require("./models/qpc/QPC"), exports);
|
|
43
|
+
__exportStar(require("./models/qpc/QPCAnswer"), exports);
|
|
44
|
+
__exportStar(require("./models/Recurrence"), exports);
|
|
@@ -0,0 +1,42 @@
|
|
|
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 IAntrophometric extends IDefault {
|
|
6
|
+
patient: Types.ObjectId | IPatient;
|
|
7
|
+
form: Types.ObjectId | IForm;
|
|
8
|
+
showingToPatient: boolean;
|
|
9
|
+
antrophometricDate: Date;
|
|
10
|
+
code: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const AntrophometricSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
13
|
+
timestamps: {
|
|
14
|
+
createdAt: string;
|
|
15
|
+
updatedAt: string;
|
|
16
|
+
};
|
|
17
|
+
}, {} & {
|
|
18
|
+
account: any;
|
|
19
|
+
form: any;
|
|
20
|
+
patient: any;
|
|
21
|
+
showingToPatient: any;
|
|
22
|
+
code?: string | null | undefined;
|
|
23
|
+
antrophometricDate?: NativeDate | null | undefined;
|
|
24
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
|
|
25
|
+
account: any;
|
|
26
|
+
form: any;
|
|
27
|
+
patient: any;
|
|
28
|
+
showingToPatient: any;
|
|
29
|
+
code?: string | null | undefined;
|
|
30
|
+
antrophometricDate?: NativeDate | null | undefined;
|
|
31
|
+
}>, {}> & import("mongoose").FlatRecord<{} & {
|
|
32
|
+
account: any;
|
|
33
|
+
form: any;
|
|
34
|
+
patient: any;
|
|
35
|
+
showingToPatient: any;
|
|
36
|
+
code?: string | null | undefined;
|
|
37
|
+
antrophometricDate?: NativeDate | null | undefined;
|
|
38
|
+
}> & {
|
|
39
|
+
_id: Types.ObjectId;
|
|
40
|
+
} & {
|
|
41
|
+
__v: number;
|
|
42
|
+
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AntrophometricSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
exports.AntrophometricSchema = 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
|
+
antrophometricDate: { type: Date },
|
|
11
|
+
code: { type: String }
|
|
12
|
+
}, {
|
|
13
|
+
timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
|
|
14
|
+
});
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { Schema, Types } from "mongoose";
|
|
2
|
+
import { IAnswer } from "../Answer";
|
|
3
|
+
import { IForm } from "../form/Form";
|
|
4
|
+
export interface IAntrophometricAnswer extends IAnswer {
|
|
5
|
+
form: Types.ObjectId | IForm;
|
|
6
|
+
}
|
|
7
|
+
export declare const AntrophometricAnswerSchema: 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.AntrophometricAnswerSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const FormUnit_1 = require("../form/FormUnit");
|
|
6
|
+
exports.AntrophometricAnswerSchema = 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
|
+
});
|
|
@@ -17,23 +17,23 @@ export declare const StateSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
17
17
|
}, {} & {
|
|
18
18
|
name: string;
|
|
19
19
|
code: string;
|
|
20
|
+
countryCode: string;
|
|
20
21
|
abbreviation: string;
|
|
21
22
|
countryName: string;
|
|
22
|
-
countryCode: string;
|
|
23
23
|
countryAbbreviation: string;
|
|
24
24
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
|
|
25
25
|
name: string;
|
|
26
26
|
code: string;
|
|
27
|
+
countryCode: string;
|
|
27
28
|
abbreviation: string;
|
|
28
29
|
countryName: string;
|
|
29
|
-
countryCode: string;
|
|
30
30
|
countryAbbreviation: string;
|
|
31
31
|
}>, {}> & import("mongoose").FlatRecord<{} & {
|
|
32
32
|
name: string;
|
|
33
33
|
code: string;
|
|
34
|
+
countryCode: string;
|
|
34
35
|
abbreviation: string;
|
|
35
36
|
countryName: string;
|
|
36
|
-
countryCode: string;
|
|
37
37
|
countryAbbreviation: string;
|
|
38
38
|
}> & {
|
|
39
39
|
_id: import("mongoose").Types.ObjectId;
|
package/dist/models/qa/QA.d.ts
CHANGED
|
@@ -31,9 +31,9 @@ export declare const QASchema: Schema<any, import("mongoose").Model<any, any, an
|
|
|
31
31
|
sendAppointmentDateTime: NativeDate;
|
|
32
32
|
sent: any;
|
|
33
33
|
code?: string | null | undefined;
|
|
34
|
-
answeredDateTime?: NativeDate | null | undefined;
|
|
35
34
|
programming?: any;
|
|
36
35
|
dueDate?: NativeDate | null | undefined;
|
|
36
|
+
answeredDateTime?: NativeDate | null | undefined;
|
|
37
37
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
|
|
38
38
|
account: any;
|
|
39
39
|
form: any;
|
|
@@ -41,9 +41,9 @@ export declare const QASchema: Schema<any, import("mongoose").Model<any, any, an
|
|
|
41
41
|
sendAppointmentDateTime: NativeDate;
|
|
42
42
|
sent: any;
|
|
43
43
|
code?: string | null | undefined;
|
|
44
|
-
answeredDateTime?: NativeDate | null | undefined;
|
|
45
44
|
programming?: any;
|
|
46
45
|
dueDate?: NativeDate | null | undefined;
|
|
46
|
+
answeredDateTime?: NativeDate | null | undefined;
|
|
47
47
|
}>, {}> & import("mongoose").FlatRecord<{} & {
|
|
48
48
|
account: any;
|
|
49
49
|
form: any;
|
|
@@ -51,9 +51,9 @@ export declare const QASchema: Schema<any, import("mongoose").Model<any, any, an
|
|
|
51
51
|
sendAppointmentDateTime: NativeDate;
|
|
52
52
|
sent: any;
|
|
53
53
|
code?: string | null | undefined;
|
|
54
|
-
answeredDateTime?: NativeDate | null | undefined;
|
|
55
54
|
programming?: any;
|
|
56
55
|
dueDate?: NativeDate | null | undefined;
|
|
56
|
+
answeredDateTime?: NativeDate | null | undefined;
|
|
57
57
|
}> & {
|
|
58
58
|
_id: Types.ObjectId;
|
|
59
59
|
} & {
|
package/package.json
CHANGED