A 54-year-old previously healthy woman is hospitalized for pneumonia. On the 10th hospital day she is found to have swelling and tenderness of her right leg, which has developed over the past 48 hours. Raising the leg elicits pain. An ultrasound examination reveals findings suggestive of femoral vein thrombosis. Which of the following conditions is most likely to have contributed the most to the appearance of these findings?