Skip to content

Commit 657bfbf

Browse files
authored
fix(ohs): reverse answer options (#63)
1 parent 2303bcd commit 657bfbf

File tree

2 files changed

+88
-84
lines changed

2 files changed

+88
-84
lines changed

src/scores/oxford_hip_score/__testdata__/ohs_test_responses.ts

Lines changed: 40 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,56 @@
1+
const WORST_RESPONSE = 0
2+
const MEDIAN_RESPONSE = 2
3+
const BEST_RESPONSE = 4
4+
15
export const worst_response = {
2-
ohs_01: 0,
3-
ohs_02: 0,
4-
ohs_03: 0,
5-
ohs_04: 0,
6-
ohs_05: 0,
7-
ohs_06: 0,
8-
ohs_07: 0,
9-
ohs_08: 0,
10-
ohs_09: 0,
11-
ohs_10: 0,
12-
ohs_11: 0,
13-
ohs_12: 0,
6+
ohs_01: WORST_RESPONSE,
7+
ohs_02: WORST_RESPONSE,
8+
ohs_03: WORST_RESPONSE,
9+
ohs_04: WORST_RESPONSE,
10+
ohs_05: WORST_RESPONSE,
11+
ohs_06: WORST_RESPONSE,
12+
ohs_07: WORST_RESPONSE,
13+
ohs_08: WORST_RESPONSE,
14+
ohs_09: WORST_RESPONSE,
15+
ohs_10: WORST_RESPONSE,
16+
ohs_11: WORST_RESPONSE,
17+
ohs_12: WORST_RESPONSE,
1418
// ohs_13: 0, --> not used for scoring
1519
// ohs_14: 0, --> not used for scoring
1620
// ohs_15: 0 --> not used for scoring
1721
}
1822

1923
export const median_response = {
20-
ohs_01: 2,
21-
ohs_02: 2,
22-
ohs_03: 2,
23-
ohs_04: 2,
24-
ohs_05: 2,
25-
ohs_06: 2,
26-
ohs_07: 2,
27-
ohs_08: 2,
28-
ohs_09: 2,
29-
ohs_10: 2,
30-
ohs_11: 2,
31-
ohs_12: 2,
24+
ohs_01: MEDIAN_RESPONSE,
25+
ohs_02: MEDIAN_RESPONSE,
26+
ohs_03: MEDIAN_RESPONSE,
27+
ohs_04: MEDIAN_RESPONSE,
28+
ohs_05: MEDIAN_RESPONSE,
29+
ohs_06: MEDIAN_RESPONSE,
30+
ohs_07: MEDIAN_RESPONSE,
31+
ohs_08: MEDIAN_RESPONSE,
32+
ohs_09: MEDIAN_RESPONSE,
33+
ohs_10: MEDIAN_RESPONSE,
34+
ohs_11: MEDIAN_RESPONSE,
35+
ohs_12: MEDIAN_RESPONSE,
3236
// ohs_13: 2, --> not used for scoring
3337
// ohs_14: 2, --> not used for scoring
3438
// ohs_15: 2 --> not used for scoring
3539
}
3640

3741
export const best_response = {
38-
ohs_01: 4,
39-
ohs_02: 4,
40-
ohs_03: 4,
41-
ohs_04: 4,
42-
ohs_05: 4,
43-
ohs_06: 4,
44-
ohs_07: 4,
45-
ohs_08: 4,
46-
ohs_09: 4,
47-
ohs_10: 4,
48-
ohs_11: 4,
49-
ohs_12: 4,
42+
ohs_01: BEST_RESPONSE,
43+
ohs_02: BEST_RESPONSE,
44+
ohs_03: BEST_RESPONSE,
45+
ohs_04: BEST_RESPONSE,
46+
ohs_05: BEST_RESPONSE,
47+
ohs_06: BEST_RESPONSE,
48+
ohs_07: BEST_RESPONSE,
49+
ohs_08: BEST_RESPONSE,
50+
ohs_09: BEST_RESPONSE,
51+
ohs_10: BEST_RESPONSE,
52+
ohs_11: BEST_RESPONSE,
53+
ohs_12: BEST_RESPONSE,
5054
// ohs_13: 4, --> not used for scoring
5155
// ohs_14: 4, --> not used for scoring
5256
// ohs_15: 4 --> not used for scoring

0 commit comments

Comments
 (0)