Hi. I haven't read all the responses yet, so this may have been stated already. On my unit we assign a code team at the beginning of the shift, and announce it during our morning shift huddle. We run our own codes and RRT's. Only an anesthesiologist will attend if the patient does not already have an advanced airway. If you are on the code team, you are obligated to that situation. Yes, more people than needed initially arrive. We do this only to cover code team members who may not yet have arrived. Once they have, the room consists of (generally) Leader, Monitor, Meds, 2 for CPR, Recorder, and a respiratory therapist. If you're not on that team, you are expected to be covering the floor. Still, with 4-5 nurses in the room, that is about 16-20 patients who need covered by staff who already have a 3-5 patient assignment. No matter what, someone is going to be waiting. It is up to you to be able to prioritize care. Cardiac and pain meds before colace. Be professional, apologize for the delay, leave the room courteously when you are finished. If you truly were where you needed to be, your manager will know that. If you were at all disrespectful or sarcastic-and I am not assuming you were-then you need to own that. You will never make everyone happy, all the time. Let it slide.
Just an anecdote and show of empathy for you-I was once in a code where the patient was also hemorrhaging everywhere, and we were running in blood products and fluid as fast as we could. The lady across the hall was so agitated that we would not stop what we were doing to come and give her an update on her husband (with whom she roomed, and had only left him for about 2 hours to grab a meal), that she actually called into the room to distract the physician, and asked him when he would "finally be done in there." Well, I watched the physician, the kindest man I have known, tell the woman where she should shove it, and threatened to have security haul her away if she didn't leave immediately!
If we never became nurses, we would have missed out on all the best stories!