On the HRT, you might want to talk with your endo or the surgeon in order to make sure you have this correct. Doctors are used to questions like this and this time you don't want a mistake as it could delay your surgery. In addition, if you are on a blocker, that may not have the same restrictions as estrogen but again you will need to talk with your doctor about it.
As for the pain medication, if you have somebody you really trust, they might be willing to ration out a few days worth at a time. Unfortunately a pharmacy may have legal restrictions that prevent them from providing this service so will have to look elsewhere, Your therapist if they are close might be willing to hold the medication for you and as they know you pretty well, would know when you risk addiction.