People with conditions like HIV and brain trauma are now living far longer—and revealing gaps in medical science.