noahsettersten
commited on
Commit
•
74f20ff
1
Parent(s):
720aae3
chore: Add more variations for `tag_result` story
Browse files
storybook/components/tag_result.story.exs
CHANGED
@@ -7,6 +7,18 @@ defmodule MedicalTranscriptionWeb.Storybook.TagResult do
|
|
7 |
[
|
8 |
%Variation{
|
9 |
id: :default,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
attributes: %{
|
11 |
code_vector_id: 1,
|
12 |
text:
|
@@ -16,6 +28,30 @@ defmodule MedicalTranscriptionWeb.Storybook.TagResult do
|
|
16 |
code: "74685",
|
17 |
label: "Coronary artery anomaly"
|
18 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
}
|
20 |
]
|
21 |
end
|
|
|
7 |
[
|
8 |
%Variation{
|
9 |
id: :default,
|
10 |
+
attributes: %{
|
11 |
+
code_vector_id: 1,
|
12 |
+
text:
|
13 |
+
"This 55-year-old man with known coronary artery disease comes for a follow-up visit today. ",
|
14 |
+
score: 1.07,
|
15 |
+
weighting: [:none],
|
16 |
+
code: "74685",
|
17 |
+
label: "Coronary artery anomaly"
|
18 |
+
}
|
19 |
+
},
|
20 |
+
%Variation{
|
21 |
+
id: :positively_weighted,
|
22 |
attributes: %{
|
23 |
code_vector_id: 1,
|
24 |
text:
|
|
|
28 |
code: "74685",
|
29 |
label: "Coronary artery anomaly"
|
30 |
}
|
31 |
+
},
|
32 |
+
%Variation{
|
33 |
+
id: :negatively_weighted,
|
34 |
+
attributes: %{
|
35 |
+
code_vector_id: 1,
|
36 |
+
text:
|
37 |
+
"This 55-year-old man with known coronary artery disease comes for a follow-up visit today. ",
|
38 |
+
score: 1.07,
|
39 |
+
weighting: [:negative],
|
40 |
+
code: "74685",
|
41 |
+
label: "Coronary artery anomaly"
|
42 |
+
}
|
43 |
+
},
|
44 |
+
%Variation{
|
45 |
+
id: :mixed_weight,
|
46 |
+
attributes: %{
|
47 |
+
code_vector_id: 1,
|
48 |
+
text:
|
49 |
+
"This 55-year-old man with known coronary artery disease comes for a follow-up visit today. ",
|
50 |
+
score: 1.07,
|
51 |
+
weighting: [:negative, :positive],
|
52 |
+
code: "74685",
|
53 |
+
label: "Coronary artery anomaly"
|
54 |
+
}
|
55 |
}
|
56 |
]
|
57 |
end
|