Minor "BUG" Capitation estimation

This forum is for programmers who have questions about the source code.
Post Reply
User avatar
kapricorn
Posts: 62
Joined: Tue Dec 18, 2007 12:40 pm

Minor "BUG" Capitation estimation

Post by kapricorn » Wed Jul 14, 2010 10:08 am

When an appointment with procedures under a certain providor is changed to a different providor the procedure providor changes but the claim procedure providor remains the same but needs to be changed to match the procedure providor. This only makes for a serious problem if it is a capitation plan since the writeoffs no longer match the providor.

To be corrected the claimproc.ProvNum should always match the procedurelog.ProcNum

This is a query that we wrote to correct it after the fact but it needs corrected in the code.

UPDATE claimproc
inner join procedurelog on procedurelog.procnum=claimproc.ProcNum
SET claimproc.ProvNum=procedurelog.ProvNum
WHERE
claimproc.ProvNum <> procedurelog.ProvNum AND claimproc.ProcNum = procedurelog.ProcNum

This should make all the claimproc.provnum the same as the procedurelog.provnum.

Thanks,
Curt
Curt Wyandt
curt@kapricorn.com

Kapricorn Systems, Inc.
214 Woodstown Highway
Hollsopple, PA 15935
800-344-5342
http://www.kapricorn.com

Post Reply