In the West, the idea of an immune system is a recent idea, however in China, doctors were strengthening the defensive energy (wei qi) over a thousand years ago.
Chinese medicine has long understood that a key to good health is the normal flow of sufficient energy. If Qi is abundant and flowing, your body is healthy. If Qi is weak, excessive, or misdirected, you will have a problem.