c2-clinical 1.0.183 → 1.0.187
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/__tests__/flow/on-answer/OnAnswerQuestionsFlowTester.test.js +2025 -2299
- package/dist/models/anthropometry/Anthropometry.d.ts +4 -0
- package/dist/models/anthropometry/Anthropometry.js +2 -1
- package/dist/models/form/FormUnit.d.ts +4 -0
- package/dist/models/form/FormUnit.js +2 -0
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ export interface IAnthropometry extends IDefault {
|
|
|
8
8
|
showingToPatient: boolean;
|
|
9
9
|
anthropometryDateTime: Date;
|
|
10
10
|
code: string;
|
|
11
|
+
description: string;
|
|
11
12
|
}
|
|
12
13
|
export declare const AnthropometrySchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
13
14
|
timestamps: {
|
|
@@ -43,6 +44,7 @@ export declare const AnthropometrySchema: Schema<any, import("mongoose").Model<a
|
|
|
43
44
|
isValid?: {} | null | undefined;
|
|
44
45
|
};
|
|
45
46
|
showingToPatient: boolean;
|
|
47
|
+
description?: string | null | undefined;
|
|
46
48
|
code?: string | null | undefined;
|
|
47
49
|
anthropometryDateTime?: NativeDate | null | undefined;
|
|
48
50
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
|
|
@@ -74,6 +76,7 @@ export declare const AnthropometrySchema: Schema<any, import("mongoose").Model<a
|
|
|
74
76
|
isValid?: {} | null | undefined;
|
|
75
77
|
};
|
|
76
78
|
showingToPatient: boolean;
|
|
79
|
+
description?: string | null | undefined;
|
|
77
80
|
code?: string | null | undefined;
|
|
78
81
|
anthropometryDateTime?: NativeDate | null | undefined;
|
|
79
82
|
}>, {}> & import("mongoose").FlatRecord<{} & {
|
|
@@ -105,6 +108,7 @@ export declare const AnthropometrySchema: Schema<any, import("mongoose").Model<a
|
|
|
105
108
|
isValid?: {} | null | undefined;
|
|
106
109
|
};
|
|
107
110
|
showingToPatient: boolean;
|
|
111
|
+
description?: string | null | undefined;
|
|
108
112
|
code?: string | null | undefined;
|
|
109
113
|
anthropometryDateTime?: NativeDate | null | undefined;
|
|
110
114
|
}> & {
|
|
@@ -8,7 +8,8 @@ exports.AnthropometrySchema = new mongoose_1.Schema({
|
|
|
8
8
|
form: { type: mongoose_1.Types.ObjectId, ref: "form", required: true },
|
|
9
9
|
showingToPatient: { type: Boolean, default: false },
|
|
10
10
|
anthropometryDateTime: { type: Date },
|
|
11
|
-
code: { type: String }
|
|
11
|
+
code: { type: String },
|
|
12
|
+
description: { type: String }
|
|
12
13
|
}, {
|
|
13
14
|
timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
|
|
14
15
|
});
|
|
@@ -66,6 +66,7 @@ export interface IFormUnit extends IDefault {
|
|
|
66
66
|
variantView: VariantViewEnum;
|
|
67
67
|
measurementUnit: string;
|
|
68
68
|
options: IQuestionOption[];
|
|
69
|
+
isDefault: boolean;
|
|
69
70
|
formulaToAnswer: string;
|
|
70
71
|
answer: any;
|
|
71
72
|
formulaToReferenceValue: string;
|
|
@@ -242,6 +243,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
242
243
|
code: string;
|
|
243
244
|
active: boolean;
|
|
244
245
|
form: Types.ObjectId;
|
|
246
|
+
isDefault: boolean;
|
|
245
247
|
options: Types.DocumentArray<{
|
|
246
248
|
description: string;
|
|
247
249
|
sequence: number;
|
|
@@ -384,6 +386,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
384
386
|
code: string;
|
|
385
387
|
active: boolean;
|
|
386
388
|
form: Types.ObjectId;
|
|
389
|
+
isDefault: boolean;
|
|
387
390
|
options: Types.DocumentArray<{
|
|
388
391
|
description: string;
|
|
389
392
|
sequence: number;
|
|
@@ -526,6 +529,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
526
529
|
code: string;
|
|
527
530
|
active: boolean;
|
|
528
531
|
form: Types.ObjectId;
|
|
532
|
+
isDefault: boolean;
|
|
529
533
|
options: Types.DocumentArray<{
|
|
530
534
|
description: string;
|
|
531
535
|
sequence: number;
|
|
@@ -52,6 +52,8 @@ exports.FormUnitSchema = new mongoose_1.Schema({
|
|
|
52
52
|
},
|
|
53
53
|
typeAnswer: { type: String, enum: enum_1.TypeAnswerEnum },
|
|
54
54
|
defaultAnswer: { type: String },
|
|
55
|
+
// PERGUNTAS DEFAULT SAO AS CALCULADAS COM BASE NO PERFIL DO PACIENTE E CALCULADAS AO CARREGAR O FORMULARIO
|
|
56
|
+
isDefault: { type: Boolean, default: false },
|
|
55
57
|
category: { type: String, enum: enum_1.CategoryFormEnum, required: true },
|
|
56
58
|
variantView: { type: String, enum: enum_1.VariantViewEnum },
|
|
57
59
|
typeButtonAction: { type: String, enum: enum_1.TypeButtonAction },
|