I need some help extracting lines of text from a word processing field. Here's how I need the file layout on the end product:
4 This patient needs to stay in bed and drink plenty of
4 liquids. I would like to see the patient in my office
4 in 2-3 weeks for a post surgery checkup.
I'm using fileman to write a adhoc to pull lines of text from a word processing field. The problem is in attempting to include a '4' in front of each line of text. I can jump inside the word processing field by typing |APPOINTMENT COMMENTS Then when I attempt to do a "4"_APPOINTMENT COMMENTS, it says you can't do a '_' scalar operation on a word processing field. So I attempt to put the line of text inside a param variable, so I type something like
SETPARAM(APPOINTMENT COMMENTS,"COMMENT"X and again I get an error. I have found out that I can reference word processing fields by doing this: SETPARAM(PREVIOUS(APPOINTMENT COMMENTS),"PREV"X
or I can type SETPARAM(NEXT(APPOINTMENT COMMENTS),"NEXT"X
however, if the word processing field only has 1 line of text, I am unable to grab the previous or next line of text.
Does anyone know a solution for this? I hope there is a MUMPS programmer out there that knows how to fix. Thanks.
4 This patient needs to stay in bed and drink plenty of
4 liquids. I would like to see the patient in my office
4 in 2-3 weeks for a post surgery checkup.
I'm using fileman to write a adhoc to pull lines of text from a word processing field. The problem is in attempting to include a '4' in front of each line of text. I can jump inside the word processing field by typing |APPOINTMENT COMMENTS Then when I attempt to do a "4"_APPOINTMENT COMMENTS, it says you can't do a '_' scalar operation on a word processing field. So I attempt to put the line of text inside a param variable, so I type something like
SETPARAM(APPOINTMENT COMMENTS,"COMMENT"X and again I get an error. I have found out that I can reference word processing fields by doing this: SETPARAM(PREVIOUS(APPOINTMENT COMMENTS),"PREV"X
or I can type SETPARAM(NEXT(APPOINTMENT COMMENTS),"NEXT"X
however, if the word processing field only has 1 line of text, I am unable to grab the previous or next line of text.
Does anyone know a solution for this? I hope there is a MUMPS programmer out there that knows how to fix. Thanks.