Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Interaction Calls |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables  | All
Print Page as PDF
Routine: MAGDSTQ

Package: Imaging

Routine: MAGDSTQ


Information

MAGDSTQ ;WOIFO/PMK - Study Tracker - Query/Retrieve user ; Oct 27, 2020@15:45:29

Source Information

Source file <MAGDSTQ.m>

Call Graph

Call Graph

Call Graph Total: 13

Package Total Call Graph
Imaging 13 $$PICKSCP^MAGDACU  $$HOSTNAME^MAGDFCNV  ($$CHECKQRY,$$CHECKRTV,$$YESNO,CONTINUE)^MAGDSTQ  ($$INITXTMP,$$KEYLIST,PUSH)^MAGDSTQ0  QRROOT^MAGDSTQ1  ^MAGDSTQ2  ENTRY^MAGDSTQ3  DISPLAY^MAGDSTQ5  
RETRIEVE^MAGDSTQ8  $$PICKSCP^MAGDSTQ9  $$ENTRY^MAGDSTR1  ENTRY^MAGDSTV1  $$HOSTNAME^MAGOSMSC  

Caller Graph

Legends:

Legend of Colors

Package Component Superscript legend

action A extended action Ea event driver Ed subscriber Su protocol O limited protocol LP run routine RR broker B edit E server Se print P screenman SM inquire I

Caller Graph

Caller Graph Total: 24

Package Total Caller Graph
Imaging 24 MAGD QUERY  MAGD QUERY/RETRIEVE  MAGDSTA  MAGDSTA1  MAGDSTA2  MAGDSTA4  MAGDSTA6  MAGDSTA7  
MAGDSTA8  MAGDSTA9  MAGDSTAA  MAGDSTAB  MAGDSTAS  MAGDSTD2  MAGDSTD3  MAGDSTQ  
MAGDSTQ0  MAGDSTQ1  MAGDSTQ5  MAGDSTQ6  MAGDSTQ7  MAGDSTQ8  MAGDSTQA  MAGDSTV1  

Entry Points

Name Comments DBIA/ICR reference
ENTRYQ ; query only
ENTRYQR ; query and retrieve
ENTRY ; entry point to generate a Query/Retrieve C-FIND-RQ
QRSCP(DEFAULT) ; get the PACS Q/R Provider
GETKEYS() ; get the keys for Q/R query
DISPLAY ;
CHECKQRY() ; check query keys to prevent broad queries
CHECKPTQ() ; check attributes for a patient level query
CHECKSTQ() ; check attributes for a study level query
CHECKSEQ() ; check attributes for a series level query
CHECKIMQ() ; check attributes for an image level query
CHECKRTV() ; check retrieve keys to prevent broad retrieves
CHECKPTR() ; check attributes for a patient level retrieve
CHECKSTR() ; check attributes for a study level retrieve
CHECKSER() ; check attributes for a series level retrieve
CHECKIMR() ; check attributes for an image level retrieve
YESNO(PROMPT,DEFAULT,CHOICE,HELP) ; generic YES/NO question driver
CONTINUE(ERASE) ; used by several routines on VistA and DICOM Gateway
VISTA() ;
; return 1 for running in VistA namespace, 0 otherwise

External References

Name Field # of Occurrence
$$PICKSCP^MAGDACU QRSCP+6
$$HOSTNAME^MAGDFCNV ENTRY+14
$$CHECKQRY^MAGDSTQ GETKEYS+32
$$CHECKRTV^MAGDSTQ GETKEYS+37
$$YESNO^MAGDSTQ ENTRY+23
CONTINUE^MAGDSTQ CHECKQRY+42, CHECKRTV+46
$$INITXTMP^MAGDSTQ0 ENTRY+36
$$KEYLIST^MAGDSTQ0 ENTRY+52
PUSH^MAGDSTQ0 ENTRY+57
QRROOT^MAGDSTQ1 ENTRY+45
^MAGDSTQ2 ENTRY+63
ENTRY^MAGDSTQ3 ENTRY+64
DISPLAY^MAGDSTQ5 ENTRY+94
RETRIEVE^MAGDSTQ8 ENTRY+89
$$PICKSCP^MAGDSTQ9 QRSCP+3
$$ENTRY^MAGDSTR1 ENTRY+81
ENTRY^MAGDSTV1 ENTRY+59, ENTRY+78
$$HOSTNAME^MAGOSMSC ENTRY+17, ENTRY+81

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !!,$S(OPTION="Q":"Q/R Query",1:"Q/R Query and Retrieve"),!
  • Line Location: ENTRY+10
Function Call: WRITE
  • Prompt: !,"The PACS Query/Retrieve Provider is """,DEFAULT,"""."
  • Line Location: ENTRY+22
Function Call: WRITE
  • Prompt: !!,"Please select the PACS Query/Retrieve Provider"
  • Line Location: ENTRY+25
Function Call: WRITE
  • Prompt: !,"Please select the PACS Query/Retrieve Provider"
  • Line Location: ENTRY+31
Function Call: WRITE
  • Prompt: !,"Performing Query..."
  • Line Location: ENTRY+62
Function Call: WRITE
  • Prompt: !!,"Show Retrieve Results? ",SRRDEFAULT,"// "
  • Line Location: ENTRY+71
Function Call: READ
  • Variable: X
  • Timeout: DTIME
  • Line Location: ENTRY+72
Function Call: WRITE
  • Prompt: X
  • Line Location: ENTRY+73
Function Call: WRITE
  • Prompt: !!,"*** Please start ""2-14-2 Execute C-MOVE Request to Retrieve Images"" ***"
  • Line Location: ENTRY+83
Function Call: WRITE
  • Prompt: !!!,"Enter 1-",KEYCOUNT," "
  • Line Location: GETKEYS+4
Function Call: WRITE
  • Prompt: "for key, ""B"" for back, ""Q"" to query, ""R"" to retrieve, ""^"" to exit: "
  • Line Location: GETKEYS+5
Function Call: WRITE
  • Prompt: "to change a key, ""B"" for back, ""Q"" to query, ""^"" to exit: "
  • Line Location: GETKEYS+8
Function Call: READ
  • Variable: N
  • Timeout: DTIME
  • Line Location: GETKEYS+10
Function Call: WRITE
  • Prompt: !!,"Query/Retrieve Root must be defined"
  • Line Location: GETKEYS+27
Function Call: READ
  • Variable: X
  • Timeout: DTIME
  • Line Location: GETKEYS+35
Function Call: WRITE
  • Prompt: !,"Retrieve requires query/retrieve menu option"
  • Line Location: GETKEYS+35
Function Call: WRITE
  • Prompt: @IOF,?TAB,X,?66," Root: ",QRROOT
  • Line Location: DISPLAY+7
Function Call: WRITE
  • Prompt: !?TAB
  • Line Location: DISPLAY+8
Function Call: WRITE
  • Prompt: "-"
  • Line Location: DISPLAY+8
Function Call: WRITE
  • Prompt: ?66,"Level: ",QUERYLEVEL
  • Line Location: DISPLAY+9
Function Call: WRITE
  • Prompt: !,$J($P(ATTRIB,"(",1),25)
  • Line Location: DISPLAY+12
Function Call: WRITE
  • Prompt: " "
  • Condition for execution: I<10
  • Line Location: DISPLAY+12
Function Call: WRITE
  • Prompt: " (",I,") : "
  • Line Location: DISPLAY+12
Function Call: WRITE
  • Prompt: $G(^TMP("MAG",$J,"Q/R QUERY",QRSTACK,ATTRIB))
  • Line Location: DISPLAY+13
Function Call: WRITE
  • Prompt: !!,"QUERY LEVEL must be defined"
  • Line Location: CHECKQRY+3
Function Call: WRITE
  • Prompt: !!,"Patient Root Patient Level queries requires either the patient name, ID, or DOB."
  • Line Location: CHECKQRY+7
Function Call: WRITE
  • Prompt: !!,"Study queries require the Patient ID and accession number, study date, or UID."
  • Line Location: CHECKQRY+13
Function Call: WRITE
  • Prompt: !!,"Study queries require patient info, accession number, study date or Study UID."
  • Line Location: CHECKQRY+16
Function Call: WRITE
  • Prompt: !!,"Series queries require the Patient ID and the Study Instance UID."
  • Line Location: CHECKQRY+24
Function Call: WRITE
  • Prompt: !!,"Series queries require the Study Instance UID."
  • Line Location: CHECKQRY+27
Function Call: WRITE
  • Prompt: !!,"Image queries require the Patient ID and the Study and Series Instance UIDs."
  • Line Location: CHECKQRY+35
Function Call: WRITE
  • Prompt: !!,"Image queries require the Study and Series Instance UIDs."
  • Line Location: CHECKQRY+38
Function Call: WRITE
  • Prompt: !!,"RETRIEVE LEVEL must be defined"
  • Line Location: CHECKRTV+3
Function Call: WRITE
  • Prompt: !!,"This will retrieve all of the images for all the studies for this patient."
  • Line Location: CHECKRTV+7
Function Call: WRITE
  • Prompt: !!,"Patient Root Patient Level retrieves require the PATIENT ID."
  • Line Location: CHECKRTV+11
Function Call: WRITE
  • Prompt: !!,"Study Level retrieves require the Patient ID and STUDY INSTANCE UID."
  • Line Location: CHECKRTV+17
Function Call: WRITE
  • Prompt: !!,"Study Level retrieves require the STUDY INSTANCE UID."
  • Line Location: CHECKRTV+20
Function Call: WRITE
  • Prompt: !!,"Series retrieves require the Patient ID and STUDY and Series INSTANCE UIDs."
  • Line Location: CHECKRTV+28
Function Call: WRITE
  • Prompt: !!,"Series retrieves requires the STUDY and SERIES INSTANCE UIDs."
  • Line Location: CHECKRTV+31
Function Call: WRITE
  • Prompt: !!,"Image retrieves require the Patient ID and STUDY, Series, and SOP INSTANCE UIDs."
  • Line Location: CHECKRTV+39
Function Call: WRITE
  • Prompt: !!,"Image retrieve requires the STUDY, SERIES, and SOP INSTANCE UIDs."
  • Line Location: CHECKRTV+42
Function Call: WRITE
  • Prompt: !!,PROMPT," "
  • Line Location: YESNO+3
Function Call: WRITE
  • Prompt: DEFAULT,"// "
  • Line Location: YESNO+3
Function Call: READ
  • Variable: X
  • Timeout: DTIME
  • Line Location: YESNO+4
Function Call: WRITE
  • Prompt: X
  • Line Location: YESNO+5
Function Call: WRITE
  • Prompt: !
  • Line Location: YESNO+11
Function Call: WRITE
  • Prompt: !,HELP(I)
  • Line Location: YESNO+12
Function Call: WRITE
  • Prompt: " ??? - Please enter ""Yes"" or ""No"""
  • Line Location: YESNO+14
Function Call: WRITE
  • Prompt: !!
  • Line Location: CONTINUE+3
Function Call: WRITE
  • Prompt: "Press <Enter> to continue..."
  • Line Location: CONTINUE+4
Function Call: WRITE
  • Prompt: @IOBS," ",@IOBS
  • Line Location: CONTINUE+7

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^MAG(2005 - [#2005] VISTA+2
^TMP("MAG" ENTRY+7!, ENTRY+20, ENTRY+38*, ENTRY+39*, ENTRY+42, ENTRY+44*, ENTRY+46, ENTRY+47*, GETKEYS+13, GETKEYS+17!
, GETKEYS+31, GETKEYS+36, DISPLAY+13, CHECKPTQ+2, CHECKPTQ+3, CHECKPTQ+4, CHECKSTQ+3, CHECKSTQ+4, CHECKSTQ+5, CHECKSEQ+3
, CHECKSEQ+4, CHECKIMQ+3, CHECKIMQ+4, CHECKIMQ+5, CHECKPTR+3, CHECKSTR+2, CHECKSER+2, CHECKIMR+2
^XTMP( ENTRY+69!, GETKEYS+18!, GETKEYS+22!

Label References

Name Line Occurrences
$$CHECKIMQ CHECKQRY+32
$$CHECKIMR CHECKRTV+36
$$CHECKPTQ CHECKQRY+6, CHECKSTQ+2
$$CHECKPTR CHECKRTV+6, CHECKRTV+14, CHECKRTV+25, CHECKRTV+36
$$CHECKSEQ CHECKQRY+21
$$CHECKSER CHECKRTV+25, CHECKRTV+36
$$CHECKSTQ CHECKQRY+10
$$CHECKSTR CHECKRTV+14, CHECKRTV+25, CHECKRTV+36
$$GETKEYS ENTRY+53
$$QRSCP ENTRY+26, ENTRY+32
$$VISTA ENTRYQ+3, ENTRYQR+3, ENTRY+13, ENTRY+58, ENTRY+77, QRSCP+2
$$YESNO CHECKRTV+8
@( GETKEYS+14
CONTINUE ENTRY+84
DISPLAY GETKEYS+3
ENTRY ENTRYQ+4, ENTRYQR+4

Naked Globals

Name Field # of Occurrence
^("QUERY LEVEL" ENTRY+46*
^("ROOT" ENTRY+42*

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
ATTRIB ENTRY+1~, ENTRY+45*, GETKEYS+12*, GETKEYS+13, DISPLAY+1~, DISPLAY+11*, DISPLAY+12, DISPLAY+13
CHANNEL ENTRY+1~
CHOICE YESNO~, YESNO+7*, YESNO+8*, YESNO+9*
DEBUG ENTRY+1~
DEFAULT ENTRY+1~, ENTRY+20*, ENTRY+21, ENTRY+22, ENTRY+26, ENTRY+28, QRSCP~, QRSCP+1*, QRSCP+3, QRSCP+6
, GETKEYS+13*, YESNO~, YESNO+3, YESNO+5, YESNO+6
DONE ENTRY+1~, ENTRY+50*, ENTRY+51, ENTRY+54*, GETKEYS+1~, GETKEYS+2*, GETKEYS+19*, GETKEYS+23*, GETKEYS+32*, GETKEYS+37*
, GETKEYS+40
DONEFLAG ENTRY+1~
DTIME ENTRY+72, GETKEYS+10, GETKEYS+35, YESNO+4, CONTINUE+5
ERASE CONTINUE~, CONTINUE+3*, CONTINUE+6
FBSWITCH ENTRY+1~
FILEMODE ENTRY+1~
HELP ENTRY+1~, YESNO~, YESNO+10
HELP( YESNO+12
HOSTNAME ENTRY+1~, ENTRY+14*, ENTRY+17*, ENTRY+69, GETKEYS+18, GETKEYS+22
I ENTRY+1~, GETKEYS+1~, DISPLAY+1~, DISPLAY+8*, DISPLAY+10*, DISPLAY+11, DISPLAY+12, YESNO+1~, YESNO+12*
INCOMING ENTRY+1~
>> IOBS CONTINUE+7
IOF DISPLAY+7
IOST CONTINUE+2
KEYCOUNT ENTRY+2~, ENTRY+52*, GETKEYS+4, GETKEYS+11, DISPLAY+10
KEYLIST ENTRY+2~, ENTRY+52
KEYLIST( GETKEYS+12, GETKEYS+14, DISPLAY+11
LOGDIR ENTRY+2~
MAGXTMP ENTRY+2~, ENTRY+36*, ENTRY+69, ENTRY+81, GETKEYS+18, GETKEYS+22
MESSAGE ENTRY+2~
MSGDATE ENTRY+2~
MSGHANDL ENTRY+2~
MSGTIME ENTRY+2~
MULTIMSG ENTRY+2~
N GETKEYS+1~, GETKEYS+10*, GETKEYS+11, GETKEYS+12, GETKEYS+14, GETKEYS+16, GETKEYS+21, GETKEYS+30, GETKEYS+34
ODEVNAME ENTRY+3~
ODEVTYPE ENTRY+3~
OK CHECKQRY+1~*, CHECKQRY+6*, CHECKQRY+10*, CHECKQRY+21*, CHECKQRY+32*, CHECKQRY+42, CHECKQRY+43, CHECKPTQ+1~*, CHECKPTQ+2*, CHECKPTQ+3*
, CHECKPTQ+4*, CHECKPTQ+5, CHECKSTQ+1~*, CHECKSTQ+2*, CHECKSTQ+3*, CHECKSTQ+4*, CHECKSTQ+5*, CHECKSTQ+6, CHECKSEQ+1~*, CHECKSEQ+2*
, CHECKSEQ+3*, CHECKSEQ+4*, CHECKSEQ+5, CHECKIMQ+1~*, CHECKIMQ+2*, CHECKIMQ+3*, CHECKIMQ+4*, CHECKIMQ+5*, CHECKIMQ+6, CHECKRTV+1~*
, CHECKRTV+9*, CHECKRTV+14*, CHECKRTV+25*, CHECKRTV+36*, CHECKRTV+46, CHECKRTV+47, CHECKPTR+1~*, CHECKPTR+2*, CHECKPTR+3*, CHECKPTR+4
, CHECKSTR+1~*, CHECKSTR+2*, CHECKSTR+3, CHECKSER+1~*, CHECKSER+2*, CHECKSER+3, CHECKIMR+1~*, CHECKIMR+2*, CHECKIMR+3, YESNO+1~
, YESNO+2*, YESNO+7*, YESNO+8*, YESNO+9*, YESNO+16
OPTION ENTRYQ+1~*, ENTRYQR+1~*, ENTRY+10, GETKEYS+4, GETKEYS+35, DISPLAY+3
OUTGOING ENTRY+3~
PATLKUPMODE ENTRY+3~
PDUIN ENTRY+3~
PDUOUT ENTRY+3~
PORT ENTRY+3~
PRIORITY ENTRY+3~
PROMPT YESNO~, YESNO+3
QRROOT ENTRY+4~, ENTRY+46*, ENTRY+47, GETKEYS+26, DISPLAY+7, CHECKQRY+12, CHECKQRY+23, CHECKQRY+34, CHECKSEQ+2, CHECKIMQ+2
, CHECKRTV+16, CHECKRTV+27, CHECKRTV+38, CHECKPTR+2
QRSCP ENTRY+4~, ENTRY+23*, ENTRY+26*, ENTRY+28*, ENTRY+32*, ENTRY+34, ENTRY+38, ENTRY+39, QRSCP+3*, QRSCP+6*
, QRSCP+8
QRSTACK ENTRY+4~, ENTRY+8*, ENTRY+39, ENTRY+44, ENTRY+46, ENTRY+57, ENTRY+69, ENTRY+81, GETKEYS+13, GETKEYS+22
, GETKEYS+31, GETKEYS+36, DISPLAY+13, CHECKPTQ+2, CHECKPTQ+3, CHECKPTQ+4, CHECKSTQ+3, CHECKSTQ+4, CHECKSTQ+5, CHECKSEQ+3
, CHECKSEQ+4, CHECKIMQ+3, CHECKIMQ+4, CHECKIMQ+5, CHECKPTR+3, CHECKSTR+2, CHECKSER+2, CHECKIMR+2
QUERYLEVEL ENTRY+4~, GETKEYS+31*, DISPLAY+9, CHECKQRY+2, CHECKQRY+5, CHECKQRY+9, CHECKQRY+20, CHECKQRY+31
QUEUEIN ENTRY+3~
QUEUEOUT ENTRY+3~
RETRIEVELEVEL ENTRY+4~, GETKEYS+36*, CHECKRTV+2, CHECKRTV+5, CHECKRTV+13, CHECKRTV+24, CHECKRTV+35
RETURN ENTRY+4~, ENTRY+53*, ENTRY+54, ENTRY+56, ENTRY+68, ENTRY+93
ROLE ENTRY+4~
RUNNING ENTRY+4~, ENTRY+81*, ENTRY+82
SAVENODE ENTRY+4~
SEQNUMB ENTRY+4~
SEQUENCE ENTRY+4~
SHOWRRSL ENTRY+5~, ENTRY+75*, ENTRY+76, ENTRY+78, ENTRY+81, ENTRY+85*, ENTRY+88
SRRDEFAULT ENTRY+5~, ENTRY+70*, ENTRY+71, ENTRY+73, ENTRY+76*
STATNUMB ENTRY+5~
T GETKEYS+1~
TAB DISPLAY+1~, DISPLAY+6*, DISPLAY+7, DISPLAY+8
UID ENTRY+5~
UIDTYPE ENTRY+5~
X ENTRY+23, ENTRY+24, ENTRY+72*, ENTRY+73*, ENTRY+74, ENTRY+75, GETKEYS+35*, DISPLAY+1~, DISPLAY+2*, DISPLAY+3*
DISPLAY+4*, DISPLAY+6, DISPLAY+7, DISPLAY+8, CHECKRTV+1~, CHECKRTV+8, CHECKRTV+9, YESNO+1~, YESNO+4*, YESNO+5*
, YESNO+6*, YESNO+7, YESNO+8, YESNO+9, YESNO+10, CONTINUE+1~, CONTINUE+5*
Y ENTRY+5~
Y1 ENTRY+5~
Y2 ENTRY+5~
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Interaction Calls |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables  | All