Diuretics. Sometimes called water pills, this type of medication reduces or prevents fluid buildup in the lungs and other parts of the body. Blood thinners (anticoagulants). ... Blood pressure medications.