getPivotDataSet: Get selected data set for Pivot Table (Utforsker)

View source: R/getPivotDataSet.R

getPivotDataSetR Documentation

Get selected data set for Pivot Table (Utforsker)

Description

Some tables are returned as they are, with only raw data. Other tables are treated (importation of variables from other tables, generation of new variables) before the data frame is returned.

Usage

getPivotDataSet(
  setId = "",
  registryName,
  session,
  singleRow = FALSE,
  reshId = NULL,
  userRole,
  fromDate = NULL,
  toDate = NULL
)

Arguments

setId

String providing name of data set to be returned. One of the values "pros_patient" containing procedure and patient data or "rand12" containing data from rand12 questionnaire.

registryName

String providing registry name.

session

List shiny session object.

singleRow

Logical defining if only one row is to be returned.

reshId

Integer organization id

userRole

String dummy/placeholder role. "LC" has access only to local data (defined by reshId), "SC" has access to national data.

Value

data frame

Examples

## Not run: d_ablanor <- getPivotDataSet(setId = "pros_patient")


Rapporteket/ablanor documentation built on Feb. 27, 2025, 8:26 p.m.