The process by which a clot is formed in whole blood or plasma. It is divisible into three stages: extrinsic pathway, intrinsic pathway (includes contact activation), and common pathway. The divisions are useful for laboratory testing. Coagulation and clotting are similar terms.