How can I use LISTRXNEW() without having the date of signing, and the name of the signing provider show up?
It would be difficult, perhaps impossible, to get a reliable list using that data symbol since GE hasn't released a delimited version of it. Of course you can try, maybe use hard returns as delimiters, and then match on the label text (Entered by; Signed by; Method used; Ideal Pharamcy, etc.) and remove them.
A better way might be to loop through MED_LIST_CHANGES("DELIMITED"), and if array[1] == "PRESCRIB", then have your result be arr[2] + array[3] - the description and the instructions, or whatever you want that gets returned by the symbol. Depending on your actual needs you may want to include meds where the action (element 1) was "ADD" and/or "CHANGE.
{fn get_new_rxs(list){
if list == "" then return "" else "" endif
local arrMeds, sMeds, n, result=""
arrMeds=getfield(list,"|", "")
sMeds=size(arrMeds)
for n=1, n<=sMeds, n=n+1 do
arrMeds[n]=getfield(arrMeds[n],"^","")
if arrMeds[n][1]=="PRESCRIB" then
if result <> "" then result=result+arrMeds[n][2]+" "+arrMeds[n][3] else
result= arrMeds[n][2]+" "+arrMeds[n][3]
endif
endif
endfor
return result}}
You may also be able to use getrow/getrowcount and mine the mldefs for the what you need as well.
And, one should include a return so you don't have a mess - sorry left that out.
Also, the call for your data display or whatever, would be:
{get_new_rxs(med_list_changes("delimited"))}
{fn get_new_rxs(list){
if list == "" then return "" else "" endif
local arrMeds, sMeds, n, result=""
arrMeds=getfield(list,"|", "")
sMeds=size(arrMeds)
for n=1, n<=sMeds, n=n+1 do
arrMeds[n]=getfield(arrMeds[n],"^","")
if arrMeds[n][1]=="PRESCRIB" then
if result <> "" then result=result+hret+arrMeds[n][2]+" "+arrMeds[n][3] else
result= arrMeds[n][2]+" "+arrMeds[n][3]
endif
endif
endfor
return result}}
Thank you. I was able to make this work.