A stratified model for health outcomes in ankylosing spondylitis