On Application for Rehearing
JOHNSTONE, Justice.The opinion of November 24, 1999, is withdrawn and the following is substituted therefor.
Defendant-petitioner Dr. Botros Rizk petitions this Court for a writ of mandamus directing the trial court to vacate its order denying Dr. Rizk’s motion for summary judgment and to grant him summary judgment on the ground of his qualified immunity from suit. We determine that the writ must be denied.
Luciana Robinson, as administratrix of the estate of Elouise Robinson, deceased, filed a wrongful death action on the theory of medical malpractice pursuant to § 6-5-548, Ala.Code 1975. One of the defendants is Dr. Botros Rizk, a resident at the University of South Alabama Hospitals and Clinics (USAHC), a state institution. The complaint alleges that negligence by Dr. Rizk in performing an emergency caesarean-section delivery and in providing aftercare proximately caused the death of his patient, whose estate the plaintiff Robinson administers.
Dr. Rizk moved for summary judgment. One of his grounds is that his status as a state employee performing a discretionary function immunizes him from suit. The trial judge denied Dr. Rizk’s motion for summary judgment, Dr. Rizk sought permissive appeal under Rule 5, Ala. R.App. P., the trial judge denied permission, and Dr. Rizk petitioned this Court for a writ of mandamus directing the trial judge to grant the motion for summary judgment. While the general rule is that the denial of a motion for summary judgment is not reviewable, the exception is that the denial of a motion for summary judgment grounded on a claim of immunity is reviewable by petition for writ of mandamus. Ex parte Purvis, 689 So.2d 794 (Ala.1996). This Court will address only the issue of qualified immunity, or, as we will call it in this context, State-agent immunity, and will state only the operative facts material to that issue.
Summary judgment is appropriate only when “there is no genuine issue as to any material fact and ... the moving party is entitled to a judgment as a matter of law.” Rule 56(c)(8), Ala. R. Civ. P., Young v. La Quinta Inns, Inc., 682 So.2d 402 (Ala.1996). A court considering a motion for summary judgment will view the record in the light most favorable to the nonmoving party, Hurst v. Alabama Power Co., 675 So.2d 397 (Ala.1996), Fuqua v. Ingersoll-Rand Co., 591 So.2d 486 (Ala. 1991); will accord the nonmoving party all reasonable favorable inferences from the evidence, Fuqua, supra, Aldridge v. Valley Steel Constr., Inc., 603 So.2d 981 (Ala.1992); and will resolve all reasonable doubts against the moving party, Hurst, supra, Ex parte Brislin, 719 So.2d 185 (Ala.1998).
An appellate court reviewing a ruling on a motion for summary judgment will, de novo, apply these same standards applicable in the trial court. Fuqua, supra, Brislin, supra. Likewise, the appellate court will consider only that factual material available of record to the trial court for its consideration in deciding the *913motion. Dynasty Corp. v. Alpha Resins Corp., 577 So.2d 1278 (Ala.1991), Boland v. Fort Rucker Nat’l Bank, 599 So.2d 595 (Ala.1992), Rowe v. Isbell, 599 So.2d 35 (Ala.1992).
Dr. Rizk was a full-time third-year resident at USAHC, a division of the University of South Alabama and a state entity for the purposes of immunity analysis. Sarradett v. University of South Alabama Medical Center, 484 So.2d 426 (Ala.1986). The only compensation he received was his salary paid by USAHC. He was licensed to perform the caesarean section and to provide the aftercare under the supervision of an attending physician.
Robinson, the plaintiff, challenges Dr. Rizk’s status as a state employee by citing facts to the effect that USAHC allowed the attending physician, through a private medical business entity, to bill patients for his services in supervising Dr. Rizk and other residents and to receive private compensation pursuant to such billings. This side agreement, however, does not diminish Dr. Rizk’s status as a state employee, as he received none of the side-agreement moneys. Robinson’s claim against the attending physician is not before us in this case.
The determinative issue is whether Dr. Rizk is protected from Mrs. Robinson’s suit by State-agent immunity. Our recent case of Ex parte Cranman, 792 So.2d 392 (Ala.2000), recounts the evolution of State-agent immunity, restates the law of State-agent immunity, and, according to that restatement, decides this very same issue — whether a physician employed by a state university in its health facility is immune from suit for negligence in treating a patient there. Cranman holds that the physician is not protected by State-agent immunity. Cranman controls this case.
The restatement in Cranman reads:
“We therefore restate the rule governing State-agent immunity:
“A State agent shall [emphasis in original] be immune from civil liability in his or her personal capacity when the conduct made the basis of the claim against the agent is based upon the agent’s
“(1) formulating plans, policies, or designs; or
“(2) exercising his or her judgment in the administration of a department or agency of government, including, but not limited to, examples such as:
“(a) making administrative adjudications;
“(b) allocating resources;
“(c) negotiating contracts;
“(d) hiring, firing, transferring, assigning, or supervising personnel; or
“(3) discharging duties imposed on a department or agency by statute, rule, or regulation insofar as the statute, rule, or regulation prescribes the manner for performing the duties and the State agent performs the duties in that manner; or
“(4) exercising judgment in the enforcement of the criminal laws of the State, including, but not limited to, law-enforcement officers’ arresting or attempting to arrest persons; or
“(5) exercising judgment in the discharge of duties imposed by statute, rule, or regulation in releasing prisoners, counseling or releasing persons of unsound mind, or educating students.
“Notwithstanding anything to the contrary in the foregoing statement of the rule, a State agent shall not [emphasis in original] be immune from civil liability in his or her personal capacity
“(1) when the Constitution or laws of the United States, or the Constitution of *914this State, or laws, rales, or regulations of this State enacted or promulgated for the purpose of regulating the activities of a governmental agency require otherwise; or
“(2) when the State agent acts willfully, maliciously, fraudulently, in bad faith, beyond his or her authority, or under a mistaken interpretation of the law.”
792 So.2d at 405. Dr. Rizk’s treatment of his patient, the plaintiffs decedent, does not fit within any of the categories of immune State-agent conduct contained in the Cranman restatement. Therefore, Dr. Rizk is not immune.
Accordingly, the trial court did not err in rejecting Dr. Rizk’s claim of immunity in the summary-judgment proceedings. Thus, the petitioner is not entitled to a writ of mandamus directing the trial judge to enter summary judgment.
APPLICATION GRANTED; OPINION OF NOVEMBER 24, 1999, WITHDRAWN; OPINION SUBSTITUTED; WRIT DENIED.
HOOPER, C.J., and HOUSTON, LYONS, and ENGLAND, JJ., concur. COOK and BROWN, JJ., concur in the result. MADDOX and SEE, JJ., dissent. COOK, Justice(concurring in the result).
I concur in the result. See my special writing concurring in the judgment in Ex Parte Cranman, 792 So.2d 392 (Ala.2000).