Your peritoneal membrane can become scarred if you have peritonitis. Scars can make it hard for the membrane to filter waste products from the blood. If the membrane has too many scars to work well, you may need to change to another type of treatment, such as hemodialysis.