c2-clinical 1.0.78 → 1.0.80

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
@@ -4,6 +4,7 @@ import ExecFormulaFlow from "./flow/on-answer/ExecFormulaFlow";
4
4
  import OnAnswerQuestionsFlow from "./flow/on-answer/OnAnswerQuestionsFlow";
5
5
  export * from "./models/enum";
6
6
  export * from "./models/Answer";
7
+ export * from "./models/anamnese/Anamnese";
7
8
  export * from "./models/anamnese/AnamneseAnswer";
8
9
  export * from "./models/antrophometric/Antrophometric";
9
10
  export * from "./models/antrophometric/AntrophometricAnswer";
package/dist/index.js CHANGED
@@ -26,6 +26,7 @@ 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/anamnese/Anamnese"), exports);
29
30
  __exportStar(require("./models/anamnese/AnamneseAnswer"), exports);
30
31
  __exportStar(require("./models/antrophometric/Antrophometric"), exports);
31
32
  __exportStar(require("./models/antrophometric/AntrophometricAnswer"), exports);
@@ -0,0 +1,38 @@
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 IAnamnese extends IDefault {
6
+ patient: Types.ObjectId | IPatient;
7
+ form: Types.ObjectId | IForm;
8
+ answeredDateTime: Date;
9
+ code: string;
10
+ }
11
+ export declare const AnamneseSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
12
+ timestamps: {
13
+ createdAt: string;
14
+ updatedAt: string;
15
+ };
16
+ }, {} & {
17
+ account: any;
18
+ form: any;
19
+ patient: any;
20
+ code?: string | null | undefined;
21
+ answeredDateTime?: NativeDate | null | undefined;
22
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
23
+ account: any;
24
+ form: any;
25
+ patient: any;
26
+ code?: string | null | undefined;
27
+ answeredDateTime?: NativeDate | null | undefined;
28
+ }>, {}> & import("mongoose").FlatRecord<{} & {
29
+ account: any;
30
+ form: any;
31
+ patient: any;
32
+ code?: string | null | undefined;
33
+ answeredDateTime?: NativeDate | null | undefined;
34
+ }> & {
35
+ _id: Types.ObjectId;
36
+ } & {
37
+ __v: number;
38
+ }>;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AnamneseSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ exports.AnamneseSchema = 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
+ answeredDateTime: { type: Date },
10
+ code: { type: String }
11
+ }, {
12
+ timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
13
+ });
14
+ exports.AnamneseSchema.index({ account: 1 }, { unique: false });
15
+ exports.AnamneseSchema.index({ account: 1, patient: 1 }, { unique: false });
16
+ exports.AnamneseSchema.index({ account: 1, patient: 1, form: 1 }, { unique: false });
@@ -1,8 +1,10 @@
1
1
  import { Schema, Types } from "mongoose";
2
2
  import { IAnswer } from "../Answer";
3
3
  import { IForm } from "../form/Form";
4
+ import { IAnamnese } from "./Anamnese";
4
5
  export interface IAnamneseAnswer extends IAnswer {
5
6
  form: Types.ObjectId | IForm;
7
+ anamnese: Types.ObjectId | IAnamnese;
6
8
  }
7
9
  export declare const AnamneseAnswerSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
8
10
  timestamps: {
@@ -42,6 +44,7 @@ export declare const AnamneseAnswerSchema: Schema<any, import("mongoose").Model<
42
44
  body?: any;
43
45
  dataset?: any;
44
46
  }>;
47
+ anamnese: any;
45
48
  answer?: any;
46
49
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
47
50
  account: any;
@@ -76,6 +79,7 @@ export declare const AnamneseAnswerSchema: Schema<any, import("mongoose").Model<
76
79
  body?: any;
77
80
  dataset?: any;
78
81
  }>;
82
+ anamnese: any;
79
83
  answer?: any;
80
84
  }>, {}> & import("mongoose").FlatRecord<{} & {
81
85
  account: any;
@@ -110,6 +114,7 @@ export declare const AnamneseAnswerSchema: Schema<any, import("mongoose").Model<
110
114
  body?: any;
111
115
  dataset?: any;
112
116
  }>;
117
+ anamnese: any;
113
118
  answer?: any;
114
119
  }> & {
115
120
  _id: Types.ObjectId;
@@ -5,6 +5,7 @@ const mongoose_1 = require("mongoose");
5
5
  const FormUnit_1 = require("../form/FormUnit");
6
6
  exports.AnamneseAnswerSchema = new mongoose_1.Schema({
7
7
  account: { type: mongoose_1.Types.ObjectId, ref: "account", required: true },
8
+ anamnese: { type: mongoose_1.Types.ObjectId, ref: "anamnese", required: true },
8
9
  form: { type: mongoose_1.Types.ObjectId, ref: "form", required: true },
9
10
  reference: { type: mongoose_1.Types.ObjectId, ref: "form-unit", required: true },
10
11
  answer: { type: mongoose_1.Schema.Types.Mixed },
@@ -34,8 +34,8 @@ export declare const QASchema: Schema<any, import("mongoose").Model<any, any, an
34
34
  sentRemember: any;
35
35
  blocked: any;
36
36
  code?: string | null | undefined;
37
- programming?: any;
38
37
  answeredDateTime?: NativeDate | null | undefined;
38
+ programming?: any;
39
39
  sendRememberDateTime?: NativeDate | null | undefined;
40
40
  dueDateTime?: NativeDate | null | undefined;
41
41
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
@@ -48,8 +48,8 @@ export declare const QASchema: Schema<any, import("mongoose").Model<any, any, an
48
48
  sentRemember: any;
49
49
  blocked: any;
50
50
  code?: string | null | undefined;
51
- programming?: any;
52
51
  answeredDateTime?: NativeDate | null | undefined;
52
+ programming?: any;
53
53
  sendRememberDateTime?: NativeDate | null | undefined;
54
54
  dueDateTime?: NativeDate | null | undefined;
55
55
  }>, {}> & import("mongoose").FlatRecord<{} & {
@@ -62,8 +62,8 @@ export declare const QASchema: Schema<any, import("mongoose").Model<any, any, an
62
62
  sentRemember: any;
63
63
  blocked: any;
64
64
  code?: string | null | undefined;
65
- programming?: any;
66
65
  answeredDateTime?: NativeDate | null | undefined;
66
+ programming?: any;
67
67
  sendRememberDateTime?: NativeDate | null | undefined;
68
68
  dueDateTime?: NativeDate | null | undefined;
69
69
  }> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-clinical",
3
- "version": "1.0.78",
3
+ "version": "1.0.80",
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>",