c2-clinical 1.0.31 → 1.0.33

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
@@ -12,11 +12,10 @@ export * from "./models/Account";
12
12
  export * from "./models/Default";
13
13
  export * from "./models/form/Form";
14
14
  export * from "./models/form/FormUnit";
15
- export * from "./models/qa/QARecurrence";
16
15
  export * from "./models/Recurrence";
17
16
  export * from "./models/qpc/QPC";
18
17
  export * from "./models/qpc/QPCAnswer";
19
18
  export * from "./models/qa/QA";
20
19
  export * from "./models/qa/QAAnswer";
21
- export * from "./models/qa/QARecurrence";
20
+ export * from "./models/qa/QAProgramming";
22
21
  export { GroupFormUnitsFlow, OnAnswerQuestionsFlow, ExecFormulaFlow };
package/dist/index.js CHANGED
@@ -35,10 +35,9 @@ __exportStar(require("./models/Account"), exports);
35
35
  __exportStar(require("./models/Default"), exports);
36
36
  __exportStar(require("./models/form/Form"), exports);
37
37
  __exportStar(require("./models/form/FormUnit"), exports);
38
- __exportStar(require("./models/qa/QARecurrence"), exports);
39
38
  __exportStar(require("./models/Recurrence"), exports);
40
39
  __exportStar(require("./models/qpc/QPC"), exports);
41
40
  __exportStar(require("./models/qpc/QPCAnswer"), exports);
42
41
  __exportStar(require("./models/qa/QA"), exports);
43
42
  __exportStar(require("./models/qa/QAAnswer"), exports);
44
- __exportStar(require("./models/qa/QARecurrence"), exports);
43
+ __exportStar(require("./models/qa/QAProgramming"), exports);
@@ -2,10 +2,10 @@ import { Schema, Types } from "mongoose";
2
2
  import { IDefault } from "../Default";
3
3
  import { IForm } from "../form/Form";
4
4
  import { IPatient } from "../patient/Patient";
5
- import { IQARecurrence } from "./QARecurrence";
5
+ import { IQAProgramming } from "./QAProgramming";
6
6
  export interface IQA extends IDefault {
7
7
  patient: Types.ObjectId | IPatient;
8
- recurrence: Types.ObjectId | IQARecurrence;
8
+ programming: Types.ObjectId | IQAProgramming;
9
9
  form: Types.ObjectId | IForm;
10
10
  answeredDateTime: Date;
11
11
  dueDate: Date;
@@ -20,7 +20,7 @@ export declare const QASchema: Schema<any, import("mongoose").Model<any, any, an
20
20
  account: any;
21
21
  form: any;
22
22
  patient: any;
23
- recurrence: any;
23
+ programming: any;
24
24
  code?: string | null | undefined;
25
25
  answeredDateTime?: NativeDate | null | undefined;
26
26
  dueDate?: NativeDate | null | undefined;
@@ -28,7 +28,7 @@ export declare const QASchema: Schema<any, import("mongoose").Model<any, any, an
28
28
  account: any;
29
29
  form: any;
30
30
  patient: any;
31
- recurrence: any;
31
+ programming: any;
32
32
  code?: string | null | undefined;
33
33
  answeredDateTime?: NativeDate | null | undefined;
34
34
  dueDate?: NativeDate | null | undefined;
@@ -36,7 +36,7 @@ export declare const QASchema: Schema<any, import("mongoose").Model<any, any, an
36
36
  account: any;
37
37
  form: any;
38
38
  patient: any;
39
- recurrence: any;
39
+ programming: any;
40
40
  code?: string | null | undefined;
41
41
  answeredDateTime?: NativeDate | null | undefined;
42
42
  dueDate?: NativeDate | null | undefined;
@@ -5,7 +5,7 @@ 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
- recurrence: { type: mongoose_1.Types.ObjectId, ref: "qa-recurrence", required: true },
8
+ programming: { type: mongoose_1.Types.ObjectId, ref: "qa-programming", required: true },
9
9
  form: { type: mongoose_1.Types.ObjectId, ref: "form", required: true },
10
10
  dueDate: { type: Date },
11
11
  answeredDateTime: { type: Date },
@@ -0,0 +1,95 @@
1
+ import { Schema, Types } from "mongoose";
2
+ import { IDefault } from "../Default";
3
+ import { ChannelNotificationEnum } from "../enum";
4
+ import { IForm } from "../form/Form";
5
+ import { IPatient } from "../patient/Patient";
6
+ import { IRecurrence } from "../Recurrence";
7
+ export interface IQAProgramming extends IDefault {
8
+ answeredDateTime: Date;
9
+ form: Types.ObjectId | IForm;
10
+ patient: Types.ObjectId | IPatient;
11
+ initSendDateTime: Date;
12
+ recurrence: IRecurrence;
13
+ code: string;
14
+ daysToRememberPatient: number;
15
+ sendOnCreate: boolean;
16
+ notifyPatientChannel: ChannelNotificationEnum[];
17
+ notifyOwnerIfDued: boolean;
18
+ notifyOwnerReactiveOnEnd: boolean;
19
+ }
20
+ export declare const QAProgrammingSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
21
+ timestamps: {
22
+ createdAt: string;
23
+ updatedAt: string;
24
+ };
25
+ }, {} & {
26
+ account: any;
27
+ form: any;
28
+ patient: any;
29
+ notifyPatientChannel: string[];
30
+ code?: string | null | undefined;
31
+ recurrence?: {
32
+ daysOfWeek: string[];
33
+ daysOfMonth: number[];
34
+ specificsDate: any;
35
+ code?: string | null | undefined;
36
+ period?: string | null | undefined;
37
+ intervalOfPeriods?: number | null | undefined;
38
+ intervalInDays?: number | null | undefined;
39
+ repeatUntilXBookings?: number | null | undefined;
40
+ repeatUntilDate?: NativeDate | null | undefined;
41
+ } | null | undefined;
42
+ daysToRememberPatient?: number | null | undefined;
43
+ sendOnCreate?: any;
44
+ initSendDateTime?: NativeDate | null | undefined;
45
+ notifyOwnerIfDued?: any;
46
+ notifyOwnerReactiveOnEnd?: any;
47
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
48
+ account: any;
49
+ form: any;
50
+ patient: any;
51
+ notifyPatientChannel: string[];
52
+ code?: string | null | undefined;
53
+ recurrence?: {
54
+ daysOfWeek: string[];
55
+ daysOfMonth: number[];
56
+ specificsDate: any;
57
+ code?: string | null | undefined;
58
+ period?: string | null | undefined;
59
+ intervalOfPeriods?: number | null | undefined;
60
+ intervalInDays?: number | null | undefined;
61
+ repeatUntilXBookings?: number | null | undefined;
62
+ repeatUntilDate?: NativeDate | null | undefined;
63
+ } | null | undefined;
64
+ daysToRememberPatient?: number | null | undefined;
65
+ sendOnCreate?: any;
66
+ initSendDateTime?: NativeDate | null | undefined;
67
+ notifyOwnerIfDued?: any;
68
+ notifyOwnerReactiveOnEnd?: any;
69
+ }>, {}> & import("mongoose").FlatRecord<{} & {
70
+ account: any;
71
+ form: any;
72
+ patient: any;
73
+ notifyPatientChannel: string[];
74
+ code?: string | null | undefined;
75
+ recurrence?: {
76
+ daysOfWeek: string[];
77
+ daysOfMonth: number[];
78
+ specificsDate: any;
79
+ code?: string | null | undefined;
80
+ period?: string | null | undefined;
81
+ intervalOfPeriods?: number | null | undefined;
82
+ intervalInDays?: number | null | undefined;
83
+ repeatUntilXBookings?: number | null | undefined;
84
+ repeatUntilDate?: NativeDate | null | undefined;
85
+ } | null | undefined;
86
+ daysToRememberPatient?: number | null | undefined;
87
+ sendOnCreate?: any;
88
+ initSendDateTime?: NativeDate | null | undefined;
89
+ notifyOwnerIfDued?: any;
90
+ notifyOwnerReactiveOnEnd?: any;
91
+ }> & {
92
+ _id: Types.ObjectId;
93
+ } & {
94
+ __v: number;
95
+ }>;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QAProgrammingSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const enum_1 = require("../enum");
6
+ const Recurrence_1 = require("../Recurrence");
7
+ exports.QAProgrammingSchema = new mongoose_1.Schema({
8
+ account: { type: mongoose_1.Types.ObjectId, ref: "account", required: true },
9
+ form: { type: mongoose_1.Types.ObjectId, ref: "form", required: true },
10
+ patient: { type: mongoose_1.Types.ObjectId, ref: "patient", required: true },
11
+ recurrence: { type: Recurrence_1.RecurrenceSchema },
12
+ code: { type: String },
13
+ daysToRememberPatient: { type: Number },
14
+ sendOnCreate: { type: Boolean },
15
+ initSendDateTime: { type: Date },
16
+ notifyPatientChannel: { type: [String], enum: enum_1.ChannelNotificationEnum },
17
+ notifyOwnerIfDued: { type: Boolean },
18
+ notifyOwnerReactiveOnEnd: { type: Boolean }
19
+ }, {
20
+ timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
21
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-clinical",
3
- "version": "1.0.31",
3
+ "version": "1.0.33",
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>",