Which direction does the door swing?

The door swings in and out. However, for safety reasons and to meet building codes, the out-swing of the door must not be blocked by a toilet, sink, wall, etc.