The field’s failure to integrate medical services in the mid-20th century set the stage for its current troubles.