How to assign a patient to a department or doctor directly.

How Can I assign a assign a patient to a department or doctor directly. I have created location type for an example OPD-Cardiology and I have created a visit type with the same name. I would like to assign a doctor to the location type, and I would like to assign the patient to that visit.