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
using create_hb_test_flags(), a total cost for each hbtreatcode using
create_hb_cost_test_flags().
It will also produce various summary statistics for bedday, cost and
episode date variables.
Arguments
- data
new or old data for testing summary flags (data is from
get_source_extract_path())- sum_mean_vars
variables used when selecting 'all' measures from
calculate_measures()- max_min_vars
variables used when selecting 'min-max' from
calculate_measures()- add_hscp_count
Default set to TRUE. For use where
hscp variableis not available, specify FALSE.- smr00_ep
Only for Outpatients extract test. TRUE only when using old_data for outpatients
Value
a dataframe with a count of each flag
from calculate_measures()
See also
create_hb_test_flags(),
create_hscp_test_flags() and create_hb_cost_test_flags()
for creating test flags
calculate_measures
Other extract test functions:
calculate_measures(),
produce_episode_file_ltc_tests(),
produce_episode_file_tests(),
produce_source_ch_tests(),
produce_source_cmh_tests(),
produce_source_dn_tests(),
produce_source_hc_tests(),
produce_source_nrs_tests()