added back typeOfVisit id in attempt to fix smoke tests