Skip to contents

This function checks for any columns specified in the settings object that are not present in the data. It returns a message listing the missing columns, if any.

Usage

check_expected_cols(data_domain, settings_list, data_list)

Arguments

data_domain

A string specifying the data domain to check (e.g., "labs", "vitals", "dm").

settings_list

A list containing the settings for each data domain.

data_list

A list containing the data for each domain.

Value

A string message listing the missing columns, or NULL if all expected columns are present.