I am able to output the referring provider information based on specialty to the banner using REGPROVIDER, however I would like to limit it just o the provider name and suffix. It appears that the provider name is field #1 and the suffix is field #2.
What I cannot figure out is how to limit the output to just field #1 and field #2.
Any ideas appreciated.
Additional information, I need to use the getfield command. Has anyone had any experience with the getfield functionality?
Thanks!
Here's a base getfield I manipulate:
{!fn fnTextTransImmunHx() {
local hold = getfield(IMMUN_GETLIST("", "last"), "|", "")
local temp
local rslt = ""
for i = 1, i <= size(hold), i = i + 1 do
temp = getfield(hold[i], "^", "")
if (rslt <> "") then
rslt = rslt
endif
rslt = rslt + cfmt(temp[3] + " Vaccine", "U") + if temp[4] <> "" then " - " else "" endif + temp[4] + /*if temp[24] <> "" then " - " else "" endif + temp[24] +*/ " - " + temp[30] + if temp[18] <> "" then " - " else "" endif + temp[18] + " " + temp [19] + " - " + if temp[7] == "Y" then "was given" else if temp[7] == "N" then "declined" else if temp[7] == "U" then "Undetermined please update in Immunization Management" else "" endif endif endif + if temp[8] <> "" then " - " else "" endif + temp[8] + "
"
endfor
return rslt
}}
As for what your trying, I'm not sure how REGPROVIDER works.