Diagnosis: perforated viscus, the xray appearance and story would go with a likely diagnosis of perforated peptic ulcer, although any perforated hollow organ could cause this picture of free gas under the diaphragm (remember to differentiate it from gas in the hiatus of the stomach)