Make a simple compartment model?

Try starting with the package used in my post Epidemiological Models for Influenza and COVID-19 . It’s fairly easy to specify the compartments and the transitions as a set of rules, and then convert them to a system of ODEs.