Summarize and clean the raw transfusion data

summarize_and_clean_inventory(raw_data, date)

Arguments

raw_data

the raw data tibble

date

the date for which this is the inventory

Value

a list of four items; errorCode (nonzero if error), errorMessage if any, the summary data tibble, the data tibble filtered with relevant columns for us