Notwithstanding any inconsistent provision of Section 121365, 121366 or 121367, all of the following shall apply:
(a)
A person who is detained solely pursuant to subdivision (a) of Section 121365 shall not continue to be detained beyond the minimum period of time required, with the exercise of all due diligence, to make a medical determination of whether a person who is suspected of having tuberculosis disease, has active tuberculosis or whether a person who has active tuberculosis disease has infectious tuberculosis disease. Further detention of the person shall be authorized only upon the issuance of a local health officer’s order pursuant to subdivision (d) or (e) of Section 121365.
(b)
A person who is detained solely for the reasons described in subdivision (d) of Section 121365 shall not continue to be detained after he or she ceases to be infectious or after the local health officer ascertains that changed circumstances exist that permit him or her to be adequately separated from others so as to prevent transmission of tuberculosis disease after his or her release from detention.
(c)
A person who is detained for the reasons described in subdivision (e) of Section 121365 shall not continue to be detained after he or she has completed an appropriate prescribed course of medication.