Role of immunity in caring for a patient

What role does immunity play when caring for a patient that is experiencing a high amount of stress due to a loss?