An implantable medical device (IMD) that can be wirelessly connected to user interface by which a patient can enter values of selected control parameters for controlling the IMD whereas other control parameters are not accessible via said user interface and can only be modified by a physician or other authorized personnel.