Implications of legislation in improving healthcare