# I am Flummoxed By Strange "Codes&

**URL:** <https://community.open-emr.org/t/i-am-flummoxed-by-strange-codes/6628>\
**Category:** OpenEMR Development\
**Created:** [July 5, 2011, 8:19pm UTC](https://community.open-emr.org/t/i-am-flummoxed-by-strange-codes/6628 "2011-07-05T20:19:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [July 5, 2011, 8:19pm UTC](https://community.open-emr.org/t/i-am-flummoxed-by-strange-codes/6628/1 "2011-07-05T20:19:43Z")

</div>

**[mike-h30](https://sourceforge.net/u/mike-h30/)** wrote on [Tuesday, July 05, 2011](https://sourceforge.net/p/openemr/discussion/202506/thread/9e2ded6a/#a697):

We have been using OpenEMR since 2.8.3.&nbsp; I have upgraded accordingly in the past and we are currently running OpenEMR 4.0.&nbsp; I have put off implementing billing into OpenEMR until recently.&nbsp; I began testing billing in OpenEMR 4.0 by first processing paper claims.&nbsp; I discovered a minor issue when printing CMS1500 in that the justified diagnosis code was being printed twice in box 21 when 3 or less total diagnosis codes were added to the claim.&nbsp; I found a potential source of the error in /library/Claim.class.php and posted in the following thread.

**CMS 1500 possible bugs in 4.0**  
[https://sourceforge.net/projects/openemr/forums/forum/202506/topic/3955652](https://sourceforge.net/projects/openemr/forums/forum/202506/topic/3955652)

Upon further testing I discovered that my issue is database related and not caused by code in /library/Claim.class.php.&nbsp; If I delete my original OpenEMR 2.8.3 “codes” table and import the “codes” table from the OpenEMR 4.0 demo, I do not have the issue of a justified diagnosis code printing twice on the CMS1500.&nbsp; I also noticed that my “codes” table that originated from a clean install of OpenEMR 2.8.3 contains about 26,000 rows.&nbsp; I tested with a separate clean installation of OpenEMR 2.8.3 and verified that the “codes” table does indeed come pre-populated with 26,000 rows of data.&nbsp; From OpenEMR 2.9.0 to current, the “codes” table has zero rows after clean installs.&nbsp; Also, my original “codes” table from OpenEMR 2.8.3 is latin1\_swedish\_ci.&nbsp; The recent “codes” table is utf8\_general\_ci.

For the time being, my solution is to delete my “codes” table that originated from OpenEMR 2.8.3 and bring in a clean version from OpenEMR 4.0.&nbsp;

Does anyone see an issue with doing this?&nbsp;

Does anyone have an idea why the “codes” table from OpenEMR 2.8.3 is giving me issues with CMS1500 printing in OpenEMR 4.0?

I just want to verify that I have my ducks in a row before I go live with billing.&nbsp; Thanks.

-Mike

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [July 5, 2011, 8:28pm UTC](https://community.open-emr.org/t/i-am-flummoxed-by-strange-codes/6628/2 "2011-07-05T20:28:02Z")

</div>

**[mike-h30](https://sourceforge.net/u/mike-h30/)** wrote on [Tuesday, July 05, 2011](https://sourceforge.net/p/openemr/discussion/202506/thread/9e2ded6a/#d8fd):

Please disregard this post. Due to messy formatting of subject line I moved my post here:

[https://sourceforge.net/projects/openemr/forums/forum/202506/topic/4596565](https://sourceforge.net/projects/openemr/forums/forum/202506/topic/4596565)

Mike

P.S.&nbsp; I dislike the design of the Source Forge forum.&nbsp; Source Forge mods please check out Virtual Box forums ([http://forums.virtualbox.org/)](http://forums.virtualbox.org/%29) for ideas.&nbsp; They have nice edit and preview features for threads as well as ability to add images.
