And caused by transmitting ultrasonic energy into the lungs of a patient, moving the boundary line between the alveoli filled with air surrounding the vessel and the vessel / soft tissue in the lung, the Doppler polarization of the reflected ultrasonic waves by detecting the transition, and may analyze the function of the lungs or the patients heart. Movement of the boundary line is caused by the pressure wave of the blood vessels that lead to changes in vessel diameter thereof. Was treated with a noise reduction algorithm, the Doppler shift having been detected, then, by analyzing the characteristic periodic in the data obtained, heart rate of the patient, and breathing rate of the patient and / or abnormalities in the patients heartbeat I want to measure the appearance of. [Selection Figure Figure 10