You can't just leave. You should engage a lawyer and petition the court to terminate your probation.
I'm very sorry to read about your health problems. If your health condition is as dire as you say, the court will likely let you go to Pennsylvania to pass away in peace. If, however, they believe you will still live for many years, they are unlikely to terminate your probation. Get documentation of your condition from your doctor, then contact a lawyer
The response above is not intended as legal advice. This response does not create an attorney-client relationship. Legal questions can only be fully answered through consultation with an attorney to whom you give full and accurate details. Anything you post here is not confidential and is not protected by the attorney-client relationship. It is highly recommended that you seek advice from a criminal defense attorney licensed in your jurisdiction by setting up a confidential meeting.
Sorry to hear about your situation. You should be allowed permission to leave given the circumstances, and that this is misdemeanor probation. Get proof from a doctor re: your condition and get a good, local lawyer to put it on calendar for you for either permission to leave, or to terminate probation early. Good luck.