and Social Care Act 2012. Sections 13(3)(aa) and (ab) were inserted by paragraph 16(b) of Schedule 21 to the Health and Social Care Act 2012. Chapter 2 Section 18 Section 18(4) gives effect to Schedule 3. Section 21 This section gives effect to Schedule 4. Chapter 3 Section 22 Section 22(6) was repealed by paragraph 18 of Schedule 21 to the Health and Social Care Act 2012. Section 22(8) gives effect to Schedule 5. Chapter 4 Sections 25A to 25E These sections were inserted by section 1(1) of the Nurse Staffing Levels (Wales) Act 2016. Section 30 Section 30(2)(d) was repealed by paragraph 88(b) of Schedule 5 to, and Part 1 of Schedule 15 to, the Health and Social Care Act 2008. Section 30(2)(e) was repealed by paragraph 22(b) of Schedule 7 to the Health and Social Care Act 2012. Sections 30(2)(f) and (g) were inserted by section 1(3)(c) of the National Health Service (Indemnities) (Wales) Act 2020. Sections 30(8) to (11) were inserted by section 1(8) of the National Health Service (Indemnities) (Wales) Act 2020. Part 3 Section 32 Section 32(4) was inserted by regulation 245 of the Social Services and Well-being (Wales) Act 2014 (Consequential Amendments) Regulations 2016 (SI 2016/413) (W 131). Section 35 Section 35(11A) was inserted by regulation 246(b) of the Social Services and Well-being (Wales) Act 2014 (Consequential Amendments) Regulations 2016. Section 36 Sections 36(3)(a) and (b) were repealed by paragraph 23 of Schedule 21 to the Health and Social Care Act 2012. Section 40 This section was repealed by paragraph 19 of Schedule 4 to the Well-being of Future Generations (Wales) Act 2015. Part 4 Section 41 Section 41(4) was repealed by paragraph 26 of Schedule 21 to the Health and Social Care Act 2012. Part 5 Section 56 Section 56(4) was repealed by paragraph 28 of Schedule 21 to the Health and Social Care Act 2012. Part 7 Chapter 1 Section 80 Section 80(4A) was inserted by section 220(8) of the Health and Social Care Act 2012. Section 80(4A) was substituted by paragraph 31 of Schedule 5 to the Children and Social Work Act 2017. Section 82A This section was inserted by section 111(1) of the Public Health (Wales) Act 2017. Section 83 Sections 83(2A) to (2C) were inserted by section 112(3) of the Public Health (Wales) Act 2017. Section 83(3A) was inserted by section 112(4) of the Public Health (Wales) Act 2017.