Requirements and validation of a prototype learning health system for clinical diagnosis