The South Carolina Order of Discharge (COD) is a court order that releases individuals who have been declared civilly or criminally insane from the jurisdiction of a South Carolina court. It is issued by a judge or magistrate upon a motion from either the defense attorney or the prosecutor, and is based on evidence that the individual is no longer a danger to themselves or the public. The COD is legally binding and must be followed by all relevant parties. There are two types of Scots: civil and criminal. A civil COD is issued in cases where a judge determines that an individual is not competent to stand trial or is otherwise not responsible for his or her actions. A criminal COD is issued in cases where a judge determines that an individual is not guilty by reason of insanity. Additionally, Scots may be used to transfer jurisdiction of an individual from one court to another.