Disease in which there is a deficiency or defect in the mechanisms of immunity, either cellular or humoral. The disease is Monarch Disease Ontology term MONDO_0021094 (immunodeficiency disease). Also known as: immuno-deficiency, immunodeficiency, immunodeficiency disorder.