The prison authorities of any state, county, or city prison shall make available to the health officers such portion of the prison as may be necessary for a clinic or hospital wherein the following persons may be isolated and treated:
In lieu of such isolation, any of such persons, in the discretion of the health officer, may be required to report for treatment to a licensed physician. This section may not be construed to interfere with the service of any sentence imposed by a court as punishment for the commission of crime.
N.D.C.C. § 23-07-09