|
defmodule MedicalTranscriptionWeb.Storybook.TagResult do |
|
use PhoenixStorybook.Story, :component |
|
|
|
def function, do: &MedicalTranscriptionWeb.Components.tag_result/1 |
|
|
|
def variations do |
|
[ |
|
%Variation{ |
|
id: :default, |
|
attributes: %{ |
|
code_vector_id: 1, |
|
text: |
|
"This 55-year-old man with known coronary artery disease comes for a follow-up visit today. ", |
|
score: 1.07, |
|
weighting: [:none], |
|
code: "74685", |
|
label: "Coronary artery anomaly" |
|
} |
|
}, |
|
%Variation{ |
|
id: :positively_weighted, |
|
attributes: %{ |
|
code_vector_id: 1, |
|
text: |
|
"This 55-year-old man with known coronary artery disease comes for a follow-up visit today. ", |
|
score: 1.07, |
|
weighting: [:positive, :positive], |
|
code: "74685", |
|
label: "Coronary artery anomaly" |
|
} |
|
}, |
|
%Variation{ |
|
id: :negatively_weighted, |
|
attributes: %{ |
|
code_vector_id: 1, |
|
text: |
|
"This 55-year-old man with known coronary artery disease comes for a follow-up visit today. ", |
|
score: 1.07, |
|
weighting: [:negative], |
|
code: "74685", |
|
label: "Coronary artery anomaly" |
|
} |
|
}, |
|
%Variation{ |
|
id: :mixed_weight, |
|
attributes: %{ |
|
code_vector_id: 1, |
|
text: |
|
"This 55-year-old man with known coronary artery disease comes for a follow-up visit today. ", |
|
score: 1.07, |
|
weighting: [:negative, :positive], |
|
code: "74685", |
|
label: "Coronary artery anomaly" |
|
} |
|
} |
|
] |
|
end |
|
end |
|
|