Preparing linked population data for research: cohort study of prisoner perinatal health outcomes. (2017)