When I use the meds_after data symbol and pull out the med and the associated diagnosis, both have the blanks removed. So for this mel statement:
{
MEDLIST = getfield(meds_after('delimited'),"|")
MEDSIZE = size(MEDLIST)
COUNT
GETMED
RETURNMED = ""
for COUNT = 1, COUNT <= MEDSIZE, COUNT = COUNT + 1
do GETMED = getfield(MEDLIST[count],"^","")
RETURNMED = RETURNMED + GETMED[1] + " for " + GETMED[15] + HRET
endfor
RETURNMED}
I get:
LISINOPRIL2.5MGTABS for CHRONICKIDNEYDISEASESTAGEII~DIABETESMILLITS,TYPEII,CONTROLLED
Any ideas what I'm doing wrong?
thanks!!!
When you use the getfield utility to create an array you must specify the third arguement or spaces will be treated as whitespace and ignored. Make the third parameter "" and I think that will fix it.
getfield(meds_after('delimited'),"|", "")
Aha! So right you are. Thank you very much!