Hematologic toxicity refers to the detrimental effects on the blood and bone marrow caused by cancer treatments like chemotherapy and radiotherapy. These treatments can impair the production and function of blood cells, leading to various complications.