Investigating the requirements for secondary use of data to drive improvement in the quality and safety of medication use