Skip to contents

This function is called within the mapMetadata_compare_outputs function.

For a specific data element, it compares the domain code categorisation between two sessions. If the categorisation differs, it prompts the user for a new consensus decision by presenting the json metadata.

Usage

concensus_on_mismatch(ses_join, Table_df, datavar, domain_code_max)

Arguments

ses_join

The joined dataframes from the two sessions

Table_df

Metadata from the json file, for one table in the dataset

datavar

Data Element n

domain_code_max

The maximum allowable domain code integer

Value

It returns a list of 2: the domain code and the note from the consensus decision