You do not need referrals to go to an ER, and they will perform initial care, including x-rays and surgery if needed.
If you don’t need immediate surgery they will patch you up and send you away, and that’s when you have to go see a specialist with a referral (if your plan requires it).
Did you go to the ER?
Also, don’t mess with joints, go see a Dr.