|
defmodule MedicodeWeb.Storybook.ResultHeading do |
|
use PhoenixStorybook.Story, :component |
|
|
|
alias Medicode.Transcriptions.Transcription |
|
|
|
def function, do: &MedicodeWeb.Components.result_heading/1 |
|
|
|
def variations do |
|
[ |
|
%Variation{ |
|
id: :waiting, |
|
attributes: %{ |
|
id: "1", |
|
target: "transcription-1-result-heading", |
|
transcription: %Transcription{ |
|
id: 1, |
|
status: :waiting, |
|
filename: "myaudiofile.mp3" |
|
}, |
|
summary_keywords: [] |
|
} |
|
}, |
|
%Variation{ |
|
id: :finished, |
|
attributes: %{ |
|
id: "1", |
|
target: "transcription-1-result-heading", |
|
transcription: %Transcription{ |
|
id: 1, |
|
status: :finished |
|
}, |
|
summary_keywords: [ |
|
%{score: 1.0, keyword: "heart"}, |
|
%{score: 0.9, keyword: "patient"}, |
|
%{score: 0.88, keyword: "diagnosis"} |
|
] |
|
} |
|
} |
|
] |
|
end |
|
end |
|
|