The codes as noted are pretty standard.

I’ve seen hospitals that can lock down areas or the entire hospital by hitting a panic button. As noted earlier it dumps the Mag hold opens on the doors and activates a lock

Usually these are set up to Isolate an area (Someone steals a baby, crazy in ED, etc) Vs keeping people out.