; Move to the top the returned DIQ array
; Move array(file,iens,field)=value to array(field)=value
; also moves the ,field,"I") =value(internal) to (field)=value(internal)
UNMARK
;Entry point to unmark drug for CMOP dispense
LOG
;create a log entry in the CMOP INTERFACE file
IENS(IENS)
;Resolve IENS to numbers X,Y,Z to 89,34,345
CHKD
CHKE
CHKA
DRG
;
SET(REC,DLM,ABCD)
; where XX = VAR_U_I ex: XX="PATNM^1"
; Set VAR into piece I of REC using delimiter DLM
SETVER
RALRT
DRUGW
;
CHKB
PIECE(REC,DLM,XX)
; where XX = VAR_U_I ex: XX="PATNM^1"
; Set VAR = piece I of REC using delimiter DLM