Heparin is a drug that inhibits blood clotting (anticoagulant) and is used to treat people who have developed dangerous blood clots (thrombi) or have a high risk of developing them. This test indirectly measures the amount of heparin in a person's blood by measuring its inhibition of factor Xa activity, one of the proteins involved in blood clot formation (anti-Xa activity)