Semipermeable barrier structure that surrounds cells