Need codes added to ICD10 descriptions?

aethelwulffe wrote on Friday, September 25, 2015:

Quick hack to add code to description in fee sheet.

  1. You have loaded external codes for ICD10.
  2. You have added one or more code categories to the LIST “Code Categories”.
  3. Under Administration/Codes (might be named ‘services’ in some installs) you have edited some commonly used codes you want to appear in the fee sheet/superbill and assigned them to one of the new categories you created in the list.
  4. Now, you see the drop-down(s) in the fee sheet, but they are just the text description. You want the code in front of it to help with code recognition/familiarization as well as to help order their appearance in the list.

So,
Find openemr/interface/forms/fee_sheet/new.php

Look somewhere around line 900 for a block that looks like this:



while ($row = sqlFetchArray($res)) {
    $ctkey = alphaCodeType($row['code_type']);
    if ($code_types[$ctkey]['nofs']) continue;
    echo "    <option value='" . attr($ctkey) . "|" .
      attr($row['code']) . ':'. attr($row['modifier']) . "|'>" . text($row['code_text']) . "</option>\n";
  }

Change it to this:

while ($row = sqlFetchArray($res)) {
    $ctkey = alphaCodeType($row['code_type']);
    if ($code_types[$ctkey]['nofs']) continue;
    echo "    <option value='" . attr($ctkey) . "|" .
      attr($row['code']) . ':'. attr($row['modifier']) . "|'>" . text($row['code']) . ':'. attr($row['modifier'].'~'.$row['code_text']) . "</option>\n";
  }

Note, that if you have already added codes to the front of your old ICD9 stuff, you will now have the code printed twice…but after Oct1, who gives a hoot.
I would like to give the whole pack to do this along with a Globals toggle that lets you turn it on and off, but my Globals layout is totally different than the main project…and I have no interest in digging through that to try to add it somewhere. It would just be a lost/hidden feature at that point.

aethelwulffe wrote on Friday, September 25, 2015:

EDIT: Sorry, didn’t properly encapsulate my code in blocks there at first… Manually adding Tilde characters does not seem to work…