The California Department of Public Health licenses and investigates skilled nursing facilities for patient safety violations, while assisted living communities fall under the California Department of Social Services.