File size: 636 Bytes
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
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