Introduction: Intergenerational patterns are an important part of understanding disease, but much of the family-based research can be costly or biased. Emergency contacts in electronic health records (EHR) can be used to link family members using a population that is more representative of a community than traditional family cohort studies. Hypothesis: Creating family trees using emergency contacts will result in robust data that can be used in intergenerational research. Methods: We revised a published algorithm: relationship inference from the electronic health record (RIFTEHR). Our version, pythonic RIFTEHR (P-RIFTEHR) was run on 8/5/21 in the Northwestern Medicine Electronic Data Warehouse (NMEDW) on approximately 3.7 million individuals and was validated using the existing link between children born at NM hospitals and their mothers as the gold-standard. As proof-of-concept, we modeled the association between parent and child obesity using logistic regression. Results: The P-RIFTEHR algorithm matched 1,427,622 individuals in 500,408 families. The median family size is 2, the largest family is approximately 300 persons, and 115 families span four generations or more. Of the EDW-linked mother-child pairs, all matching pairs in P-RIFTEHR were correctly identified as mother-child, resulting in 100% sensitivity. Children are two times more likely to be obese if a parent is obese (OR: 2.01; 95% CI: 1.94, 2.09). This association persists after adjustment (OR: 2.19; 95% CI: 2.10, 2.28) and in mixed models nesting children within parents (OR: 2.70; 95% CI: 2.56, 2.85). Conclusions: P-RIFTEHR works well in a large, diverse population in an integrated health system. Our obesity results are consistent with the literature, including a 2017 meta-analysis by Wang, et al, showing a strong parent-child obesity association (pooled OR: 2.22; 95% CI: 2.09, 2.36). While the information used in the EHR can be completely deidentified, privacy concerns will be addressed before these data are more widely available for research.