Hybrid code for extrinsic coagulation model