"hastanen" would mean "your hospital." The Dative almost always corresponds with the English "to" or an indirect object (with some exceptions).
I think you tried to made a genitive-postposition construction, which would not work here. "yakın" normally takes the dative for whatever you are talking about being "close to." I hope that was clear enough. If you have any questions, let me know! :)