Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Entry Points |  Interaction Calls
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>

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

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
Info |  Source |  Entry Points |  Interaction Calls