;Returns data from file 100 in the ORUPCHUK array [DBIA#871]
LATEST(ORPAT,ORIT,ORY)
; -- Return most recent orders for ORPAT,ORIT as
; ORY = total number of orders found (or 0 if none found)
; ORY(ORSTS) = ORIFN ^ Ord'd By ^ Entered ^ StartDt ^ StopDt ^ Loc ^ Sts
; where ORSTS is the ien in the Order Status file #100.01 [DBIA#2842]
VALUE(IFN,ID,INST,FORMAT)
; -- Returns value of prompt by ID
OI(IFN)
; -- Returns [first] orderable item for order IFN in the format
; ifn ^ name ^ pkg id [DBIA#2467]
PKGID(ORIFN)
; -- Return package identifier for order ORIFN [DBIA#3071]
AND(DAD)
; -- Return 1 or 0, if all conjunctions are AND [DBIA#3632]
DELAYED(ORY,ORDER)
; -- Return delayed order(s) with same OrdItem as ORDER
; in ORY(ORIFN) = PatEventPtr ^ EventName
ES(ORDER)
; -- Returns the signature status of ORDER [DBIA#3632]
; -1 = invalid order#
; "" = no signature required
; 0 = not signed (needs ES)
; 1 = electronically or digitally signed
; 2 = signed on chart
; 3 = corrected or canceled order