If the state's attorney claims that any statement ordered to be produced under §§ 26-7A-63 to 26-7A-67, inclusive, contains matter which does not relate to the subject matter of the testimony of the witness, the court shall order the state's attorney to deliver the statement for the inspection of the court in camera. Upon delivery the court shall excise the portions of the statement which do not relate to the subject matter of the witness. With the material excised, the court shall direct delivery of the statement to the respondent or child for the party's use. If, pursuant to this procedure, any portion of the statement is withheld from the respondent or the child, the respondent or the child objects to the withholding, and the hearing proceeds to an adjudication of the child, the entire text of the statement shall be preserved by the state's attorney. If the respondent or the child appeals, the entire statement shall be made available to the appellate court for the purpose of determining the correctness of the ruling of the trial judge. When any statement is delivered to a respondent or a child pursuant to this section, the court, on application of the respondent or the child, may recess proceedings in the adjudicatory hearing for the time it determines to be reasonably required for the examination of the statement by the respondent or the child and the party's preparation for its use in the hearing.
SDCL 26-7A-65