check_dfDefinitions_codes: Check if the illness/medication codes in definition table are...

View source: R/ProcessdfDefinitions.R

check_dfDefinitions_codesR Documentation

Check if the illness/medication codes in definition table are found the coding files

Description

Given a definition table and the directory with codings, check if codes in definition table are present in the coding files.

Usage

check_dfDefinitions_codes(
  dfDefinitions_processed,
  lst.data.settings,
  code_map_dir = "data/",
  check_expandable_codes_only = T
)

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)

code_map_dir

the directory storing the coding files

check_expandable_codes_only

boolean flag to indicate whether or not to check the only codes to be expanded

Value

character vector that are missing


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