Barium enema is a special x-ray of the large intestine, which includes the colon and rectum. This test may be done in a doctor's office or hospital radiology department. It is done after your colon is completely empty and clean. Your doctor will give you instructions for cleansing your colon.