From 4349914bb0188a5b242284cf2719c97e1b51ba82 Mon Sep 17 00:00:00 2001 From: "aime.rolandi" Date: Tue, 22 Jul 2025 13:57:24 -0300 Subject: [PATCH] status name --- lib/api_web/live/index_live.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/api_web/live/index_live.ex b/lib/api_web/live/index_live.ex index be5f8ec..1f712e8 100644 --- a/lib/api_web/live/index_live.ex +++ b/lib/api_web/live/index_live.ex @@ -122,6 +122,7 @@ defmodule ApiWeb.IndexLive do join: p in "patient", on: p.idpatient == s.idpatient, left_join: sr in "studyreport", on: sr.idstudy == s.idstudy, + left_join: st in "statuses", on: st.idstatus == sr.idstatus, where: p.patientid == ^patientid, select: %{ idstudy: s.idstudy, @@ -133,7 +134,7 @@ defmodule ApiWeb.IndexLive do accession: s.accessionnumber, patientname: p.patientname, status: sr.idstatus, - statusname: sr.statusname, + statusname: st.statusname, studydescription: s.studydescription }, order_by: [desc: s.studydate]