@quesmed/types 1.0.20 → 1.0.24
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/models/MockTest.d.ts
CHANGED
package/models/Question.d.ts
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
import { IConcept } from './Concept';
|
|
2
2
|
import { IQuestionPicture } from './Picture';
|
|
3
3
|
import { Id } from './Type';
|
|
4
|
+
export declare enum EPsaSectionType {
|
|
5
|
+
PRESCRIBING = 1,
|
|
6
|
+
PRESCRIPTION_REVIEW = 2,
|
|
7
|
+
PLANNING_MANAGEMENT = 3,
|
|
8
|
+
PROVIDING_INFORMATION = 4,
|
|
9
|
+
CALCULATION_SKILLS = 5,
|
|
10
|
+
ADVERSE_DRUG_REACTION = 6,
|
|
11
|
+
DRUG_MONITORING = 7,
|
|
12
|
+
DATA_INTERPRETATION = 8
|
|
13
|
+
}
|
|
4
14
|
export declare enum EQuestionType {
|
|
5
15
|
SINGLE_BEST_ANSWER = 1,
|
|
6
16
|
QUESTION_ANSWER = 2,
|
|
7
17
|
MULTIPLE_ANSWERS = 3,
|
|
8
18
|
PRESCRIPTION_ANSWER = 4
|
|
9
19
|
}
|
|
10
|
-
export declare type IQuestionAnswer = [string] | [string[], string[]] | IPrescribeAnswer[];
|
|
20
|
+
export declare type IQuestionAnswer = string | [string] | [string[], string[]] | IPrescribeAnswer[];
|
|
11
21
|
export interface IQuestion {
|
|
12
22
|
id: Id;
|
|
13
|
-
typeId:
|
|
23
|
+
typeId: EQuestionType;
|
|
14
24
|
conceptId: Id;
|
|
15
25
|
public: boolean;
|
|
16
26
|
concept?: IConcept;
|
|
@@ -20,6 +30,9 @@ export interface IQuestion {
|
|
|
20
30
|
totalVotes: number;
|
|
21
31
|
choices: IQuestionChoice[];
|
|
22
32
|
pictures: IQuestionPicture[];
|
|
33
|
+
difficulty: number;
|
|
34
|
+
elo: number;
|
|
35
|
+
psaSectionId: EPsaSectionType;
|
|
23
36
|
}
|
|
24
37
|
export interface IQuestionChoice {
|
|
25
38
|
id: Id;
|
package/models/Question.js
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EQuestionType = void 0;
|
|
3
|
+
exports.EQuestionType = exports.EPsaSectionType = void 0;
|
|
4
|
+
var EPsaSectionType;
|
|
5
|
+
(function (EPsaSectionType) {
|
|
6
|
+
EPsaSectionType[EPsaSectionType["PRESCRIBING"] = 1] = "PRESCRIBING";
|
|
7
|
+
EPsaSectionType[EPsaSectionType["PRESCRIPTION_REVIEW"] = 2] = "PRESCRIPTION_REVIEW";
|
|
8
|
+
EPsaSectionType[EPsaSectionType["PLANNING_MANAGEMENT"] = 3] = "PLANNING_MANAGEMENT";
|
|
9
|
+
EPsaSectionType[EPsaSectionType["PROVIDING_INFORMATION"] = 4] = "PROVIDING_INFORMATION";
|
|
10
|
+
EPsaSectionType[EPsaSectionType["CALCULATION_SKILLS"] = 5] = "CALCULATION_SKILLS";
|
|
11
|
+
EPsaSectionType[EPsaSectionType["ADVERSE_DRUG_REACTION"] = 6] = "ADVERSE_DRUG_REACTION";
|
|
12
|
+
EPsaSectionType[EPsaSectionType["DRUG_MONITORING"] = 7] = "DRUG_MONITORING";
|
|
13
|
+
EPsaSectionType[EPsaSectionType["DATA_INTERPRETATION"] = 8] = "DATA_INTERPRETATION";
|
|
14
|
+
})(EPsaSectionType = exports.EPsaSectionType || (exports.EPsaSectionType = {}));
|
|
4
15
|
var EQuestionType;
|
|
5
16
|
(function (EQuestionType) {
|
|
6
17
|
EQuestionType[EQuestionType["SINGLE_BEST_ANSWER"] = 1] = "SINGLE_BEST_ANSWER";
|
package/models/User.d.ts
CHANGED
package/package.json
CHANGED