The deal will refinance some debt and take out new debt to fund an electronic records transition, renovate spaces and buy equipment.