A new method allows hospitals to share patient data privately