Seleccionar idstudy segun identifierfield para redirect
This commit is contained in:
@ -79,13 +79,13 @@ defmodule ApiWeb.Redirect do
|
|||||||
query =
|
query =
|
||||||
if studyidentifier == "IDSTUDY" do
|
if studyidentifier == "IDSTUDY" do
|
||||||
from s in "study",
|
from s in "study",
|
||||||
where: s.accessionnumber == ^accessionnumber,
|
where: s.accessionnumber == ^accession,
|
||||||
select: %{
|
select: %{
|
||||||
idstudy: s.idstudy
|
idstudy: s.idstudy
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
from s in "study",
|
from s in "study",
|
||||||
where: s.accessionnumber == ^accessionnumber,
|
where: s.accessionnumber == ^accession,
|
||||||
select: %{
|
select: %{
|
||||||
idstudy: s.idstudy
|
idstudy: s.idstudy
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user