Whenever the secretary or a local qualified medical health officer has reasonable grounds to suspect any person of being infected with a venereal disease, tuberculosis or any other communicable disease, or of being a carrier, he shall require the person to undergo a medical examination and any other approved diagnostic procedure, to determine whether or not he is infected with a venereal disease, tuberculosis or any other communicable disease, or is a carrier. In the event that the person refuses to submit to the examination, the secretary or the local qualified medical health officer may (1) cause the person to be quarantined until it is determined that he is not infected with a venereal disease, tuberculosis or any other communicable disease, or of being a carrier, or (2) file a petition in the court of common pleas of the county in which the person is present, which petition shall have appended thereto a statement, under oath, by a physician duly licensed to practice in the Commonwealth, that such person is suspected of being infected with venereal disease, tuberculosis or any other communicable disease, or that such person is suspected of being a carrier. Upon filing of such petition, the court shall, within twenty-four hours after service of a copy thereof upon the respondent, hold a hearing, without a jury, to ascertain whether the person named in the petition has refused to submit to an examination to determine whether he or she is infected with venereal disease, tuberculosis or any other communicable disease, or that such person is a carrier. Upon a finding that the person has refused to submit to such examination and that there was no valid reason for such person so to do, the court shall forthwith order such person to submit to the examination. The certificate of the physician appended to the petition shall be received in evidence and shall constitute prima facie evidence that the person therein named is suspected of being infected with venereal disease, tuberculosis or any other communicable disease, or that such person is a carrier. The examination ordered by the court may be performed by a physician of his own choice at his own expense. The examination shall include physical and laboratory tests performed in a laboratory approved by the secretary, and shall be conducted in accordance with accepted professional practices, and the results thereof shall be reported to the local health board or health department on forms furnished by the Department of Health. Any person refusing to undergo an examination, as herein provided, may be committed by the court to an institution in this Commonwealth determined by the Secretary of Health to be suitable for the care of such cases.
35 P.S. § 521.7