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: MAGDSTQ1

Package: Imaging

Routine: MAGDSTQ1


Information

MAGDSTQ1 ;WOIFO/PMK - Study Tracker - Query/Retrieve user ; Feb 15, 2022@10:52:44

Source Information

Source file <MAGDSTQ1.m>

Call Graph

Call Graph

Call Graph Total: 6

Package Total Call Graph
Imaging 5 $$ANPREFIX^MAGDSTAB  ($$VISTA,$$YESNO)^MAGDSTQ  (ASKDASH,ERRORMSG)^MAGDSTQ0  PATIENTQ^MAGDSTQ7  $$CALLRPC^MAGM2VCU  
VA FileMan 1 ^%DT  

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: 2

Package Total Caller Graph
Imaging 2 MAGDSTAB  MAGDSTQ  

Entry Points

Name Comments DBIA/ICR reference
PNAME ; get patient name attribute
CHKNAME(ATTRIB) ; convert comma(s) to caret(s) & remove leading spaces
PID ; get patient id attribute
GETMODE() ; get the patient lookup CLIENT for manual Q/R client
SEX ; get the patient's sex
CHECKSEX(X) ;
ACNUMB ; enter the accession number
ANPREFIX() ; add the site-specific accession number prefix
GETANPFX(DEFAULT) ; get the accession number prefix
REFDOC ;
STUDYID ; enter the study id
SERIESNO ; enter the series number
REQPROID ; enter the requested procedure id
SPSTEPID ; enter the scheduled procedure step id
STUDYUID ; enter the study instance uid
SERIEUID ; enter the series instance uid
SOPUID ; enter the SOP instance uid
CHECKUID(X) ; check the format of the uid
MODALITY ; select the modality
CHECKMOD(X) ; check the validity of the entered modality value
BIRTHDAT ; birth date, may be a range
STDYDATE ; study date, may be a range
GETDATE(TYPE) ; get the date
CHKDATE(X) ; check the date
STDYTIME ; study time, may be a range
CHKTIME(X) ; check the study time
QRROOT ; get query/retrieve root
CHKQRR(X) ; check the query/retrieve root
GETKEY(ATTRIB,PROMPT,HELP,CHECK) ; get the value for the key

External References

Name Field # of Occurrence
^%DT CHKDATE+3
$$ANPREFIX^MAGDSTAB ANPREFIX+7
$$VISTA^MAGDSTQ GETMODE+4, ANPREFIX+6, CHECKMOD+4
$$YESNO^MAGDSTQ GETMODE+5
ASKDASH^MAGDSTQ0 GETMODE+9
ERRORMSG^MAGDSTQ0 ANPREFIX+16
PATIENTQ^MAGDSTQ7 PNAME+4, PID+4
$$CALLRPC^MAGM2VCU ANPREFIX+14

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !!,"Enter the Accession Number Prefix: "
  • Line Location: GETANPFX+3
Function Call: WRITE
  • Prompt: DEFAULT,"// "
  • Line Location: GETANPFX+4
Function Call: READ
  • Variable: ANPREFIX
  • Timeout: DTIME
  • Line Location: GETANPFX+5
Function Call: WRITE
  • Prompt: ANPREFIX
  • Line Location: GETANPFX+6
Function Call: WRITE
  • Prompt: " -- use ""@"" to remove it"
  • Line Location: GETANPFX+7
Function Call: WRITE
  • Prompt: " ???",!,"Please enter ""@"" or 1-4 characters (numeric, uppercase characters, hyphen)"
  • Line Location: GETANPFX+11
Function Call: WRITE
  • Prompt: !!,"Please run the menu option to Reinitialize All the DICOM Master Files",!
  • Line Location: CHECKMOD+10
Function Call: WRITE
  • Prompt: !,"*** Warning: Modality """,X,""" is not defined in DICOM."
  • Line Location: CHECKMOD+14
Function Call: WRITE
  • Prompt: " -- ",$P($P(^MAGDICOM(2006.51,DICTIEN,1,MODALIEN,0),"^",2),"=",1)
  • Line Location: CHECKMOD+18
Function Call: WRITE
  • Prompt: !,"Patient Level queries are not supported for Study Root -- changing to STUDY"
  • Line Location: CHKQRR+7
Function Call: WRITE
  • Prompt: DEFAULT,"// "
  • Line Location: GETKEY+4
Function Call: READ
  • Variable: X
  • Timeout: DTIME
  • Line Location: GETKEY+5
Function Call: WRITE
  • Prompt: X
  • Line Location: GETKEY+5
Function Call: WRITE
  • Prompt: !,HELP(I)
  • Line Location: GETKEY+7
Function Call: WRITE
  • Prompt: !!,"(Enter ""@"" to delete the """,DEFAULT,""" value)"
  • Line Location: GETKEY+8
Function Call: WRITE
  • Prompt: " -- deleted"
  • Line Location: GETKEY+12
Function Call: WRITE
  • Prompt: "Illegal Value"
  • Line Location: GETKEY+16
Function Call: WRITE
  • Prompt: !
  • Line Location: GETKEY+17
Function Call: WRITE
  • Prompt: " "
  • Line Location: GETKEY+18

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^%ZOSF("UPPERCASE" CHECKSEX+4, CHECKMOD+2, CHKQRR+2
^MAGDICOM(2006.51 - [#2006.51] CHECKMOD+8, CHECKMOD+13, CHECKMOD+18
^TMP("MAG" CHKNAME+1, CHKNAME+3, CHKNAME+4, CHKNAME+7, CHKNAME+8, CHKNAME+10, GETMODE+2, GETMODE+4, GETMODE+7*, ACNUMB+3
, ANPREFIX+4, ANPREFIX+11, ANPREFIX+20*, ANPREFIX+23, CHKQRR+6, CHKQRR+9*, GETKEY+2, GETKEY+12!, GETKEY+13!, GETKEY+20*

Label References

Name Line Occurrences
$$ANPREFIX ACNUMB+9
$$GETANPFX ANPREFIX+19
$$GETKEY PNAME+10, PID+9, SEX+4, ACNUMB+8, REFDOC+4, STUDYID+4, SERIESNO+4, REQPROID+6, SPSTEPID+4, STUDYUID+3
SERIEUID+3, SOPUID+3, MODALITY+5, GETDATE+9, STDYTIME+9, QRROOT+14
$$GETMODE PNAME+2, PID+2
CHKNAME PNAME+11, REFDOC+5
GETDATE BIRTHDAT+1, STDYDATE+1

Naked Globals

Name Field # of Occurrence
^( CHKNAME+1*, CHKNAME+4*, CHKNAME+8*, CHKNAME+10*, ANPREFIX+23*

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
%DT CHKDATE+2~, CHKDATE+3*
ANPREFIX ACNUMB+1~, ACNUMB+3*, ACNUMB+4, ANPREFIX+1~, ANPREFIX+4*, ANPREFIX+5, ANPREFIX+7*, ANPREFIX+12*, ANPREFIX+14, ANPREFIX+16
, ANPREFIX+19*, ANPREFIX+20, ANPREFIX+23, GETANPFX+1~, GETANPFX+5*, GETANPFX+6*, GETANPFX+7, GETANPFX+8, GETANPFX+9*, GETANPFX+10
, GETANPFX+13
ATTRIB PNAME+10, PNAME+11, CHKNAME~, CHKNAME+1, CHKNAME+3, CHKNAME+4, CHKNAME+7, CHKNAME+8, CHKNAME+10, PID+9
SEX+4, ACNUMB+8, ANPREFIX+23, REFDOC+4, REFDOC+5, STUDYID+4, SERIESNO+4, REQPROID+6, SPSTEPID+4, STUDYUID+3
SERIEUID+3, SOPUID+3, MODALITY+5, GETDATE+9, STDYTIME+9, QRROOT+14, GETKEY~, GETKEY+2, GETKEY+12, GETKEY+13
, GETKEY+20
CHECK GETKEY~, GETKEY+16
DEFAULT GETANPFX~, GETANPFX+4, GETANPFX+6, GETKEY+1~, GETKEY+2*, GETKEY+4, GETKEY+5, GETKEY+8
DICTIEN CHECKMOD+1~, CHECKMOD+8*, CHECKMOD+9, CHECKMOD+13, CHECKMOD+18
DONE GETKEY+1~, GETKEY+3*, GETKEY+10*, GETKEY+16*
DTIME GETANPFX+5, GETKEY+5
ERROR CHKQRR+1~*, CHKQRR+3*, CHKQRR+5*, CHKQRR+12
HELP PNAME+1~, PNAME+10, PID+1~, PID+9, GETMODE+1~, GETMODE+5, SEX+1~, SEX+4, ACNUMB+1~, ACNUMB+8
REFDOC+1~, REFDOC+4, STUDYID+1~, STUDYID+4, SERIESNO+1~, SERIESNO+4, REQPROID+1~, REQPROID+6, SPSTEPID+1~, SPSTEPID+4
STUDYUID+1~, STUDYUID+3, SERIEUID+1~, SERIEUID+3, SOPUID+1~, SOPUID+3, MODALITY+1~, MODALITY+5, GETDATE+1~, GETDATE+9
STDYTIME+1~, STDYTIME+9, QRROOT+1~, QRROOT+14, GETKEY~
HELP( GETKEY+7
HELP(1 PNAME+8*, PID+8*, SEX+3*, ACNUMB+5*, REFDOC+3*, STUDYID+3*, SERIESNO+3*, REQPROID+3*, SPSTEPID+3*, MODALITY+3*
, GETDATE+3*, STDYTIME+3*, QRROOT+3*
HELP(10 QRROOT+12*
HELP(11 QRROOT+13*
HELP(2 PNAME+9*, ACNUMB+6*, REQPROID+4*, MODALITY+4*, GETDATE+4*, STDYTIME+4*, QRROOT+4*
HELP(3 ACNUMB+7*, REQPROID+5*, GETDATE+5*, STDYTIME+5*, QRROOT+5*
HELP(4 GETDATE+6*, STDYTIME+6*, QRROOT+6*
HELP(5 GETDATE+7*, STDYTIME+7*, QRROOT+7*
HELP(6 GETDATE+8*, STDYTIME+8*, QRROOT+8*
HELP(7 QRROOT+9*
HELP(8 QRROOT+10*
HELP(9 QRROOT+11*
I GETKEY+1~, GETKEY+7*
MODALIEN CHECKMOD+1~, CHECKMOD+13*, CHECKMOD+18
OK GETANPFX+1~, GETANPFX+2*, GETANPFX+5*, GETANPFX+8*, GETANPFX+10*
>> OUTPUT(0 ANPREFIX+15*
>> PATLKUPMODE PNAME+2*, PNAME+3, PID+2*, PID+3, GETMODE+2*, GETMODE+3, GETMODE+4*, GETMODE+6*, GETMODE+7, GETMODE+8
, GETMODE+12
PROMPT PNAME+1~, PNAME+7*, PNAME+10, PID+1~, PID+7*, PID+9, SEX+1~, SEX+2*, SEX+4, ACNUMB+1~
ACNUMB+2*, ACNUMB+4*, ACNUMB+8, REFDOC+1~, REFDOC+2*, REFDOC+4, STUDYID+1~, STUDYID+2*, STUDYID+4, SERIESNO+1~
SERIESNO+2*, SERIESNO+4, REQPROID+1~, REQPROID+2*, REQPROID+6, SPSTEPID+1~, SPSTEPID+2*, SPSTEPID+4, STUDYUID+1~, STUDYUID+2*
STUDYUID+3, SERIEUID+1~, SERIEUID+2*, SERIEUID+3, SOPUID+1~, SOPUID+2*, SOPUID+3, MODALITY+1~, MODALITY+2*, MODALITY+5
, GETDATE+1~, GETDATE+2*, GETDATE+9, STDYTIME+1~, STDYTIME+2*, STDYTIME+9, QRROOT+1~, QRROOT+2*, QRROOT+14, GETKEY~
, GETKEY+4
>> QRSTACK CHKNAME+1, CHKNAME+3, CHKNAME+4, CHKNAME+7, CHKNAME+8, CHKNAME+10, ANPREFIX+23, GETKEY+2, GETKEY+12, GETKEY+20
RETURN CHECKSEX+1~, CHECKSEX+2*, CHECKSEX+5*, CHECKSEX+6, ANPREFIX+1~, ANPREFIX+2*, ANPREFIX+22*, ANPREFIX+25, CHECKUID+1~, CHECKUID+2*
, CHECKUID+3*, CHECKUID+4, CHECKMOD+1~, CHECKMOD+3*, CHECKMOD+5*, CHECKMOD+11*, CHECKMOD+15*, CHECKMOD+20*, CHECKMOD+23
RPCERR ANPREFIX+10~, ANPREFIX+14*, ANPREFIX+15
TYPE GETDATE~, GETDATE+2, GETDATE+3
X PNAME+1~, PNAME+10*, PID+1~, PID+9*, GETMODE+1~, GETMODE+5, GETMODE+6, SEX+1~, SEX+4*, CHECKSEX~
, CHECKSEX+3*, CHECKSEX+4*, CHECKSEX+5, ACNUMB+1~, ACNUMB+8*, ACNUMB+9*, ANPREFIX+2, REFDOC+1~, REFDOC+4*, STUDYID+1~
STUDYID+4*, SERIESNO+1~, SERIESNO+4*, REQPROID+1~, REQPROID+6*, SPSTEPID+1~, SPSTEPID+4*, STUDYUID+1~, STUDYUID+3*, SERIEUID+1~
SERIEUID+3*, SOPUID+1~, SOPUID+3*, CHECKUID~, CHECKUID+3, MODALITY+1~, MODALITY+5*, CHECKMOD~, CHECKMOD+2*, CHECKMOD+3
, CHECKMOD+13, CHECKMOD+14, GETDATE+1~, GETDATE+9*, CHKDATE~, CHKDATE+1, CHKDATE+4*, CHKDATE+6, STDYTIME+1~, STDYTIME+9*
, CHKTIME~, CHKTIME+1, QRROOT+1~, QRROOT+14*, CHKQRR~, CHKQRR+2*, CHKQRR+3*, CHKQRR+4, CHKQRR+5*, GETKEY+1~
, GETKEY+5*, GETKEY+6, GETKEY+10, GETKEY+11, GETKEY+20, GETKEY+24
Y CHECKSEX+1~, CHECKSEX+4, CHECKMOD+1~, CHECKMOD+2, CHECKMOD+19*, CHKDATE+4, CHKQRR+1~, CHKQRR+2
Z CHKQRR+1~, CHKQRR+8*
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Interaction Calls |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables  | All