TKR post op. 1 month iron tablets

Anyone else been prescribed iron for a month. Also have heparin injections for 2 weeks. Was I anaemic before the op, or just due to blood loss. Thigh just one massive bruise possibly due to tourniquet.