Having a weakened immune system caused by certain diseases or drugs. This condition is sometimes present in the very young and the very old, in patients with HIV, and in patients who have received a bone marrow transplant.