Antecedentes. Primeros hospitales