Modeling disease definitions and dynamics of disease using medical registry data by