Does a foreigner need to have insurance in Poland?

Information on the requirement for foreign nationals to have insurance, depending on the basis for their entry, stay, and professional activities in Poland.