c2-clinical 1.0.139 → 1.0.141

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.
@@ -2,9 +2,14 @@ import { Schema, Types } from "mongoose";
2
2
  import { IAnswer } from "../Answer";
3
3
  import { IForm } from "../form/Form";
4
4
  import { IAnthropometry } from "./Anthropometry";
5
+ import { IPatient } from "../patient/Patient";
5
6
  export interface IAnthropometryAnswer extends IAnswer {
6
7
  form: Types.ObjectId | IForm;
7
8
  anthropometry: Types.ObjectId | IAnthropometry;
9
+ patient: Types.ObjectId | IPatient;
10
+ referenceValue: any;
11
+ classificationLabel: any;
12
+ classificationColor: any;
8
13
  }
9
14
  export declare const AnthropometryAnswerSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
10
15
  timestamps: {
@@ -74,6 +79,15 @@ export declare const AnthropometryAnswerSchema: Schema<any, import("mongoose").M
74
79
  body?: any;
75
80
  dataset?: any;
76
81
  }>;
82
+ patient: {
83
+ prototype?: Types.ObjectId | null | undefined;
84
+ cacheHexString?: unknown;
85
+ generate?: {} | null | undefined;
86
+ createFromTime?: {} | null | undefined;
87
+ createFromHexString?: {} | null | undefined;
88
+ createFromBase64?: {} | null | undefined;
89
+ isValid?: {} | null | undefined;
90
+ };
77
91
  anthropometry: {
78
92
  prototype?: Types.ObjectId | null | undefined;
79
93
  cacheHexString?: unknown;
@@ -84,6 +98,9 @@ export declare const AnthropometryAnswerSchema: Schema<any, import("mongoose").M
84
98
  isValid?: {} | null | undefined;
85
99
  };
86
100
  answer?: any;
101
+ referenceValue?: any;
102
+ classificationLabel?: any;
103
+ classificationColor?: any;
87
104
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
88
105
  account: {
89
106
  prototype?: Types.ObjectId | null | undefined;
@@ -147,6 +164,15 @@ export declare const AnthropometryAnswerSchema: Schema<any, import("mongoose").M
147
164
  body?: any;
148
165
  dataset?: any;
149
166
  }>;
167
+ patient: {
168
+ prototype?: Types.ObjectId | null | undefined;
169
+ cacheHexString?: unknown;
170
+ generate?: {} | null | undefined;
171
+ createFromTime?: {} | null | undefined;
172
+ createFromHexString?: {} | null | undefined;
173
+ createFromBase64?: {} | null | undefined;
174
+ isValid?: {} | null | undefined;
175
+ };
150
176
  anthropometry: {
151
177
  prototype?: Types.ObjectId | null | undefined;
152
178
  cacheHexString?: unknown;
@@ -157,6 +183,9 @@ export declare const AnthropometryAnswerSchema: Schema<any, import("mongoose").M
157
183
  isValid?: {} | null | undefined;
158
184
  };
159
185
  answer?: any;
186
+ referenceValue?: any;
187
+ classificationLabel?: any;
188
+ classificationColor?: any;
160
189
  }>, {}> & import("mongoose").FlatRecord<{} & {
161
190
  account: {
162
191
  prototype?: Types.ObjectId | null | undefined;
@@ -220,6 +249,15 @@ export declare const AnthropometryAnswerSchema: Schema<any, import("mongoose").M
220
249
  body?: any;
221
250
  dataset?: any;
222
251
  }>;
252
+ patient: {
253
+ prototype?: Types.ObjectId | null | undefined;
254
+ cacheHexString?: unknown;
255
+ generate?: {} | null | undefined;
256
+ createFromTime?: {} | null | undefined;
257
+ createFromHexString?: {} | null | undefined;
258
+ createFromBase64?: {} | null | undefined;
259
+ isValid?: {} | null | undefined;
260
+ };
223
261
  anthropometry: {
224
262
  prototype?: Types.ObjectId | null | undefined;
225
263
  cacheHexString?: unknown;
@@ -230,6 +268,9 @@ export declare const AnthropometryAnswerSchema: Schema<any, import("mongoose").M
230
268
  isValid?: {} | null | undefined;
231
269
  };
232
270
  answer?: any;
271
+ referenceValue?: any;
272
+ classificationLabel?: any;
273
+ classificationColor?: any;
233
274
  }> & {
234
275
  _id: Types.ObjectId;
235
276
  } & {
@@ -7,9 +7,13 @@ const enum_1 = require("../enum");
7
7
  exports.AnthropometryAnswerSchema = new mongoose_1.Schema({
8
8
  account: { type: mongoose_1.Types.ObjectId, ref: "account", required: true },
9
9
  anthropometry: { type: mongoose_1.Types.ObjectId, ref: "anthropometry", required: true },
10
+ patient: { type: mongoose_1.Types.ObjectId, ref: "patient", required: true },
10
11
  form: { type: mongoose_1.Types.ObjectId, ref: "form", required: true },
11
12
  reference: { type: mongoose_1.Types.ObjectId, ref: "form-unit", required: true },
12
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 },
13
17
  validations: {
14
18
  type: [
15
19
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-clinical",
3
- "version": "1.0.139",
3
+ "version": "1.0.141",
4
4
  "description": "Biblioteca Typescript para API NodeJS",
5
5
  "repository": "https://github.com/cabralsilva/c2-clinical.git",
6
6
  "author": "Daniel Cabral <cabralconsultoriaemsoftware@gmail.com>",