So you are wanting it to put an order into the Orders module?
Hello,
I have created a form for one of our doctors that asks questions regarding back pain, and if they answer a certain way it enters a CPT Code into the patients file. Right now it is inserting this code into the Observation part of the dictation and I need it to be entered into the CPTCode part of the dictation. Does anyone know of a way to accomplish this?
No not exactly, for example when the document is signed, the CPT Codes that are in the form instead of them going to the CPT Codes part in the dictation the codes get transferred to the observation part. Attached is an excerpt of my code. Not sure if this will help but any assistance that you might be able to give would be grateful.
fn AddCodes()
{
//CHECK FOR CPT CODES TO ADD
IF (DOCUMENT.PAIN_INVENTORY == "Yes") then
MEL_ADD_PROBLEM("","BACK PAIN: PAIN & FXN ASSESSED CERTAIN ASPECTS OF CARE","CPT-1130F",STR(._TODAYSDATE),"","")
orders1= "CPT-1130F "
endif
IF (DOCUMENT.PHYSICAL_EXAM == "Yes") then
MEL_ADD_PROBLEM("","BACK PAIN: PHYS EXAM ON DATE OF INIT VST FOR LBP DONE","CPT-2040F",STR(._TODAYSDATE),"","")
orders2= "CPT-2040F "
endif
IF (DOCUMENT.ADVICE_ACTIVITY == "Yes") then
MEL_ADD_PROBLEM("","BACK PAIN: 1ST VISIT ADVICE TO KEEP/RESUME NORMAL ACTIVITIES","CPT-4245F",STR(._TODAYSDATE),"","")
orders3= "CPT-4245F "
endif
IF (DOCUMENT.ADVICE_BED == "Yes") then
MEL_ADD_PROBLEM("","BACK PAIN: 1ST VISIT ADVICE AGAINST BED REST >=4 DAYS","CPT-4248F",STR(._TODAYSDATE),"","")
orders4= "CPT-4248F "
endif
?
//IF ALL 4 ARE YES ADD A FINAL CODE
IF (DOCUMENT.PAIN_INVENTORY == "Yes" AND DOCUMENT.PHYSICAL_EXAM == "Yes" AND DOCUMENT.ADVICE_ACTIVITY == "Yes" AND DOCUMENT.ADVICE_BED == "Yes") then
MEL_ADD_PROBLEM("","BACK PAIN: ALL QUALIFYING BACK PAIN MSR PRFRM","CPT-G8502",STR(._TODAYSDATE),"","")
orders5= "CPT-G8502 "
endif
If (Orders5 ="CPT-G8502 ") then
OBSNOW("BLEO",str(Orders5))
else
OBSNOW("BLEO",str(orders1 + "" + orders2 +""+orders3+""+orders4))
endif
}
OBSNOW("BLEO",str(orders1 + "" + orders2 +""+orders3+""+orders4))
This will add all the order codes to the observation term BLEO; however, if you want to actually put these orders in to be billed, you would need to use MEL_ADD_ORDER().
Hello,
Ya I tried adding that and I need to add the CPT Codes to the orders section of the patients file but so far I am still unable to add it to the orders section after I added the MEL_ADD_ORDER(). Is there any other information that you might be able to give me.