checkPrescriptionFormat: Checks the format of the data set for the prescriptions

View source: R/helperFunctions.R

checkPrescriptionFormatR Documentation

Checks the format of the data set for the prescriptions

Description

We need an ID, date column, ATC and DDD column. The date column has to be of class Date.

Usage

checkPrescriptionFormat(
  df,
  idColumn = "PATIENT",
  dateColumn = "VISIT",
  atcColumn = "ATC",
  dddColumn = "cDDD"
)

Arguments

df

the data frame to check

idColumn

name of ID column: default is PATIENT

dateColumn

name of date column: default is VISIT. This column has to be of class Date

atcColumn

name of the ATC column: default is ATC

dddColumn

name of the DDD column: default is DDD

Value

NULL if there are format problems, otherwise a data frame that has a PATIENT, VISIT, ATC and DDD column


smm52/timeBlocks documentation built on Nov. 27, 2022, 3:54 a.m.