TIUQRY ; SLC/JER/CAM - Queries for Documents Across Patients ;3/27/03 16:15
Source file <TIUQRY.m>
Package | Total | Call Graph |
---|---|---|
Text Integration Utility | 2 | SETPARM^TIULE RESOLVE^TIUQRYL |
Name | Comments | DBIA/ICR reference |
---|---|---|
CHECKADD(QRY) | ; Assures that Addendum is included in the list of types
|
|
FOUNDTL(TIUY,TIUDA,QRY,PATIENT,TIUC) | ;Sort by title, resolves document found
|
|
ACLSB(TIUCC,QRY,TIUC,DFN,EARLY,LATE,FLAGA) | ; Using the ACLSB cross reference for a status of > 5
|
|
VISIT(TIUDA1,QRY) | ; Checks location of visit then checks to see if location is included
; in the location list selected for query. |
|
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 |
|
AUTHOR(TIUDA1,QRY) | ; Determines author of document then checks to see if author
; is included in the author list selected for query. |
|
DADINTYP(TIUDA,QRY) | ; Evaluates whether addendum's parent belongs is among
; the selected types |
|
AUTHDOC(TIUAUTH1,QRY) | ; Checks to see if the author of the note being evaluated is
; included in the author list selected for query. |
|
QUERY(TIUY,QRY,PATIENT) | ; Execute Query
|
|
ACLAU(TIUCC,QRY,TIUC,DFN,EARLY,LATE,FLAGA) | ; Using the ACLAU cross reference for a status of < 6
|
|
GATHER(TIUY,QRY,PATIENT,FLAGA,FLAGV) | ; Find/sort records for the list
|
|
STATCHK(TIUCC,QRY,TIUC,DFN,EARLY,LATE,FLAGA) | ; Check status(es) entered by user. Cross ref used depends on status of doc.
|
|
FOUNDDC(TIUY,TIUDA,QRY,PATIENT,TIUC) | ;Sort by document, resolves document found
|
|
STATUS(QRY) | ; Gets status(es)
|
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^TIU(8925 - [#8925] | GATHER+8, ACLSB+2, ACLSB+4, ACLAU+2, ACLAU+4, STAT+5, AUTHOR+3, VISIT+3, DADINTYP+3 |
^TIU(8925.6 - [#8925.6] | STATUS+3, STATUS+5, STATUS+6 |
Name | Line Occurrences |
---|---|
$$AUTHDOC | ACLSB+3, ACLAU+3 |
$$AUTHOR | GATHER+18, GATHER+20 |
$$DADINTYP | FOUNDTL+1 |
$$STAT | ACLSB+9, ACLSB+10, ACLAU+9, ACLAU+10 |
$$VISIT | GATHER+19, GATHER+20, ACLSB+10, ACLAU+10 |
ACLAU | STATCHK+4 |
ACLSB | STATCHK+3 |
CHECKADD | QUERY+8 |
FOUNDDC | ACLSB+9, ACLSB+10, ACLAU+9, ACLAU+10 |
FOUNDTL | GATHER+17, GATHER+18, GATHER+19, GATHER+20 |
GATHER | QUERY+9 |
STATCHK | GATHER+23 |
STATUS | QUERY+4 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
CHECK | STAT+3~*, STAT+6*, STAT+7, AUTHDOC+2~, AUTHDOC+4*, AUTHDOC+5*, AUTHDOC+6, AUTHOR+2~*, AUTHOR+4*, AUTHOR+5 , VISIT+2~*, VISIT+4*, VISIT+5 |
DFN | GATHER+1~, GATHER+4*, GATHER+8, GATHER+23, ACLSB~, ACLSB+4, ACLAU~, ACLAU+4, STATCHK~, STATCHK+3 , STATCHK+4 |
EARLY | GATHER+1~, GATHER+5*, GATHER+14, GATHER+23, ACLSB~, ACLSB+6, ACLAU~, ACLAU+6, STATCHK~, STATCHK+3 , STATCHK+4 |
FLAGA | QUERY+1~*, QUERY+6*, QUERY+9, GATHER~, GATHER+17, GATHER+18, GATHER+19, GATHER+20, GATHER+23, ACLSB~ , ACLSB+3, ACLAU~, ACLAU+3, STATCHK~, STATCHK+3, STATCHK+4 |
FLAGV | QUERY+1~*, QUERY+7*, QUERY+9, GATHER~, GATHER+17, GATHER+18, GATHER+19, GATHER+20, ACLSB+9, ACLSB+10 , ACLAU+9, ACLAU+10 |
GVN | GATHER+8~*, GATHER+14, GATHER+16, ACLSB+4~*, ACLSB+6, ACLSB+8, ACLAU+4~*, ACLAU+6, ACLAU+8 |
LATE | GATHER+1~, GATHER+6*, GATHER+13, GATHER+23, ACLSB~, ACLSB+5, ACLAU~, ACLAU+5, STATCHK~, STATCHK+3 , STATCHK+4 |
PATIENT | QUERY~, QUERY+9, GATHER~, GATHER+17, GATHER+18, GATHER+19, GATHER+20, ACLSB+9, ACLSB+10, ACLAU+9 , ACLAU+10, FOUNDTL~, FOUNDTL+2, FOUNDDC~, FOUNDDC+2 |
PATIENT("Patient.DFN" | QUERY+3, GATHER+4 |
QRY | QUERY~, QUERY+4, QUERY+8, QUERY+9, GATHER~, GATHER+17, GATHER+18, GATHER+19, GATHER+20, GATHER+23 , ACLSB~, ACLSB+3, ACLSB+9, ACLSB+10, ACLAU~, ACLAU+3, ACLAU+9, ACLAU+10, STATCHK~, STATCHK+3 , STATCHK+4, FOUNDTL~, FOUNDTL+1, FOUNDTL+2, FOUNDDC~, FOUNDDC+2, STAT~, AUTHDOC~, AUTHOR~, VISIT~ , DADINTYP~, CHECKADD~, STATUS~ |
QRY("Author" | QUERY+6, AUTHDOC+5, AUTHOR+4 |
QRY("Class" | QUERY+5, GATHER+21, GATHER+23 |
QRY("Location" | QUERY+7, VISIT+4 |
QRY("Reference" | GATHER+3 |
QRY("Status" | QUERY+4, GATHER+12, STATCHK+2, STAT+6, STATUS+6* |
QRY("Title" | QUERY+5, GATHER+7, GATHER+10, DADINTYP+4, CHECKADD+1* |
RANGE | GATHER+1~, GATHER+3*, GATHER+5, GATHER+6 |
STATUS | STATUS+1~, STATUS+2*, STATUS+3*, STATUS+5 |
TIUAUTH | ACLSB+1~*, ACLSB+2*, ACLSB+3, ACLSB+4, ACLAU+1~*, ACLAU+2*, ACLAU+3, ACLAU+4, AUTHOR+2~*, AUTHOR+4* |
TIUAUTH1 | AUTHDOC~, AUTHDOC+5, AUTHOR+2~*, AUTHOR+3*, AUTHOR+4 |
TIUAUTH2 | AUTHDOC+2~, AUTHDOC+4*, AUTHDOC+5* |
TIUC | GATHER+1~, GATHER+2*, GATHER+17, GATHER+18, GATHER+19, GATHER+20, GATHER+23, GATHER+24, ACLSB~, ACLSB+9 , ACLSB+10, ACLAU~, ACLAU+9, ACLAU+10, STATCHK~, STATCHK+3, STATCHK+4, FOUNDTL~, FOUNDTL+3*, FOUNDDC~ , FOUNDDC+3* |
TIUCC | GATHER+22~*, GATHER+23*, ACLSB~, ACLSB+2, ACLSB+4, ACLAU~, ACLAU+2, ACLAU+4, STATCHK~, STATCHK+3 , STATCHK+4 |
TIUD | ACLSB+5~*, ACLSB+6*, ACLSB+8, ACLAU+5~*, ACLAU+6*, ACLAU+8 |
TIUDA | GATHER+15~, GATHER+16*, GATHER+17, GATHER+18, GATHER+19, GATHER+20, ACLSB+7~*, ACLSB+8*, ACLSB+9, ACLSB+10 , ACLAU+7~*, ACLAU+8*, ACLAU+9, ACLAU+10, FOUNDTL~, FOUNDTL+1, FOUNDTL+2, FOUNDTL+3, FOUNDDC~, FOUNDDC+1 , FOUNDDC+2, FOUNDDC+3, DADINTYP~, DADINTYP+3 |
TIUDA1 | STAT~, STAT+5, AUTHOR~, AUTHOR+3, VISIT~, VISIT+3 |
TIUDTYP | DADINTYP+2~, DADINTYP+3*, DADINTYP+5 |
TIUI | DADINTYP+2~*, DADINTYP+4*, DADINTYP+5, STATUS+1~* |
TIUJ | GATHER+13~*, GATHER+14*, GATHER+16 |
TIUPRM0 | QUERY+1~ |
TIUPRM1 | QUERY+1~ |
TIUPRM3 | QUERY+1~ |
TIUS | GATHER+11~*, GATHER+12*, GATHER+14, GATHER+16, STATCHK+1~*, STATCHK+2*, STATCHK+3, STATCHK+4, STAT+3~*, STAT+6* , STATUS+1~*, STATUS+4*, STATUS+5*, STATUS+6 |
TIUS1 | STAT+3~*, STAT+5*, STAT+6 |
TIUT | GATHER+9~*, GATHER+10*, GATHER+14, GATHER+16, FOUNDTL+1 |
TIUVST | VISIT+2~*, VISIT+4* |
TIUVST1 | VISIT+2~*, VISIT+3*, VISIT+4 |
TIUY | QUERY~, QUERY+3, QUERY+5, QUERY+9, QUERY+10, GATHER~, GATHER+17, GATHER+18, GATHER+19, GATHER+20 , GATHER+24, ACLSB+9, ACLSB+10, ACLAU+9, ACLAU+10, FOUNDTL~, FOUNDTL+2, FOUNDTL+3, FOUNDDC~, FOUNDDC+1 , FOUNDDC+2, FOUNDDC+3, DADINTYP+2~*, DADINTYP+4, DADINTYP+5*, DADINTYP+6 |
U | STAT+5, AUTHOR+3, VISIT+3, DADINTYP+3, STATUS+6 |