Purpose: We developed an open-source, rule-based algorithm to automate cause of death coding for analyzing mortality in understudied populations, such as people experiencing homelessness, and dynamic public health crises including overdoses and climate-related deaths.
Methods: Death categories of immediate public health concern were selected and keyword lists representing each category were developed in consultation with a domain expert. A rule-based keyword matching algorithm was built to assign death records into the selected death categories.