status function

A function that defines the true status based on the case definition