Defendant assigns error to the trial court’s denial of its request for an inquiry into the prosecuting witness’ competence to testify and in allowing her to testify without first determining her to be capable of distinguishing truth from non-truth. N.C. Gen. Stat. § 8C-1, Rule 601 of the North Carolina Rules of Evidence provides:
(a) General rule. — Every person is competent to be a witness except as otherwise provided in these rules.
(b) Disqualification of witness in general. — A. person is disqualified to testify as a witness when the court determines that he is (1) incapable of expressing himself concerning the matter as to be understood, either directly or through interpretation by one who can understand him, or (2) incapable of understanding the duty of a witness to tell the truth.
A court “may resort to any examination which will tend to disclose [the proposed witness’] capacity and intelligence as well as his understanding of the obligations of an oath.” State v. Thomas, 296 N.C. 236, 250 S.E. 2d 204 (1978) (quoting Wheeler v. United States, 159 U.S. 523 (1895)).
The statement that “[cjompetency is to be determined at the time the witness is called to testify” appears a number of times in the North Carolina case law, see, e.g., Artesani v. Gritton, 252 N.C. 463, 113 S.E. 2d 895 (1960), but no prior decision addresses the question of whether this means that the examination must occur before the witness testifies. The trial court made clear in the present case prior to its voir dire examination that the prosecuting witness “certainly has testified in a fashion that the Court finds would indicate without question that she is capable of expressing herself.” An accurate determination of a child’s competency to testify emanating from his moral sensitivity “can be made by the trial judge through his personal observation while the child is being questioned.” State v. Harvell, 45 N.C. App. 243, 262 S.E. 2d 850, disc. rev. denied and appeal dismissed, 300 N.C. 200, 269 S.E. 2d 626 (1980).
Following its voir dire examination, the trial court found that the witness was capable of understanding her duty to tell the truth. The record clearly supports this determination. Although the better practice would be to conduct the voir dire examination *557and determine competency prior to the witness’ testimony, in order to avoid possible mistrial or prejudice from the admission of testimony by a witness later found incompetent, we hold that this witness having been correctly determined to be competent during her testimony, the timing of the competency finding was not prejudicial error. We overrule this assignment of error.
Defendant also assigns error to the trial court’s finding that the prosecuting witness was competent to distinguish truth from non-truth. The trial court questioned the witness regarding her knowledge of the difference between truth and non-truth and the consequences of lying under oath. Her responses sufficiently support the trial court’s determination that she was competent to testify. See State v. Thomas, supra. We overrule this assignment of error.
Defendant next assigns error to the failure to establish a specific time during which the offense occurred; evidence presented at trial indicated only that it took place during the summer of 1986. The State is not required to establish a specific date; however, in its criminal pleading the State must only provide a statement of the approximate date or period of time during which the alleged offense occurred. N.C. Gen. Stat. § 15A-924(a)(4) (1988). We hold that the State complied with the statutory requirement by stating the period of time during which the alleged offense occurred: the summer of 1986. We overrule this assignment of error.
Defendant next assigns error to the trial court’s failure to strike portions of testimony on the ground that they were nonresponsive. When asked whether she had known if anyone was in the garage when she first went inside it, the prosecuting witness replied, “[w]e didn’t know if anybody was in there or not, because Clifford never did come home that night.” Although we agree that the latter portion of this statement was irrelevant, its admission was not so prejudicial as to constitute reversible error. Likewise, the prosecuting witness’ mother’s testimony that she had taken her daughter to the doctor during August 1986 for stomach problems, her complaints of which continued for two or three months, did not so unfairly prejudice defendant that a different result would have been reached at trial had the evidence been excluded. N.C. Gen. Stat. § 15A-1443(a) (1988). We overrule this assignment of error.
Defendant next assigns error to the trial court’s permitting the prosecuting witness’ eleven-year-old cousin to testify. The *558prosecuting attorney asked this witness whether she knew the difference between truth and non-truth and whether she understood that she had to tell the truth. Although the trial judge did not question the witness himself, her responses to the prosecutor’s questions provided sufficient evidence to support the trial court’s implicit finding that she was competent to testify. See State v. Gordon, 316 N.C. 497, 342 S.E. 2d 509 (1986). We overrule this assignment of error.
Defendant also assigns error to the trial court for overruling its objection to the following question, asked of the prosecuting witness’ cousin by the prosecuting attorney during redirect: “[y]ou don’t ever stay with Clifford by yourself, though, do you?” Defendant contends that this question was irrelevant and highly prejudicial. This testimony was relevant to rebut the suggestion made by questions posed earlier by defense counsel that the witness and her mother did not fear the defendant.
In another argument defendant contends that the trial court erred in allowing the investigating detective to read the statement he took from the prosecuting witness into evidence at trial, because it was inconsistent with her own prior testimony. The written statement included the victim’s prior declaration that defendant “put his thing in me” and told her that “he was going to get me pregnant, and that if I told anyone what had happened, that he would hurt me.” Defendant contends that this statement was inadmissible hearsay. We disagree.
“[I]f a prior statement of the witness, offered in corroboration of his testimony at the trial, contains additional evidence going beyond his testimony, the State is not entitled to introduce the ‘new’ evidence under a claim of corroboration.” State v. Warren, 289 N.C. 551, 223 S.E. 2d 317 (1976). The court in Warren granted the defendant a new trial where a law enforcement agent testified that a witness told him that the defendant stated that he planned to rob and kill the victim, because the witness himself testified that the defendant said he only planned to rob the victim. The agent’s testimony went far beyond corroboration, the court held; it flatly contradicted that of the witness.
In State v. Ramey, 318 N.C. 457, 349 S.E. 2d 566 (1986), however, the Court held that a statement is corroborative even though it contains information additional to the witness’ testimony in court, so long as it tends to add weight or credibility to that testimony. *559We hold that the detective’s testimony merely corroborated that of the prosecuting witness; although his account contained additional information, it bolstered her credibility and added weight to her testimony. The statement was admissible to corroborate the prosecuting witness’ prior testimony. We overrule this assignment of error.
Defendant also assigns error to the trial court for allowing the physician who examined the prosecuting witness to testify to statements made to him by the girl and her mother. He testified that he was given a history that a Clifford Reynolds “took her clothes off and inserted his penis more than one time into the vaginal area. And she stated that he threatened to hurt her if she told anyone . . . .” Defendant contends that these statements are inadmissible hearsay because they were not necessary for purposes of medical treatment. The incident was brought to light in April 1987 and the examination occurred on 27 May 1987, almost a year after the incident took place. Trial commenced on 12 April 1988.
We hold that the trial court did not err in admitting this testimony, for the statements were made for purposes of medical diagnosis and treatment. Statements as to the perpetrator’s identity in a child sexual abuse case are pertinent to diagnosis of any resulting psychological problems. State v. Aguallo, 318 N.C. 590, 350 S.E. 2d 76 (1986). Apart from their pertinence to diagnosis, these statements were pertinent to medical treatment as well, given the nature of the perpetrator’s relationship to the victim’s aunt and cousin. Although the child did not reside in the defendant’s home, she spent the night there with her cousin and the information would be reasonably pertinent to a course of treatment that included advising her not to return to the defendant’s home. See Aguallo, supra.
The remaining portions of the statements were relevant to providing the physician with information needed to properly examine the victim to determine whether a rape had occurred. They “suggested to Dr. [Thigpen] the nature of the problem, which, in turn, dictated the type of examination [he] performed for diagnostic purposes.” Id.
In addition, these statements meet the two-pronged confrontation clause test, for their introduction was necessary in order to show that the victim had sought medical treatment for sexual *560abuse, and such statements, when made for the purpose of diagnosis or treatment, have circumstantial guarantees of trustworthiness. State v. Gregory, 78 N.C. App. 565, 338 S.E. 2d 110 (1985), disc. rev. denied and appeal dismissed, 316 N.C. 382, 342 S.E. 2d 901 (1986). We overrule this assignment of error.
Defendant also contends that the evidence was insufficient to submit the charge of attempted first degree rape to the jury. The standard for evaluating the sufficiency of the evidence on a motion to dismiss is whether, considered in the light most favorable to the State, there was substantial evidence of each element of the offense charged. State v. Brown, 310 N.C. 563, 313 S.E. 2d 585 (1984).
In order to prove attempted first degree rape under the circumstances of this case, the State must show that the victim was twelve years old or less, that the defendant was at least twelve years old and at least four years older than the victim, that the defendant had the intent to engage in vaginal intercourse with the victim, and that the defendant committed an act that goes beyond mere preparation but falls short of actual commission of intercourse.
Gregory, supra.
The prosecuting witness testified that defendant removed her clothing, put her on top of him, and that she could feel something moving between her legs. Defendant let her go only when her aunt, the woman with whom he lived, drove into the driveway. We hold that the trial court correctly determined that the State met its burden of presenting substantial evidence on each element of the offense.
We have examined defendant’s remaining assignments of error, find them to have no merit, and overrule them.
No error.
Chief Judge HEDRICK and Judge EAGLES concur.