dissenting.
The majority’s opinion affirms the trial court’s grant of summary judgment in favor of defendants and defendant-intervenors and holds that Bio-Medical Applications of North Carolina, Inc.’s (“BMA”) claims, and judicial review thereof, are barred by sovereign immunity. Because sovereign immunity does not bar judicial review of BMA’s claims, I vote to reverse the trial court’s order. I respectfully dissent.
I. Background
On 1 July 2004, North Carolina Department of Health and Human Services, Division of Facility Services (“DFS”) published the July 2004 Semiannual Dialysis Report (“SDR”) which determined a need for ten additional dialysis stations in Wake County as a result of data provided by the Kidney Council to North Carolina Department of Health and Human Services, Division of Facility Services, Medical Facilities Planning Section (“the Planning Section”). On 1 July 2004, Jim Swann (“Swann”), Regional Director of Health Services for BMA, contacted Jim Keene (“Keene”), a planner with the Planning Section. Swann noted an error in the data which indicated fifty-two patients were receiving services at BMA’s Fuquay-Varina dialysis facility, when the actual census was only fifty-one patients.
*494But for the Kidney Council’s error, no additional need determination would have occurred, and the utilization of existing dialysis stations would have remained below eighty percent. Keene recalculated the dialysis station need, but failed to make any changes in the SDR based on the corrected data Swann provided. On 2 July 2004, Swann contacted the Kidney Council, which acknowledged the correct census was fifty-one patients. Later that day, Swann spoke with Keene to see whether the Kidney Council had contacted him to correct the miscalculation. Swann discovered the Kidney Council had not yet contacted Keene.
On 13 July 2004, the Kidney Council contacted Swann, confirmed that the reported patient census was erroneous, and stated it would contact the Planning Section. On 16 July 2004, Jenna Krisher, the Executive Director of the Kidney Council, sent an e-mail to Keene admitting the error and stated the correct patient census for BMA’s Fuquáy-Varina facility was fifty-one patients as of 31 December 2003.
On 19 July 2004, Swann sent a letter to Keene and requested DFS amend the SDR to reflect the actual census of fifty-one patients. On 20 July 2004, Keene responded in a letter and stated in pertinent parts:
[T]he Agency relies on data provided by the Southeastern Kidney Council (SEKC) for the “Semiannual Dialysis Reports (SDR).” The timeline for production of each issue of that report is established in the State Medical Facilities Plan. The timeline for the “July 2004 SDR” indicated that data for the period ending December 31, 2003 would be reported by the SEKC on May 12, 2004 for the report to be published on July 1, 2004. The Agency must adhere to this timeline.
[T]he current Agency practice regarding revision of need determinations based on changes in inventory, a different but parallel issue, does not allow a need determination to be “reduced if the relevant inventory is adjusted upward 60 days or less prior to the applicable ‘Certificate of Need Application Due Date.' ” Applications for need determinations in the “July 2004 SDR” are due on September 15, 2004. Even if an amendment was recommended, there is not sufficient time for 60 days advance notice to other interested parties.
*495 The Agency will adhere to the timelines as published in the State Medical Facilities Plan.
(Emphasis supplied).
Under the July 2004 SDR, the due date for Certificate of Need (“CON”) Applications was 15 September 2004, with a scheduled 1 October 2004 review date. DFS failed to amend the July 2004 SDR, and began accepting applications for CONs. BMA filed suit against defendants seeking a declaratory judgment, preliminary and permanent injunctions, and petition for writ of mandamus. On 13 September 2002, Judge Howard Manning issued a temporary injunction, which “prohibited [defendants] from issuing a certificate of need to any person for the development or operation of any dialysis stations in Wake County as a result of the [ten]-station county need determination set forth in the July 2004 SDR . . . .”
On 16 November 2004, Judge Henry W. Hight, Jr., converted defendants’ Rule 12(b)(1) motion to dismiss into a motion for summary judgment, granted summary judgment in favor of defendants, and dismissed BMA’s claims for lack of subject matter jurisdiction due to sovereign immunity. Plaintiff appeals.
II. Issues
On appeal, BMA argues: (1) the trial court erred in dismissing its claims based on the doctrine of sovereign immunity; (2) the Planning Section abused its discretion in failing to amend the SDR; (3) the Governor was not the person or entity with the authority to amend the SDR; (4) the trial court erred in converting defendants’ motion to dismiss to a motion for summary judgment; (5) BMA’s claims are not moot; and (6) if not properly before the trial court, BMA’s action may be brought before the Office of Administrative Hearings.
The majority’s opinion erroneously affirms the trial court’s grant of summary judgment on the grounds of sovereign immunity.
III. Standing
A. “Person Aggrieved”
Under N.C. Gen. Stat. § 150B-43 (2005):
[a]ny person who is aggrieved by the final decision in a contested case, and who has exhausted all administrative remedies made available to him by statute or agency rule, is entitled to judicial *496review of the decision under this Article, in which case the review shall be under such other statute. Nothing in this Chapter shall prevent any person from invoking any judicial remedy available to him under the law to test the validity of any administrative action not made reviewable under this Article.
(emphasis supplied).
A “person aggrieved” is defined as “any person or group of persons of common interest directly or indirectly affected substantially in his or its person, property, or employment by an administrative decision.” N.C. Gen. Stat. § 150B-2(6) (2005); see Carter v. N.C. State Bd. of Registration, 86 N.C. App. 308, 313, 357 S.E.2d 705, 708 (1987) (a person aggrieved means one who is adversely affected in respect to legal rights, or is suffering from an infringement or denial of legal rights).
BMA is an aggrieved party because BMA’s in-center dialysis services are adversely affected by the Planning Section’s refusal to amend the SDR. DFS illegally allowed CON applications to be filed when the utilization of dialysis stations remained below eighty percent.
B. “Contested Case”
A contested case is defined as:
an administrative proceeding pursuant to this Chapter to resolve a dispute between an agency and another person that involves the person’s rights, duties, or privileges, including licensing or the levy of a monetary penalty. “Contested case” does not include rulemaking, declaratory rulings, or the award or denial of a scholarship, a grant, or a loan.
N.C. Gen. Stat. § 150B-2(2) (2005); see Davis v. Hiatt, 326 N.C. 462, 465, 390 S.E.2d 338, 340 (1990) (The petitioner, whose driving privilege was mandatorily suspended under N.C. Gen. Stat. §§ 20-17(2) and 20-19(e), did not have the right to appeal under this Chapter. However, the superior court could review the actions of the Commissioner by issuing a writ of certiorari.).
BMA appeals from a contested case because the Planning Section’s failure to amend the SDR affects BMA’s rights, duties, and privileges in the required utilization of in-center dialysis services. All parties stipulated BMA exhausted any administrative remedies available to adjudicate the issues raised in its complaint.
*497BMA correctly invoked judicial remedies available under the statutes and case law to test the validity of DFS’s administrative action and inaction. N.C. Gen. Stat. § 150B-43. BMA has standing under N.C. Gen. Stat. § 150B, The Declaratory Judgment Act, N.C. Gen. Stat. § 1-254, and established case law to assert these claims and the trial court possessed jurisdiction to review and rule on BMA’s claims. See Bland v. City of Wilmington, 278 N.C. 657, 659, 180 S.E.2d 813, 815 (1971) (The Declaratory Judgment Act permits any person affected by a statute or municipal ordinance to obtain a declaration of his rights thereunder.).
IV. Standard of Review
The trial court converted defendants’ motion to dismiss into a motion for summary judgment by reviewing affidavits and other documents outside of the pleadings. See N.C.R. Civ. P. 56(c) (2005); Stanback v. Stanback, 297 N.C. 181, 205, 254 S.E.2d 611, 627 (1979) (a motion to dismiss for failure to state a claim under N.C. Gen. Stat. § 1A-1, Rule 12(b)(6) was converted to a motion for summary judgment when matters outside the pleadings were presented to and not excluded by the court).
The movant for summary judgment has the burden of establishing that there are no genuine issues of material fact and that it is entitled to judgment as a matter of law. Hines v. Yates, 171 N.C. App. 150, 157, 614 S.E.2d 385, 389 (2005). The movant can meet the burden by either: (1) Proving that an essential element of the opposing party’s claim is nonexistent or (2) Showing through discovery that the opposing party cannot produce evidence sufficient to support an essential element of his claim nor [evidence] sufficient to surmount an affirmative defense to his claim. Id.
When a motion for summary judgment is made and supported as provided in this rule, an adverse party may not rest upon the mere allegations or denials of his pleading, but his response, by affidavits or as otherwise provided in this rule, must set forth specific facts showing that there is a genuine issue for trial. If he does not so respond, summary judgment, if appropriate, shall be entered against him.
Id. “On appeal, an order allowing summary judgment is reviewed de novo.” Howerton v. Arai Helmet, Ltd., 358 N.C. 440, 470, 597 S.E.2d 674, 693 (2004).
*498V. Sovereign Immunity
The majority’s opinion holds the trial court properly granted summary judgment because it was without subject matter jurisdiction under the doctrine of sovereign immunity. I disagree.
It is well-established that a state and its agencies may not be sued unless sovereign immunity is waived. Guthrie v. State Ports Authority, 307 N.C. 522, 534, 299 S.E.2d 618, 625 (1983). “[North Carolina] has expressly waived sovereign immunity for various types of civil actions.” Ferrell v. Dep’t of Transp., 334 N.C. 650, 654, 435 S.E.2d 309, 312 (1993); see, e.g., N.C. Gen. Stat. § 143-135.3(d) (2005) (permitting suit for certain contract claims after procedural remedies are exhausted).
Our Supreme Court has held that the State may also implicitly waive its immunity through conduct. See Smith v. State, 289 N.C. 303, 320, 222 S.E.2d 412, 423-24 (1976) (The State implicitly consented to the suit when it entered into a valid contract); see also N.C. Gen. Stat. § 143-291(a) (2005) (sovereign immunity waived by enactment of the North Carolina Tort Claims Act: “If the Commission finds that there was negligence on the part of an officer, employee, involuntary servant or agent of the State while acting within the scope of his office, employment, service, agency or authority that was the proximate cause of the injury and that there was no contributory negligence on the part of the claimant or the person in whose behalf the claim is asserted, the Commission shall determine the amount of damages that the claimant is entitled to be paid[.]”); Bell Arthur Water Corp. v. N.C. Dep’t of Transp., 101 N.C. App. 305, 310, 399 S.E.2d 353, 356 (The State implicitly waived immunity by law requiring DOT to compensate injured party), disc. rev. denied, 328 N.C. 569, 403 S.E.2d 507 (1991).
A. Ministerial versus Discretionary Duties
North Carolina case law distinguishes between discretionary duties and ministerial duties under the immunity doctrine. “Discretionary acts are those requiring personal deliberation, decision and judgment; duties are ministerial when they are ‘absolute, certain, and imperative, involving merely the execution of a specific duty arising from fixed and designated facts.’ ” Meyer v. Walls, 347 N.C. 97, 113, 489 S.E.2d 880, 889 (1997) (quoting Hare v. Butler, 99 N.C. App. 693, 700, 394 S.E.2d 231, 235-36, disc. rev. denied, 327 N.C. 634, 399 S.E.2d 121 (1990)).
*499Sovereign, governmental, or public officer immunity generally only applies to discretionary actions, not to ministerial actions. See Miller v. Jones, 224 N.C. 783, 787, 32 S.E.2d 594, 597 (1945) (officer charged with discretionary duty cannot be liable for negligence, but officer charged with ministerial duty can be liable for misfeasance); Hipp v. Ferrall, 173 N.C. 167, 170, 91 S.E. 831, 832 (1917) (distinguishing between discretionary and ministerial actions, holding that a public officer charged with a ministerial duty may be personally liable for negligent breach).
The proper action to require an agency to perform a ministerial duty is a declaratory judgment and a petition for writ of mandamus, both of which were asserted by BMA in its complaint. N.C. Gen. Stat. § 1-254 (2005); see Bland v. City of Wilmington, 278 N.C. 657, 659, 180 S.E.2d 813, 815 (1971) (the declaratory judgment act permits any person affected by a statute or municipal ordinance to obtain a declaration of his rights thereunder); see also Ragan v. County of Alamance, 330 N.C. 110, 112, 408 S.E.2d 838, 839 (1991) (“[A] superior court has the inherent power to issue a writ of mandamus to the County Commissioners requiring them to provide adequate court facilities.”).
Under N.C. Gen. Stat. § 131E-177(1) (2005):
the Department of Health and Human Services is designated as the State Health Planning and Development Agency for the State of North Carolina, and is empowered to exercise the following powers and duties: (1) To establish standards and criteria or plans required to carry out the provisions and purposes of this Article and to adopt rules pursuant to Chapter 150B of the General Statutes, to carry out the purposes and provisions of this Article.
(Emphasis supplied).
When reviewing criteria for a CON, “[t]he Department is authorized to adopt rules for the review of particular types of applications that will be used_” N.C. Gen. Stat. § 131E-183(b) (2005).
Under both Chapter 150B, Administrative Procedure Act, and Chapter 131E, Certificate of Need, the North Carolina Administrative Code delegates rule making to defendants and sets out the procedure to be used for changes in need determinations. N.C. Admin. Code tit. 10A, 14B.0155(b) (2006); N.C. Admin. Code tit. 10A, 14A.0102 (2006). The plain language of the Administrative Code states:
*500(1) The need determinations in 10A NCAC 14B.0156 through 10A NCAC .0181 shall be revised continuously by the Medical Facilities Planning Section throughout the calendar year to reflect all changes in the inventories of:
(D) dialysis stations
as those changes are reported to the Medical Facilities Planning Section. However, need determinations in 10A NCAC 14B .0156 through 10A NCAC 14B .0181 shall not be reduced if the relevant inventory is adjusted upward 30 days or less prior to the first day of the applicable review period.
(2) Inventories shall be updated to reflect:
(G) corrections of errors in the inventory as reported to the Medical Facilities Planning Section.
(4) Need determinations resulting from changes in inventory shall be available for a review period to be determined by the Certificate of Need Section, but beginning no earlier than 60 days from the date of the action identified in Subparagraph (b)(2) of this Rule, except for dialysis stations which shall be determined by the Medical Facilities Planning Section and published in the next Semiannual Dialysis Report. Notice of the scheduled review period for the need determination shall be mailed by the Certificate of Need Section to all persons on the mailing list for the State Medical Facilities Plan, no less than 45 days prior to the due date for submittal of the new applications.
N.C. Admin. Code tit. 10A, 14B.0155(b)(l)-(4) (2006) (emphasis supplied).
We apply the rules of statutory construction when interpreting a statute, ordinance, or administrative code. Campbell v. Church, 298 N.C. 476, 484, 259 S.E.2d 558, 564 (1979). The principal rule of statutory construction is the legislature’s intent controls. Id. A statute that is clear and unambiguous must be construed using its plain lan*501guage. Burgess v. Your House of Raleigh, Inc., 326 N.C. 205, 209, 388 S.E.2d 134, 136 (1990). Here, the Administrative Code’s plain language states that the Planning Section shall continuously revise need determinations. Under the statutes and the Administrative Code, the Planning Section lacked discretion to determine whether to amend the SDR and was ministerially required to correct and update inventories “to reflect. . . .(G) corrections of errors in the inventory as reported . . . .” N.C. Admin. Code tit. 10A, 14B.0155(b)(2)(g). The .Administrative Code’s mandatory language requires that the Planning Section shall perform ministerial duties. Id.
In addition to failing to perform a ministerial act required by the Administrative Code regulations, DFS and the Planning Section also waived any defense of sovereign immunity. In their answer to BMA’s complaint, defendants stated:
20. Defendants admit that had the final, audited count of in-center dialysis patients that was reported by the [Kidney Council] to CMS shown that there were 51 patients at BMA’s Fuquay Varina facility as of December 31, 2003, there would not have been a need determination for ten dialysis stations in Wake County reported in the July 2004 SDR.
24. Defendants admit that Keene did confirm to Swann that Swann was using the correct mathematical steps to calculate need, that Keene told Swann that he could not accept patient data from Swann and that Keene stated that all data for the SDR must come through the [Kidney Council].
27. Director Fitzgerald... stated that he was not inclined to seek an amendment to the July 2004 SDR, although he had not made his final decision on the matter at that time.
30. Defendants admit that the Planning Section received the e-mail attached as Exhibit B to the Complaint.
48. Defendants admit that after publication of the July, 2004 SDR, the Planning Section was contacted by the [Kidney Council] and informed that [the Kidney Council] had received additional infor*502mation which indicated that 51 patients were receiving dialyses at BMA’s Fuquay-Varina facility on December 31, 2003.
51. Defendants admit that had the audited data reported to CMS by the [Kidney Council] shown 51 patients dialyzing at BMA’s Fuquay Varina facility as of December 31, 2003, there would have been no need determination for dialysis stations in Wake. County reported in the July 2004 SDR.
(Emphasis supplied).
Defendants admitted they received the corrected census count from the Kidney Council for fifty-one patients on 2 July 2004. Defendants also admitted: (1) the Kidney Council was the sole provider of this information; (2) they received revised information in July 2004; (3) more than thirty days prior to the first date of review for the CON applications; (4) and within forty-five days prior to the due date for submittal of the new CON applications. See N.C. Admin. Code tit. 10A, 14B.0155(b) (2006). Defendants also admitted no need was shown for additional dialysis stations in Wake County, given the corrected census count of fifty-one patients and a utilization rate below eighty percent for existing dialysis stations.
Under the plain language of the Administrative Code, defendants were ministerially required to continuously revise need determinations. See N.C. Admin. Code tit. 10A, 14B.0155(b) (“the need determinations . . . shall be revised continuously by the . . . Planning Section throughout the calendar year . . . .” (emphasis supplied)). The execution of this specific ministerial duty arose from fixed and admitted facts and regulations pursuant the Administrative Code.
Defendants’ duty to revise need determinations was not discretionary and did not invoke immunity. Defendants’ refusal to correct the erroneous data and cancel the application process was unlawful, arbitrary, and capricious. The trial court erred in granting summary judgment in favor of defendants based upon sovereign immunity.
VI. The Governor’s Authority to Amend
The majority’s opinion states, “[p]ursuant to Frye, the Governor has the authority to amend the SMFP .... [T]he Governor is the proper party with the authority to amend the SDR.”
The Frye Court states, “the Governor has the authority to make substantive changes by amending the SMFP to ensure that its provi*503sions are properly executed under the statutes.” Frye Regional Medical Facility v. Hunt, 350 N.C. 39, 44, 510 S.E.2d 159, 162-62 (1999). Frye does not state that the Governor has the sole authority to amend the SMFP, or that his authority is required to amend an SDR. The reliance of majority’s opinion on Frye to support its conclusion is misplaced. Neither Frye nor the statutes contemplate or require BMA to petition the Governor to amend the SDR prior to seeking and obtaining judicial relief.
The Administrative Code states, “[t]he neéd determinations . . . shall be revised continuously by the Medical Facilities Planning Section throughout the calendar year to reflect all changes in the inventories of . . . dialysis stations.” N.C. Admin. Code tit. 10A, 14B.0155(b)(l)(D) (2006) (emphasis supplied). Under the plain language of the Administrative Code, the Planning Section has the authority, a duty, and “shall” continuously revise the SDR. Id.
VII. Conclusion
The practical effect of the majority’s decision is to remove from judicial review and remedy a state administrative agency’s decision under the guise of sovereign immunity. N.C. Admin. Code tit. 10A, 14B.0155(b). The North Carolina General Assembly expressly waived sovereign immunity by enacting N.C. Gen. Stat. § 150B-43 and the Declaratory Judgment Act, N.C. Gen. Stat. § 1-254. A state agency cannot assert sovereign immunity as a defense to claims by an aggrieved party adversely affected by that agency’s action or inaction. Judge Manning expressly recognized the availability of judicial review and issued an injunction, a judicial remedy, to prevent DFS from proceeding to issue certificates of need based on erroneous data which generated the need. Nothing in the record shows DFS defended or objected to entry of this injunction based upon an assertion of sovereign immunity.
The Administrative Code clearly requires defendants to correct the SDR when erroneous data is timely brought to its attention as a ministerial duty. BMA’s requested remedies of declaratory judgment and petition for writ of mandamus are expressly recognized by N.C. Gen. Stat. § 150B-43, the Declaratory Judgment Act, and prior precedents.
BMA’s requested review and remedies have been recognized for centuries as an inherent right and authority of the Judicial Branch and under the North Carolina Constitution to compel a governmental *504agency to perform a ministerial duty owed to BMA. See N.C. Const., Art. I, § 18 (“All courts shall be open; every person for an injury done him in his lands, goods, person, or reputation shall have remedy by due course of law; and right and justice shall be administered without favor, denial, or delay.”); Marbury v. Madison, 5 U.S. 137, 163, 2 L. Ed. 60, 69 (1803) (“where there is a legal right, there is also a legal remedy by suit, or action at law, whenever that right is invaded”); Augur v. Augur, 356 N.C. 582, 586-87, 573 S.E.2d 125, 129 (2002) (“We believe it more consistent with the [declaratory judgment] statute to vest [trial] courts with discretion in the first instance, because facts bearing on the usefulness of the declaratory judgment remedy, and the fitness of the case for resolution, are peculiarly within their grasp. . . .”).
BMA immediately presented DFS with undisputed proof of the erroneous data. DFS admitted, using the corrected data, it possessed neither power nor authority under the statutes or Administrative Code to solicit CON applications for additional dialysis stations in Wake County, if the utilization rate was below eighty percent. The corrected data was furnished to DFS well within the time period required in the Administrative Code to cancel the solicitation. See N.C. Admin. Code tit. 10A, 14B.0155(b). DFS was required to correct the error and to cancel the solicitation for CON applications as a ministerial duty.
It is undisputed that DFS received the corrected patient census long before the Administrative Code and statutes would have allowed additional beds to be added under a new CON.
The Judicial Branch and the General Court of Justice possesses the statutory jurisdiction to review defendants decision and power to compel defendants to comply with the statutes and Administrative Code to correct its admitted error. Sovereign Immunity does not remove jurisdiction to prevent the court’s review of BMA’s claims. The majority’s opinion is an unprecedented abdication of the court’s essential statutory and constitutional duty to provide judicial review .and remedies to BMA’s claims.
The trial court erred in granting summary judgment for defendants based on sovereign immunity. The trial court’s order should be reversed. I respectfully dissent.