c2-clinical 1.0.28 → 1.0.31

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
@@ -16,4 +16,7 @@ export * from "./models/qa/QARecurrence";
16
16
  export * from "./models/Recurrence";
17
17
  export * from "./models/qpc/QPC";
18
18
  export * from "./models/qpc/QPCAnswer";
19
+ export * from "./models/qa/QA";
20
+ export * from "./models/qa/QAAnswer";
21
+ export * from "./models/qa/QARecurrence";
19
22
  export { GroupFormUnitsFlow, OnAnswerQuestionsFlow, ExecFormulaFlow };
package/dist/index.js CHANGED
@@ -39,3 +39,6 @@ __exportStar(require("./models/qa/QARecurrence"), exports);
39
39
  __exportStar(require("./models/Recurrence"), exports);
40
40
  __exportStar(require("./models/qpc/QPC"), exports);
41
41
  __exportStar(require("./models/qpc/QPCAnswer"), exports);
42
+ __exportStar(require("./models/qa/QA"), exports);
43
+ __exportStar(require("./models/qa/QAAnswer"), exports);
44
+ __exportStar(require("./models/qa/QARecurrence"), exports);
@@ -3,7 +3,7 @@ import { IDefault } from "../Default";
3
3
  import { IForm } from "../form/Form";
4
4
  import { IPatient } from "../patient/Patient";
5
5
  import { IQARecurrence } from "./QARecurrence";
6
- export interface IQPC extends IDefault {
6
+ export interface IQA extends IDefault {
7
7
  patient: Types.ObjectId | IPatient;
8
8
  recurrence: Types.ObjectId | IQARecurrence;
9
9
  form: Types.ObjectId | IForm;
@@ -5,8 +5,8 @@ const mongoose_1 = require("mongoose");
5
5
  exports.QASchema = new mongoose_1.Schema({
6
6
  account: { type: mongoose_1.Types.ObjectId, ref: "account", required: true },
7
7
  patient: { type: mongoose_1.Types.ObjectId, ref: "patient", required: true },
8
- form: { type: mongoose_1.Types.ObjectId, ref: "form", required: true },
9
8
  recurrence: { type: mongoose_1.Types.ObjectId, ref: "qa-recurrence", required: true },
9
+ form: { type: mongoose_1.Types.ObjectId, ref: "form", required: true },
10
10
  dueDate: { type: Date },
11
11
  answeredDateTime: { type: Date },
12
12
  code: { type: String }
@@ -4,7 +4,7 @@ import { IForm } from "../form/Form";
4
4
  export interface IQAAnswer extends IAnswer {
5
5
  form: Types.ObjectId | IForm;
6
6
  }
7
- export declare const QPCAnswerSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
7
+ export declare const QAAnswerSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
8
8
  timestamps: {
9
9
  createdAt: string;
10
10
  updatedAt: string;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.QPCAnswerSchema = void 0;
3
+ exports.QAAnswerSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const FormUnit_1 = require("../form/FormUnit");
6
- exports.QPCAnswerSchema = new mongoose_1.Schema({
6
+ exports.QAAnswerSchema = new mongoose_1.Schema({
7
7
  account: { type: mongoose_1.Types.ObjectId, ref: "account", required: true },
8
8
  form: { type: mongoose_1.Types.ObjectId, ref: "form", required: true },
9
9
  reference: { type: mongoose_1.Types.ObjectId, ref: "form-unit", required: true },
@@ -8,6 +8,7 @@ export interface IQARecurrence extends IDefault {
8
8
  answeredDateTime: Date;
9
9
  form: Types.ObjectId | IForm;
10
10
  patient: Types.ObjectId | IPatient;
11
+ initSendDateTime: Date;
11
12
  recurrence: IRecurrence;
12
13
  code: string;
13
14
  daysToRememberPatient: number;
@@ -40,6 +41,7 @@ export declare const QARecurrencechema: Schema<any, import("mongoose").Model<any
40
41
  } | null | undefined;
41
42
  daysToRememberPatient?: number | null | undefined;
42
43
  sendOnCreate?: any;
44
+ initSendDateTime?: NativeDate | null | undefined;
43
45
  notifyOwnerIfDued?: any;
44
46
  notifyOwnerReactiveOnEnd?: any;
45
47
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
@@ -61,6 +63,7 @@ export declare const QARecurrencechema: Schema<any, import("mongoose").Model<any
61
63
  } | null | undefined;
62
64
  daysToRememberPatient?: number | null | undefined;
63
65
  sendOnCreate?: any;
66
+ initSendDateTime?: NativeDate | null | undefined;
64
67
  notifyOwnerIfDued?: any;
65
68
  notifyOwnerReactiveOnEnd?: any;
66
69
  }>, {}> & import("mongoose").FlatRecord<{} & {
@@ -82,6 +85,7 @@ export declare const QARecurrencechema: Schema<any, import("mongoose").Model<any
82
85
  } | null | undefined;
83
86
  daysToRememberPatient?: number | null | undefined;
84
87
  sendOnCreate?: any;
88
+ initSendDateTime?: NativeDate | null | undefined;
85
89
  notifyOwnerIfDued?: any;
86
90
  notifyOwnerReactiveOnEnd?: any;
87
91
  }> & {
@@ -12,6 +12,7 @@ exports.QARecurrencechema = new mongoose_1.Schema({
12
12
  code: { type: String },
13
13
  daysToRememberPatient: { type: Number },
14
14
  sendOnCreate: { type: Boolean },
15
+ initSendDateTime: { type: Date },
15
16
  notifyPatientChannel: { type: [String], enum: enum_1.ChannelNotificationEnum },
16
17
  notifyOwnerIfDued: { type: Boolean },
17
18
  notifyOwnerReactiveOnEnd: { type: Boolean }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-clinical",
3
- "version": "1.0.28",
3
+ "version": "1.0.31",
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>",