A judge at Derry Magistrate's Court has said that disorderly behaviour in hospital was becoming 'all too common'.