Television writers have considerable experience at creating dramatic stories out of the lives of lawyers, surgeons, school teachers, and many other professions whose real-life work is somewhat less dramatic. But occasionally they tire of making lawsuits and surgeries exciting. That's when [[ChandlersLaw an armed man bursts into the law office or hospital]] and takes hostages from the cast. This is similar to PerpAndWeapon, but none of the characters are police officers and the violence is completely unexpected in the setting.

Hostage situations like this occur in real life; the trope name comes from the real code used for "combative person with weapon" in many hospitals on America's west coast. Where the trope diverges from reality is in the motivation of the hostage taker and the way the situation is resolved.

The hostage taker usually has a personal grudge against one of the characters and has carefully planned his assault. His aim may be simple revenge, or pursuit of a bizarre goal that ties into the show's setting.

Despite their inexperience, the characters usually manage to negotiate with the hostage taker and resolve the situation with minimal loss of life -- it's very rare for anyone other than the gunman to die in these situations, and even he usually survives.

If "Code Silver" or its equivalent is used, it's a genuine CodeEmergency. If it's a comic book or an [[DerivativeWorks adaptation]] thereof, expect BruceWayneHeldHostage. [[ChandlersLaw Chandler's Law]] is similar.


[[folder: Live Action Television ]]

* ''Series/DesperateHousewives'' had one set in a supermarket where a disturbed woman (Laurie Metcalf) takes everyone hostage. This kicked off a trend of "distaster episodes", which happened at least once a season for the rest of the show.
* ''Series/BostonLegal'': Four times, including a employee who demanded a partnership at knifepoint. At this rate, the violence shouldn't be quite so unexpected.
** At least one of these hostage situations was solved by Denny Crane shooting the dude doing the hostage grabbing one of his numerous guns he keeps in his office and telling a lesser associate to open the door when he says pull.
* ''Series/ChicagoHope'': A patient's brother demands a donor heart at gunpoint.
* ''Series/{{ER}}'': Several times, but partially justified by the hospital's dangerous inner-city location.
** Occasionally veers into the hopelessly ridiculous, though. The '''tank attack''' springs to mind.
*** Even more ridiculous is that that was RippedFromTheHeadlines. That's right, some lunatic ''stole a tank and rampaged through suburbia'' (no hospitals were harmed).
* ''Series/{{House}}''
** "No Reason" subverts this, as the gunman shoots the title character and leaves, with the other characters completely ineffectual. [[spoiler: He's never caught and we never even discover his motive. House was treating the guy's wife/girlfriend during some case before the show started. House found out that the Guy had cheated on the woman and told her, even though it was completely unrelated to her illness. After getting discharged, the woman was so distraught she killed herself.]] Of course, considering how rare it is for House to follow up on patients after they leave his care, it's unlikely he actually knew that; more likely was that all of this was [[spoiler: part of the fantasy/dream/hallucination he was constructing, and therefore not real. This fits with the running theme of the episode, and the title; "No Reason"]].
** A later episode plays it straight, with a man taking House, [[IllGirl Thirteen]], and several patients hostage in order to force House to diagnose his unknown illness. After hours of stand-off and letting hostages go, [[spoiler:they succeed in diagnosing him, and he injects himself with the cure just as the SWAT team breaks through the wall.]]
* ''Series/LawAndOrder'': The police half of this show expect armed confrontations, but the lawyers often have to deal with them too, sometimes inside the courtroom. An example is needed because these get complex: SVU has a young White Supremacist take out the defendant and judge in open court before being shot by his long-time co-whatever, actually an undercover federal agent. The agent was played by Creator/MarciaGayHarden, and the role netted her an Emmy nomination.
* Executed quite well in an episode of ''Series/{{Shark}}''.
* Creator/QuentinTarantino's guest appearance in ''Series/{{Alias}}''.
* ''Series/{{Mash}}'' has done this at least three times: The first when a distraught soldier (played by a pre-''Series/ThreesCompany'' John Ritter) holds Frank Burns hostage to prevent being sent back to the front, the second when a soldier holds the doctors hostage demanding that his buddy is treated ahead of everybody else (''and'' this is in an episode where Hawkeye is threatened by a crazed Turkish soldier who ''wants'' to return to the front because his buddies were still up there); and the last saw Winchester held hostage by a soldier demanding a helicopter so that he could return to Toledo (and, because this was his ultimate destination, Klinger bravely volunteered to switch places with Winchester...). It almost makes you wonder where the hell the unit's [=MPs=] are, since none ever come by to defuse the situation...
** Well, MP's did appear once in the early first-season episode "Dear Dad" (Klinger's first appearance), but even then Father Mulcahy politely asked the MP's to wait there as he went off and handled the issue (Klinger threatened to frag Burns with a grenade), there was one later episode that showed that the head MP over the area was extremely corrupt and took bribes from Rosie to ignore her bar (and the rest of the post).
* Done on ''Series/{{Chuck}}'', where it turned out that [[spoiler: the situation [[ThePlan was set up by FULCRUM agents]] wanting to know why so many of their agents kept dying around the Buy More area.]]
* Done in ''Series/{{Smallville}}'' where someone bursts into the hospital with a kryptonite-powered bomb strapped to his chest, demanding that his brother receives a liver transplant.
* In ''Series/GreysAnatomy'', a man has a rocket from a homemade bazooka in him that the characters had to remove. It also subverts the spirit of the trope as a bomb disposal expert is on hand the whole time. [[spoiler: He blows up carrying the rocket away from everyone else]].
** In the Season 6 two-part finale, the husband of a woman they couldn't save (as she signed [[ a DNR]]) [[ChekhovsGunman comes back]] a few episodes later [[RoaringRampageOfRevenge to invade the hospital and shoots a bunch of people]]. Much of Season 7 is devoted to the ramifications of this event, though it's really [[AuthorsSavingThrow an excuse to kill off]] a few [[TheScrappy Scrappies.]]
* The ''Series/BurnNotice'' episode "Bad Breaks" has an interesting variant: A spy and an NSA agent are having a covert meeting at a bank, when bank robbers show up. [[MuggingTheMonster Those poor bank robbers...]]
* ''Cra$h & Burn'' had a gunman take the staff of the insurance agency hostage after his wife becomes a paraplegic in an accident and the insurance company stalls paying out the claim. It ends up [[spoiler: being a SuicideByCop]]
* Done constantly on ''Series/NightCourt''.
* ''Series/{{Psych}}'': "Gus Walks Into A Bank."
* This happened at least once on ''Series/TheBill'' - a criminal ended up in Sunhill Police Station with a pistol. The scene was incredibly tense and dangerous, because, this being Britain, none of the policemen had guns themselves.
* In ''Untold Stories From The ER'' this has happened several times. From the rampage of Damacio Ibarra Torres in the ER, to a man who wanted to shot the man who tied his wife's tubes.... After she had seven kids.


[[folder: Literature ]]

* Most of the ''Franchise/StarWarsExpandedUniverse'' has its share of action, but there are books with little, such as the Medstar Duology, which is sort of a medical drama that focuses on the medics working on clone troopers, the reporter set to cover it all, and the Jedi Padawan earning her Knighthood on an unpleasant world called Drongar. The conflicts in the duology are largely internal and personal, things like a surgeon overcoming his automatic assumption that clones and the rare truly intelligent droid aren't really people, or the Padawan fighting her addiction to a mind-expanding drug. But action does pop up; notably a few battle droids stray too close and the Padawan slaughters them. And... well, that's about it, really, at least with the medics, the reporter, and the Jedi. The duology carefully places direct conflict only in storylines where the spy is the main character.
** It's also inverted on a couple of occasions, where the SimplePlan ''du jour'' involves creating some havoc by means of a little public gunplay. One good example occurs during the Literature/HandOfThrawn; needing to evade a group of local cops, Han and Lando enter a crowded casino and start shooting up the scenery, yelling about various made-up wrongs one of the customers has done to them and the nasty revenge they intend to take. The place clears out in a matter of seconds.
* There's a novel by Creator/JohnGrisham called ''The Street Lawyer'' where this is used to kick off the plot. A homeless man breaks into the posh law firm where the protagonist works, and takes him and a few of his coworkers hostage for about six hours.


[[folder: Real Life]]
* Occasionally happens in RealLife. Recently, [[GoingPostal a doctor fired from New York City's Bronx Lebanon Hospital went on a rampage]], killing one doctor and seriously wounding five or six other staff members before turning the gun on himself.