When you try to add a new CPT code to a Fee Sheet group the Code List window pops up, allows you to search and find codes, but once the code is selected, all selections disappear and you set with an empty Code List window. All that you can do is close the window. Tested in both Chrome and Firefox Ubuntu Browsers to Ubuntu server implemenation.
To work around, what is the format of the fs_codes field in the ‘fee_sheet_options’ table. There is only a single entry for each group, so its hard to tell how a multiple list of multiple fees would be formatted: CPT4|99201|
I looked at this a little. I doubt I’m qualified to implement a fix, but I have noticed that the called interface/patient_file/encounter/find_code_popup.php calls a javascript process called “opener.set_related”. I don’t see where this property is pulled into the routine.
Also notice that when you hover over the links on the popup that the links to pull in the codes seem to all be incomplete. Mine all look like this… “http://<sitename>/interface/patient_file/encounter/find_code_popup.php?codetype=”
Given hints about where to look further on this, I’m happy to do that.
Henry,
“opener” refers to the window which opened find_code_popup.php. In this case it superbill_custom_full.php opens find_code_popup, and scf is the file which defines the set_related javascript function.
Here’s some more info on “openemr” for reference. http://www.w3schools.com/jsref/prop_win_opener.asp
-Kevin Yeh kevin.y@integralemr.com
I have looked into this problem and found that after a search is performed the site ID is missing from session data. Not sure if a popup needs a “restoreSession()” like other sessions.
We were experiencing the same problem adding codes (CPT and ICD) to the Fee Sheet list.
The function set_related() is defined twice inside interface/super/edit_list.php (lines 489 and 551). It appears as though one callback is intended when editing the Immunizations list, and the other when editing the Fee Sheet.
I am new to the OpenEMR code base, so I simply combined the two functions and used an if statement to determine which path to follow. I’m sure there is a much cleaner way to correct the issue, and will be happy to submit a proper patch once I become more familiar with the code. In the meantime, I have included the combined set_related() function I’m using. This has been tested both from Fee Sheet & Immunization list edit.
Thanks,
Aric Aversa
function set_related(codetype, code, selector, codedesc) {
if (typeof(current_sel_name) == 'undefined')
{
// Coming from Fee Sheet edit
var f = document.forms[0];
var celem = f['opt[' + current_lino + '][codes]'];
var delem = f['opt[' + current_lino + '][descs]'];
var i = 0;
while ((i = codedesc.indexOf('~')) >= 0) {
codedesc = codedesc.substring(0, i) + ' ' + codedesc.substring(i+1);
}
if (code) {
if (celem.value) {
celem.value += '~';
delem.value += '~';
}
celem.value += codetype + '|' + code + '|' + selector;
if (codetype == 'PROD') delem.value += code + ':' + selector + ' ' + codedesc;
else delem.value += codetype + ':' + code + ' ' + codedesc;
} else {
celem.value = '';
delem.value = '';
}
displayCodes(current_lino);
}
else
{
// Coming from Immunizations edit
var f = document.forms[0][current_sel_name];
var s = f.value;
if (code) {
s = code;
}
else {
s = '0';
}
f.value = s;
}
}