This indicates some form of data corruption in Medisoft. A Medisoft support professional should check claim, statement, and transaction tables for corruption. Alternatively, restore Medisoft from a backup prior to when the error was observed.