Skip to contents

Produce a set of tests which can be used by most of the extracts. This will produce counts of various demographics using create_demog_test_flags() counts of episodes for every hbtreatcode It will also produce various summary statistics for beddays, cost and episode date variables.

Usage

produce_source_pis_tests(data)

Arguments

data

new or old data for testing summary flags (data is from get_source_extract_path())

Value

a dataframe with a count of each flag from calculate_measures()

See also

calculate_measures

Other extract test functions for creating test flags: produce_source_dd_tests()