Role of Regulation and Accreditation in Quality

How do regulations and accreditation help enforce quality healthcare? Discuss ways in which they help to improve the healthcare system.