Hello.. first you should wait for your menses. And then start PID treatment from the first day of menses.. there may be a chance of pregnancy. And PID treatment affects pregnancy. So better wait for menses and start treatment.
And yeah one more advice as soon as you get
pregnant keep regular visit with an obstetrician and do tell them precisely about 22 weeks abortion.
Next Steps
wait for menses and then PID treatment