expand_dfDefinitions_processed: Expand the illness/medication codes in definition table to...

View source: R/ProcessdfDefinitions.R

expand_dfDefinitions_processedR Documentation

Expand the illness/medication codes in definition table to include codes that belong to this code

Description

Explicitly fill in codes covered by the parent codes that are available in the raw data (using lst.counts)stated in the definition table

Usage

expand_dfDefinitions_processed(
  dfDefinitions_processed,
  lst.data.settings,
  lst.counts
)

Arguments

dfDefinitions_processed

definition table as dataframe

lst.data.settings

data.setting as dataframe, it includes settings that should be used, e.g. if ICD10 should be looked up case sensitive or not (incase of READ cases are important, dotts should also NOT be interpreted)

lst.counts

a summary of the raw data produced by get_lst_counts()

Value

definition table as dataframe


niekverw/ukbpheno documentation built on Oct. 30, 2023, 9:17 p.m.