Unless there is "more to the story," the ER should not have admitted you like they told you they were. They were definitely not acting in the patient's best interest. As far as medication, I don't know what would be given for pancreatitis or for a bowel obstruction. You were probably not given anything for pain because pain meds are normally very constipating and that would just aggravate your bowel construction problem.
However, since they did not admit you, when you were discharged, you should have been told that you need to make an appointment with your primary care physician ASAP and tell him/her of your diagnosis of possible pancreatitis and your bowel obstruction.
The bowel obstruction would probably need immediate attention.
Call your doctor ASAP to get this taken care of.