Having hematological malignancy influenced the odds of hematological complications positively (either neutropenia or thrombocytopenia) compared to solid malignancies when patients were treated with anti-PD1 or anti-PD-L1 [OR = 17.18; 95% CI 4.06–72.71]. This evidence concerns the gene CD274 and Decreased total neutrophil count.