OPINION
JOHN HILL, Justice (Assigned).Hallie Sunsinger appeals from a summary judgment that she take nothing in her claim against Raoul Perez, M.D., a/k/a Ray Perez, individually and d/b/a Raoul Perez, M.D. and Associates. She contends in five issues that the trial court erred in granting summary judgment; in a sixth issue, she urges that the trial court erred by not granting her leave to file a second amended petition.
We affirm because the trial court did not err in granting the summary judgment and because the trial court did not abuse its discretion by not granting Sunsinger leave to file a second amended petition.
This cause of action arose after Dr. Perez, who practices general medicine and family practice, had consensual sexual relations with Sunsinger. In her first amended petition, Sunsinger alleges that she suffered injuries as a result of the negligence, gross negligence, breach of warranty, and/or medical malpractice of Perez as a result of those relations. Specifically, she asserts that he was negligent in: (1) mishandling transference phenomenon and becoming sexually involved with her; (2) failing to properly diagnose her psychological condition; (3) failing to refer her for psychological treatment; and (4) attempting to treat her for psychological *499problems without proper expertise. She further alleges that he was grossly negligent.
Perez moved for summary judgment, presenting evidence that, with respect to all of Sunsinger’s allegations of negligence, his actions were within the applicable standard of care. In her response, Sunsinger asserts that Dr. Perez mischaracterizes her claim when he insists that it is solely a medical malpractice claim; she indicates that it is also a general negligence claim. She insists that Dr. Perez’s affidavit testimony is incompetent because medical records referred to in the affidavit are not attached to the affidavit and because he is not qualified to express his opinion with respect to the standard of care for the diagnosis, care, or treatment of transference. She also argues that Dr. Perez’s affidavit contradicts his deposition testimony, thereby creating a material fact issue. Sunsinger did not present any summary judgment evidence from any health care provider that Dr. Perez’s actions were not within the applicable standard of care.
This is not a no evidence motion for summary judgment. In this type of motion for summary judgment, the movant has the burden of showing that there is no genuine issue of material fact and that it is entitled to judgment as a matter of law; in deciding whether there is a disputed material fact issue precluding summary judgment, evidence favorable to the non-movant will be taken as true; and every reasonable inference must be indulged in favor of the non-movant and any doubts resolved in its favor. Nixon v. Mr. Property Management Co., 690 S.W.2d 546, 548-49 (Tex.1985).
In a case where a defendant physician has presented an affidavit detailing his or her treatment and attesting that his or her actions were within the applicable standard of care and the plaintiff fails to present summary judgment evidence by an appropriate expert that the physician’s actions were not within the applicable standard of care, the trial court does not err in granting summary judgment with respect to the plaintiffs claim for medical malpractice. See Perez v. Cueto, 908 S.W.2d 29, 31-32 (Tex.App. — Houston [14th Dist.] 1995, no writ). The only other claim that Sunsinger asserted was a claim for breach of warranty. Dr. Perez stated in his affidavit that he made no warranties to Sun-singer. She has presented no summary judgment evidence to contradict Dr. Perez’s statement. We therefore conclude that the trial court did not err in granting summary judgment that Sunsinger take nothing as to Dr. Perez.
In issue two, Sunsinger argues that the trial court erred to the extent that it granted summary judgment on one basis asserted by Dr. Perez, that basis being that she failed to allege an actionable case because there is no case for liability based upon sexual relations between a medical doctor, not involved in some type of psychiatric, psychological, or mental therapeutic care, and his or her patient. She insists that Dr. Perez should have brought special exceptions and allowed her to re-plead. She presents no authority that would support the existence of such a cause of action, nor does she state how she could have repleaded in such a way that would have presented a proper cause of action. She appears to assert that there is a cause of action for negligently having sexual relations when there is an existence of any nature of professional relationship and that such a cause of action does not fall within the realm of professional malpractice. She has not presented any authority for such a cause of action, or for her assertion that it would not fall within the realm of professional malpractice, and we are not aware of any. We also note that in granting summary judgment, the trial court did not state upon which grounds it was granting summary judgment; it may very well be that the trial court granted summary judgment upon the basis that we have already related, that being Sunsinger’s failure to present *500summary judgment proof to show that Dr. Perez’s conduct was outside the applicable standard of care. We overrule Sunsinger’s contentions presented in issue two.
Sunsinger asserts in issue three that the trial court erred by granting the summary judgment because Dr. Perez’s affidavit is incompetent. She initially refers us to an isolated statement in his affidavit that, “Based upon that conversation, I believed as of November 12, 1991, and it is my expert opinion that Ms. Sunsinger and I no longer had a physician/patient relationship and that she had terminated it as of that date.” Just previously, Dr. Perez had stated in his affidavit that Sunsinger had informed him on that date that she was moving to the Dallas area, would be seeing another physician there, and would be requesting a copy of her records in the near future. She argues that summary judgment should not be granted because statements of intent in summary judgment evidence are not readily controvertible. We note, however, that in any event her status as a patient is not material because, even if she was a patient, her claim for medical malpractice must fail because she failed to present summary judgment evidence from an appropriate health professional to refute Dr. Perez’s assertion that his conduct was within the applicable standard of care.
Sunsinger also urges that she was not required to present the sworn testimony of a health care provider to refute Dr. Perez’s testimony regarding the standard of care with respect to what she refers to as the transference-phenomenon because he is not an expert psychologist or psychiatrist and he presented no summary judgment testimony of such an expert mental health professional. As previously noted, Dr. Perez is an M.D. who has a general medicine and family practice. Liability in a medical negligence case is determined by a doctor of the same school of practice as the defendant. See Hart v. Van Zandt, 399 S.W.2d 791, 797 (Tex. 1965). Consequently, Dr. Perez’s testimony is competent on the issue of his liability. That being the case, Sunsinger was required, in the face of Dr. Perez’s affidavit, to present the affidavit of an appropriate expert to refute his assertion that his conduct was within the applicable standard of care. Even if Dr. Perez were treating her as a general practitioner for a psychiatric or psychological condition, he was competent to testify that such treatment was within the applicable standard of care. Sunsinger has provided no authority showing that a defendant general practitioner is required to obtain the affidavit of a specialist in order to sustain a summary judgment where the general practitioner is treating a medical condition that falls within a recognized medical specialty, and we are not aware of any.
Sunsinger also asserts that Dr. Perez’s affidavit is incompetent because he failed to attach any of her medical records to his affidavit. Rule 166a (f) of the Texas Rules of Civil Procedure provides that sworn or certified copies of all papers or parts thereof referred to in an affidavit shall be attached to or served with the affidavit. At the beginning of his affidavit, Dr. Perez stated that, “I have personal knowledge of the facts, statements, opinions, and attachments contained herein and attached hereto based on my care and treatment of HALLIE SUNSINGER, my review of her medical records, and my education, training, and experience in the practice of medicine, and they are true and correct.” He did not attach a copy of Sunsinger’s medical records to his affidavit.
In her response to Dr. Perez’s motion for summary judgment, Sunsinger objected to Dr. Perez’s affidavit, in part because of his failure to attach her medical records to the affidavit. She did not obtain a written ruling on her objection from the trial judge. If an objection to the failure to attach records to an affidavit in support of a motion for summary judgment is made at trial, but no written ruling is obtained from the trial judge, the objection is waived if the objection relates to a defect of form and not of substance. See *501Watts v. Hermann Hospital, 962 S.W.2d 102, 105 (Tex.App. — Houston [1st Dist.] 1997, no writ); Roberts v. Friendswood Development Co., 886 S.W.2d 363, 365 (Tex.App. — Houston [1st Dist.] 1994, writ denied). Although there is possibly a conflict among courts of appeals as to whether the failure to attach records to an affidavit in support of summary judgment is a defect of form or substance, we agree with those courts that hold that such a failure is a defect of form, not of substance. See Mathis v. Bocell, 982 S.W.2d 52, 60 (Tex. App. — Houston [1st Dist.] 1998, no writ); Martin v. Durden, 965 S.W.2d 562, 565 (Tex.App. — Houston [14th Dist.] 1997, pet. denied). Sunsinger, in her objection to the affidavit, referred the trial court to the case of Noriega v. Mireles, 925 S.W.2d 261 (Tex.App. — Corpus Christi 1996, writ denied), as authority for her contention that the defect in the affidavit is one of substance rather than form. Rather, the court in Noriega held that where there is no dispute about what treatment the patient received, but rather what treatment the patient should have received, but did not, and whether the treatment met the applicable standard of care, it is a formal, rather than a substantive defect. See id. at 265. We see no reason why the rule would not be the same in a case such as this where there is no dispute about what treatment the patient received, but what the plaintiff alleges that the physician should not have done, but did, and whether that conduct was violative of the applicable standard of care. We overrule Sunsinger’s contentions in issue three.
Sunsinger asserts in issue four that the trial court erred by granting summary judgment because there is a material fact issue as to whether a doctor-patient relationship existed from November 12, 1991, until December 26,1991 because Dr. Perez indicates that he believed that the doctor-patient relationship terminated on November 12, whereas he acknowledges examining Sunsinger and providing her medication on December 26, 1991, when she saw him at his office after previously moving from the area. Despite Sunsinger s assertion to the contrary, we construe her petition to allege only a cause of action for medical negligence and breach of warranty. Even if Sunsinger was Dr. Perez’s patient at the time they had sexual relations, the issue as to whether the doctor-patient relationship existed at the time they had such relations is not a material fact issue, where summary judgment is warranted based upon her failure to present expert testimony in order to show that Dr. Perez’s conduct, including his having sexual relations with her, was outside the applicable standard of care. We overrule Sunsinger’s contentions contained in issue four.
Sunsinger argues in issue five that the trial court erred in granting summary judgment because the motion did not address her general negligence cause of action. While Sunsinger does allege that she seeks money damages as compensation for her injuries sustained as a result of the “negligence, gross negligence, breach of warranty, and/or malpractice of [Dr. Perez],” she then alleges specific acts of negligence, all of which are related to medical negligence. As we have previously noted, a fair reading of Sunsinger’s petition, taken as a whole, alleges only a cause of action for medical negligence and breach of warranty, not negligence generally. We overrule her contentions as contained in issue five.
Sunsinger, in issue one, merely presents the general issue that the trial court erred in granting summary judgment for Dr. Perez, without presenting any argument or authority on its merits. Her specific bases for her contention that the trial court erred in granting the summary judgment motion are contained in issues two, three, four, and five. Because in our consideration of those issues we have concluded that the trial court did not err in granting summary judgment, we overrule Sunsinger’s contention as contained in issue one.
*502Sunsinger asserts in issue six that the trial court erred by not granting her leave to file a second amended petition. She sought to file the amended petition on December 1, 1997, shortly more than one hour before the trial court signed the order granting summary judgment. The record reflects that the petition had not even been prepared, much less sought to have been filed, at the time that the trial court granted summary judgment in favor of Dr. Perez. The trial court did not abuse its discretion by not granting Sun-singer leave to file an amended petition after the granting of summary judgment in favor of Dr. Perez. See Morris v. Hargrove, 351 S.W.2d 666, 668 (Tex.Civ.App.— Austin 1961, writ ref d n.r.e.). Rule 63 of the Texas Rules of Civil Procedure provides that any pleadings offered for filing within seven days of the date of trial shall be filed only after leave of the judge is obtained, which leave shall be granted unless there is a showing that such filing would operate as a surprise to the opposite party. In this case Dr. Perez was entitled to summary judgment on the basis of the pleadings that were before the court at the time the court ruled on his motion. The second amended petition ultimately filed alleged for the first time that Dr. Perez committed the torts of assault and battery against her in that he intentionally and knowingly caused physical contact with her when he knew or should have reasonably believed that she would regard this contact as offensive and provocative. We hold that the amendment itself constitutes a sufficient showing of surprise to Dr. Perez to justify the trial court’s failure to grant Sunsinger leave to amend her petition.
Sunsinger urges that there was no surprise, that her tort and battery allegation was not a new cause of action but one that was apparent from the context of the allegations of her previously filed amended petition. We disagree. There was absolutely nothing in the previously filed amended petition alleging medical liability and breach of warranty that would have put Dr. Perez on notice that she was claiming that Dr. Perez had committed an assault and battery against her or that she regarded his conduct as offensive and provocative at the time that it occurred. We overrule her contention as presented in issue six.
The judgment is AFFIRMED.