Hi,
I would like some help with the MEL function that will populate the multi-line text field linked to an obsterm form the newest entry to the oldest entry. Currently the information is populated from oldest to newest values.
Current Display: New Display:
03/14/17 Echo 07/12/19 CT Scan
06/15/19 Chest X-ray 06/15/19 Chest X-ray
07/12/19 CT scan 03/14/17 Echo
/*Update Image Log*/
{Update_Image(obsnow("IMAGE DESCR"))}
{ fn Update_Image(strImage)
{
strAdd=""
if strImage<>"" then
strAdd=(if obsany("IMAGE DESCR")<>"",HRET,"") +strImage
endif
obsnow("IMAGE DESCR",obsany("IMAGE DESCR")) + strImage
}
}
Thank you
Is there a reason you aren't using LIST_OBS? I would think LIST_OBS("IMAGE DESCR","pencil","value","list") would give you what you are looking for.
Thank you David. It worked.