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 %> +