Health record company pays hospitals that use its algorithms