This proceeding was commenced as an action for a declaratory judgment. Special Term, however, treated the action as a proceeding pursuant to CPLR article 78, and granted defendants’ motion for summary judgment. Thus, Special Term found it unnecessary to rule on the plaintiffs’ motion to compel discovery and on the amicus motion to appear.
The plaintiffs, John Doe, Robert Roe and Jane Anonymous (names being fictitious), are out-patients at the Tremont Crisis Center in New York City. Plaintiffs Volkman, Snyder and Dunn are medical doctors enrolled in a psychiatric residency program at the Tremont Crisis Center, and plaintiff Felix is a social worker and administers psychiatric therapy at that center. The Tremont Crisis Center is a part of the Bronx State Hospital which is a facility of the New York State Department of Mental Hygiene.
The action arises out of the use of a certain system or procedure established by the Department of Mental Hygiene which requires departmental personnel to enter information on forms on all out-patients and to send that information to Albany to be recorded and stored in a central computer. The patient’s name and other identifying data are required to be entered on the form as well as a description of the illness and a diagnosis. In the action, plaintiffs seek a declaration that the use of such a centralized computerized system, without ade*148quate safeguards, is violative of section 15.13 of the Mental Hygiene Law, the doctor-patient privilege (CPLR 4504, subd [a]), and plaintiffs’ constitutional right to privacy. The continued use of such system is sought to be enjoined, and the information already acquired under the system is sought to be destroyed. Special Term granted defendants’ motion for summary judgment and dismissed the complaint. This appeal ensued. Plaintiffs contend that triable issues of fact exist and that these facts lie within the exclusive control of the defendants, and, for that reason, urge that they are entitled to discovery of such facts.
Since the instant proceeding is a constitutional challenge, and there are no procedures in the Mental Hygiene Law for notice and a hearing to challenge the system, we determine initially that an article 78 proceeding is not a proper vehicle to test constitutionality. (Matter of Overhill Bldg. Co. v Delany, 28 NY2d 449; Matter of Lakeland Water Dist. v Onondaga County Water Auth., 24 NY2d 400, 407.) Consequently, we treat this proceeding as one for a declaratory judgment (CPLR 103, subd [c]), as it was commenced.
The question presented on this appeal is whether summary judgment should have been granted to the defendants. Basically, complaint is made in this action concerning the maintenance and keeping by a department of State government of a central index and storage center of its own records. Plaintiffs are patients of an out-patient facility of the Department of Mental Hygiene, and members of the department’s medical staff. The complaint alleges in a conclusory manner that the requirement that the doctors at out-patient psychiatric clinics report information concerning their patients to include their names and other identifying data to a central computerized storage facility is an intrusion upon the constitutional rights of the patients as well as of the members of defendants’ staff. Specifically, the right of privacy, the patient-physician privilege, and the right of staff personnel to practice their profession are alleged to be violated by defendants in the use of the procedure in question.
On this record, it is clear that a defense to the action was established sufficiently to warrant the court at Special Term, as a matter of law, in directing judgment in favor of the defendants (CPLR 3212, subd [b]). We conclude from the evidentiary matter submitted in support of defendants’ motion that plaintiffs’ cause of action, as alleged, is without merit. In *149opposition to the motion, plaintiffs have submitted only an affidavit of their attorney which sets forth merely arguments without any factual support of the allegations in the complaint. Nor have plaintiffs demonstrated that summary judgment should have been denied for the reason that the facts necessary to justify opposition to the motion are within the exclusive knowledge of the defendants. In order to deny the motion on that ground, it must appear from the affidavits in opposition that such facts may exist but cannot then be stated (CPLR 3212, subd [f]). Only in the event that it is persuaded that the opposing party’s reasons for not being able presently to oppose the motion are adequate, does the court have broad discretion to determine the further course of the litigation. (4 Weinstein-Korn-Miller, NY Civ Prac, par 3212.10.)
The record in the instant proceeding is barren of any proof by affidavit or otherwise that could serve to defeat the motion, and, therefore, Special Term properly granted summary judgment to the defendants. However, the complaint in an action for a declaratory judgment should not be dismissed merely because the plaintiffs are not entitled to the declaration sought by them, but the rights of the parties should be declared with respect to the subject matter of the litigation (St. Lawrence Univ. v Trustees of Theol. School of St. Lawrence Univ., 20 NY2d 317; Town of Brookhaven v Parr Co. of Suffolk, 47 AD2d 554). We conclude that the record keeping system established by defendants concerning out-patients of their facility does not constitute a violation of any constitutional rights of the plaintiffs, nor does it violate any statutory requirement. Accordingly, plaintiffs are not entitled to the relief they seek.
The judgment should be modified, on the law, to the extent of directing judgment be entered in favor of the defendants (1) declaring that the plaintiffs’ right of privacy, the patient-physician privilege, and the right of staff personnel to practice their profession have not been violated, and (2) that it is proper for the defendants to keep identifying data and information concerning out-patients in a centralized computerized facility, and, as so modified, affirmed, without costs.