Do not depend on visit type, use discharge time instead of obs time