China has poured doctors, drugs and other resources into Hubei province to battle the coronavirus outbreak at its source, but people with other conditions are struggling to get the urgent medical attention they need.

Overburdened hospitals have turned away some pregnant women with complications. People with HIV have run short of essential drugs.

Wan Ruyi, a 21-year-old college student in Wuhan with acute lymphoblastic leukemia, has been seeking a new round of treatment and ultimately a bone-marrow transplant. For those, she needs to move to a hospital in northern Hebei province, said her mother, Wu Qiong.

Yet Ms. Wan is spending her days lying on a bed at Wuhan Union Hospital. She is unable to leave Wuhan as the city has barred people from leaving. She relies on chemotherapy injections and painkillers, the only treatments the hospital can offer for her condition.

Ms. Wan has been suffering from excruciating pain, so bad that she even questioned whether she wanted to keep living, her mother said. “I feel there is no other way out” besides going to Hebei, she said. “The only road is now blocked by this huge disaster.”