Three-storey building will include apartments, medical beds, offices and shelter space