c2-clinical 1.0.198 → 1.0.201

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 CHANGED
@@ -24,6 +24,8 @@ export * from "./models/patient/City";
24
24
  export * from "./models/patient/Patient";
25
25
  export * from "./models/patient/Phone";
26
26
  export * from "./models/patient/State";
27
+ export * from "./models/pregnancy-monitoring/PregnancyMonitoring";
28
+ export * from "./models/pregnancy-monitoring/PregnancyMonitoringAnswer";
27
29
  export * from "./models/qa/QA";
28
30
  export * from "./models/qa/QAAnswer";
29
31
  export * from "./models/qa/QAProgramming";
package/dist/index.js CHANGED
@@ -49,6 +49,8 @@ __exportStar(require("./models/patient/City"), exports);
49
49
  __exportStar(require("./models/patient/Patient"), exports);
50
50
  __exportStar(require("./models/patient/Phone"), exports);
51
51
  __exportStar(require("./models/patient/State"), exports);
52
+ __exportStar(require("./models/pregnancy-monitoring/PregnancyMonitoring"), exports);
53
+ __exportStar(require("./models/pregnancy-monitoring/PregnancyMonitoringAnswer"), exports);
52
54
  __exportStar(require("./models/qa/QA"), exports);
53
55
  __exportStar(require("./models/qa/QAAnswer"), exports);
54
56
  __exportStar(require("./models/qa/QAProgramming"), exports);
@@ -33,7 +33,8 @@ export declare enum CategoryFormEnum {
33
33
  ANAMNESE_VIRTUAL = "ANAMNESE_VIRTUAL",// CATEGORIA VIRTUAL PARA ANAMNESE IMPORTADA DO QPC
34
34
  ANTHROPOMETRY = "ANTHROPOMETRY",
35
35
  ENERGY_EXPENDITURE = "ENERGY_EXPENDITURE",
36
- EXAM_RESULT = "EXAM_RESULT"
36
+ EXAM_RESULT = "EXAM_RESULT",
37
+ PREGNANCY_MONITORING = "PREGNANCY_MONITORING"
37
38
  }
38
39
  export declare enum TypeFormEnum {
39
40
  STRUCTURED = "STRUCTURED",
@@ -43,6 +43,7 @@ var CategoryFormEnum;
43
43
  CategoryFormEnum["ANTHROPOMETRY"] = "ANTHROPOMETRY";
44
44
  CategoryFormEnum["ENERGY_EXPENDITURE"] = "ENERGY_EXPENDITURE";
45
45
  CategoryFormEnum["EXAM_RESULT"] = "EXAM_RESULT";
46
+ CategoryFormEnum["PREGNANCY_MONITORING"] = "PREGNANCY_MONITORING";
46
47
  })(CategoryFormEnum || (exports.CategoryFormEnum = CategoryFormEnum = {}));
47
48
  var TypeFormEnum;
48
49
  (function (TypeFormEnum) {
@@ -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 IPregnancyMonitoring extends IDefault {
6
+ patient: Types.ObjectId | IPatient;
7
+ form: Types.ObjectId | IForm;
8
+ showingToPatient: boolean;
9
+ pregnancyMonitoringDateTime: Date;
10
+ code: string;
11
+ description: string;
12
+ }
13
+ export declare const PregnancyMonitoringSchema: 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
+ pregnancyMonitoringDateTime?: 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
+ pregnancyMonitoringDateTime?: 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
+ pregnancyMonitoringDateTime?: 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.PregnancyMonitoringSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ exports.PregnancyMonitoringSchema = 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
+ pregnancyMonitoringDateTime: { type: Date },
11
+ code: { type: String },
12
+ description: { type: String }
13
+ }, {
14
+ timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
15
+ });
@@ -0,0 +1,299 @@
1
+ import { Schema, Types } from "mongoose";
2
+ import { IAnswer } from "../Answer";
3
+ import { IForm } from "../form/Form";
4
+ import { IRequestGraphicData, IValidationQuestion } from "../form/FormUnit";
5
+ import { IPatient } from "../patient/Patient";
6
+ import { IPregnancyMonitoring } from "./PregnancyMonitoring";
7
+ export interface IPregnancyMonitoringAnswer extends IAnswer {
8
+ form: Types.ObjectId | IForm;
9
+ pregnancyMonitoring: Types.ObjectId | IPregnancyMonitoring;
10
+ patient: Types.ObjectId | IPatient;
11
+ referenceValue: any;
12
+ classificationLabel: any;
13
+ classificationColor: any;
14
+ validations: IValidationQuestion[];
15
+ requestGraphicData: IRequestGraphicData[];
16
+ }
17
+ export declare const PregnancyMonitoringAnswerSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
18
+ timestamps: {
19
+ createdAt: string;
20
+ updatedAt: string;
21
+ };
22
+ }, {} & {
23
+ account: {
24
+ prototype?: Types.ObjectId | null | undefined;
25
+ cacheHexString?: unknown;
26
+ generate?: {} | null | undefined;
27
+ createFromTime?: {} | null | undefined;
28
+ createFromHexString?: {} | null | undefined;
29
+ createFromBase64?: {} | null | undefined;
30
+ isValid?: {} | null | undefined;
31
+ };
32
+ reference: {
33
+ prototype?: Types.ObjectId | null | undefined;
34
+ cacheHexString?: unknown;
35
+ generate?: {} | null | undefined;
36
+ createFromTime?: {} | null | undefined;
37
+ createFromHexString?: {} | null | undefined;
38
+ createFromBase64?: {} | null | undefined;
39
+ isValid?: {} | null | undefined;
40
+ };
41
+ form: {
42
+ prototype?: Types.ObjectId | null | undefined;
43
+ cacheHexString?: unknown;
44
+ generate?: {} | null | undefined;
45
+ createFromTime?: {} | null | undefined;
46
+ createFromHexString?: {} | null | undefined;
47
+ createFromBase64?: {} | null | undefined;
48
+ isValid?: {} | null | undefined;
49
+ };
50
+ validations: Types.DocumentArray<{
51
+ typeOutput: string;
52
+ type?: string | null | undefined;
53
+ message?: string | null | undefined;
54
+ }, Types.Subdocument<Types.ObjectId, any, {
55
+ typeOutput: string;
56
+ type?: string | null | undefined;
57
+ message?: string | null | undefined;
58
+ }> & {
59
+ typeOutput: string;
60
+ type?: string | null | undefined;
61
+ message?: string | null | undefined;
62
+ }> | Types.DocumentArray<{
63
+ _id?: unknown;
64
+ }, Types.Subdocument<unknown, any, {
65
+ _id?: unknown;
66
+ }> & {
67
+ _id?: unknown;
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
+ requestGraphicData: Types.DocumentArray<{
79
+ method: string;
80
+ url: string;
81
+ codes: string[];
82
+ datasetsToAdd: any[];
83
+ body?: any;
84
+ dataset?: any;
85
+ }, Types.Subdocument<Types.ObjectId, any, {
86
+ method: string;
87
+ url: string;
88
+ codes: string[];
89
+ datasetsToAdd: any[];
90
+ body?: any;
91
+ dataset?: any;
92
+ }> & {
93
+ method: string;
94
+ url: string;
95
+ codes: string[];
96
+ datasetsToAdd: any[];
97
+ body?: any;
98
+ dataset?: any;
99
+ }>;
100
+ pregnancyMonitoring: {
101
+ prototype?: Types.ObjectId | null | undefined;
102
+ cacheHexString?: unknown;
103
+ generate?: {} | null | undefined;
104
+ createFromTime?: {} | null | undefined;
105
+ createFromHexString?: {} | null | undefined;
106
+ createFromBase64?: {} | null | undefined;
107
+ isValid?: {} | null | undefined;
108
+ };
109
+ answer?: any;
110
+ referenceValue?: any;
111
+ classificationLabel?: any;
112
+ classificationColor?: any;
113
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
114
+ account: {
115
+ prototype?: Types.ObjectId | null | undefined;
116
+ cacheHexString?: unknown;
117
+ generate?: {} | null | undefined;
118
+ createFromTime?: {} | null | undefined;
119
+ createFromHexString?: {} | null | undefined;
120
+ createFromBase64?: {} | null | undefined;
121
+ isValid?: {} | null | undefined;
122
+ };
123
+ reference: {
124
+ prototype?: Types.ObjectId | null | undefined;
125
+ cacheHexString?: unknown;
126
+ generate?: {} | null | undefined;
127
+ createFromTime?: {} | null | undefined;
128
+ createFromHexString?: {} | null | undefined;
129
+ createFromBase64?: {} | null | undefined;
130
+ isValid?: {} | null | undefined;
131
+ };
132
+ form: {
133
+ prototype?: Types.ObjectId | null | undefined;
134
+ cacheHexString?: unknown;
135
+ generate?: {} | null | undefined;
136
+ createFromTime?: {} | null | undefined;
137
+ createFromHexString?: {} | null | undefined;
138
+ createFromBase64?: {} | null | undefined;
139
+ isValid?: {} | null | undefined;
140
+ };
141
+ validations: Types.DocumentArray<{
142
+ typeOutput: string;
143
+ type?: string | null | undefined;
144
+ message?: string | null | undefined;
145
+ }, Types.Subdocument<Types.ObjectId, any, {
146
+ typeOutput: string;
147
+ type?: string | null | undefined;
148
+ message?: string | null | undefined;
149
+ }> & {
150
+ typeOutput: string;
151
+ type?: string | null | undefined;
152
+ message?: string | null | undefined;
153
+ }> | Types.DocumentArray<{
154
+ _id?: unknown;
155
+ }, Types.Subdocument<unknown, any, {
156
+ _id?: unknown;
157
+ }> & {
158
+ _id?: unknown;
159
+ }>;
160
+ patient: {
161
+ prototype?: Types.ObjectId | null | undefined;
162
+ cacheHexString?: unknown;
163
+ generate?: {} | null | undefined;
164
+ createFromTime?: {} | null | undefined;
165
+ createFromHexString?: {} | null | undefined;
166
+ createFromBase64?: {} | null | undefined;
167
+ isValid?: {} | null | undefined;
168
+ };
169
+ requestGraphicData: Types.DocumentArray<{
170
+ method: string;
171
+ url: string;
172
+ codes: string[];
173
+ datasetsToAdd: any[];
174
+ body?: any;
175
+ dataset?: any;
176
+ }, Types.Subdocument<Types.ObjectId, any, {
177
+ method: string;
178
+ url: string;
179
+ codes: string[];
180
+ datasetsToAdd: any[];
181
+ body?: any;
182
+ dataset?: any;
183
+ }> & {
184
+ method: string;
185
+ url: string;
186
+ codes: string[];
187
+ datasetsToAdd: any[];
188
+ body?: any;
189
+ dataset?: any;
190
+ }>;
191
+ pregnancyMonitoring: {
192
+ prototype?: Types.ObjectId | null | undefined;
193
+ cacheHexString?: unknown;
194
+ generate?: {} | null | undefined;
195
+ createFromTime?: {} | null | undefined;
196
+ createFromHexString?: {} | null | undefined;
197
+ createFromBase64?: {} | null | undefined;
198
+ isValid?: {} | null | undefined;
199
+ };
200
+ answer?: any;
201
+ referenceValue?: any;
202
+ classificationLabel?: any;
203
+ classificationColor?: any;
204
+ }>, {}> & import("mongoose").FlatRecord<{} & {
205
+ account: {
206
+ prototype?: Types.ObjectId | null | undefined;
207
+ cacheHexString?: unknown;
208
+ generate?: {} | null | undefined;
209
+ createFromTime?: {} | null | undefined;
210
+ createFromHexString?: {} | null | undefined;
211
+ createFromBase64?: {} | null | undefined;
212
+ isValid?: {} | null | undefined;
213
+ };
214
+ reference: {
215
+ prototype?: Types.ObjectId | null | undefined;
216
+ cacheHexString?: unknown;
217
+ generate?: {} | null | undefined;
218
+ createFromTime?: {} | null | undefined;
219
+ createFromHexString?: {} | null | undefined;
220
+ createFromBase64?: {} | null | undefined;
221
+ isValid?: {} | null | undefined;
222
+ };
223
+ form: {
224
+ prototype?: Types.ObjectId | null | undefined;
225
+ cacheHexString?: unknown;
226
+ generate?: {} | null | undefined;
227
+ createFromTime?: {} | null | undefined;
228
+ createFromHexString?: {} | null | undefined;
229
+ createFromBase64?: {} | null | undefined;
230
+ isValid?: {} | null | undefined;
231
+ };
232
+ validations: Types.DocumentArray<{
233
+ typeOutput: string;
234
+ type?: string | null | undefined;
235
+ message?: string | null | undefined;
236
+ }, Types.Subdocument<Types.ObjectId, any, {
237
+ typeOutput: string;
238
+ type?: string | null | undefined;
239
+ message?: string | null | undefined;
240
+ }> & {
241
+ typeOutput: string;
242
+ type?: string | null | undefined;
243
+ message?: string | null | undefined;
244
+ }> | Types.DocumentArray<{
245
+ _id?: unknown;
246
+ }, Types.Subdocument<unknown, any, {
247
+ _id?: unknown;
248
+ }> & {
249
+ _id?: unknown;
250
+ }>;
251
+ patient: {
252
+ prototype?: Types.ObjectId | null | undefined;
253
+ cacheHexString?: unknown;
254
+ generate?: {} | null | undefined;
255
+ createFromTime?: {} | null | undefined;
256
+ createFromHexString?: {} | null | undefined;
257
+ createFromBase64?: {} | null | undefined;
258
+ isValid?: {} | null | undefined;
259
+ };
260
+ requestGraphicData: Types.DocumentArray<{
261
+ method: string;
262
+ url: string;
263
+ codes: string[];
264
+ datasetsToAdd: any[];
265
+ body?: any;
266
+ dataset?: any;
267
+ }, Types.Subdocument<Types.ObjectId, any, {
268
+ method: string;
269
+ url: string;
270
+ codes: string[];
271
+ datasetsToAdd: any[];
272
+ body?: any;
273
+ dataset?: any;
274
+ }> & {
275
+ method: string;
276
+ url: string;
277
+ codes: string[];
278
+ datasetsToAdd: any[];
279
+ body?: any;
280
+ dataset?: any;
281
+ }>;
282
+ pregnancyMonitoring: {
283
+ prototype?: Types.ObjectId | null | undefined;
284
+ cacheHexString?: unknown;
285
+ generate?: {} | null | undefined;
286
+ createFromTime?: {} | null | undefined;
287
+ createFromHexString?: {} | null | undefined;
288
+ createFromBase64?: {} | null | undefined;
289
+ isValid?: {} | null | undefined;
290
+ };
291
+ answer?: any;
292
+ referenceValue?: any;
293
+ classificationLabel?: any;
294
+ classificationColor?: any;
295
+ }> & {
296
+ _id: Types.ObjectId;
297
+ } & {
298
+ __v: number;
299
+ }>;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PregnancyMonitoringAnswerSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const enum_1 = require("../enum");
6
+ const FormUnit_1 = require("../form/FormUnit");
7
+ exports.PregnancyMonitoringAnswerSchema = new mongoose_1.Schema({
8
+ account: { type: mongoose_1.Types.ObjectId, ref: "account", required: true },
9
+ pregnancyMonitoring: { type: mongoose_1.Types.ObjectId, ref: "pregnancy-monitoring", required: true },
10
+ patient: { type: mongoose_1.Types.ObjectId, ref: "patient", required: true },
11
+ form: { type: mongoose_1.Types.ObjectId, ref: "form", required: true },
12
+ reference: { type: mongoose_1.Types.ObjectId, ref: "form-unit", required: true },
13
+ answer: { type: mongoose_1.Schema.Types.Mixed },
14
+ referenceValue: { type: mongoose_1.Schema.Types.Mixed },
15
+ classificationLabel: { type: mongoose_1.Schema.Types.Mixed },
16
+ classificationColor: { type: mongoose_1.Schema.Types.Mixed },
17
+ validations: {
18
+ type: [
19
+ {
20
+ type: { type: String, enum: enum_1.TypeValidationEnum },
21
+ typeOutput: {
22
+ type: String,
23
+ enum: enum_1.TypeOutputValidationEnum,
24
+ default: enum_1.TypeOutputValidationEnum.TEXT
25
+ },
26
+ message: { type: String }
27
+ },
28
+ { _id: false }
29
+ ]
30
+ },
31
+ requestGraphicData: { type: [FormUnit_1.RequestGraphicDataSchema] }
32
+ }, {
33
+ timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
34
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-clinical",
3
- "version": "1.0.198",
3
+ "version": "1.0.201",
4
4
  "description": "Biblioteca Typescript para API NodeJS",
5
5
  "repository": {
6
6
  "type": "git",