Is this a problem for foreigners? I went to the pharmacy with a prescription yesterday and was asked for my PESEL. I don't have a PESEL because I am here on a student visa, so my prescription was not filled.
HI. I assume it is from a polish doctor? I have gone to pharmacies with doctors prescriptions and they have dealt with them no problem, without any PESEL number. I would try another pharmacy/pharmacies. Maybe bring along you passport just in case. (But i have never been asked for it)
Normally, the PESEL number is required on a prescription, but I guess there must be some legal regulations for foreigners living in Poland, I guess the passport/visa number should be enough, otherwise ask at your school in Dziekanat (Dean's office).
Sometimes an "empty" is used in official documents in the form YYMMDD00000 where YY MM DD is your date of birth, but I'm not sure about prescriptions. In case of EU residents the ID from your E-111 patient's ID card (or similar) should be used instead. First try another pharmacies, if it doesn't help contact your doctor about the problem.