Disorders caused by abnormal or absent immunologic mechanisms, whether humoral, cell-mediated, or both.