;return list of patient orders
; return PATIENT's orders for a display GROUP of type FLAG
; between start (ORSDT) and end dates (OREDT)
; dates can be in Fileman or T, T-14 formats
STATI(ORY)
; return stati from ORDER STATUS file [#100.01]
DG(DGNAME)
; extrinsic function returns display group ien
TEXTSTAT(ORNUM)
;extrinsic function returns the first 200 chars of order text
FULLTEXT(ORNUM)
;extrinsic function returns the full text of an order