substitute
(i) a doctor who is working at a hospital, or an institution mentioned in section 557 (2) (a) (ii) (Standing interim approval to prescribe buprenorphine and methadone for patients of certain institutions); or
(ii) an intern doctor who is working at a hospital, or an institution mentioned in section 557 (2) (a) (ii), and who is acting under the direct supervision of a doctor at the hospital or institution; or
(iii) a doctor who is treating a person held in police custody; or
(iv) a doctor who holds an endorsement under section 582 (CHO decisions on applications for endorsement to treat drug-dependency); or
(v) a doctor who is prescribing continuing opioid dependency treatment for up to 5 drug-dependent people if—
(A) the people have already undergone opioid dependency treatment for at least 14 consecutive days (the initial treatment ); and
(B) the initial treatment was prescribed by a doctor holding an endorsement under section 582.