make departmentid and output type required