Method and device for the automatic control and management of medical instruments and equipment