Implantable heart monitor helps keep patients out of the hospital