Skip to content

Commit

Permalink
Begrenser sykehus til de som faktisk har registreringer i AlleVarNum
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinthon committed Nov 26, 2024
1 parent b5d9f36 commit 5f74dd6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions R/GetRegData.R
Original file line number Diff line number Diff line change
Expand Up @@ -567,12 +567,16 @@ getHospitalName <- function(registryName, reshId, userRole) {

query <- paste0("
SELECT DISTINCT
LOCATION_SHORTNAME AS ln
avd.LOCATION_SHORTNAME AS ln
FROM
avdelingsoversikt
avdelingsoversikt avd
INNER JOIN
AlleVarNum var
ON
avd.DEPARTMENT_ID = var.InnlAvd
WHERE
DEPARTMENT_CENTREID IN (", deps, ") AND
DEPARTMENT_ACTIVE = 1;")
avd.DEPARTMENT_CENTREID IN (", deps, ") AND
avd.DEPARTMENT_ACTIVE = 1;")



Expand Down

0 comments on commit 5f74dd6

Please sign in to comment.