How to keep patients healthy and hospital-free