Notifications
Clear all
Topic starter
Need some help with orders duplicating.
First I have the orders sitting in a text component- ex. panels in 1 hematology in 2
they are in a dynamic list and pull fine
when labs are checked, a order button appears, in the button there is a runprocess which pulls a function called orders
Issue: when selecting orders and clicking add order, if physician forgot something and clicks another lab, it duplicates. I am not using the mel add order specifically pulling each lab. Any thought that could be done. This is the function thats calling the labs:
local aORDS = getfield(sORDS,"|","") for eO = 1, eO < size(aORDS), eO = eO + 1 do aORDS[eO] = getfield(aORDS[eO],"^","") sDESC = ReplaceStr(str(aORDS[eO][3]),";",",") r = MEL_ADD_ORDER(str(aORDS[eO][1]), str(aORDS[eO][2]), sDESC, "", gPRIME_ICD, gPRIME_DESC, gAHSORD_COMM, "1", "",aAHSORD_AUTH_PRVD, gAHSORD_DATE) if (r <> 0) then sBAD = str(aORDS[eO][2]) + " -- " + sDESC + HRET + fnAHSORD_FAILURE(r) OBSNOW("DAS VOLERROR",OBSNOW("DAS VOLERROR") + HRET + sBAD) userok("Error Processing Order: \r\n" + sBAD) gERRORS = gERRORS + sDESC + HRET + fnAHSORD_FAILURE(r) + HRET sBAD = "" endif endfor fnAHSORD_CLEAR()
Posted : March 23, 2014 2:50 am