Skip to content

Commit

Permalink
RegData lastes
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinthon committed Nov 15, 2024
1 parent 975c0ff commit 5122fd3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: norgast
Type: Package
Title: Resultatrapporter for NORGAST
Version: 3.0.7
Version: 3.0.8
Date: 2015-12-17
Author: Kevin Thon
Maintainer: Kevin Thon <kevin.otto.thon@helse-nord.no>
Expand Down
12 changes: 10 additions & 2 deletions R/appServer.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,20 @@ appServer <- function(input, output, session) {
Sys.getlocale()
})


# RegData <- norgast::NorgastHentRegData()
skjemaoversikt <- norgast::NorgastHentskjemaoversikt()
skjemaoversikt$HovedDato <- as.Date(skjemaoversikt$HovedDato)
output$skjemaoversikt <- shiny::renderTable({
head(skjemaoversikt)
})

RegData <- norgast::NorgastHentRegData()
RegData <- norgast::NorgastPreprosess(RegData, behold_kladd = TRUE)
output$regdata <- shiny::renderTable(
head(RegData[,1:10])
)

# RegData <- norgast::NorgastHentRegData()
# skjemaoversikt <- norgast::NorgastHentskjemaoversikt()
# skjemaoversikt$HovedDato <- as.Date(skjemaoversikt$HovedDato)
# RegData <- norgast::NorgastPreprosess(RegData, behold_kladd = TRUE)
# skjemaoversikt <- merge(skjemaoversikt, RegData[,c("ForlopsID", "Op_gr", "Hovedoperasjon")], by = "ForlopsID", all.x = T)
Expand Down
3 changes: 2 additions & 1 deletion R/appUi.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ appUi <- function() {
shiny::h4("Database og tabeller:"),
shiny::textOutput("database"),
shiny::tableOutput("tabeller"),
shiny::tableOutput("skjemaoversikt")
shiny::tableOutput("skjemaoversikt"),
shiny::tableOutput("regdata")
)

# shiny::tabPanel(
Expand Down

0 comments on commit 5122fd3

Please sign in to comment.