Electronic health records and biobanks can be effectively combined to detect and study Mendelian diseases such as cystic fibrosis.