In pediatric patients, anticoagulants are used to treat or prevent blood clots in various conditions such as congenital heart disease, after heart surgery, or in children with certain genetic clotting disorders. They are also used in some cases of Kawasaki disease and chronic illnesses like nephrotic syndrome.