This appeal arises from a denial of Medicaid coverage by the Idaho Department of Health and Welfare (Department) for a gastric bypass surgery deemed to be medically necessary by the appellant’s physicians. We vacate the order of the district court denying coverage and remand for further proceedings consistent with this opinion.
I.
BACKGROUND
Sheila McCoy is disabled and receives aid under the Supplemental Security Income (SSI) program. As an SSI recipient, McCoy is also entitled to medical coverage under Medicaid. McCoy’s primary medical problem, from which she has suffered since the age of 12, is morbid obesity. This has resulted in a number of other health problems including congestive heart failure, hypertension, sleep apnea, and severe joint problems. McCoy has attempted a number of eating programs to reduce her weight all of which have been unsuccessful. McCoy’s doctor ultimately referred her to a physician in Salt Lake City for evaluation as a pоssible candidate for gastric bypass surgery. The consulting physician concluded that the surgery was appropriate in McCoy’s case and, in his opinion as well as that of McCoy’s primary physician, would correct most of her other health problems as well.
The Department conducted a hearing at which both of McCoy’s physicians testified that the surgery was medically necessary to treat McCoy’s health problems. Notwithstanding this finding of medical necessity, which was uncontested by the Department, reimbursement for the surgery was denied based upon a state regulation excluding coverage for all medical procedures for the treatment of obesity. The hearing officer refused to invalidate this regulation as viola-tive of federal law and McCoy appealed the Department’s decision to the district court. The district court affirmed the Department’s order excluding coverage finding it appropriate for a state to prioritize the medical needs of its citizens and restrict coveragе of specific conditions based upon the state’s financial position.
II.
STANDARD OF REVIEW
On appeal, we will review an agency’s decision independent of the district court’s determination.
Boise Group Homes, Inc. v. Idaho Dep’t of Health & Welfare,
123 Idaho
*794
908, 909,
(a) in violation of constitutional or statutory provisions;
(b) in excess of the statutory authority of the agency;
(e) made upon unlawful procedure;
(d) not supported by substantial evidenсe on the record as a whole; or
(e) arbitrary, capricious, or an abuse of discretion.
Willig v. Idaho Dep’t of Health & Welfare,
III.
MEDICAID COVERAGE OF SURGERY
Title XIX of the Social Security Act establishes Medicaid and authorizes grants to states in order to finance medical care for indigent Americans. 42 U.S.C. §§ 1396-1396v. Each state’s participation in Medicaid is optional, but once a state voluntarily elects to participate in the program, it must cоmply with the requirements imposed by the Act and applicable regulations.
Alexander v. Choate,
Payment for McCoy’s surgery was denied by the Department in this case pursuant to a state regulation which excludes from coverage the costs of physician and hospital services for “[a]ll medical procedures for the treatment of obesity.” IDAPA 16.03.09065.02.1. McCoy asserts that the Department must provide coverage for her surgery since both her primary physician and attending specialist deemed it medically necessary to treat her congestive heart failure, hypertension, sleep apnea, and joint problems. The medical necessity of the gastric bypass surgery was not contested by the Department and, in fact, the hearing officer noted in his findings that McCoy’s congestive heart problem, sleep apnea, joint problems, and, more than likely, her hypertension, would be fully resolved following the elimination of McCoy’s obesity and conceded the medical necessity of the surgery.
Neither Title XIX nor the federal regulations explicitly provide that coverage of every procedure that a physician may deem medically necessary is required.
1
The United States Supreme Court has similarly failed to provide state agencies and courts with clear direction on this issue noting only that “serious statutory quеstions might be presented if a state Medicaid plan excluded necessary medical treatment from its coverage.”
Beal,
The United States Supreme Court has given the states some guidance, however, and stated that they have broad discretion to adopt standards for determining the extent of medical assistance they will provide, “requiring only that such standards be ‘reasonable’ and ‘consistent with the objectives’ оf [Title XIX].”
Beal,
For the purpose of enabling each State, as far as practicable under the conditions of such State, to furnish (1) medical assistance on behalf of ... disabled individuals, whose income and resources are insufficient to meet the costs of necessary medical services ... there is hereby authorized to be appropriated....
Id. at 124 (emphasis in original) (quoting 42 U.S.C. § 1396). The сourt “hesitate[d] to draw the words ‘necessary medical services’ from their context — an appropriations section — and in effect transport them into a contents section requirement.” Id. at 125.
As the court in Preterm noted, there should actually be two levels of judgment as to medical necessity in the scheme set up under Title XIX. Id. The first is the “macro-decision” by the state that only certain kinds of medical assistance are sufficiently necessary to fall under the coverage of its plan and the second is the “micro-decision” of the physician that the condition of a particular patient warrants treatment which the state plan makes available. Id. The Idaho regulation at issue here, i.e. the exclusion of all procеdures for the treatment of obesity, reflects Idaho’s “macro-decision” that medical assistance for all services that may be used to treat obesity is never sufficiently necessary to warrant coverage. The question this Court must ask then, is whether this exclusion is both “reasonable” and “consistent with the objectives” of Title XIX.
Clearly, when a statе singles out a particular medical condition and restricts treatment for that condition to life and death situations, it is both “unreasonable” and wholly inconsistent with Title XIX’s objective of providing medical assistance to eligible individuals in need of medical assistance.
See, e.g., Id.
at 126. In addition, although “a state may reasonably exclude some proсedures on the basis that they are never, or generally never, of sufficient medical necessity,”
Hodgson v. Board of County Comm’rs, County of Hennepin,
In
Morgan v. Department of Health & Welfare,
[t]he clear evidence in the record establishes that the treatment prescribed is not a procedure to treat obesity as contemplated in the regulations. Rather, the weight loss program, like the prior medications and spinal taps which the Department has paid for, and the spinal shunt which the Department acknowledges it will pay if performed, is for the treatment of Morgan’s condition of pseudotumor cerebri. The fact that the weight loss program may secondarily treat obesity is not dispositive. The primary purpose for the treatment is to treat the pseudotumor cerebri and the prescribed program should be paid by the Department.
Id.
at 11,
As was the case in Morgan, extensive efforts have been made to treat McCoy’s congestive heart failure, hypertension, sleep apnea, and joint problems through means approved under the regulations. Realistically, the оverall cost to the public for McCoy’s continued ineffective treatment may easily exceed the cost of this single procedure which both of McCoy’s doctors contend is medically necessary. 2 This is not cosmetic surgery but surgery designed to resolve debilitating and potentially life-threatening conditions. McCoy is entitled to some form of treatment for these conditions under the law and the public will pay for that treatment. The question is whether she will continue to receive the ineffective, and certainly not curative, treatment that the regulations allow or the medically necessary treatment that may successfully and finally resolve her chronic health problems.
It follows, then, that IDAPA 16.03.09065.02.1. must be seen as an unreasonable exclusion that arbitrarily denies funding for all procedures that may be considered a treatment for obesity even though a particular procedure may be the only treatment, or even the best treatment, available for a condition not excluded under Idaho’s plan. We hold that this overbreadth is fatal and that the regulation must be struck as inconsistent with the objectives of Title XEX. We note in passing, however, that this opinion does not address whether the exclusions of certain procedures noted in the regulations, e.g. gastric stapling or intestinal bypass surgery, are reasonable and may properly be used to exclude MсCoy’s gastric bypass sur *797 gery as this question has not been presented to us.
IV.
AUTHORITY OF HEARING OFFICER
McCoy argues that the hearing officer had the jurisdiction and authority to invalidate the Department’s regulation. We have determined that the Department’s regulation at issue in this case, IDAPA § 16.03.09065.02.1., is unreasonable and an arbitrary exclusion of coverage inconsistent with the objectives of Title XIX, and is, thus, invalid. We find it therefore unnecessary to reach the issue of whether the hearing officer had either the jurisdiction or the authority to do the same.
V.
ATTORNEY FEES
McCoy also argues that she is entitled to attorney fees incurred on her appeal. A successful litigant is generally not entitled to recover attorney fees unless such recovery is provided by statute.
Kidwell & Heiser v. Fenley,
A cause of action under 42 U.S.C. § 1983 is available to any person wrongfully deprived by the state of a right, privilege, or immunity secured by federal law.
Maine v. Thiboutot,
McCoy also claims entitlement to attorney fees under I.C. § 12-121. This section provides that “in any civil action,” the judge may аward the prevailing party reasonable attorney fees. McCoy brought this matter before the district court on appeal from the hearing officer’s decision. That proceeding does not constitute a “civil action” as defined by I.R.C.P. 3(a) and attorney fees are, therefore, not available under I.C. § 12-121.
Lowery v. Board of County Comm’rs,
Finally, McCoy asserts an awаrd of attorney fees under I.C. § 12-117. This section provides that in a “civil judicial proceeding” between a person and a state agency, the court shall award the person attorney fees if the state agency acted “without a reasonable basis in fact or law.” I.C. § 12-117. This Court has held that the policy behind this statute is to serve as a deterrent to groundless or arbitrary agency action and to provide a remedy for those who must bear unjustified expense attempting to correct agency mistakes that should never have been made.
Idaho Dep’t of Law Enforcement v. Kluss,
In this case the Department defended its decision to deny McCoy’s surgery based solely upon the exclusion from coverage for all medical procedures for the treatment of obesity under IDAPA § 16.03.09065.02.1. Although the Department’s justification for denying coverage was in error for the reasons stated in this opinion, its defense of this position was certainly not so unreasonable as to justify the imposition of attorney fees under I.C. § 12-117.
VI.
CONCLUSION
The decision of the hearing officer is hereby vacаted. Because the regulation on which the hearing officer based his decision to deny coverage of McCoy’s gastric bypass surgery is invalid we remand this case back to the Department for further proceedings consis *798 tent with this opinion. No costs or attorney fees awarded on appeal.
Notes
. Although "medical necessity" is not defined by either federal or state statute or regulation, we have previously noted that a surgery is medically necessary “if there is a stabilization or improvement in the functioning of a body part, or if the procedure relieves pain.”
Viveros v. State Dep’t of Health & Welfare,
. The potential cost differential seen here between the allowed treatment and a more effective though excluded treatment is highlighted most clearly in a case like
Morgan
where, if the patient had actually been diagnosed as obese, the regulations would not have paid for the simple and relatively inexpensive weight loss program but, perversely, would have allowed brain surgery, apparently the only treatment alternative for the patient’s pseudotumor cerebri.
Id.
at 10-11,
