Skip to content

Commit

Permalink
cleaning up result table
Browse files Browse the repository at this point in the history
  • Loading branch information
nhall6 committed May 15, 2024
1 parent a7ce6de commit 0cf037f
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions R/datasources-main.R
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,13 @@ datasourcesServer <- function(
Visits = dplyr::case_when(
Visits == "" | Visits == " " ~ "Not Available",
.default = Visits
)
),
Visits = gsub("<br>", ",", Visits),
Visits = sapply(strsplit(Visits, ",", fixed = TRUE), function(x)
paste(unique(x), collapse = ", ")),
Source.Vocabularies = gsub("<br>", ",", Source.Vocabularies),
Source.Vocabularies = sapply(strsplit(Source.Vocabularies, ",", fixed = TRUE), function(x)
paste(unique(x), collapse = ", "))
) %>%
dplyr::rename(datasource = Data.Source,
#cdmSourceName = cdmSourceAbbreviation,
Expand All @@ -128,7 +134,7 @@ datasourcesServer <- function(
sourceVocabularies = Source.Vocabularies) %>%
dplyr::add_row(datasource = "IQVIA Ambulatory EMR",
cdmSourceAbbreviation = "AMBULATORY EMR",
sourceCountry = "NotAv",
sourceCountry = "US",
dataProvenance = "NotAv",
visits = "NotAv",
sourceVocabularies = "NotAv"
Expand Down Expand Up @@ -208,6 +214,16 @@ datasourcesServer <- function(













})
}

Expand Down

0 comments on commit 0cf037f

Please sign in to comment.