Totalt har sju personer förts till sjukhus efter branden i ett flerfamiljshus.