(1) Neither of the following is admissible in evidence against the person in any civil or criminal proceeding—(a) a statement made by the person during an examination of the person under an examination order;(b) a statement made by the person to a health practitioner for the purpose of a Magistrates Court making a decision about the person under section 172 or 173 .
(2) Subsection (1) applies to statements made orally or in writing and whether on oath or otherwise.
(3) However, subsection (1) does not apply to a proceeding for—(a) contempt of the court; or(b) an offence against the Criminal Code , chapter 16 .
(4) Also, subsection (1) (b) does not apply to a proceeding before the Mental Health Court.