It is apparently covered under the agreement on the free movement of persons. See this webpage,
http://www.bsv.admin.ch/soziale_sich...x.html?lang=en
and in particular, the two documents at the bottom of the page.
The other 'internet links' on the page may be useful.