PURCHASE AGREEMENT by and between ALLSCRIPTS HEALTHCARE, LLC and MCKESSON CORPORATION Dated as of August 1, 2017