5. A person falls within this paragraph if—E+W
(a)the CCG has made an arrangement in the exercise of its commissioning functions (by itself or jointly with a local authority) by virtue of which immediately before attaining 18 the person was provided with services to meet his or her continuing care needs;
(b)those services consist of or include the provision of the following accommodation and services to meet the person's continuing care needs—
(i)accommodation in a care home, a children's home or an independent hospital situated in the area of another CCG, and
(ii)nursing and another service which is a planned service, as part of the health service to meet his or her continuing care needs;
(c)the person is resident in that accommodation and continues to need that planned service (or those planned services), and
(d)the person would not be a person for whom the CCG is responsible under section 3(1A)(a) of the 2006 Act.