A doctors practice in Fareham that had been forced to shut due to a fire at a neighbouring building will reopen fully 48 hours after firefighters first arrived.