Data Availability
Overall preterm, indicated preterm, and spontaneous preterm diagnosis association results are in Supplementary Files 1-3, respectively. To maintain patient de-identification, exact counts, odds ratios, and p-values are redacted for diagnoses affecting >10 people in Supplementary Files 1-3. The custom code/software we generated are available in the repository stratified_PTB_association_study available here [https://github.com/hanmochturt/stratified_PTB_association_study] This contains instructions for OMOP EHR data queries and all of the code for patient filtering, diagnosis aggregation, overall PTB association analysis, indicated and spontaneous PTB association analysis, healthcare time trajectory analysis, robustness testing, and figure creation.