A method for tracking the position of a person in an environment, such as a medical room, relative to a medical device is presented. The method comprises identifying the position of a medical device in the environment, providing a mobile device in the vicinity of a person in the environment, the mobile device configured to follow movement of the person in the environment, and identifying the position of the mobile device in the environment by using at least one stationary device. Further, the method comprises using a processor to process data relating to the position of the mobile device in the environment to obtain an expected position of the person in the environment, data relating to the position of the medical device in the environment, and data relating the expected position of the person in the environment to obtain an expected relative position of the person with respect to the medical device.