Ko Phi Phi has a couple of pharmacies and a hospital. For any bad illnesses, go back to Krabi or even better, Phuket.