When a patient is in the supine position, the lowest points in the abdominal and pelvic cavities are the posterior superior aspect of the peritoneal cavity (the hepatorenal recess) and, in women, the recto-uterine pouch (pouch of Douglas).
The shoulder pain suggested that the abscess was in the hepatorenal recess and that the pain was referred from the diaphragm.