Registration of medical devices