Modifico estado

This commit is contained in:
2025-07-21 18:16:06 -03:00
parent e534b6b81c
commit 7208d8a19f

View File

@ -133,6 +133,7 @@ defmodule ApiWeb.IndexLive do
accession: s.accessionnumber, accession: s.accessionnumber,
patientname: p.patientname, patientname: p.patientname,
status: sr.idstatus, status: sr.idstatus,
statusname: sr.statusname,
studydescription: s.studydescription studydescription: s.studydescription
}, },
order_by: [desc: s.studydate] order_by: [desc: s.studydate]
@ -191,13 +192,6 @@ defmodule ApiWeb.IndexLive do
accessionnumber accessionnumber
end end
query =
from u in "users",
select: %{
username: u.username
},
limit: 1
viewer_config = %{ viewer_config = %{
client_uuid: viewer_uid, client_uuid: viewer_uid,
gethash: gethash, gethash: gethash,
@ -340,7 +334,7 @@ defmodule ApiWeb.IndexLive do
<p><strong>Descripción:</strong> <%= study.studydescription %></p> <p><strong>Descripción:</strong> <%= study.studydescription %></p>
</div> </div>
<div class="block md:hidden w-28 flex justify-around"> <div class="block md:hidden w-28 flex justify-around">
<%= if study.iddocument == nil do %> <%= if study.iddocument == nil or study.statusname != "Final" do %>
<a disabled target="_blank" class="flex items-center" style="flex-direction: column;"> <a disabled target="_blank" class="flex items-center" style="flex-direction: column;">
<svg class="w-12 h-12" style="color: #c3c3c3;" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"> <svg class="w-12 h-12" style="color: #c3c3c3;" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24">
<path fill-rule="evenodd" d="M9 2.221V7H4.221a2 2 0 0 1 .365-.5L8.5 2.586A2 2 0 0 1 9 2.22ZM11 2v5a2 2 0 0 1-2 2H4v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-7ZM8 16a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H9a1 1 0 0 1-1-1Zm1-5a1 1 0 1 0 0 2h6a1 1 0 1 0 0-2H9Z" clip-rule="evenodd"/> <path fill-rule="evenodd" d="M9 2.221V7H4.221a2 2 0 0 1 .365-.5L8.5 2.586A2 2 0 0 1 9 2.22ZM11 2v5a2 2 0 0 1-2 2H4v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-7ZM8 16a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H9a1 1 0 0 1-1-1Zm1-5a1 1 0 1 0 0 2h6a1 1 0 1 0 0-2H9Z" clip-rule="evenodd"/>
@ -374,7 +368,7 @@ defmodule ApiWeb.IndexLive do
</td> </td>
<td class="px-6 py-4 whitespace-nowrap hidden md:block md:table-cell"> <td class="px-6 py-4 whitespace-nowrap hidden md:block md:table-cell">
<div class="flex justify-start"> <div class="flex justify-start">
<%= if study.iddocument == nil or study.status != 3 do %> <%= if study.iddocument == nil or study.statusname != "Final" do %>
<svg class="w-12 h-12 text-gray-300" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"> <svg class="w-12 h-12 text-gray-300" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24">
<path fill-rule="evenodd" d="M9 2.221V7H4.221a2 2 0 0 1 .365-.5L8.5 2.586A2 2 0 0 1 9 2.22ZM11 2v5a2 2 0 0 1-2 2H4v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-7ZM8 16a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H9a1 1 0 0 1-1-1Zm1-5a1 1 0 1 0 0 2h6a1 1 0 1 0 0-2H9Z" clip-rule="evenodd"/> <path fill-rule="evenodd" d="M9 2.221V7H4.221a2 2 0 0 1 .365-.5L8.5 2.586A2 2 0 0 1 9 2.22ZM11 2v5a2 2 0 0 1-2 2H4v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-7ZM8 16a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H9a1 1 0 0 1-1-1Zm1-5a1 1 0 1 0 0 2h6a1 1 0 1 0 0-2H9Z" clip-rule="evenodd"/>
</svg> </svg>