providing for limited interim continuation at the prior Medicaid rate. DPW informed Newfield House on August 24, 1976 that, because the home had not signed a provider agreement, DPW would terminate Medicaid payments to it as of October 1, 1976.
Prior to October 1, Newfield House brought suit in Massachusetts Superior Court to enjoin DPW from terminating payments to it for its ten Medicaid patients unless and until the department relocated the patients to other facilities. The court entered a temporary restraining order directing DPW to pay for nursing home services for the home’s Medicaid patients at the home’s private patient rate of $25 per day. The order was initially continued for 15 days by agreement of the parties, and was subsequently ordered continued while the case was assigned for trial on an expedited basis.
Before trial was to begin, however, DPW removed the case to federal district court, and that court denied Newfield House’s motion to remand the case to state superior court. Defendants moved to dissolve the state court restraining order, but the district court maintained the order in effect and ultimately denied the motion on grounds of mootness. With the district court’s permission, Newfield House added the Secretary of HEW, the Massachusetts Department of Public Health (DPH), and the Medicaid-funded patients then residing at the home as defendants. In addition, DPW brought a counterclaim against New-field House seeking return of all money paid under the restraining order, and New-field House added its Medicaid patients as third-party defendants on that counterclaim. Both Newfield House and some of the patients’ families petitioned the court for appointment of a guardian ad litem to represent the patients, but the district court declined to act on the petitions and, with one limited exception, no patient ever appeared in the case. At the close of the case, the court granted HEW’s motion to dismiss it from the action.
On the central issue presented, the district court ordered Newfield House to repay to DPW the excess of the payments made under its interim order at the home’s private patient rate of $25 per day over the amount that would have been due at its Medicaid rate of $19.70 per day, but only that excess (a total of $8,538.74 of the $53,-305.31 paid). The court first drew a sharp distinction between voluntary and involuntary terminations of nursing home provider arrangements, and held that the federal Medicaid regulations in force at all times relevant here imposed no obligation on the state to provide such payments in the case of a voluntary termination. But the court went on to conclude that “unusual circumstances” present in this case supported a finding of a “constructive provider agreement” between the state and the home during the pendency of this dispute — citing such circumstances as the uncertainty surrounding the parties’ obligations, the fact that the state would have been required “with minor exceptions” to provide care for Newfield House’s patients at the same or greater rates at other facilities, and the existence of the temporary restraining order issued by the state court and continued by the federal court.
Emphasizing that providing for the care of the patients had been its central concern throughout the litigation, the court stressed that such relevant equitable/contractual factors as unjust enrichment and detrimental reliance in its view mitigated against the state and in favor of the home and its patients. The court held that its refusal to return to the state all the payments made to the home did not violate the Eleventh Amendment, since such payments had been prospective with respect to the then-valid interim orders pursuant to which they were made. Finally, the court suggested that the state pursue administrative remedies seeking reimbursement from the federal government, expressing the view that while it could not order such reimbursement (since the state had not exhausted available administrative remedies) it did not think those remedies necessarily futile.
II
The central issue posed by this case is whether either federal statutes and regula