medicode / storybook /components /keyword_highlighter.story.exs
noahsettersten's picture
docs: `keyword_higlighter` attributes and story
aa2cbe3
raw
history blame
636 Bytes
defmodule MedicalTranscriptionWeb.Storybook.KeywordHighlighter do
use PhoenixStorybook.Story, :component
def function, do: &MedicalTranscriptionWeb.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: [
%{
score: 0.92,
label: "known coronary artery disease"
},
%{score: 0.77, label: "visit today"}
]
}
}
]
end
end