Select the objects that you wish to see in the downloaded PDF
Info Source Call Graph Caller Graph Entry Points External References Used in RPC Global Variables Directly Accessed Label References Naked Globals Local Variables
; Return name-value pairs for subset of query data
QRYITR(VAL,ORRITR)
; Do query for the current iterator
; VAL=PtSearched^RecordsFound^Iterator
ADDTO(IEN,CLINDT)
;Add active location to lst
NXTITER(X)
; Return the iterator for the next patient
; ITER=Subscript;DFN;Item#
WCFDIV(DIVLST)
;Get wards/clinics for division
DETAIL(REF,ID)
; Return results of order identified by ID
RNGFM(ORY,RNG)
SETPTS(SUB)
; Set up to iterate through a patient list
SORTBY(SEQ,FNM,FWD)
; Sort by a particular field
PTINFO(VAL,ID)
; Return patient info given an order, consult, or note
PTSCRN(PATID)
; Return 1 if should continue with this patient
DODIV
; find Wards/Clinics for divisions
SETUP(ITR,QRY)
; Setup the query
; use ^TMP("ORRHCQ",$J,"QRY") for the query
; use ^TMP("ORRHCQ",$J,"COL") for the columns
; use ^TMP("ORRHCQD",$J) for the query data