@quesmed/types 1.3.0 → 1.3.4
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/OsceStation.js
CHANGED
|
@@ -12,33 +12,33 @@ var EOsceType;
|
|
|
12
12
|
})(EOsceType = exports.EOsceType || (exports.EOsceType = {}));
|
|
13
13
|
exports.OSCE_GLOBAL_RATING = {
|
|
14
14
|
[EOsceType.ABCDE]: `- Fail - The candidate did not perform large parts of the scenario to the required standard
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
- Borderline - It is not clear whether the candidate demonstrated acceptable performance: either the whole task was performed slightly below passing level or there were some key errors or omissions
|
|
16
|
+
- Pass - The task was performed to an acceptable level. There may have been some minor errors or omissions.
|
|
17
|
+
- Good - The performance of the candidate was good in most areas. Technical and non-technical aspects of the task were performed equally well.
|
|
18
|
+
- Excellent - The candidate performed to a high standard throughout. They were fluent in all aspects of the task and displayed confidence, professionalism, and empathy.`,
|
|
19
19
|
[EOsceType.COMMUNICATION_SKILLS]: `- Fail - The candidate did not perform large parts of the scenario to the required standard
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
- Borderline - It is not clear whether the candidate demonstrated acceptable performance: either the whole task was performed slightly below passing level or there were some key errors or omissions
|
|
21
|
+
- Pass - The task was performed to an acceptable level. There may have been some minor errors or omissions.
|
|
22
|
+
- Good - The performance of the candidate was good in most areas. Technical and non-technical aspects of the task were performed equally well.
|
|
23
|
+
- Excellent - The candidate performed to a high standard throughout. They were fluent in all aspects of the task and displayed confidence, professionalism, and empathy.`,
|
|
24
24
|
[EOsceType.EXAMINATION]: `- Fail - The candidate did not perform large parts of the scenario to the required standard
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
- Borderline - It is not clear whether the candidate demonstrated acceptable performance: either the whole task was performed slightly below passing level or there were some key errors or omissions
|
|
26
|
+
- Pass - The task was performed to an acceptable level. There may have been some minor errors or omissions.
|
|
27
|
+
- Good - The performance of the candidate was good in most areas. Technical and non-technical aspects of the task were performed equally well.
|
|
28
|
+
- Excellent - The candidate performed to a high standard throughout. They were fluent in all aspects of the task and displayed confidence, professionalism, and empathy.`,
|
|
29
29
|
[EOsceType.HISTORY_TAKING]: `- Fail - The candidate did not perform large parts of the scenario to the required standard.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
- Borderline - It is not clear whether the candidate demonstrated acceptable performance: either the whole history was performed slightly below passing level or there were some key errors or omissions. The differentials have some important omissions.
|
|
31
|
+
- Pass - The history was performed to an acceptable level. There may have been some minor errors or omissions. The differentials were sensible.
|
|
32
|
+
- Good - The performance of the candidate was good in most areas. All aspects of the task were performed equally well. The differentials were thorough and well-reasoned.
|
|
33
|
+
- Excellent - The candidate performed to a high standard throughout. They were fluent in all aspects of the history and summary and displayed confidence, professionalism, and empathy.`,
|
|
34
34
|
[EOsceType.INTERPRETATION]: `- Fail - The candidate did not perform large parts of the scenario to the required standard
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
- Borderline - It is not clear whether the candidate demonstrated acceptable performance: either the whole task was performed slightly below passing level or there were some key errors or omissions
|
|
36
|
+
- Pass - The task was performed to an acceptable level. There may have been some minor errors or omissions.
|
|
37
|
+
- Good - The performance of the candidate was good in most areas. Technical and non-technical aspects of the task were performed equally well.
|
|
38
|
+
- Excellent - The candidate performed to a high standard throughout. They were fluent in all aspects of the task and displayed confidence, professionalism, and empathy.`,
|
|
39
39
|
[EOsceType.PROCEDURE]: `- Fail - The candidate did not perform large parts of the scenario to the required standard.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
- Borderline - It is not clear whether the candidate demonstrated acceptable performance: either the whole task was performed slightly below passing level or there were some key errors or omissions.
|
|
41
|
+
- Pass - The task was performed to an acceptable level. There may have been some minor errors or omissions.
|
|
42
|
+
- Good - The performance of the candidate was good in most areas. Technical and non-technical aspects of the task were performed equally well.
|
|
43
|
+
- Excellent - The candidate performed to a high standard throughout. They were fluent in all aspects of the task and displayed confidence, professionalism, and empathy.`,
|
|
44
44
|
};
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EDifficultyType, Id, IDashboardOsce, IOsceMarksheet, IOsceStation, IOsceStationItem } from '../../../models';
|
|
2
|
+
import { ITopic } from './../../../models/Topic';
|
|
2
3
|
export interface IDashboardOsceVar {
|
|
3
4
|
solo: boolean;
|
|
4
5
|
}
|
|
@@ -22,6 +23,7 @@ export interface IOsceStationsVar {
|
|
|
22
23
|
osceTypeId?: Id;
|
|
23
24
|
solo: boolean;
|
|
24
25
|
attempted: boolean;
|
|
26
|
+
topicIds: Id[];
|
|
25
27
|
difficulty: EDifficultyType[];
|
|
26
28
|
}
|
|
27
29
|
export declare type IOsceStationsData = IOsceStationItem[];
|
|
@@ -33,3 +35,6 @@ export interface IHeartbeatVar {
|
|
|
33
35
|
agoraId: string;
|
|
34
36
|
}
|
|
35
37
|
export declare type IHeartBeatData = boolean;
|
|
38
|
+
export declare type IOsceTopicsVar = null;
|
|
39
|
+
export interface IOsceTopicsData extends ITopic {
|
|
40
|
+
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import { ITopic } from '../../../models';
|
|
1
|
+
import { IOsceStation, ITopic } from '../../../models';
|
|
2
2
|
export declare type IQuesBookVar = null;
|
|
3
3
|
export declare type IQuesBookData = ITopic[];
|
|
4
|
+
export declare type IOsceBookVar = null;
|
|
5
|
+
export declare type IOsceBookData = IOsceStation[];
|
package/utils/lightgallery.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { IOsceMarksheet } from '../models';
|
|
1
|
+
import { IOsceMarksheet, IOsceStation } from '../models';
|
|
2
2
|
export interface ILightGalleryCache {
|
|
3
3
|
CacheManager: any;
|
|
4
4
|
Platform: any;
|
|
5
5
|
}
|
|
6
|
-
export declare
|
|
6
|
+
export declare function lightgalleryOsceResolve(data: IOsceStation, cache?: ILightGalleryCache): Promise<IOsceStation>;
|
|
7
|
+
export declare function lightgalleryOsceResolve(data: IOsceMarksheet, cache?: ILightGalleryCache): Promise<IOsceMarksheet>;
|
package/utils/lightgallery.js
CHANGED
|
@@ -11,25 +11,47 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.lightgalleryOsceResolve = void 0;
|
|
13
13
|
const lightgalleryRegex = /\[lightgallery\]/;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
14
|
+
function isOsceMarksheet(data) {
|
|
15
|
+
return 'osceStationId' in data;
|
|
16
|
+
}
|
|
17
|
+
function lightgalleryOsceResolve(data, cache) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
let station;
|
|
20
|
+
if (isOsceMarksheet(data)) {
|
|
21
|
+
if (!data.osceStation) {
|
|
22
|
+
throw new Error('OsceStation not found on OsceMarksheet');
|
|
23
|
+
}
|
|
24
|
+
station = data.osceStation;
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
station = data;
|
|
28
|
+
}
|
|
29
|
+
const upOsceStation = {
|
|
30
|
+
candidateBrief: station.candidateBrief,
|
|
31
|
+
actorBrief: station.actorBrief,
|
|
32
|
+
examinerBrief: station.examinerBrief,
|
|
33
|
+
explanation: station.explanation,
|
|
34
|
+
};
|
|
35
|
+
if (station.candidatePictures && station.candidatePictures.length > 0) {
|
|
36
|
+
upOsceStation.candidateBrief = yield lightgalleryMutation(upOsceStation.candidateBrief, station.candidatePictures, cache);
|
|
37
|
+
}
|
|
38
|
+
if (station.actorPictures && station.actorPictures.length > 0) {
|
|
39
|
+
upOsceStation.actorBrief = yield lightgalleryMutation(upOsceStation.actorBrief, station.actorPictures, cache);
|
|
40
|
+
}
|
|
41
|
+
if (station.examinerPictures && station.examinerPictures.length > 0) {
|
|
42
|
+
upOsceStation.examinerBrief = yield lightgalleryMutation(upOsceStation.examinerBrief, station.examinerPictures, cache);
|
|
43
|
+
}
|
|
44
|
+
if (station.walkthroughPictures && station.walkthroughPictures.length > 0) {
|
|
45
|
+
upOsceStation.explanation = yield lightgalleryMutation(upOsceStation.explanation, station.walkthroughPictures, cache);
|
|
46
|
+
}
|
|
47
|
+
if (isOsceMarksheet(data)) {
|
|
48
|
+
return Object.assign(Object.assign({}, data), { osceStation: Object.assign(Object.assign({}, data.osceStation), upOsceStation) });
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
return Object.assign(Object.assign({}, data), upOsceStation);
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}
|
|
33
55
|
exports.lightgalleryOsceResolve = lightgalleryOsceResolve;
|
|
34
56
|
const lightgalleryMutation = (text, pictures, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
35
57
|
var _a;
|