This GitHub repository contains the analysis code to compare the long term mortality between invasive pneumococcal disease (IPD) survivors and matched comparators. Please note, that both case data and electronic health records data can not be shared to protect the subject's anonymity.