Hi Geo,
Thank you for the link.
Sorry, this is very difficult for me to explain not knowing the scripting language, but I will try my best not to confuse you too much.
I was able to get Thom's example to work, and based on that, I was able to get this hypothetical situation to work:
***********************
< script contentType="application/x-javascript" name="Example2" >var oTestOrdered = {
12345678912345678: [ ["-"], ["AAA (Endologix)"], ["AAA (GORE)"], ["Aortic Arch"],["other"]],
56565: [ ["-"], ["Varicose Vein"], ["Venous Insufficiency"], ["Spider Veins"],["Symptomatic Var Veins"]],
46546: [ ["-"], ["TA biopsy"], ["CEA"], ["amputation"], ["debridement"]]
};
function SetTestEntries()
{
ICD9_2.clearItems();
ICD9_2.rawValue = null;
var aTests = oTestOrdered[xfa.event.change];
if(aTests && aTests.length)
{
for(var i=0;i<aTests.length;i++)
ICD9_2.addItem(aTests[i][0].toString());
}
}
</ script >
***********************
HOWEVER, I cannot get something like this one to work (the only difference is that I added a "9" to the first option) it seems as though I cannot insert anything beyond 17 consecutive characters (no dashes and underscores are allowed either):
------------------------------
< script contentType="application/x-javascript" name="Example2" >var oTestOrdered = {
123456789123456789: [ ["-"], ["AAA (Endologix)"], ["AAA (GORE)"], ["Aortic Arch"],["other"]],
56565: [ ["-"], ["Varicose Vein"], ["Venous Insufficiency"], ["Spider Veins"],["Symptomatic Var Veins"]],
46546: [ ["-"], ["TA biopsy"], ["CEA"], ["amputation"], ["debridement"]]
};
function SetTestEntries()
{
ICD9_2.clearItems();
ICD9_2.rawValue = null;
var aTests = oTestOrdered[xfa.event.change];
if(aTests && aTests.length)
{
for(var i=0;i<aTests.length;i++)
ICD9_2.addItem(aTests[i][0].toString());
}
</ script >
------------------------------
The form I am creating is a Vascular Lab request form, where the test ordered (drop down box 1)has a CPT code to reference the test being ordered (i.e., 93880 - Carotid Duplex Scan, bilateral) and the test has a set of diagnoses (ICD-9 codes) in drop down box 2, associated with that test (i.e., 459.81 - Venous Insufficiency)
I have found that I do not have a problem with the "diagnoses" but I cannot add the descriptive test select in the first place. That is, the code works fine if I leave it as "93880" but not "93880 - description." I have also run into the problem that I cannot use dashes or underscores, nor can I type more than 17 characters otherwise the code no longer works.
Is there something I need to add or remove in order to make this work?
Thank you in advance for your help and patience!