Immunodeficiency syndromes are classified as primary and secondary/acquired.
Mostly these are inherited single-gene disorders that present in infancy or early childhood with the exception of common variable immunodeficiency which usually occurs in adults.1
This is a companion discussion topic for the original article at https://patient.info/doctor/paediatrics/immunodeficiency-primary-and-secondary