c2-clinical 1.0.88 → 1.0.89
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 -2
- package/dist/index.js +2 -2
- package/dist/models/anthropometry/Anthropometry.d.ts +42 -0
- package/dist/models/anthropometry/Anthropometry.js +14 -0
- package/dist/models/anthropometry/AnthropometryAnswer.d.ts +118 -0
- package/dist/models/anthropometry/AnthropometryAnswer.js +15 -0
- package/dist/models/enum.d.ts +12 -3
- package/dist/models/enum.js +12 -2
- package/dist/models/form/FormUnit.d.ts +10 -1
- package/dist/models/form/FormUnit.js +9 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,8 +6,8 @@ export * from "./models/enum";
|
|
|
6
6
|
export * from "./models/Answer";
|
|
7
7
|
export * from "./models/anamnese/Anamnese";
|
|
8
8
|
export * from "./models/anamnese/AnamneseAnswer";
|
|
9
|
-
export * from "./models/
|
|
10
|
-
export * from "./models/
|
|
9
|
+
export * from "./models/anthropometry/Anthropometry";
|
|
10
|
+
export * from "./models/anthropometry/AnthropometryAnswer";
|
|
11
11
|
export * from "./models/Default";
|
|
12
12
|
export * from "./models/File";
|
|
13
13
|
export * from "./models/form/Form";
|
package/dist/index.js
CHANGED
|
@@ -28,8 +28,8 @@ __exportStar(require("./models/enum"), exports);
|
|
|
28
28
|
__exportStar(require("./models/Answer"), exports);
|
|
29
29
|
__exportStar(require("./models/anamnese/Anamnese"), exports);
|
|
30
30
|
__exportStar(require("./models/anamnese/AnamneseAnswer"), exports);
|
|
31
|
-
__exportStar(require("./models/
|
|
32
|
-
__exportStar(require("./models/
|
|
31
|
+
__exportStar(require("./models/anthropometry/Anthropometry"), exports);
|
|
32
|
+
__exportStar(require("./models/anthropometry/AnthropometryAnswer"), exports);
|
|
33
33
|
__exportStar(require("./models/Default"), exports);
|
|
34
34
|
__exportStar(require("./models/File"), exports);
|
|
35
35
|
__exportStar(require("./models/form/Form"), 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 IAnthropometry extends IDefault {
|
|
6
|
+
patient: Types.ObjectId | IPatient;
|
|
7
|
+
form: Types.ObjectId | IForm;
|
|
8
|
+
showingToPatient: boolean;
|
|
9
|
+
anthropometryDate: Date;
|
|
10
|
+
code: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const AnthropometrySchema: 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
|
+
anthropometryDate?: 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
|
+
anthropometryDate?: 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
|
+
anthropometryDate?: 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.AnthropometrySchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
exports.AnthropometrySchema = 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
|
+
anthropometryDate: { 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 IAnthropometryAnswer extends IAnswer {
|
|
5
|
+
form: Types.ObjectId | IForm;
|
|
6
|
+
}
|
|
7
|
+
export declare const AnthropometryAnswerSchema: 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.AnthropometryAnswerSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const FormUnit_1 = require("../form/FormUnit");
|
|
6
|
+
exports.AnthropometryAnswerSchema = 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
|
+
});
|
package/dist/models/enum.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export declare enum CategoryFormEnum {
|
|
|
31
31
|
QA = "QA",
|
|
32
32
|
ANAMNESE = "ANAMNESE",
|
|
33
33
|
ANAMNESE_VIRTUAL = "ANAMNESE_VIRTUAL",// CATEGORIA VIRTUAL PARA ANAMNESE IMPORTADA DO QPC
|
|
34
|
-
|
|
34
|
+
ANTHROPOMETRY = "ANTHROPOMETRY",
|
|
35
35
|
ENERGY_EXPENDITURE = "ENERGY_EXPENDITURE",
|
|
36
36
|
EXAM_RESULT = "EXAM_RESULT"
|
|
37
37
|
}
|
|
@@ -79,14 +79,23 @@ export declare enum TypeAnswerEnum {
|
|
|
79
79
|
RANGE_DATE = "RANGE_DATE",
|
|
80
80
|
RANGE_TIME = "RANGE_TIME",
|
|
81
81
|
BOOLEAN = "BOOLEAN",
|
|
82
|
-
DATE = "DATE"
|
|
82
|
+
DATE = "DATE",
|
|
83
|
+
UPLOAD_FILE = "UPLOAD_FILE"
|
|
83
84
|
}
|
|
84
85
|
export declare enum VariantViewEnum {
|
|
85
86
|
CHECKBOX = "CHECKBOX",
|
|
86
87
|
RADIO_BUTTON = "RADIO_BUTTON",
|
|
87
88
|
SELECT = "SELECT",
|
|
88
89
|
BUTTON = "BUTTON",
|
|
89
|
-
LIST = "LIST"
|
|
90
|
+
LIST = "LIST",
|
|
91
|
+
SINGLE_FILE = "SINGLE_FILE",
|
|
92
|
+
MULTIPLE_FILES = "MULTIPLE_FILES"
|
|
93
|
+
}
|
|
94
|
+
export declare enum TypeUploadFileEnum {
|
|
95
|
+
IMAGE = "IMAGE",
|
|
96
|
+
VIDEO = "VIDEO",
|
|
97
|
+
AUDIO = "AUDIO",
|
|
98
|
+
OTHER = "OTHER"
|
|
90
99
|
}
|
|
91
100
|
export declare enum TypeButtonAction {
|
|
92
101
|
OPEN_MODAL = "OPEN_MODAL",
|
package/dist/models/enum.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TypeMessageEnum = exports.TypeOutputValidationEnum = exports.TypeTipEnum = exports.TypeValidationEnum = exports.TypeButtonAction = exports.VariantViewEnum = exports.TypeAnswerEnum = exports.TypeFormUnitEnum = exports.OwnerEnum = exports.TypeFormEnum = exports.CategoryFormEnum = exports.MetTargetConditionEnum = exports.StatusQPCEnum = exports.GenreEnum = exports.ChannelNotificationEnum = exports.QAStatusEnum = void 0;
|
|
3
|
+
exports.TypeMessageEnum = exports.TypeOutputValidationEnum = exports.TypeTipEnum = exports.TypeValidationEnum = exports.TypeButtonAction = exports.TypeUploadFileEnum = exports.VariantViewEnum = exports.TypeAnswerEnum = exports.TypeFormUnitEnum = exports.OwnerEnum = exports.TypeFormEnum = exports.CategoryFormEnum = exports.MetTargetConditionEnum = exports.StatusQPCEnum = exports.GenreEnum = exports.ChannelNotificationEnum = exports.QAStatusEnum = void 0;
|
|
4
4
|
var QAStatusEnum;
|
|
5
5
|
(function (QAStatusEnum) {
|
|
6
6
|
QAStatusEnum["ANSWERED"] = "ANSWERED";
|
|
@@ -40,7 +40,7 @@ var CategoryFormEnum;
|
|
|
40
40
|
CategoryFormEnum["QA"] = "QA";
|
|
41
41
|
CategoryFormEnum["ANAMNESE"] = "ANAMNESE";
|
|
42
42
|
CategoryFormEnum["ANAMNESE_VIRTUAL"] = "ANAMNESE_VIRTUAL";
|
|
43
|
-
CategoryFormEnum["
|
|
43
|
+
CategoryFormEnum["ANTHROPOMETRY"] = "ANTHROPOMETRY";
|
|
44
44
|
CategoryFormEnum["ENERGY_EXPENDITURE"] = "ENERGY_EXPENDITURE";
|
|
45
45
|
CategoryFormEnum["EXAM_RESULT"] = "EXAM_RESULT";
|
|
46
46
|
})(CategoryFormEnum || (exports.CategoryFormEnum = CategoryFormEnum = {}));
|
|
@@ -93,6 +93,7 @@ var TypeAnswerEnum;
|
|
|
93
93
|
TypeAnswerEnum["RANGE_TIME"] = "RANGE_TIME";
|
|
94
94
|
TypeAnswerEnum["BOOLEAN"] = "BOOLEAN";
|
|
95
95
|
TypeAnswerEnum["DATE"] = "DATE";
|
|
96
|
+
TypeAnswerEnum["UPLOAD_FILE"] = "UPLOAD_FILE";
|
|
96
97
|
})(TypeAnswerEnum || (exports.TypeAnswerEnum = TypeAnswerEnum = {}));
|
|
97
98
|
var VariantViewEnum;
|
|
98
99
|
(function (VariantViewEnum) {
|
|
@@ -101,7 +102,16 @@ var VariantViewEnum;
|
|
|
101
102
|
VariantViewEnum["SELECT"] = "SELECT";
|
|
102
103
|
VariantViewEnum["BUTTON"] = "BUTTON";
|
|
103
104
|
VariantViewEnum["LIST"] = "LIST";
|
|
105
|
+
VariantViewEnum["SINGLE_FILE"] = "SINGLE_FILE";
|
|
106
|
+
VariantViewEnum["MULTIPLE_FILES"] = "MULTIPLE_FILES";
|
|
104
107
|
})(VariantViewEnum || (exports.VariantViewEnum = VariantViewEnum = {}));
|
|
108
|
+
var TypeUploadFileEnum;
|
|
109
|
+
(function (TypeUploadFileEnum) {
|
|
110
|
+
TypeUploadFileEnum["IMAGE"] = "IMAGE";
|
|
111
|
+
TypeUploadFileEnum["VIDEO"] = "VIDEO";
|
|
112
|
+
TypeUploadFileEnum["AUDIO"] = "AUDIO";
|
|
113
|
+
TypeUploadFileEnum["OTHER"] = "OTHER";
|
|
114
|
+
})(TypeUploadFileEnum || (exports.TypeUploadFileEnum = TypeUploadFileEnum = {}));
|
|
105
115
|
var TypeButtonAction;
|
|
106
116
|
(function (TypeButtonAction) {
|
|
107
117
|
TypeButtonAction["OPEN_MODAL"] = "OPEN_MODAL";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Schema, Types } from "mongoose";
|
|
2
2
|
import { IDefault } from "../Default";
|
|
3
|
-
import { CategoryFormEnum, TypeAnswerEnum, TypeButtonAction, TypeFormUnitEnum, TypeOutputValidationEnum, TypeTipEnum, TypeValidationEnum } from "../enum";
|
|
3
|
+
import { CategoryFormEnum, TypeAnswerEnum, TypeButtonAction, TypeFormUnitEnum, TypeOutputValidationEnum, TypeTipEnum, TypeUploadFileEnum, TypeValidationEnum } from "../enum";
|
|
4
4
|
import { IForm } from "./Form";
|
|
5
5
|
export interface IModalConfig {
|
|
6
6
|
title: string;
|
|
@@ -8,6 +8,11 @@ export interface IModalConfig {
|
|
|
8
8
|
labelButtonCancel: string;
|
|
9
9
|
labelButtonConfirm: string;
|
|
10
10
|
}
|
|
11
|
+
export interface IUploadFileConfig {
|
|
12
|
+
typeFile: TypeUploadFileEnum;
|
|
13
|
+
acceptablesExtensions: string[];
|
|
14
|
+
thumbExample: string;
|
|
15
|
+
}
|
|
11
16
|
export interface IGroupConfig {
|
|
12
17
|
showTips: boolean;
|
|
13
18
|
}
|
|
@@ -64,6 +69,7 @@ export interface IFormUnit extends IDefault {
|
|
|
64
69
|
requestGraphicData: IRequestGraphicData[];
|
|
65
70
|
children?: IFormUnit[];
|
|
66
71
|
modalConfig?: IModalConfig;
|
|
72
|
+
uploadFileConfig: IUploadFileConfig;
|
|
67
73
|
tips?: ITip[];
|
|
68
74
|
groupConfig: IGroupConfig;
|
|
69
75
|
}
|
|
@@ -279,6 +285,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
279
285
|
graphicData?: any;
|
|
280
286
|
modalConfig?: any;
|
|
281
287
|
groupConfig?: any;
|
|
288
|
+
uploadFileConfig?: any;
|
|
282
289
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
|
|
283
290
|
type: string;
|
|
284
291
|
required: any;
|
|
@@ -391,6 +398,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
391
398
|
graphicData?: any;
|
|
392
399
|
modalConfig?: any;
|
|
393
400
|
groupConfig?: any;
|
|
401
|
+
uploadFileConfig?: any;
|
|
394
402
|
}>, {}> & import("mongoose").FlatRecord<{} & {
|
|
395
403
|
type: string;
|
|
396
404
|
required: any;
|
|
@@ -503,6 +511,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
503
511
|
graphicData?: any;
|
|
504
512
|
modalConfig?: any;
|
|
505
513
|
groupConfig?: any;
|
|
514
|
+
uploadFileConfig?: any;
|
|
506
515
|
}> & {
|
|
507
516
|
_id: Types.ObjectId;
|
|
508
517
|
} & {
|
|
@@ -84,6 +84,15 @@ exports.FormUnitSchema = new mongoose_1.Schema({
|
|
|
84
84
|
},
|
|
85
85
|
_id: false
|
|
86
86
|
},
|
|
87
|
+
//DADOS PARA UPLOAD FILE
|
|
88
|
+
uploadFileConfig: {
|
|
89
|
+
type: {
|
|
90
|
+
typeFile: { type: enum_1.TypeUploadFileEnum, default: enum_1.TypeUploadFileEnum.OTHER, required: true },
|
|
91
|
+
acceptablesExtensions: { type: [String] },
|
|
92
|
+
thumbExample: { type: String }
|
|
93
|
+
},
|
|
94
|
+
_id: false
|
|
95
|
+
},
|
|
87
96
|
tips: {
|
|
88
97
|
type: [
|
|
89
98
|
{
|
package/package.json
CHANGED