def regenerate_dead_date(c):
    """Get the patient dead date
    Args: 
        c: row of pandas dataframe
        return the dead date if the patient is not dead in hospital, otherwise return dead date as -1.
    """
    if c['HOSPITAL_EXPIRE_FLAG'] == 1:
        return -1.0
    else:
        return c['dead_date']