Notwithstanding Section 3206, the matter presented by the petition may be submitted for the determination of the court upon proper and sufficient medical declarations if the attorney for the petitioner and the attorney for the patient so stipulate and further stipulate that there remains no issue of fact to be determined.