c2-clinical 1.0.61 → 1.0.62
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.
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { Schema, Types } from "mongoose";
|
|
2
2
|
import { IAnswer } from "../Answer";
|
|
3
3
|
import { IForm } from "../form/Form";
|
|
4
|
+
import { IQA } from "./QA";
|
|
4
5
|
export interface IQAAnswer extends IAnswer {
|
|
6
|
+
qa: Types.ObjectId | IQA;
|
|
5
7
|
form: Types.ObjectId | IForm;
|
|
6
8
|
}
|
|
7
9
|
export declare const QAAnswerSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
@@ -42,6 +44,7 @@ export declare const QAAnswerSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
42
44
|
body?: any;
|
|
43
45
|
dataset?: any;
|
|
44
46
|
}>;
|
|
47
|
+
qa: 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 QAAnswerSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
76
79
|
body?: any;
|
|
77
80
|
dataset?: any;
|
|
78
81
|
}>;
|
|
82
|
+
qa: any;
|
|
79
83
|
answer?: any;
|
|
80
84
|
}>, {}> & import("mongoose").FlatRecord<{} & {
|
|
81
85
|
account: any;
|
|
@@ -110,6 +114,7 @@ export declare const QAAnswerSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
110
114
|
body?: any;
|
|
111
115
|
dataset?: any;
|
|
112
116
|
}>;
|
|
117
|
+
qa: 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.QAAnswerSchema = new mongoose_1.Schema({
|
|
7
7
|
account: { type: mongoose_1.Types.ObjectId, ref: "account", required: true },
|
|
8
|
+
qa: { type: mongoose_1.Types.ObjectId, ref: "qa", 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 },
|
package/package.json
CHANGED