added patient state for flat table 2