Predicting Heart Failure With Reduced or Preserved Ejection Fraction From Health Records: External Validation Study.