The SSN covers all citizens and legal foreign residents. Coverage is automatic and universal. Since 1998, illegal immigrants have been granted access to basic services. Temporary visitors can receive health services by paying for the costs of treatment. Modeled after the British National Health Service, the SSN replaced a Bismarckian system of health insurance funds in 1978. Complementary and supplementary private health insurance is also available.