medicode / lib /medicode_web /components /transcription_report_component.ex
timgremore's picture
feat: PDF report from transcription text and codes
dd83613
raw
history blame contribute delete
545 Bytes
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