defmodule MedicodeWeb.Components.TranscriptionReportComponent do | |
@moduledoc """ | |
This module is responsible for rendering the transcription report component. | |
""" | |
use Phoenix.LiveComponent | |
def render(assigns) do | |
~H""" | |
<div style="padding: 1rem 2rem;"> | |
<h1>Transcription</h1> | |
<p><%= @text %></p> | |
<div> | |
<div :for={code_vector <- @finalized_code_vectors}> | |
<h2><%= code_vector.code %></h2> | |
<p><%= code_vector.description %></p> | |
</div> | |
</div> | |
</div> | |
""" | |
end | |
end | |