If the person for whom the diagnosis is sought by any court or agency of the State, county, or municipal government, desiring to utilize the services of the diagnostic center, is not under confinement or process, then admission to the diagnostic center shall be secured upon application to the Superior Court upon forms to be provided by the Department of Human Services. The county adjuster shall be the official charged with the responsibility of assisting with processing of the applications and shall perform functions similar to those set forth in Title 30 of the Revised Statutes. In connection with each application, the court shall order a hearing to be held, which may be in camera at the discretion of the court. At least 10 days' notice of the time, date, and place of the hearing shall be served upon the person, and if a minor or a person who is incapacitated, upon the parent, guardian, person standing in loco parentis, or person having custody and control of the minor or person who is incapacitated. At the hearing, the court shall determine whether the services of the diagnostic center shall be made available to the person and may order the person's confinement in the center for a period not to exceed 90 days, which order shall be provided to the center.
N.J.S. § 30:4A-7