I am working on a pill count form that creates a dynamic med list. I would like to also have a visibility region set up for each medication, that once clicked, allows me to enter the # of pills counted. I would like a hard return after each med and # counted is clicked and entered.
Here is what I have so far:
/*
Function to populate dynamic choice list of medications.
*/
!fn fnMedList(strList)
{
local lCounter
local MedArray
local lBuffer
local strFormattedList = ""
MedArray = getfield(strList, "|", "")
for lCounter = 1, lCounter <= size(MedArray), lCounter = lCounter + 1 do
MedArray[lCounter] = getfield(MedArray[lCounter], "^", "")
/* Need to remove commas from medication name */
lBuffer = tolower(MedArray[lCounter][1])
lBuffer = set(lBuffer, 1, toupper(get(lBuffer, 1))) + " " + MedArray[lCounter][7]
lBuffer = ReplaceStr(lBuffer, ",", ";")
strFormattedList = strFormattedList + lBuffer + ","
endfor
if (lCounter > 1) then
strFormattedList = remove(strFormattedList, size(strFormattedList))
endif
return (strFormattedList)
}
Hi, not to take over your post but I am looking for a medication management encounter form that helps manage the pill counts at different times of day. Is this something similar to what you are working on? Unfortunately I am not a VFE expert and cannot provide insight into your request...