To assess the effect of an electronic health record-based transitional care intervention involving automated alerts to primary care providers and staff when older adults were discharged from the hospital .