c2-clinical 1.0.51 → 1.0.52

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.
@@ -0,0 +1,42 @@
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 IAntrophometric extends IDefault {
6
+ patient: Types.ObjectId | IPatient;
7
+ form: Types.ObjectId | IForm;
8
+ showingToPatient: boolean;
9
+ antrophometricDate: Date;
10
+ code: string;
11
+ }
12
+ export declare const AntrophometricSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
13
+ timestamps: {
14
+ createdAt: string;
15
+ updatedAt: string;
16
+ };
17
+ }, {} & {
18
+ account: any;
19
+ form: any;
20
+ patient: any;
21
+ showingToPatient: any;
22
+ code?: string | null | undefined;
23
+ antrophometricDate?: NativeDate | null | undefined;
24
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
25
+ account: any;
26
+ form: any;
27
+ patient: any;
28
+ showingToPatient: any;
29
+ code?: string | null | undefined;
30
+ antrophometricDate?: NativeDate | null | undefined;
31
+ }>, {}> & import("mongoose").FlatRecord<{} & {
32
+ account: any;
33
+ form: any;
34
+ patient: any;
35
+ showingToPatient: any;
36
+ code?: string | null | undefined;
37
+ antrophometricDate?: NativeDate | null | undefined;
38
+ }> & {
39
+ _id: Types.ObjectId;
40
+ } & {
41
+ __v: number;
42
+ }>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AntrophometricSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ exports.AntrophometricSchema = 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
+ showingToPatient: { type: Boolean, default: false },
10
+ antrophometricDate: { type: Date },
11
+ code: { type: String }
12
+ }, {
13
+ timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
14
+ });
@@ -0,0 +1,118 @@
1
+ import { Schema, Types } from "mongoose";
2
+ import { IAnswer } from "../Answer";
3
+ import { IForm } from "../form/Form";
4
+ export interface IAntrophometricAnswer extends IAnswer {
5
+ form: Types.ObjectId | IForm;
6
+ }
7
+ export declare const AntrophometricAnswerSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
8
+ timestamps: {
9
+ createdAt: string;
10
+ updatedAt: string;
11
+ };
12
+ }, {} & {
13
+ account: any;
14
+ reference: any;
15
+ form: any;
16
+ validations: Types.DocumentArray<{
17
+ type: string;
18
+ typeOutput: string;
19
+ formulaToMessage: string;
20
+ }, Types.Subdocument<Types.ObjectId, any, {
21
+ type: string;
22
+ typeOutput: string;
23
+ formulaToMessage: string;
24
+ }> & {
25
+ type: string;
26
+ typeOutput: string;
27
+ formulaToMessage: string;
28
+ }>;
29
+ requestGraphicData: Types.DocumentArray<{
30
+ method: string;
31
+ url: string;
32
+ body?: any;
33
+ dataset?: any;
34
+ }, Types.Subdocument<Types.ObjectId, any, {
35
+ method: string;
36
+ url: string;
37
+ body?: any;
38
+ dataset?: any;
39
+ }> & {
40
+ method: string;
41
+ url: string;
42
+ body?: any;
43
+ dataset?: any;
44
+ }>;
45
+ answer?: any;
46
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
47
+ account: any;
48
+ reference: any;
49
+ form: any;
50
+ validations: Types.DocumentArray<{
51
+ type: string;
52
+ typeOutput: string;
53
+ formulaToMessage: string;
54
+ }, Types.Subdocument<Types.ObjectId, any, {
55
+ type: string;
56
+ typeOutput: string;
57
+ formulaToMessage: string;
58
+ }> & {
59
+ type: string;
60
+ typeOutput: string;
61
+ formulaToMessage: string;
62
+ }>;
63
+ requestGraphicData: Types.DocumentArray<{
64
+ method: string;
65
+ url: string;
66
+ body?: any;
67
+ dataset?: any;
68
+ }, Types.Subdocument<Types.ObjectId, any, {
69
+ method: string;
70
+ url: string;
71
+ body?: any;
72
+ dataset?: any;
73
+ }> & {
74
+ method: string;
75
+ url: string;
76
+ body?: any;
77
+ dataset?: any;
78
+ }>;
79
+ answer?: any;
80
+ }>, {}> & import("mongoose").FlatRecord<{} & {
81
+ account: any;
82
+ reference: any;
83
+ form: any;
84
+ validations: Types.DocumentArray<{
85
+ type: string;
86
+ typeOutput: string;
87
+ formulaToMessage: string;
88
+ }, Types.Subdocument<Types.ObjectId, any, {
89
+ type: string;
90
+ typeOutput: string;
91
+ formulaToMessage: string;
92
+ }> & {
93
+ type: string;
94
+ typeOutput: string;
95
+ formulaToMessage: string;
96
+ }>;
97
+ requestGraphicData: Types.DocumentArray<{
98
+ method: string;
99
+ url: string;
100
+ body?: any;
101
+ dataset?: any;
102
+ }, Types.Subdocument<Types.ObjectId, any, {
103
+ method: string;
104
+ url: string;
105
+ body?: any;
106
+ dataset?: any;
107
+ }> & {
108
+ method: string;
109
+ url: string;
110
+ body?: any;
111
+ dataset?: any;
112
+ }>;
113
+ answer?: any;
114
+ }> & {
115
+ _id: Types.ObjectId;
116
+ } & {
117
+ __v: number;
118
+ }>;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AntrophometricAnswerSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const FormUnit_1 = require("../form/FormUnit");
6
+ exports.AntrophometricAnswerSchema = new mongoose_1.Schema({
7
+ account: { type: mongoose_1.Types.ObjectId, ref: "account", required: true },
8
+ form: { type: mongoose_1.Types.ObjectId, ref: "form", required: true },
9
+ reference: { type: mongoose_1.Types.ObjectId, ref: "form-unit", required: true },
10
+ answer: { type: mongoose_1.Schema.Types.Mixed },
11
+ validations: { type: [FormUnit_1.ValidationSchema] },
12
+ requestGraphicData: { type: [FormUnit_1.RequestGraphicDataSchema] }
13
+ }, {
14
+ timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
15
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-clinical",
3
- "version": "1.0.51",
3
+ "version": "1.0.52",
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>",