After medical they will call you for finger prints (around 15 days after the medical, but may be it can take longer), and then after finger prints your RP / QID will be processed (it will again take 1-2 weeks).

And I think if you leave before RP/QID then you have to re-start the whole procedure (starting from visa)