How to link an appointment type