A great fix. Had the Sink mirror not been there your solution to keep the door from slamming into the wall would have been more difficult but could have still hidden magnets to accomplish the task.
Seriously though how many times in one's life do they slam a med cab door open? For me it has only happened once, and I wouldn't have cared if I had ripped the door completely off to get to an EpiPen