Elliptic patching of harmonic functions