From 75e170acbb36c5ed6f79eb382d9ee1ffe4a55009 Mon Sep 17 00:00:00 2001 From: "aime.rolandi" Date: Thu, 24 Jul 2025 11:32:13 -0300 Subject: [PATCH] status scheduled --- lib/api_web/live/index_live.ex | 65 ++++++++++++++++++++++------------ 1 file changed, 42 insertions(+), 23 deletions(-) diff --git a/lib/api_web/live/index_live.ex b/lib/api_web/live/index_live.ex index 1f712e8..013fb51 100644 --- a/lib/api_web/live/index_live.ex +++ b/lib/api_web/live/index_live.ex @@ -135,7 +135,8 @@ defmodule ApiWeb.IndexLive do patientname: p.patientname, status: sr.idstatus, statusname: st.statusname, - studydescription: s.studydescription + studydescription: s.studydescription, + study_status: s.status }, order_by: [desc: s.studydate] @@ -350,16 +351,25 @@ defmodule ApiWeb.IndexLive do

Informe

<% end %> - <%= if assigns.idstudyfield == true do %> - - -

Imágenes

-
+ <%= if study.study_status != "scheduled" do %> + <%= if assigns.idstudyfield == true do %> + + +

Imágenes

+
+ <% else %> + + +

Imágenes

+
+ <% end %> <% else %> - -

Imágenes

@@ -383,19 +393,28 @@ defmodule ApiWeb.IndexLive do - <%= if assigns.idstudyfield == true do %> -
- - - - - <% else %> - - - - - - <% end %> + <%= if study.study_status != "scheduled" do %> + <%= if assigns.idstudyfield == true do %> + + + + + + <% else %> + + + + + + <% end %> + <% else %> + + + + + + <% end %> +