South Carolina's largest hospital system will not be buying three more hospitals, with Prisma Health announcing Friday that it was giving up the plans after an unfavorable court ruling and questions about whether the deal would give Prisma a near-monopoly over hospital care in much of the state's Midlands region.