TIUQRY ; SLC/JER/CAM - Queries for Documents Across Patients ;3/27/03 16:15
Source file <TIUQRY.m>
| Name | Comments | DBIA/ICR reference | 
|---|---|---|
| QUERY(TIUY,QRY,PATIENT) | ; Execute Query
 | 
|
| GATHER(TIUY,QRY,PATIENT,FLAGA,FLAGV) | ; Find/sort records for the list
 | 
|
| ACLSB(TIUCC,QRY,TIUC,DFN,EARLY,LATE,FLAGA) | ; Using the ACLSB cross reference for a status of > 5 
 | 
|
| ACLAU(TIUCC,QRY,TIUC,DFN,EARLY,LATE,FLAGA) | ; Using the ACLAU cross reference for a status of < 6
 | 
|
| STATCHK(TIUCC,QRY,TIUC,DFN,EARLY,LATE,FLAGA) | ; Check status(es) entered by user. Cross ref used depends on status of doc.
 | 
|
| FOUNDTL(TIUY,TIUDA,QRY,PATIENT,TIUC) | ;Sort by title, resolves document found
 | 
|
| FOUNDDC(TIUY,TIUDA,QRY,PATIENT,TIUC) | ;Sort by document, resolves document found
 | 
|
| STAT(TIUDA1,QRY) | ; Determines status of document then checks to see if
 ; status is included in the status list selected for query. ; TIUS=Status of document  | 
|
| AUTHDOC(TIUAUTH1,QRY) | ; Checks to see if the author of the note being evaluated is
 ; included in the author list selected for query.  | 
|
| AUTHOR(TIUDA1,QRY) | ; Determines author of document then checks to see if author
 ; is included in the author list selected for query.  | 
|
| VISIT(TIUDA1,QRY) | ; Checks location of visit then checks to see if location is included
 ; in the location list selected for query.  | 
|
| DADINTYP(TIUDA,QRY) | ; Evaluates whether addendum's parent belongs is among
 ; the selected types  | 
|
| CHECKADD(QRY) | ; Assures that Addendum is included in the list of types
 | 
|
| STATUS(QRY) | ; Gets status(es)
 |