Disclosed are medical devices and methods for operating medical devices. The medical device is worn by the patient in order to place a light source for irradiating light toward the area to be treated of the patient and the light source at a predetermined position with respect to the area to be treated. An attachment element provided, a sensor element provided to provide a signal indicating whether the patient is wearing the device, the signal received from the sensor element, and the patient receiving the signal Provided to determine whether or not a device is worn, and to determine duration data indicating a duration associated with irradiation of light from the light source while the patient is wearing the device And at least one controller.医療装置、及び、医療装置を操作する方法を開示する。この医療装置は、患者の治療すべき領域に向けて光線を照射するための光線源と、上記光線源を、治療すべき上記領域に対して所定の位置に置くために、上記患者が装着するように設けられる取付け要素と、上記患者が上記装置を装着しているか否かを示す信号を提供するために設けられるセンサ要素と、上記センサ要素からの上記信号を受け、そして、上記患者が上記装置を装着しているか否かを決定し、そして、上記患者が上記装置を装着している間の、上記光線源の光線の照射に係る継続時間を示す継続時間データを決定するために設けられる少なくとも1つのコントローラとを備える。