File size: 1,558 Bytes
3f219b5
62f95d4
 
3f219b5
62f95d4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
defmodule MedicodeWeb.Storybook.TranscriptionTextComponent do
  use PhoenixStorybook.Story, :live_component

  def component, do: MedicodeWeb.Components.TranscriptionTextComponent

  def variations do
    # Instead of allowing the TranscriptionTextComponent to run the model and generate results, we may want to pass a
    # list of tags into the component:
    # tags = [
    #   %CodeVectorMatch{
    #     id: 1,
    #     code: "74685",
    #     description: "Coronary artery anomaly",
    #     cosine_similarity: 1.07,
    #     weighting: [:positive, :positive]
    #   },
    #   %CodeVectorMatch{
    #     id: 1,
    #     code: "41412",
    #     description: "Dissection of coronary artery",
    #     cosine_similarity: 0.87,
    #     weighting: [:positive, :negative]
    #   },
    #   %CodeVectorMatch{
    #     id: 1,
    #     code: "V717",
    #     description: "Observation for suspected cardiovascular disease",
    #     cosine_similarity: 0.84,
    #     weighting: [:none]
    #   },
    #   %CodeVectorMatch{
    #     id: 1,
    #     code: "V812",
    #     description: "Screening for other and unspecified cardiovascular conditions",
    #     cosine_similarity: 0.84,
    #     weighting: [:none]
    #   }
    # ]

    [
      %Variation{
        id: :default,
        attributes: %{
          id: 1,
          start_mark: "00:00:00",
          end_mark: "00:00:07",
          text:
            "This 55-year-old man with known coronary artery disease comes for a follow-up visit today. "
        }
      }
    ]
  end
end