The issue in this appeal is one of first impression. Does section 406 of the Mental Health Procedures Act,1 which authorizes a court to order involuntary treatment “following an examination in aid of sentencing,” have application to juveniles who have been adjudicated delinquent? The Juvenile Court of Luzerne County held that it did and ordered that Troy McMullins, age 17, be committed “for inpatient psychiatric treatment to the forensic adolescent unit at Norristown State Hospital for a period not to exceed ninety (90) days.” The juvenile appealed. We affirm.
The present appeal is not moot. This is because an order providing for an involuntary commitment affects an important liberty interest and because most involuntary commitment orders expire before appellate review is possible. Commonwealth v. Blaker, 293 Pa.Super. 391, 393 n. 1, 446 A.2d 976, 977 n. 1 (1981); In re S.C., 280 Pa.Super. 539, 542-543, 421 A.2d 853, 854-855 (1980); In re Commitment *534of Ann S., 279 Pa.Super. 618, 621 n. 2, 421 A.2d 370, 372 n. 2 (1980).
Troy McMullins was found guilty of acts constituting the crimes of simple assault, indecent assault and making ter-roristic threats and was adjudicated delinquent. On February 18, 1982, he was sent to the diagnostic center for juveniles at Loysville to undergo psychiatric evaluation to aid the court in making final disposition. Based on a staff report from Loysville, the Juvenile Probation Officer filed a petition requesting that the juvenile be committed for 90 days pursuant to section 406 of the Mental Health Procedures Act. The petition was referred to a Mental Health Review Officer who, following an evidentiary hearing, found that McMullins was “severely mentally disabled and in need of inpatient psychiatric treatment.” She recommended that the petition be granted; and on May 12, 1982, the court entered the order from which the instant appeal has been filed.
The Juvenile Act of July 9, 1976, P.L. 586, 42 Pa.C.S. § 6301 et seq. provides:
“If, at a dispositional hearing of a child found to be a delinquent or at any hearing, the evidence indicates that the child may be subject to commitment or detention under the provisions of the act of October 20, 1966 (3rd Sp.Sess., P.L. 96, No. 6), known as the ‘Mental Health and Mental Retardation Act of 1966,’ or the act of July 9, 1976 (P.L. 817, No. 143), known as the ‘Mental Health Procedures Act,’ the court shall proceed under the provisions of the appropriate statute.”
42 Pa.C.S. § 6356. However, a juvenile delinquent is not per se mentally ill. The presence of mental illness cannot be inferred solely from the fact that the person acted in a manner displaying delinquency. Commonwealth v. Hubert, 494 Pa. 148, 152, 430 A.2d 1160, 1162 (1981).
Section 401(c) of the Mental Health Procedures Act provides:
*535“(c) As to any person who is subject to a petition or who has been committed under the Juvenile Act, the civil provisions of this act applicable to children of his age shall apply to all proceedings for his examination and treatment....”
Thus far, the Act seems clear. The difficulty arises because, with respect to court ordered involuntary examination and treatment under the Act, no distinction is made between adults and children. One searches in vain through the sections of the Act for provisions pertaining to age distinctions regarding persons who require involuntary examination or treatment.
With respect to voluntary treatment, the Act distinguishes between persons 14 years of age or over and persons under 14. Thus, a person who is 14 years of age or over may submit himself to voluntary examination or treatment. A person under 14, however, can be subjected to examination and treatment only by a parent, guardian or person standing in loco parentis. 50 P.S. § 7201.2 See also: 50 P.S. § 7204. We shall return to this age distinction at a later point in this opinion.
Section 405 of the Mental Health Procedures Act provides that a court may order an examination for mental illness to aid it whenever “a person who has been criminally charged is to be sentenced.” Specifically, it provides as follows:
“Whenever a person who has been criminally charged is to be sentenced, the court may defer sentence and order him to be examined for mental illness to aid it in the determination of [sic] disposition____”
Section 406 provides further:
“Upon a finding of incompetency to stand trial under section 403 after an acquittal by reason of lack of responsibility under section 404, or following an examination in aid of sentencing under section 405 the attorney for the Commonwealth, on his own or acting at the direction *536of the court, the defendant, his counsel, the county administrator, or any other interested party may petition the same court for an order directing involuntary treatment under section 304.” (emphasis added).
Did the legislature intend that sections 405 and 406 should have application to proceedings in the Juvenile Courts? Appellant argues that it did not. A juvenile who has been adjudicated delinquent, he contends, has not been “criminally charged” and cannot be “sentenced.” On the other hand, it is argued, sections 405 and 406 are the only provisions of the statute which suggest even remotely a procedure which can be followed to obtain treatment for a juvenile delinquent who is severely mentally disabled.
Section 406 permits a court having jurisdiction to enter an order “directing involuntary treatment under section 304.” The latter section does not distinguish between adults and juveniles. It establishes both conditions and procedure by which “a person who is severely mentally disabled and in need of treatment” can be subjected to court-ordered involuntary treatment. It can be used in cases of adults and juveniles, whether or not there are pending criminal or delinquency proceedings. Involuntary examination and treatment can be court ordered only where the person to be examined or treated is severely mentally disabled. This condition exists “when, as a result of mental illness, his capacity to exercise self-control, judgment and discretion ... is so lessened that he poses a clear and present danger of harm to others or to himself.” 50 P.S. § 7301(a). Clear and present danger is defined in section 301(b)(1)3 as follows:
“(b) Determination of Clear and Present Danger.—(1) Clear and present danger to others shall be shown by establishing that within the past 30 days the person has inflicted or attempted to inflict serious bodily harm on another and that there is a reasonable probability that such conduct will be repeated. If, however, the person has been found incompetent to be tried or has been *537acquitted by reason of lack of criminal responsibility on charges arising from conduct involving infliction of or attempt to inflict substantial bodily harm on another, such 30-day limitation shall not apply so long as an application for examination and treatment is filed within 30 days after the date of such determination or verdict. In such case, a clear and present danger to others may be shown by establishing that the conduct charged in the criminal proceeding did occur, and that there is a reasonable probability that such conduct will be repeated. For the purpose of this section, a clear and present danger of harm to others may be demonstrated by proof that the person has made threats of harm and has committed acts in furtherance of the threat to commit harm.”
This subsection, as do sections 405 and 406, uses language such as “criminal proceeding” which, according to appellant, suggests application only to adult criminal proceedings. The requirement that a clear and present danger to others be shown by conduct within 30 days has been eliminated where a person has been found incompetent to be tried and where he has been acquitted by reason of lack of criminal responsibility.
The 30 day requirement, it will be observed, has not been excused by this section in cases where involuntary treatment is determined to be necessary “following an examination in aid of sentencing under section 405.” This apparent oversight can be explained only if the legislature contemplated that involuntary treatment as a part of sentencing or disposition be covered fully by section 405. This section, it will be recalled, authorizes an examination for mental ill-, ness prior to sentencing or other disposition.
If appellant’s arguments are correct, the Mental Health Procedures Act has failed to provide for involuntary examination or treatment of a juvenile who has been adjudged delinquent, unless by chance he has inflicted or attempted to inflict serious bodily harm on another within thirty days of the dispositional hearing. In most cases, this means that unless a new, second offense has been commit*538ted, a delinquent cannot be ordered to receive necessary treatment involuntarily, and the only dispositions available to the court are release or confinement. Such a result is absurd. Not only is it contrary to the provisions of the Juvenile Law which direct that a juvenile court in appropriate cases shall proceed under the Mental Health Procedures Act but it flies in the teeth of the policy and purpose of the Mental Health Procedures Act itself. The legislative purpose, when it enacted the Mental Health Procedures Act, was “to assure the availability of adequate treatment to persons who are mentally ill” and “to make voluntary and involuntary treatment available where the need is great and its absence could result in serious harm to the mentally ill person or to others.” 50 P.S. § 7102. In addition, section 103 states that the Act “establishes rights and procedures for all involuntary treatment of mentally ill persons ... and for all voluntary inpatient treatment of mentally ill persons.” This is all inclusive. It does not establish rights and procedures for all persons except juveniles who have been adjudicated delinquent.
We conclude, therefore, that in enacting the Mental Health Procedures Act the legislature intended that all rights granted to adults be accorded also to juveniles who are fourteen years of age, their parent, guardian or other person in loco parentis must act for them. Whether a person fourteen or older be certified to and convicted in adult court or adjudicated delinquent in juvenile proceedings, the court may order a mental examination of such person to aid in final disposition. To show that such a person is severely mentally disabled because he poses a clear and present danger to others, it is enough that the offense resulting in the adjudication of delinquency involved proof that the person made threats of harm and committed acts in furtherance of the threat to commit harm, and that such conduct is likely to reoccur without treatment. It is not necessary to such a showing that the conduct occur within thirty days of disposition or sentencing. To hold otherwise—to hold that sections 405 and 406 have no signif*539icance apart from section 304—would be to render them surplusage. An order for involuntary treatment could then be entered only as permitted by section 304, and sections 405 and 406 would be rendered meaningless. This is contrary to the teaching of the Statutory Construction Act which, at 1 Pa.C.S. § 1921(a) instructs that a statute must be construed, if possible, to give effect to all its provisions. See also: Colautti v. Franklin, 439 U.S. 379, 392, 99 S.Ct. 675, 684, 58 L.Ed.2d 596, 607 (1979); Matter of Employees of Student Services, Inc., 495 Pa. 42, 52, 432 A.2d 189, 195 (1981); In Interest of Jones, 286 Pa.Super. 574, 586, 429 A.2d 671, 677 (1981); Lukus v. Westinghouse Electric Corp., 276 Pa.Super. 232, 262-263, 419 A.2d 431, 447 (1980). In construing section 406, we must view it with reference to the entire statute of which it is but a part.
The hearing court accepted the Mental Health Review Officer’s recommended finding that the juvenile was severely mentally disabled and in need of inpatient psychiatric treatment. The juvenile had a history of assaultiveness which, psychiatric testimony predicted, would reoccur without treatment. He was suffering from severe emotional disturbance symptomized by a symbiotic attachment to his mother, assaultiveness toward other women, as well as further thought and feeling disorders.
It is not the function of this Court to find facts but only to determine whether there is evidence in the record to support the hearing court’s findings. Commonwealth ex rel. Gibson v. DiGiacinto, 497 Pa. 66, 70, 439 A.2d 105, 107 (1981). Our review of the record discloses sufficient evidence to support the court’s order. Indeed, except for a contention that the assaultive behavior did not occur within thirty days of disposition, appellant does not contend otherwise.
Order affirmed.
MONTGOMERY, J., files a dissenting opinion.. 50 P.S. § 7406.
. A juvenile court stands in loco parentis and can subject a child under 14 to observation and treatment under this section. See: In Interest of Green, 273 Pa.Super. 397, 417 A.2d 708 (1980).
. 50 P.S. § 7301(b)(1).