File size: 725 Bytes
3f219b5 aa2cbe3 c25ca02 3f219b5 aa2cbe3 c25ca02 aa2cbe3 c25ca02 aa2cbe3 c25ca02 aa2cbe3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
defmodule MedicodeWeb.Storybook.KeywordHighlighter do
use PhoenixStorybook.Story, :component
alias Medicode.Transcriptions.TranscriptionChunkKeyword
def function, do: &MedicodeWeb.Components.KeywordHighlighter.highlight/1
def variations do
[
%Variation{
id: :default,
attributes: %{
text:
" This 55-year-old man with known coronary artery disease comes for a follow-up visit today. ",
keywords: [
%TranscriptionChunkKeyword{
score: 0.92,
keyword: "known coronary artery disease"
},
%TranscriptionChunkKeyword{score: 0.77, keyword: "visit today"}
]
}
}
]
end
end
|