Caroline Smith, 42, allegedly attacked the child at an address near Dunning, Perthshire, on August 10 .
She is alleged to have assaulted and injured the girl, who cannot be named for legal reasons.
Smith, of Murray Royal Hospital, Perth, appeared from custody at Perth Sheriff Court and made no plea or declaration during a five-minute hearing in private.
The qualified teacher was remanded back to the hospital for a 28-day period for further psychiatric assessment.
She made no motion for bail and the case was continued for further examination.
Smith, who was wearing jeans and a knitted top, was in tears as she was led from the courtroom at the conclusion of the hearing.