In general hospitals require a negative PCR test before they'll admit for elective procedures. It only makes sense.
That's why I laugh at the people who say the rise in Covid hospitalizations is due to Covid-positive patients in the hospital for other reasons.
ER visits are different but they don't count as admissions.
When admitted in the ER you are an admission.