I have a peice of SQL that I am using to generate this table -
patient status lag_start_date thru_dt group 10000 30 20191104 20200102 2