FIFO provider splits
Posted: Mon Jun 18, 2007 4:48 pm
I just talked on the phone with Dan, a longtime user who has spent the last 8 months branching out on his own code, and is now trying to merge back into the main version without losing all the functionality he built. The main feature he worked on was FIFO patient payments split by provider. (this is not an issue with insurance payments, but only patient payments). This has been on our todo list for a long time as a fairly high priority. He says he's had it working fine for a few months in a production environment. Issues:
1. He created 4 new tables to handle it. He also added one field to the procedurelog table as a flag. This added field will cause his database to fail after he upgrades it to the current version, but he can solve that by repositioning his custom field at the end of the table after the conversion.
2. Moving patients between families makes it hard to tell where the payment should be allocated. We could either lock patients from moving, or, even better, come up with routines to compensate.
My initial reaction was that we already have ProvNum, ProcNum, and PatNum fields in the paysplit table, so all possible splitting should already be accomodated in the database. My opinion was that the allocation was an algorithm problem that could be built on top of the current database schema. When reallocation was necessary, old splits could be altered as needed. But after I thought about it, if he already has it working, then I might rather leave it alone just like he has it. It is already tested. So maybe it would be better to see what his four tables look like and consider adding them to our trunk. Can we see the table schemas?
1. He created 4 new tables to handle it. He also added one field to the procedurelog table as a flag. This added field will cause his database to fail after he upgrades it to the current version, but he can solve that by repositioning his custom field at the end of the table after the conversion.
2. Moving patients between families makes it hard to tell where the payment should be allocated. We could either lock patients from moving, or, even better, come up with routines to compensate.
My initial reaction was that we already have ProvNum, ProcNum, and PatNum fields in the paysplit table, so all possible splitting should already be accomodated in the database. My opinion was that the allocation was an algorithm problem that could be built on top of the current database schema. When reallocation was necessary, old splits could be altered as needed. But after I thought about it, if he already has it working, then I might rather leave it alone just like he has it. It is already tested. So maybe it would be better to see what his four tables look like and consider adding them to our trunk. Can we see the table schemas?