From 7208d8a19f657ee6ba6fbdb9d3b10734ed6ce0f5 Mon Sep 17 00:00:00 2001 From: "aime.rolandi" Date: Mon, 21 Jul 2025 18:16:06 -0300 Subject: [PATCH] Modifico estado --- lib/api_web/live/index_live.ex | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/lib/api_web/live/index_live.ex b/lib/api_web/live/index_live.ex index c4cf447..be5f8ec 100644 --- a/lib/api_web/live/index_live.ex +++ b/lib/api_web/live/index_live.ex @@ -133,6 +133,7 @@ defmodule ApiWeb.IndexLive do accession: s.accessionnumber, patientname: p.patientname, status: sr.idstatus, + statusname: sr.statusname, studydescription: s.studydescription }, order_by: [desc: s.studydate] @@ -191,13 +192,6 @@ defmodule ApiWeb.IndexLive do accessionnumber end - query = - from u in "users", - select: %{ - username: u.username - }, - limit: 1 - viewer_config = %{ client_uuid: viewer_uid, gethash: gethash, @@ -340,7 +334,7 @@ defmodule ApiWeb.IndexLive do

Descripción: <%= study.studydescription %>

- <%= if study.iddocument == nil do %> + <%= if study.iddocument == nil or study.statusname != "Final" do %>
- <%= if study.iddocument == nil or study.status != 3 do %> + <%= if study.iddocument == nil or study.statusname != "Final" do %>