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 |  Used in RPC |  Used in HL7 Interface |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  Marked Items  | All
Print Page as PDF
Routine: MAGJEX2

Package: Imaging

Routine: MAGJEX2


Information

MAGJEX2 ;WIRMFO/JHC,NST - Rad. Workstation RPC calls ; 10/17/2022

Source Information

Source file <MAGJEX2.m>

Call Graph

Call Graph

Call Graph Total: 8

Package Total Call Graph
Imaging 4 (GETEXAM2,GETEXAM3)^MAGJUTL1  $$JBFETCH^MAGJUTL2  MAGJOBNC^MAGJUTL3  $$CACHE^MAGNUTL2  
Kernel 2 $$EC^%ZOSV  $$FMTH^XLFDT  
VA FileMan 1 DT^DICRW  
Vendor - ISI 1 (,$$FETCH)^ISINUTL2  

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

Package Total Caller Graph
Imaging 4 MAGBRTE5  MAGJ PREFETCH/SEND ORM  MAGJ PRIOREXAMS  MAGNUTL2  
Kernel 1 ^ORD(101  

Entry Points

Name Comments DBIA/ICR reference
ERR
PREFETCH ; Entry point from HL7 processing, to initiate prefetch at
; time of radiology "Register Patient for Exam" function
; Do not process if the exam is being Canceled (RACANC true)
PREFQ ;
PRIOR1(MAGGRY,DATA) ; review all exams for a patient to find "related" exams
; This ep also called as subroutine from routing software (P51)
; MAGGRY - return array of exams to PreFetch or Auto-route
; DATA: - input params for the Current Exam
; 1) ACTION = P -- Pre-fetch Exams (from Jukebox to Magnetic Disk)
; = A -- Auto-route priors
; = C -- Pre-cache exams
; 2) RADFN = Case pointers to Rad/Nuc Med Patient file
; 3) RADTI = "" "" "" ""
; 4) RACNI = "" "" "" ""
; 5) RARPT - Case pointer to ^RARPT global
PRIOR1Z ;
SRCH(RADFN) ; Traverse all exams for a patient, up to limits of age & total
; numbers of exams to consider
SVMAG2A ; 2A and 2B used by subroutine at tag PRIOR1
; Find all the patient's exams whose CPT codes are related to the
; Current exam's CPT code, according to dictionary 2006.65
SVMAG2B ; For exams whose CPTs match, select a subset that are within defined
; limits with respect to time interval & maximum # exams to retrieve
; Return MAGGRY(0) = count ^ message
; MAGGRY(1:N) = "M08" | RADFN ^ RADTI ^ RACNI ^ RARPT
END ;

External References

Name Field # of Occurrence
$$EC^%ZOSV ERR
DT^DICRW PRIOR1+22
^ISINUTL2 SVMAG2B+17
$$FETCH^ISINUTL2 SVMAG2B+17
GETEXAM2^MAGJUTL1 PRIOR1+30
GETEXAM3^MAGJUTL1 SRCH+6
$$JBFETCH^MAGJUTL2 SVMAG2B+15
MAGJOBNC^MAGJUTL3 PRIOR1+23
$$CACHE^MAGNUTL2 SVMAG2B+16
$$FMTH^XLFDT SVMAG2A+44

Used in RPC

RPC Name Call Tags
MAGJ PRIOREXAMS PRIOR1

Used in HL7 Interface

HL7 Protocol Name Call Tags
MAGJ PREFETCH/SEND ORM PREFETCH

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^%ZOSF("ERRTN" ERR+1
^DPT - [#2] PRIOR1+25
^MAG(2006.65 - [#2006.65] SVMAG2A+20, SVMAG2A+24, SVMAG2A+27, SVMAG2A+28
^MAG(2006.69 - [#2006.69] PREFETCH+5
^RA(79.2 - [#79.2] SVMAG2A+46
^RADPT - [#70] PRIOR1+26
^RARPT - [#74] SVMAG2A+8
^TMP($J PRIOR1+33, PRIOR1Z+4!, SRCH+8

Label References

Name Line Occurrences
@( ERR+1
PREFQ PREFETCH+5, PREFETCH+6
PRIOR1 PREFETCH+7
PRIOR1Z PRIOR1+18, PRIOR1+21, PRIOR1+25, PRIOR1+27, PRIOR1+32, PRIOR1+34
SRCH PRIOR1+36
SVMAG2A PRIOR1+33, SRCH+11
SVMAG2B PRIOR1Z+3

Naked Globals

Name Field # of Occurrence
^( SRCH+8, SVMAG2A+27
^("RAE1" PRIOR1Z+4!
^(2 PRIOR1+33, SRCH+8

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
ACTION PRIOR1+15~, PRIOR1+16*, PRIOR1+17, PRIOR1+18, PRIOR1+24, SVMAG2A+8, SVMAG2A+28, SVMAG2B+15, SVMAG2B+16, SVMAG2B+17
BEGDT SRCH+2~, SRCH+4*, SRCH+5*, SRCH+6
CPT PRIOR1+15~, SVMAG2A+4~, SVMAG2A+12*, SVMAG2A+13, SVMAG2A+14, SVMAG2A+21, SVMAG2A+27*, SVMAG2A+29, SVMAG2B+4~, SVMAG2B+6*
SVMAG2B+8, SVMAG2B+9, SVMAG2B+11*, SVMAG2B+12*, SVMAG2B+13, SVMAG2B+14
CPT3 SVMAG2A+4~, SVMAG2A+14*, SVMAG2A+20
CPT4 SVMAG2A+4~, SVMAG2A+14*, SVMAG2A+20
CPT5 SVMAG2A+4~, SVMAG2A+14*, SVMAG2A+20
CT SVMAG2B+4~, SVMAG2B+11*, SVMAG2B+13*, SVMAG2B+14, SVMAG2B+18
CURCPTS SVMAG2A+4~, SVMAG2A+23*, SVMAG2A+24*
CURCPTX SVMAG2A+4~, SVMAG2A+24*, SVMAG2A+27, SVMAG2A+28
CURDAT SVMAG2B+4~, SVMAG2B+5*, SVMAG2B+7
DATA PRIOR1~, PRIOR1+16, PRIOR1+19, PRIOR1+21
DAYCASE PRIOR1+15~, PRIOR1+33*, PRIOR1+35
DIQUIET PRIOR1+15~, PRIOR1+22*
DT SRCH+4
ERR ERR~*
GO SVMAG2B+4~, SVMAG2B+11
GO( SVMAG2B+8, SVMAG2B+9*, SVMAG2B+12, SVMAG2B+13
HDR PRIOR1+15~, PRIOR1+24*, PRIOR1+35*, SVMAG2B+18, SVMAG2B+19
HIT SVMAG2A+4~, SVMAG2A+23*, SVMAG2A+24, SVMAG2A+27*
I SVMAG2A+4~, SVMAG2A+29*
ICPT SVMAG2B+4~, SVMAG2B+12*, SVMAG2B+13
IDAT SRCH+7~*, SRCH+8*
IREC SVMAG2B+4~, SVMAG2B+6*
LIMEXAMS SRCH+2~, SRCH+3*, SRCH+6
LIMYRS SRCH+2~, SRCH+3*, SRCH+4
MAGCNI PRIOR1+15~, PRIOR1+19*, PRIOR1+20, PRIOR1+26, PRIOR1+27, PRIOR1+30, PRIOR1+31, SRCH+10
MAGDFN PRIOR1+15~, PRIOR1+19*, PRIOR1+20, PRIOR1+25, PRIOR1+26, PRIOR1+30, PRIOR1+31, PRIOR1+36
MAGDTH SVMAG2A+4~, SVMAG2A+44*, SVMAG2A+47
MAGDTI PRIOR1+15~, PRIOR1+19*, PRIOR1+20, PRIOR1+26, PRIOR1+30, PRIOR1+31, SRCH+10
MAGGRY PRIOR1~, PRIOR1+13!, SVMAG2B+10!
MAGGRY( SVMAG2A+47*, SVMAG2B+6!, SVMAG2B+14*
MAGGRY(0 ERR*, PRIOR1+18*, PRIOR1+21*, PRIOR1+25*, PRIOR1+27*, PRIOR1+29*, PRIOR1+32*, PRIOR1+34*, PRIOR1Z+1*, PRIOR1Z+2*
SVMAG2A+7, SVMAG2A+16, SVMAG2A+21, SVMAG2A+47*, SVMAG2B+6, SVMAG2B+18*, SVMAG2B+19*
MAGGRY(1 PRIOR1Z+2!, SVMAG2A+7, SVMAG2A+23, SVMAG2B+5
MAGJOB PRIOR1+23~
MAGMATCH SVMAG2A+4~, SVMAG2A+15*, SVMAG2A+16, SVMAG2A+20*, SVMAG2A+29*, SVMAG2A+39, SVMAG2A+47
MAGRACNT PRIOR1+15~, PRIOR1+28*, SRCH+6*
MAGRET PRIOR1+15~, PRIOR1+30, PRIOR1+32, SRCH+6, SRCH+7
>> RACANC PREFETCH+6
RACNI PREFETCH+6, PREFETCH+7, PRIOR1+14~, PRIOR1+31*, SRCH+9*, SRCH+10, SVMAG2A+47
RADATA PRIOR1+14~, PRIOR1+33*, SRCH+8*, SRCH+9, SVMAG2A+5, SVMAG2A+9, SVMAG2A+12, SVMAG2A+44, SVMAG2A+45, SVMAG2A+47
RADATA2 PRIOR1+14~, PRIOR1+33*, SRCH+8*, SVMAG2A+6
RADFN PREFETCH+6, PREFETCH+7, PRIOR1+14~, PRIOR1+31*, SRCH~, SRCH+6, SVMAG2A+47
RADTI PREFETCH+6, PREFETCH+7, PRIOR1+14~, PRIOR1+31*, SRCH+9*, SRCH+10, SVMAG2A+47
RAIMGTYP SVMAG2A+3~, SVMAG2A+46*, SVMAG2A+47
RARPT PRIOR1+14~, SVMAG2A+5*, SVMAG2A+8, SVMAG2A+47, SVMAG2B+13*, SVMAG2B+15, SVMAG2B+16, SVMAG2B+17
RASTCAT SVMAG2A+3~, SVMAG2A+6*, SVMAG2A+9
RET PREFETCH+4~*, PREFETCH+7
U PREFETCH+5, PREFETCH+7, PRIOR1+16, PRIOR1+19, PRIOR1+33, SRCH+9, SVMAG2A+5, SVMAG2A+6, SVMAG2A+7, SVMAG2A+9
SVMAG2A+12, SVMAG2A+20, SVMAG2A+23, SVMAG2A+28, SVMAG2A+29, SVMAG2A+44, SVMAG2A+45, SVMAG2A+47, SVMAG2B+5, SVMAG2B+7
SVMAG2B+8, SVMAG2B+13, SVMAG2B+14
X SVMAG2A+3~, SVMAG2A+20*, SVMAG2A+27*, SVMAG2A+28*, SVMAG2A+29, SVMAG2A+45*, SVMAG2A+46, SVMAG2B+6*, SVMAG2B+7, SVMAG2B+8
SVMAG2B+9, SVMAG2B+13*, SVMAG2B+14
Y SVMAG2A+17*, SVMAG2A+20*, SVMAG2A+28*, SVMAG2A+47*, SVMAG2B+4~, SVMAG2B+7*, SVMAG2B+8*, SVMAG2B+9, SVMAG2B+15*, SVMAG2B+16*
SVMAG2B+17*

Marked Items

Name Field # of Occurrence
$T(^ISINUTL2 SVMAG2B+17
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Used in RPC |  Used in HL7 Interface |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  Marked Items  | All