Opinion
Plaintiffs County of San Diego et al. (San Diego plaintiffs) and plaintiff interveners appeal the portion of a judgment after court trial finding no constitutional violation in the allocation among counties of mental health funds under the Short-Doyle Act (Welf. & Inst. Code,1 former § 5600 et seq.) by the state’s Department of Mental Health (Department). We affirm the portion of the judgment determining the funding allocations were constitutional.
Defendants Kathleen Brown et al. (the state defendants) and defendant interveners appeal the portions of the judgment declaring unconstitutional the Department’s allocation of state hospital beds among counties, ordering the Department to reallocate beds, granting injunctive relief against defendants and awarding plaintiff counties damages as compensation for charges for past bed overuse. The state defendants also challenge the court’s findings they violated former section 5600 and the Administrative Procedure Act (APA) (Gov. Code, § 11340 et seq.). We reverse the portions of the judgment declaring the bed allocations unconstitutional, ordering bed reallocation, enjoining defendants and awarding damages. We reverse the portions of the judgment involving claims of violations of former section 5600 and the APA with directions to the superior court to dismiss those claims as moot.
Plaintiffs County of Fresno et al. (Fresno plaintiffs) appeal the portion of the judgment denying their claim against the Department under the federal Rehabilitation Act of 1973 (FRA) (29 U.S.C. § 794) for reimbursement of funds expended by Fresno in treating its Lanterman-Petris-Short Act (LPS) conservatee Robert S. We affirm that portion of the judgment.
The Department’s Director Stephen W. Mayberg (Director) petitions for extraordinary relief directing the superior court to stay an order of contempt and to take no action to enforce those portions of the judgment requiring the Department to provide state hospital beds to counties without reimbursement. We grant the petition and direct the superior court to dismiss the contempt proceedings as moot.
Allocation of Mental Health Funding and State Hospital Beds
A
Introduction
This litigation primarily involves a constitutional challenge by various plaintiffs including several counties to the Department’s allocation of mental health resources within California.2 Plaintiffs claimed the inequitable distribution of such resources, specifically allocations to the counties of funds and state hospital beds, was without rational basis and thus unconstitutional under the due process and equal protection clauses of the federal and state Constitutions. Plaintiffs also claimed the state defendants violated former section 5600, the APA and the FRA.
After trial the superior court concluded the state defendants violated former section 5600 and the APA. The court also concluded the Department’s state hospital bed allocations and charges to the counties for bed overuse violated federal and state due process and equal protection guarantees. The court awarded plaintiff counties damages for the bed overuse charges. The court concluded there was currently no constitutional violation in the Department’s allocation of Short-Doyle Act funds to the counties.
B
Factual Background
1
Funding
In 1957 the Legislature enacted the Short-Doyle Act (Stats. 1957, ch. 1989, p. 3535) to provide counties with state funds for local mental health programs. The purpose of the Short-Doyle Act was to encourage community and state participation in mental health care by providing a means to share funding of community programs. Funding under the Short-Doyle Act was originally set by the level a county chose to fund its mental health program.
*1061Counties funding their programs at higher levels received more state funds, resulting in some counties developing larger programs, providing more services and receiving additional state funding.
From 1957 until 1969 county participation in the Short-Doyle program was voluntary. In 1969 participation became mandatory for counties with populations over 100,000. In 1973 the program became mandatory for all counties.
Since the beginning of the Short-Doyle program San Mateo has participated. In fiscal year 1958-1959 San Francisco, Contra Costa and Alameda began participating. During the next three years Los Angeles, Solano and Mendocino entered the program. Entering the program in fiscal year 1962-1963 was San Diego, the first plaintiff county to use Short-Doyle funds. Over the next 11 years the other plaintiff counties joined the program. In each year until fiscal year 1973-1974 plaintiff counties’ average aid per capita was lower than defendant counties’ average aid per capita. Thus, plaintiff counties generally entered the Short-Doyle program later and did not participate to the same extent as defendant counties.
Originally Short-Doyle was a dollar-for-dollar state-to-local matching fund program. In 1962 the funding ratio changed, with the state providing 75 percent of the funds and the counties 25 percent. In 1969 the matching fund ratio changed to 90 percent state and 10 percent county.
In the 1960’s there was enough state money to go around to the counties. Defendant counties as a group took greater advantage of available state funds by posting greater local matching funds.3 In fiscal year 1962-1963 San Diego’s level of local payment was $136,848 and San Francisco’s $784,816. In fiscal year 1964-1965 San Diego’s level of local payment was $678,680 and San Francisco’s $1,707,921.4
During the 1960’s federal funding was also available as construction and staffing grants. San Francisco and Los Angeles took advantage of the federal *1062grants to build mental health programs. San Diego, Fresno and other “under-equity” counties often did not apply for federal funds.5 When federal funding ceased, the state sometimes replaced the lost federal funds. Those state funds became part of a participating county’s larger base allocation.
Short-Doyle funds were allocated based on the “county plan” each participating county was required to submit each year. The county plan specified how the county would spend its money and indicated community need. Through the mid-1970’s a county through its plan could submit requests for new and expanded programs based on community needs. Base funding was carried forward each year. As permitted, many counties asked the state for additional money to expand their programs. That new money became part of the base allocations to be carried forward.
After voters passed Proposition 13 in 1978, state funds for mental health began to shrink, base allocations essentially remained static, and funding equity among counties became an issue.
In 1981 the Equity Funding Task Force issued a report to the California Conference of Local Mental Health Directors. Acknowledging the existence of funding inequities created by historical Short-Doyle funding, the report recommended distributing funds according to relative need based on a poverty-population formula. The report characterized the poverty-population method as an interim measure for use to move toward equity while studies sought an appropriate affirmative approach. In about 1982, after study, the Department began using a poverty-population model.
The 1983 Budget Act required the Department to submit to the Legislature “an equitable needs formula proposal for the allocation of mental health funds.” In April 1984 in response the Department issued a summary of the Equitable Mental Health Allocation Project. The summary recommended using a poverty-population model. The summary also recommended the state *1063use new money exceeding the base to achieve funding equity but not reallocate each county’s historical resource base. The report noted further study was needed and indicated the poverty-population method was an interim measure for use until “better service delivery data” became available.
After introduction and withdrawal of legislation to allocate mental health resources on a per capita basis, the Legislature in 1985 passed Senate Bill .No. 786 (the Seymour amendment). Senate Bill No. 786 amended former section 5600 to require new funds above the current base be allocated among counties based on the poverty-population formula. The legislation also prohibited reduction of the counties’ base allocations to achieve equity.6
From 1981 to 1991 the counties’ respective equity positions remained essentially constant. The relatively small amounts of new money allocated to under-equity counties did not have lasting effect on equity due in part to those counties’ faster rates of population growth. Under-equity counties remained under-equity. Over-equity counties retained their over-equity positions.7
2
State Hospital Beds
Until 1972 the Department did not charge counties for their patients’ use of state mental hospital beds. In fiscal year 1972-1973 the Department began charging counties a 15 percent match for using the previously free state *1064hospital beds. A county could buy state hospital services with funds allocated for local programs. (Former §§ 5708, 5714.)8 Thus, a link was established between local funding and state hospital beds, with local dollars becoming convertible into beds.
The state began shifting its resources into community funding and gradually reduced the number of state hospital beds. Additional funding for state hospital beds generally went to improving the standard of care for patients at the facilities instead of increasing the number of beds.
Until fiscal year 1980-1981 state hospital beds were allocated based upon each county’s actual usage, that is, supply matched demand with demand being constrained, as in the case of Short-Doyle funds, by the requirement of a local match.
For fiscal year 1980-1981 the Legislature in the Supplemental Budget Act set state hospital bed allocations to the counties based upon historical usage.9 Except for minor modifications and changes required by injunctions in this case, state hospital bed allocations remained constant after the 1981 freeze. Through the 1980 Supplemental Budget Act the Legislature established a buy-out and bed reduction program which increased funding for local community programs in return for counties reducing their use of state hospital beds. (Stats. 1980, ch. 510, item 302(f), p. 1166.) Under that program San Diego received increased funding for local mental health programs in exchange for giving up about half its historical allocation of state hospital beds.10 Thus, another link was established between local funding and state hospital beds, with beds becoming convertible into local dollars.
Concluding the Legislature had established a bed allocation to counties that was not to be changed except for the buy-out provision, the Department in 1981 froze state hospital bed allocations based upon historical usage. The Department also interpreted the Seymour amendment’s language prohibiting decreasing a county’s allocation for equity purposes as a legislative directive the Department could not lower a county’s bed allocation. When a county overused its allocation of state hospital beds, corresponding portions of the funds appropriated annually for local assistance were transferred to the appropriation for support of state hospitals. Between 1986 and 1988 about *1065$2 million for bed overuse was withheld from San Diego’s funding allocations. The Department denied San Diego’s requests for relief from the assertedly inequitable allocation of mental health resources.
From 1981 to 1991 state hospital bed allocations remained basically constant. The number of state hospital beds available to counties essentially froze at 1981 levels.
3
“Realignment” Legislation
After trial and before entry of judgment the Legislature enacted the Bronzan-McCorquodale Act, revising the method of funding for county mental health services and discontinuing Department allocation of community mental health funds and state hospital beds. (§§ 4330 et seq., 17600 et seq.; Stats. 1991, chs. 89 & 611.) Under such “realignment legislation” counties received funds from the state and could decide to use that money to fund local programs or to pay the Department for state hospital beds. Under realignment counties could purchase at full price as many state hospital beds as they deemed necessary and were willing to buy. No fixed number of beds was allocated to any county. Realignment also allocated portions of expected tax revenue growth for equity purposes. San Diego, Orange and Santa Clara received additional adjustments.
Later, in July 1993, the Governor signed into law as an emergency statute Senate Bill No. 463 amending various aspects of realignment including base funding, transfers among accounts and distribution of growth accounts. (Stats. 1993, ch. 100.)
C
Superior Court Proceedings
1
Procedural Background
In July 1986 San Diego plaintiffs—including the County of San Diego, four members of its board of supervisors, and its public conservator for three conservatees—filed a class action complaint in San Diego County Superior *1066Court case No. 568230 for declaratory and injunctive relief against the State of California and various state officials, including the Director.11 Asserting denial of federal and state constitutional guarantees of equal protection and due process, San Diego plaintiffs alleged the state defendants distributed funds and allocated state hospital beds in a manner depriving San Diego of its fair share. Plaintiffs characterized the allocations as based not on need but instead on perpetuating past years’ allocations. Plaintiffs also asserted the state defendants did not distribute the funds as required by former section 5600 and the FRA.
In March 1988 the court granted San Diego plaintiffs’ request for a preliminary injunction against the state defendants.12
In June 1989 the court consolidated for all purposes case No. 568230 with other pending lawsuits.13 The court also permitted various counties to intervene as plaintiffs or defendants.
In October 1989 another preliminary injunction was granted.14
*1067In December 1989 the court modified its October 1989 preliminary injunction.15 The court ordered the injunction to have statewide effect. The court also reaffirmed its March 1988 preliminary injunction.
In July 1990 the court determined all plaintiffs had standing and permitted plaintiff interveners to join as parties individual members of their Boards of Supervisors as county officials and as taxpayers.
2
Trial
Coming for trial were plaintiffs’ claims the Department’s allocations of mental health funding and state hospital beds violated equal protection and due process as arbitrary, capricious and lacking in standards; and the state defendants violated former section 5600, the APA and the FRA.
The court held separate phases of trial on various issues.
(a)
Phase One
From September 18, 1990, through November 1, 1990, the court tried issues involving various alleged statutory violations by state defendants. After the first phase of trial, the court issued a decision and order on statutory violations dated January 10, 1991.
The court concluded the Department did not comply with two reporting requirements of former section 5600 and ordered the Department to comply with those statutory requirements. The court also concluded the Department violated former section 5600 by not properly allocating new moneys to *1068under-equity counties.16 The court ordered the Department to adopt an allocation scheme consistent with its opinion and also ordered all future allocations of available funds beyond the current base be done in a manner ensuring reasonable progress toward equity.17
The court concluded the Department violated the APA by not promulgating regulations about funding, allocation of state hospital beds and collection of assessments for bed overuse. The court ordered the Department to adopt the requisite regulations.18
(b)
Phase Two
From January 28, 1991 through February 21, 1991, the court tried constitutional issues. Plaintiffs asserted the disparities among counties in the Department’s allocations of mental health funding and state hospital beds were unconstitutional under equal protection and due process theories as lacking any rational basis. Defendants denied any constitutional violation, asserting the disparities were not great and any such disparities were rationally related to the legitimate governmental interest of ensuring the continuity and stability of local programs. The parties stipulated the court could apply the rational basis test to plaintiffs’ claims.19
After trial the court found no current constitutional violation in “maintaining the discrimination in mental health funding allocations.” With respect to plaintiffs’ equal protection claim, the court concluded preserving the stability of treatment of existing patients and avoiding harm to the infrastructure *1069of over-equity counties’ programs were legitimate governmental concerns that were “rationally related to the legislative goal of maintaining a base funding level while attempting to cure the discrimination with new funds over time.” The court also concluded the mental health funding allocations did not violate federal or state constitutional guarantees of procedural or substantive due process.
The court found the Department’s allocation of state hospital beds among counties violated federal and state constitutional guarantees of equal protection. The court concluded the “gross inequities” in state hospital bed allocations were “not explained by any legislative purpose.”20 The court also found state hospital bed allocations violated federal and state substantive due process guarantees. The court stated “the present system of bed allocation is not rationally related to a legitimate goal of government.”21 To achieve an equitable distribution correcting the constitutional violations found by the court, the Department was ordered to “reallocate bed days among the counties according to each county’s poverty-population index within three years unless the state devises a constitutional alternative and presents it to the court for approval by June of 1992.” The court also determined plaintiff counties were entitled to money damages as compensation for past bed overuse charges.
The court made permanent the existing injunctions in the case. The court also ordered: “No county shall be charged or assessed for over-utilizing its allocation of state hospital beds so long as the county does not utilize more beds than the county would have been allocated had its bed allocation been based on its poverty population percentage for the year.”
The court found no violation of the FRA in the allocation of Short-Doyle funding or state hospital beds.22
*1070On August 8, 1991, the court entered judgment.23 appealed. All parties have
D
Discussion
1
Plaintiffs’ Appeal
Seeking reversal of the court’s conclusion the funding component of the state’s mental health resources allocation system was constitutional, plaintiffs ask us to declare the entire Short-Doyle resource allocation system unconstitutional as violating the equal protection and due process rights of plaintiff counties and their residents. However, we conclude the superior court properly determined the funding allocations were rationally based and did not violate any constitutional standard.
(a)
Standing
Preliminary, we note defendants challenge plaintiffs’ standing to raise this constitutional attack on the mental health resources allocation system. Defendants contend the court erred in permitting plaintiff counties and members of their boards of supervisors to bring these lawsuits on their own behalf or as representatives of their residents. However, we do not decide the issue of standing. Even if we concluded plaintiffs had standing, we would affirm the portions of the judgment based on the court’s finding the funding allocations were constitutional. We would also reverse those portions of the judgment based on the court’s finding the state hospital bed allocations were unconstitutional. ,
*1071(b)
Introduction
This litigation does not involve an abstract problem of bookkeeping. Instead, the Legislature faced an historically developed concrete situation involving ill human beings which was not amenable to a perfect solution. As a result of historical choices by various county governments when funds were plentiful, an infrastructure was created of local community health programs providing ongoing care relied upon by many people. When funds dried up, the Legislature was confronted with the problems of providing care for all needy ill people and equalizing funding to counties. However, full attainment of both those goals could not be achieved simultaneously because of the inadequacy of available funds. The Legislature thus confronted the stark choice of continuing ongoing care for real people or distributing the shortfall among all counties. It was not irrational for the Legislature to decline to equalize allocations immediately in an abstract manner which could damage many programs and hurt many ill people. Instead, the Legislature acted rationally in moving toward equity over time by allocating new moneys when available while preserving existing programs.
(c)
Funding Allocations Were Constitutional
In concluding disparities in funding allocations were not unconstitutional, the superior court found maintaining a base funding level while attempting to cure the discrimination with new funds was rationally related to the legitimate governmental concerns of maintaining the stability of treatment of existing patients and avoiding harm to the infrastructure of over-equity counties’ programs.24 Plaintiffs contend the court erred in not declaring the discriminatory funding allocations unconstitutional as based on prior years’ allocations and not rationally related to counties’ differing needs or any other legitimate state purpose. Plaintiffs contend the stated governmental purposes here—stabilizing existing patient care and preserving county program infrastructures—failed to pass scrutiny as “realistic.” (Brown v. Merlo (1973) 8 Cal.3d 855, 865, fn. 7 [106 Cal.Rptr. 388, 506 P.2d 212, 66 *1072A.L.RJd 505].)25 Instead, according to plaintiffs, that stated rationale was simply an excuse to maintain a discriminatory system favoring politically powerful counties. Characterizing stabilization of over-equity counties’ programs as creating “an irrational and permanent advantage” at the expense of under-equity counties’ residents including the mentally ill, plaintiffs contend the evidence of “enormous” monetary discrimination against under-equity counties demonstrated the “totally arbitrary nature of the mental health resource allocation system, and its discriminatory impacts on both plaintiff counties and their residents.” Asserting equal protection requires elimination of irrational discrimination within a reasonable time (Allegheny Pittsburgh Coal v. Webster County (1989) 488 U.S. 336, 343-344 [102 L.Ed. 688, 696-698, 109 S.Ct. 633]), plaintiffs contend the evidence demonstrated despite years of inequity the state defendants did not develop any plan likely to achieve equitable distribution within a reasonable time without judicial intervention. Plaintiffs also assert legislative changes since the early 1970’s have perpetuated instead of cured the discriminatory funding allocations.26 Thus, plaintiffs claim they proved without refutation by defendants that the discriminatory funding allocations were irrational, arbitrary, and not rationally related to any legitimate state concern. However, the superior court properly determined community mental health funding allocations were rationally based and not unconstitutional.
The test in adjudicating plaintiffs’ equal protection claims is whether the distinctions drawn by state defendants “. . . ‘bear some rational relationship to a conceivable legitimate state purpose.’ [Citation.]” (D’Amico v. Board of Medical Examiners (1974) 11 Cal.3d 1, 16 [112 Cal.Rptr. 786, 520 P.2d 10]; also Weber v. City Council, supra, 9 Cal.3d at pp. 958-959.) This record amply supported the superior court’s finding the “discrimination” resulting from maintaining counties’ base funding levels while attempting to cure the disparities with new funds over time was rationally related to the legitimate governmental concerns of preserving the stability of treatment of existing patients and not harming the infrastructure of county mental health programs. Plaintiffs have not demonstrated palpable irrationality in protecting existing programs and allocating new funds to move toward equity. (Cf. *1073Nordlinger v. Hahn (1992) _ U.S. _ [120 L.Ed.2d 1, 16-18, 112 S.Ct. 2326, 2335-2336]; County of L.A. v. Southern Cal. Tel. Co. (1948) 32 Cal.2d 378, 392 [196 P.2d 773]; Mitchell v. Swoap (1973) 35 Cal.App.3d 879, 888 [113 Cal.Rptr. 75].)27
The superior court effectively concluded the state defendants properly balanced the goals of maintaining existing local mental health programs and attempting to achieve equity in funding among counties. When funds were plentiful, some counties took advantage of the opportunity to develop local mental health systems. The court properly found the state had a legitimate “stability” interest in avoiding destruction of that local community health base already built. When funding declined, the Legislature acknowledged the equity problem and sought solutions including the Seymour amendment which required allocations among counties based on the poverty-population formula of new funds above the current base.
The evidence demonstrated a rational basis for protecting base allocations to counties. As the court properly found, stability of programs was necessary to provide patients with a continuum of care.28 A stable continuum of care was crucial to mentally ill patients and their families. Reduction in base funding would adversely impact the continuum of care. Loss of an outpatient clinic resource could result in placing a patient in a hospital. Further, reallocating base funding would cause lost economic efficiency and value. In 1984 the Equitable Mental Health Allocation Project specifically recommended maintaining base allocations because not doing so would be “inefficient and impractical.” In sum, maintaining base allocations was essential *1074for administering mental health programs and ensuring the necessary continuum of care for patients.29
The allocation of funding was not irrational simply because absolute equity had not been attained by the time of trial. The state defendants made reasonable adjustments to the mental health funding scheme over time to begin to eliminate unreasonable disparities. Various studies recommended changes the Department adopted and implemented. The state instituted an allocation policy to change the system so that relative resource allocations would approach relative needs without dismantling existing programs. The Legislature codified such approach in the Seymour amendment.30 According to plaintiffs’ expert, use of the poverty-population formula over the past six years furthered the goal of equity in allocating state mental health funds. Other evidence indicated applying the poverty-population formula in fiscal year 1990-1991 reasonably assured progress toward equity.
Further, the unequal funding allocations were rationally related to the legitimate governmental concerns of stability of patient care and preservation of existing local program infrastructure. As the superior court properly found, the unequal distribution of state funding resulted from the counties’ historical choices about participating in the Short-Doyle incentive matching grant program. Participation in the program was voluntary until 1973. In the 1960’s money was available to all counties but San Diego declined because it did not want to spend its revenue on the 25 percent matching requirement. Plaintiff counties entered the program later and did not participate to the same extent as defendant intervener counties. Unlike plaintiff counties, *1075defendant intervener counties consistently overmatched funds. Defendant intervener counties also took greater advantage of available federal funds. During the 1970’s many counties asked for and received from the state more money to expand their programs and such new money became part of the base allocations to be carried forward. Indeed, plaintiffs acknowledge the disparate funding allocations favored “counties which entered the Short-Doyle system earlier and to a greater extent than other counties in the 1950’s and 1960’s.”
In sum, the disparities in funding allocations resulted from various counties historically making consistent commitments to developing local mental health programs when ample funding was available and other counties declining to do so. Plaintiffs effectively seek to deprive defendant interveners of the results of their choices made long ago. By the late 1980’s all counties experienced inadequate funding and had unmet needs. The trial court’s determination allowed for maintenance of investments counties had chosen to make over several decades.
Accordingly, we conclude the superior court properly found the stability of patient care and program infrastructure was a legitimate governmental concern and the method used to allocate funding including maintaining base allocations was rationally related to providing such stability. Based upon those findings, the court correctly determined the unequal funding allocations did not violate equal protection guarantees. (Cf. Nordlinger v. Hahn, supra,_U.S. at p__[120 L.Ed.2d at pp. 13-14, 112 S.Ct. at p. 2333]; City of Rancho Cucamonga v. Mackzum (1991) 228 Cal.App.3d 929 [279 Cal.Rptr. 220].)31
Similarly, the court correctly concluded the funding allocations did not violate due process. Noting plaintiffs admitted their citizens did not have property rights to mental health treatment and plaintiffs did not introduce any evidence otherwise indicating they had the requisite property interest to invoke procedural due process guarantees, the court found no procedural due process violation. The court also properly found no substantive due process violation. “Substantive due process essentially requires protection from arbitrary legislative action. Under this principle, a deprivation of property is *1076justified ‘only if the conduct from which the deprivation flows is prescribed by reasonable legislation reasonably applied, i.e., the law must not be unreasonable, arbitrary or capricious but must have a real and substantial relation to the object sought to be obtained.’ [Citation.]” (Armstrong v. County of San Mateo (1983) 146 Cal.App.3d 597, 617, fn. 14 [194 Cal.Rptr. 294].) Even assuming deprivation of property occurred here, the classification bore a rational relation to a constitutionally permissible objective. (McCourtney v. Cory, supra, 123 Cal.App.3d at p. 439.)
At most plaintiffs simply showed the existence of unequal funding among counties on a per capita basis. Plaintiffs did not demonstrate such inequality violated constitutional guarantees of equal protection or due process. Accordingly, we affirm the superior court’s finding the allocation of mental health funding under former section 5600 was constitutional.
2
Defendants’ Appeal
(a)
State Hospital Beds and Overuse Charges
(i)
Superior Court Findings
The superior court found the allocation of state hospital beds violated constitutional guarantees of equal protection and substantive due process. The court issued injunctive relief including ordering reallocation of state hospital beds among counties according to each county’s poverty-population index within three years unless the state defendants presented an alternative plan to the court for approval. The court also found plaintiff counties were entitled to damages from the state defendants for bed overuse charges.
In declaring the bed allocations unconstitutional, the court found the “gross inequities” were “not explained by any legislative purpose.” The court stated “freezing state hospital bed allocations over a ten year period is not rationally related to protecting patients from harm.” The court also found “beds are not so integrated in the counties’ mental health system that they cannot be separated from funding. Defendants have shown nothing more than a theoretical connection between the bed allocations and their Short-Doyle funds.” The court interpreted former section 5600’s language “no *1077county allocation may be decreased” as not prohibiting reallocation of beds. The court concluded a “reasonable distribution of beds” could be achieved within three years “through attrition and reassignment.”
(ii)
Defendants’ Contentions
Defendants contend the court made an initial misstep in misinterpreting former section 5600 as excluding beds from a county’s base allocation. Defendants then contend the court erred in declaring the bed allocations unconstitutional and ordering reallocation. Defendants also contend the court erred in awarding plaintiff counties damages for bed overuse charges. Additionally, defendants contend we should reverse the superior court’s findings involving plaintiffs’ constitutional claims and direct the court to dismiss those claims as moot.
(iii)
Analysis
(A)
Beds Were Part of Base Allocations Under Former Section 5600
The superior court essentially concluded former section 5600 did not either require or prohibit reallocation of hospital beds among counties.32 Instead, the court interpreted the statute as not including beds as part of a county’s mental health resource base allocation. Thus, the court rejected plaintiffs’ assertion the equity and relative-need language in former section 5600 required reallocation of state hospital beds among counties. Accordingly, the court found the failure to reallocate beds on the basis of need did not violate the statute. The court also rejected defendants,’ assertion the statutory language “no county allocation may be decreased” for equity purposes prevented any reallocation of beds. Thus, the court concluded the *1078Department was free to reallocate beds without violating former section 5600. Such conclusion permitted the court to characterize its reallocation order as not inconsistent with the statute.
Defendants contend the court erroneously interpreted former section 5600 as excluding state hospital beds from the counties’ base allocations of mental health resources and thus did not realize its reallocation order was inconsistent with the statute. According to defendants, counties’ bed allocations were protected by former section 5600’s language prohibiting decreasing any county’s base allocation to achieve equity. We agree with defendants. The court erred in concluding the statutory prohibition against decreasing a county’s allocation applied only to funds and not to beds. Under former section 5600, state hospital beds also constituted an allocation not subject to decrease for equity purposes. We base our conclusion on (1) the Department’s consistent administrative interpretation known to the Legislature that the statute precluded decreasing a county’s bed allocation for equity purposes; (2) the Legislature’s independent recognition in budgetary legislation that bed allocations were to remain static—indicating it would be inconsistent for the Department to act otherwise; and (3) the historical linkage between allocations of state hospital beds and funding for local mental health programs.
The record contained ample evidence the Department considered state hospital bed allocations to be included under former section 5600’s prohibition against decreasing any county’s “allocation” for purposes of achieving equity. Evidence also indicated such statutory provision was designed to prevent dismantling of programs and reallocation of base resources to achieve equity. The Department adopted the recommendation of the Equitable Mental Health Allocation Project report in 1984 that state hospital bed allocations should be included in a county’s mental health resource base. Beginning in 1984 the Department included the value of beds in the resource base, thus impacting allocations of local assistance augmentations. The Department also interpreted the Seymour amendment’s language prohibiting decreasing a county’s allocation for equity purposes as a legislative directive the Department could not lower a county’s bed allocation.
In sum, after the Seymour amendment the consistent administrative interpretation of former section 5600 was not to decrease a county’s state hospital bed allocation for purposes of equity. Although presumed to be aware of such administrative interpretation, the Legislature did not amend former section 5600 to permit decreasing bed allocations for equity purposes. Courts generally defer to administrative interpretation of statutes, particularly where, as here, the Legislature has acquiesced in such interpretation. *1079(Thornton v. Carlson (1992) 4 Cal.App.4th 1249, 1256-1257 [6 Cal.Rptr.2d 375],)33 Thus, the superior court should have interpreted former section 5600 as preventing decreasing counties’ bed allocations for equity purposes.
Further, the superior court’s interpreting former section 5600 as excluding state hospital beds from counties’ base allocations was inconsistent with the Short-Doyle program’s historical fiscal fungibility between funds and beds. In fiscal year 1972-1973 the Department began charging counties a 15 percent match for using previously free state hospital beds. A county could buy state hospital services with funds allocated for local programs. (Former §§ 5708, 5714.) Thus, when the state first began requiring the counties to make co-payments for beds a link was established between local funding and beds, with local program funds becoming convertible into beds. As resources became increasingly scarce, the state chose to allocate both beds and local program dollars with continued fungibility. In the 1980 Supplemental Budget Act the Legislature set state hospital bed allocations to the counties based upon historical usage and established a buy-out and bed reduction program which increased funding for local community programs in return for counties reducing their use of state hospital beds. (Stats. 1980, ch. 510, item 302(f), p. 1166.)34 Another link was thus established between local funding and state hospital beds, with beds becoming convertible into local dollars. Manifestly, the superior court’s interpretation of former section 5600 as excluding beds from counties’ base allocations was unreasonable in light of the historical linkage between local program funds and state hospital beds.
As noted, the trial court found legitimate governmental purposes—stability of patient care and preservation of county program infrastructure—were rationally related to former section 5600’s protection of counties’ base allocations with respect to funding for local programs. A proper interpretation of former section 5600 as including beds within counties’ base allocations would have facilitated the court’s concluding the bed allocation system *1080was also rationally related to those same legitimate governmental purposes. Indeed, plaintiffs acknowledge “in considering the unconstitutionality of the system, there was no legal or factual basis for the trial court to carve out a distinction between beds and program funds.”35
(B)
State Hospital Bed Allocations Were Constitutional
(4) Seeking reversal of the portions of the judgment declaring state hospital bed allocations unconstitutional and mandating reallocation of beds, defendants contend maintaining counties’ bed allocations while moving toward equity with available new moneys did not violate any equal protection or substantive due process right of the counties. Instead, according to defendants, the bed allocations satisfied the rational basis test under both equal protection and due process principles. (Nordlinger v. Hahn, supra,_ U.S. at p._[120 L.Ed.2d at pp. 17-18, 112 S.Ct. at p. 2336]; Coleman v. Department of Personnel Administration (1991) 52 Cal.3d 1102, 1125 [278 Cal.Rptr. 346, 805 P.2d 300]; Fein v. Permanente Medical Group (1985) 38 Cal.3d 137, 163-164 [211 Cal.Rptr. 368, 695 P.2d 665]; Cooper v. Bray (1978) 21 Cal.3d 841, 847-848 [148 Cal.Rptr. 148, 582 P.2d 604].)36 We agree.
*1081“When social or economic regulations are involved, the rational-basis test applies. In such cases, ‘ “statutory discrimination will not be set aside if any state of facts reasonably may be conceived to justify it.” ’ [Citations.]” (Hansen v. City of San Buenaventura (1986) 42 Cal.3d 1172, 1190 [233 Cal.Rptr. 22, 729 P.2d 186].) “‘“The Fourteenth Amendment does not prohibit legislation merely because it is special, or limited in its application to a particular geographical or political subdivision of the state.” [Citation.] Rather, the Equal Protection Clause is offended only if the statute’s classification “rests on grounds wholly irrelevant to the achievement of the State’s objective.” [Citations.]’ [Citation.]” (Kadrmas v. Dickinson Public Schools (1988) 487 U.S. 450, 462 [101 L.Ed.2d 399, 412, 108 S.Ct. 2481].) Under the rational basis test, plaintiffs had the “ ‘heavy burden’ ” to demonstrate the state’s protection of counties’ historical bed allocations was without reasonable basis. (Id. at p. 463 [101 L.Ed.2d at p. 413].) Plaintiffs did not meet that burden. The record compelled a conclusion legitimate governmental interests justified preserving counties’ bed allocations.
As discussed above, the superior court properly concluded the legislative goal of maintaining a base funding level preserving existing services while attempting to achieve equity with new moneys over time was constitutional as rationally related to the legitimate governmental interests of maintaining the stability of existing patient care and the infrastructure of local programs. Defendants accurately assert the court should have found the same governmental interests also justified maintaining historical bed allocations. When confronted with the choice of continuing ongoing care for real people or distributing the shortfall among all counties, it was not irrational for the Legislature to decline to equalize bed allocations immediately in an abstract mathematical manner which could damage local program infrastructure and hurt many ill people. Instead, the Legislature acted rationally in moving toward equity over time by allocating new moneys when available while preserving historical bed allocations.
The superior court’s erroneous conclusion the bed allocations were unconstitutional stemmed primarily from two mistaken findings. First, failing to acknowledge the import of the historical reciprocal fiscal relationship between beds and local funding, the court found bed allocations could be analyzed separately from funding allocations.37 Second, based on a tenuous factual finding most state hospital patients were transient, the court also *1082understated the effect of bed reallocation on the treatment of existing patients.38
(D
Bed Allocations Were an Integral Part of County Mental Health Systems
The superior court erred in finding state hospital beds were not so integrated in counties’ mental health systems that they could not be separated from funding. The record compelled a conclusion bed allocations have historically been an integral part of local mental health systems. Further, maintaining such historical bed allocations was rationally related to the legitimate governmental interests of preserving the stability of existing patient care and local program infrastructure.
As discussed at length, the Department properly allocated hospital beds in accord with former section 5600’s requirement a county’s base allocation including beds could not be decreased for equity purposes. Further, former section 5600 reflected the Short-Doyle program’s historical fiscal fungibility between funds and beds. When the state first began requiring the counties to make copayments for beds a link was established between local funding and beds, with local program funds becoming convertible into beds. (Former §§ 5708, 5714.) As resources diminished, the state chose to allocate both beds and local program dollars with continued fungibility. Beds became convertible into local dollars when the 1980 budget legislation set state hospital bed allocations to the counties based on historical usage and established a buy-out and bed reduction program which increased funding for *1083local community programs in return for counties reducing their use of state hospital beds. (Stats. 1980, ch. 510, item 302(f).) In enacting the Seymour amendment, the Legislature directed the counties’ base allocations including beds not be reduced. Although the superior court might not unreasonably discern a legislative intent ultimately to reduce local dependence on state hospital beds, for purposes of constitutional analysis the legislatively established historical reciprocal relationship between local funding and beds in practice inextricably linked those two components of the mental health resources allocation system.
Ample evidence indicated state hospital beds were an integral part of counties’ programs and decreasing those bed allocations were “just as damaging as a decrease in the community budget, because each county builds its program around the resources it has.”39 Community programs were built around the concept of having access to a certain level of state hospital beds.40 Local programs were based on the number of patients who could be treated in the community and those who required treatment in a state hospital. Counties geographically closer to state hospitals also tended to use those hospitals as more integral parts of their local programs for acute patients, in part because patients discharged from hospitals tended to remain in nearby communities. Some counties farther from state hospitals built acute mental health facilities to complement local care.41 In sum, historical state hospital bed usage differed among counties according to how those beds fit into the structure of each county’s overall local mental health program.
Further, in light of the fungibility of state hospital beds and funding, differing historical bed allocation levels arose also from various counties choosing to invest more local matching funds in mental health services than did other counties. Counties’ bed allocations developed based on their actual usage. Beginning in 1981 counties could choose to have their bed allocations adjusted. San Diego opted to reduce its bed allocation by one-half in exchange for enhanced local program funding it continues to receive.
Finally, the evidence demonstrated a rational basis for protecting bed allocations to counties. Maintaining those bed allocations was rationally related to the legitimate governmental concern of avoiding harm to the *1084infrastructure of county programs. Reallocating beds, including reducing some counties’ bed allocations, would adversely affect community programs. A county receiving a decreased bed allocation would need to use funds otherwise spent on community programs to help those who would have been in state hospitals. As noted, the superior court found cuts to programs would cause staff turnovers, recruitment difficulties, and interference with counties’ ability to contract with suppliers. Thus, the court should have concluded the protection of counties’ bed allocations furthered the go&l of protecting existing programs.
(2)
Bed Reallocation’s Harmful Effect on Patient Care
Finding the protection of patients from harm was a legitimate governmental purpose, the superior court noted patients would suffer from reductions in state hospital bed allocations if the reductions necessitated evicting existing patients needing care. However, based on its finding most of the state hospital population was transient with an average hospital stay of about 90 days, the court concluded the 10-year freeze on bed allocations was not rationally related to the goal of not harming patients. The court stated: “A total freeze of beds is so far removed from what is necessary to accomplish the goal of not harming patients by eviction as to be totally irrational.”
The record casts doubt on the court’s finding most of the state hospital population was transient. Plaintiffs have identified no evidence specifically indicating most of the population was transient. The court’s finding was based on the testimony of a witness who was not certain about the average length of hospital stays. Further, uncontradicted testimony indicated 19 percent of San Mateo’s state hospital patients were hospitalized for more than 10 years, 41 percent for more than 5 years, and 77 percent for at least 1 year.
In any event, in light of the historical inextricable linkage between allocations among counties of funding and state hospital beds, the superior court should have found reallocation of beds, including decreasing some counties’ bed allocations, would adversely impact the treatment of existing patients. With respect to funding allocations, the superior court found the evidence demonstrated “the harmful effect of disrupting treatment of patients already on a treatment plan” and “the necessity of maintaining the level of care for individual patients.” In determining the funding disparities were not unconstitutional, the court stated: “It is rational for the state to strive not to leave vulnerable citizens in a worse condition than they would *1085be in had they not been involved with state programs.” The court should have reached similar conclusions about the historical disparities in bed allocations.
As the court properly found with respect to funding allocations, stability of programs was necessary to provide patients with a continuum of care. A stable continuum of care was crucial to mentally ill patients and their families. Both funding and bed allocations reflected historical choices made by counties about the means to provide a continuum of care to patients. State hospital beds were an integral part of many counties’ programs. Bed reallocation would result in decreasing some counties’ bed allocations. Such decreases would constitute reductions in those counties’ base funding resulting in lost economic efficiency and value. Reducing such base funding would also adversely impact the continuum of care. Counties receiving decreased bed allocations would need to use funds otherwise spent on-community programs to help those who would have been in state hospitals. Evidence indicated reducing the number of beds under reallocation would result in the loss of service to a large portion of mentally ill patients already receiving treatment. Moreover, ousting patients from beds would be traumatic.
In sum, the historically developed base level bed allocations were essential to ensuring the necessary continuum of care for existing individual patients. Not maintaining those bed allocations would disrupt the treatment and level of care for many patients. Thus, the superior court should have found the challenged bed allocations were rationally related to the legitimate state purpose of protecting patients from harm.
(3)
Conclusion
For many years state funding for county mental health programs and allocations to counties of state hospital beds have been directly linked. Beds and local dollars have been reciprocally convertible and fungible. Unequal distribution of state mental health resources resulted from counties’ historical choices about participating in the Short-Doyle incentive matching grant program. The state has made adjustments to the mental health resource allocation system over time to begin to eliminate unreasonable inequalities. The disparities in bed allocations were not irrational simply because absolute equity had not been attained by the time of trial. The state defendants properly balanced the goals of maintaining existing local mental health programs, including state hospital bed allocations, and attempting to achieve equity among counties.
*1086The superior court erred in determining there was no legitimate governmental purpose in maintaining a county’s base allocation of state hospital beds. The record compels a conclusion the stability of patient care and program infrastructure was a legitimate governmental concern and the method used to allocate state hospital beds, including maintaining base allocations, was rationally related to providing such stability. The court should have determined the bed allocations did not violate equal protection guarantees. (Cf. Nordlinger v. Hahn, supra,_U.S. at p._[120 L.Ed.2d at p. 14, 112 S.Ct. at p. 23331; City of Rancho Cucamonga v. Mackzum, supra, 228 Cal.App.3d at p. 947.)
Similarly, the court erred in concluding allocation of state hospital beds violated substantive due process. The challenged governmental action was not arbitrary, unreasonable or unrelated to a legitimate state purpose. Where, as here, a legislative classification does not infringe upon a fundamental right, the test under the due process clause is “whether the classification bears a rational relation to a constitutionally permissible objective. [Citation.]” (McCourtney v. Cory, supra, 123 Cal.App.3d at p. 439.) Plaintiffs did not meet their burden to prove the classification was irrational. (Armstrong v. County of San Mateo, supra, 146 Cal.App.3d at p. 617, fn. 14.)
Accordingly, the portions of the judgment declaring the allocation of state hospital beds unconstitutional, ordering reallocation of beds, and granting injunctive relief against defendants must be reversed.
(C)
Recovery of Damages for Funds Withheld for Bed Overuse
Based upon its findings the under-equity state hospital bed allocations and the overuse charges for exceeding those limitations violated constitutional guarantees of equal protection and due process, the superior court concluded plaintiff counties were entitled to compensation for moneys the state withheld under former section 5700 et seq. from their Short-Doyle allocations for bed overuse.42 Because we have concluded the bed allocations did not violate any equal protection or substantive due process rights of the counties, *1087the portion of the judgment awarding damages for bed overuse charges must be reversed.43
(D)
Mootness
The realignment legislation enacted after trial but before entry of judgment revised the method of funding for county mental health services and discontinued Department allocation of community mental health funds and state hospital beds. (§§ 4330 et seq., 17600 et seq.; Stats. 1991, chs. 89 & 611.) Under realignment counties received funds from the state and could use that money to fund local programs or pay the Department for state hospital beds. Counties could purchase as many beds as they deemed necessary and wanted to buy. No county was allocated a fixed number of beds. Realignment also allocated portions of expected tax revenue growth for equity purposes. Some underequity counties also received additional adjustments. (§ 17600 et seq.) In July 1993 various aspects of realignment were amended. (Stats. 1993, ch. 100.)
“ ‘Repeal or modification of a statute [or ordinance] under attack, or subsequent legislation, may render moot the issues in a pending appeal.’ [Citations.] It is also an established rule of law that on appeals from judgments granting or denying injunctions, the law to be applied is that which is current at the time of judgment in the appellate court [citations] because ‘[r]elief by injunction operates in futuro.’ [Citations.]” (Callie v. Board of Supervisors (1969) 1 Cal.App.3d 13, 18-19 [81 Cal.Rptr. 440].) Defendants unsuccessfully argued to the superior court the realignment legislation had divested the court of jurisdiction to issue orders about allocations of local mental health funding and state hospital beds.
*1088Defendants contend the trial court erred in not dismissing the litigation as moot. Defendants characterize realignment as fundamentally changing the allocation of mental health resources and thus rendering moot plaintiffs’ claims.44 Asserting plaintiffs challenged only the now superseded Short-Doyle Act allocation system, defendants contend various portions of the judgment involving constitutional and statutory issues should be reversed and dismissed as rendered moot by enactment of the realignment legislation substantially modifying the former statutory scheme.45 Asserting the realignment legislation created an entirely new system for distributing state mental health funds to counties and ended the Department’s allocation of funding and beds, defendants specifically characterize as moot the order directing reallocation of beds.46 Defendants further claim the constitutionality of the old system is now irrelevant. However, even if we were to conclude the realignment legislation rendered moot the portions of the judgment involving the constitutionality of funding and bed allocations under the Short-Doyle system, ordering reallocation of beds and granting injunctive relief against defendants, the existence of the constitutionally based damage award would require us to resolve the constitutional issues.47
*1089(b)
Promulgation of Regulations
The state defendants also appeal the portion of the judgment ordering the Department to adopt regulations implementing former section 5600 as required under the APA. Defendants launch various attacks on the merits of the court’s determination the APA required promulgation of such administrative regulations. Defendants claim no regulations were required.48 Defendants also contend the realignment legislation has rendered moot the portion of the judgment ordering promulgation of regulations. We conclude that portion of the judgment is moot.
The superior court determined the Department violated the APA by not adopting various required regulations 49 Specifically, the court found administrative regulations were required involving allocation of state hospital beds, restriction of hospital admissions without regard to bed availability or patient needs, collection of assessments for overuse of beds, allocation of available funds to counties, and various undefined terms.50
*1090As noted, the realignment legislation enacted after trial but before entry of judgment created a new method of funding for county mental health services and discontinued Department allocation of community mental health funds and state hospital beds. (§§ 4330 et seq., 17600 et seq.; Stats. 1991, chs. 89 & 611.) Under realignment a county was not allocated a fixed number of state hospital beds. Instead, counties received funds from the state for use to fund local programs or to contract for beds. Counties could purchase as many beds as they were willing to buy. Thus, realignment provided for distribution of funds under new standards without substantial Department discretion. (§§ 5701, 17600-17600.20.) According to defendants, by adopting specific standards removing the need for regulations, the realignment legislation rendered moot the court’s order directing the Department to promulgate regulations. We agree. The superior court concluded regulations were required to implement the Short-Doyle Act and particularly former section 5600. However, the old system has been eliminated. Thus, the court’s ruling involving promulgation of regulations is moot.
“Where an appeal is disposed of upon the ground of mootness and without reaching the merits, in order to avoid ambiguity, the preferable procedure is to reverse the judgment with directions to the trial court to dismiss the action for having become moot prior to its final determination on appeal. [Citations.]” (Callie v. Board of Supervisors, supra, 1 Cal.App.3d at p. 19; cf. City of Los Angeles v. County of Los Angeles (1983) 147 Cal.App.3d 952 [195 Cal.Rptr. 465],)51 Accordingly, we reverse the portion of the judgment directing the Department to promulgate regulations and direct the superior court to dismiss as moot plaintiffs’ claim under the APA.52
*1091II
Fresno Plaintiffs’ Claim for Reimbursement for Treating Robert S.
A
Factual Background
Fresno’s LPS conservatee Robert S. suffered an organic mental disorder.
From December 1986 until October 1987 Fresno unsuccessfully attempted several placements and treatment programs for Robert S.
On October 13, 1987, Fresno requested placement of Robert S. at Napa State Hospital (NSH) for psychiatric treatment.
On November 4, 1987, the Department denied Robert S. admission because of his alcohol problems. Fresno’s administrative appeal was'denied.
In March and September 1988 Robert S. was referred to NSH with a packet detailing his treatment needs and the propriety of placement at NSH. The Department continued to deny Robert S. admission on the ground of alcoholism.
After Robert S. was denied admission to NSH, Fresno contracted with a private psychiatric facility for an alternative and ultimately unsuccessful treatment program.
In June 1989 Robert S. was again referred to NSH and his admission denied.
On December 7, 1989, the Department admitted Robert S. to a specialized program at NSH after Fresno threatened litigation. Robert S. responded well to the program. The program was in existence for at least three years before Robert S.’s admission. .
Fresno spent $290,539.22 from its Short-Doyle allocation in attempting to place and treat Robert S. during the time he was denied admission to NSH.
Superior Court Proceedings
Fresno plaintiffs claimed the Department violated section 504 of the FRA by refusing to admit Robert S. to NSH.53
At trial Fresno plaintiffs presented evidence the $290,539.22 Short-Doyle money Fresno spent to care for Robert S. because of the Department’s alleged FRA violation would have been spent to provide mental health services to other mentally ill Fresno residents. The Department did not claim an offset for state hospital charges or offer evidence disputing Fresno plaintiffs’ damage claim. Fresno plaintiffs indicated the Department could claim an offset for state hospital charges leaving a net cost to Fresno of $197,881.99 to $272,400.29.
The trial court found alcoholism constituted a handicap under the FRA and the Department violated the statute in denying Robert S. admission to NSH from November 4, 1987, until December 7, 1989. However, the court denied Fresno plaintiffs’ claim for reimbursement of money spent in treating Robert S. The court concluded Fresno plaintiffs failed to meet their burden to prove the amount to which they were entitled.54
C
Analysis
Asserting the superior court should not have imposed upon them the burden to prove the offset amount the Department could claim against their damages, Fresno plaintiffs contend the court erred in denying their damage claim for the Department’s violating Robert S.’s rights under the FRA.
*1093Fresno plaintiffs contend after they presented substantial evidence of damages any remaining burden of proof rested on the state defendants. Fresno plaintiffs also contend they had standing on the three theories of the board of supervisors’ representative standing on behalf of handicapped persons, individual taxpayers’ standing to challenge illegal use of public funds under Code of Civil Procedure section 526a, and the standing of the county’s health director and mental health director as public conservators for Fresno LPS conservatees. However, we affirm the portion of the decision denying Fresno plaintiffs recovery under the FRA because we conclude they lacked standing to prosecute that statutory claim.
Before trial, defendants challenged Fresno plaintiffs’ standing. Believing itself bound by our opinion in Miller v. Woods (1983) 148 Cal.App.3d 862 [196 Cal.Rptr. 69], the superior court found Fresno plaintiffs had standing to assert the FRA claim based on Fresno’s board of supervisors’ representative standing and individual plaintiffs’ taxpayer standing. However, we conclude neither the county, an individual member of its board of supervisors, a taxpayer nor an LPS conservator had a cause of action for damages for the benefit of the county based upon violation of Robert S.’s rights under the FRA.
As noted, Fresno plaintiffs included the County of Fresno, its director of health, its director of mental health and individual members of its board of supervisors as county officials and as taxpayers.55 Fresno plaintiffs’ original pleading sought declaratory, injunctive and extraordinary relief to redress the state defendants’ alleged FRA violation in discriminatorily allocating state hospital beds to the county. At trial Fresno plaintiffs amended their complaint to add an allegation the state defendants’ FRA violations included “denial of admission to Napa State Hospital from November 4, 1987 to December 7, 1989 of at least one individual which required Fresno Plaintiffs to divert from its local Short-Doyle monies a substantial amount of resources in attempting to have this individual treated and placed outside of the hospital setting. Fresno Plaintiffs are entitled to have their local Short-Doyle funds from State Defendants reimbursed by the amount of money which Fresno Plaintiffs had to expend in this effort to obtain treatment and placement for this patient.” Fresno plaintiffs’ amended complaint asked the superior court to “[o]rder State Defendants to reimburse . . . Fresno Plaintiffs for monies it [sz'c] expended for purposes of treatment and placement of *1094at least one individual who was denied access to a state hospital by State Defendants in violation of the Federal Rehabilitation Act of 1973.”56
The state defendants contend Fresno plaintiffs did not have an express or implied cause of action against the Department under the FRA for damages for expenses incurred while the Department did not admit Robert S. into NSH. Asserting the FRA extended a cause of action only to the ultimate beneficiary subjected to discrimination by recipients of federal funds, the state defendants note Robert S. had a “colorable cause of action” but Robert S. did not sue. (29 U.S.C. § 794a(a)(2); 45 C.F.R. §§ 84.2, 84.3 (1992).)57 Neither did Fresno plaintiffs sue for an award to Robert S.’s estate.58 Instead, Fresno plaintiffs sought an award of damages which would inure to Fresno’s general fund. According to the state defendants, Fresno plaintiffs lacked standing to sue on handicapped individual Robert S.’s behalf for benefits to the county. Thus, the state defendants conclude we should affirm the portion of the decision denying Fresno plaintiffs damages for any violation by the Department of Robert S.’s rights under the FRA. We agree.
The victim of any FRA violation based upon the state defendants’ not admitting Robert S. into NSH was Robert S., not Fresno plaintiffs. (29 U.S.C. § 794(a).) However, as noted, Fresno plaintiffs sought damages not for Robert S. but rather for the county. Similarly, throughout the proceedings in superior court Fresno plaintiffs consistently sought damages for the county, not for Robert S.59 Fresno plaintiffs continue to contend the appropriate remedy is awarding them monetary damages so they may provide *1095mental health services to county residents to substitute for mental health services they could not provide due to the state defendants’ FRA violation which forced them to redirect limited mental health resources to attempt to meet Robert S.’s mental health needs. However, we decline to construe section 504 of the FRA as authorizing Fresno plaintiffs to seek such damages for the county.60
Fresno plaintiffs contend courts have granted relief to third parties when appropriate to help remedy a violation of the FRA. Although case law may indicate third parties can have standing to pursue declaratory, injunctive or extraordinary relief involving discrimination against individuals with handicaps, Fresno plaintiffs have not identified any case where such third parties were permitted to recover monetary damages for themselves. Our opinion in *1096Miller v. Woods, supra, 148 Cal.App.3d 862, relied upon by the superior court, does not help Fresno plaintiffs. Miller involved claims by various individuals and organizations for declaratory, injunctive and extraordinary relief to invalidate a state regulation as violating section 504 of the FRA. We find nothing in Miller authorizing a third party to recover damages for a violation for another individual’s rights under FRA section 504.
In sum, we conclude Fresno plaintiffs lacked standing to pursue the FRA claim. Accordingly, we affirm the portion of the court’s decision denying Fresno plaintiffs damages for any violation by the Department of Robert S.’s rights under the FRA.61
Ill
The Director’s Petition for Extraordinary Relief
A
Factual and Procedural Background
The Director notified Fresno realignment required the county to contract for its EPS state hospital beds. (§ 4331.)
Fresno plaintiffs asked the superior court to hold the Director in contempt on the ground the preliminary injunction—issued October 17, 1989, as interpreted by the court on December 14, 1989, and perpetuated in the August 8, 1991, judgment—required the Director to provide all counties free of charge any bed usage over the fiscal year 1987-1988 allocation up to their 1988-1989 usage.
On January 21, 1993, the court issued a written order holding the Director in contempt.
The Director seeks extraordinary relief.
B
Analysis
Preliminarily, we note the Director faced the dilemma of implementing the mandates of the new realignment legislation or following a judgment *1097based on prior legislation. (§ 4331.) The judgment and the contempt order could not be implemented under the new statutory scheme because the realignment legislation provided that state hospital beds would no longer be allocated to counties by the Department.
In any event, the contempt proceedings arose out of the injunctive relief portions of the judgment including those continuing in existence the preliminary injunctions involving state hospital bed allocations and bed overuse charges. However, as discussed above, we have reversed those portions of the judgment granting injunctive relief because they were based on the superior court’s erroneous conclusion the bed allocation system was unconstitutional. Thus, the grounds for the contempt proceedings have become moot. Accordingly, we grant the Director’s petition for extraordinary relief, directing the superior court to vacate its order finding the Director in contempt and dismiss the contempt proceedings as moot.
Disposition
The portion of the judgment declaring the Short-Doyle funding allocation system constitutional is affirmed. The portions of the judgment declaring the Short-Doyle state hospital bed allocation system unconstitutional, ordering reallocation of beds, granting injunctive relief against defendants, and awarding plaintiff counties damages are reversed with directions to the superior court to enter judgment for defendants on those issues. The portions of the judgment involving violations of former Welfare and Institutions Code section 5600 and ordering the Department to promulgate regulations under the Administrative Procedure Act are reversed with directions to the superior court to dismiss as moot plaintiffs’ claims bearing on those issues. The portion of the decision denying Fresno plaintiffs recovery under the federal Rehabilitation Act of 1973 is affirmed.
Let a writ of mandate issue directing the superior court to vacate its order finding the Director in contempt and dismiss the contempt proceedings as moot.
The parties shall bear their own costs on appeal.
Work, J., and Todd, J., concurred.
A petition for a rehearing was denied November 15, 1993, and the petitions of all plaintiffs and appellants for review by the Supreme Court were denied January 13, 1993. Mosk, J., was of the opinion that the petitions should be granted.