Distally, the median nerve crosses the medial side of the brachial artery and lies anterior to the elbow joint.