fix problem creating PA from scratch with no prescription
tests passing
merge upstream