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 |  All
Print Page as PDF
Routine: MAGJEX2

Package: Imaging

Routine: MAGJEX2


Information

MAGJEX2 ;WIRMFO/JHC,NST - Rad. Workstation RPC calls; OCT 24, 2018@4:05 PM

Source Information

Source file <MAGJEX2.m>

Call Graph

Call Graph

Call Graph Total: 7

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  

Caller Graph

Legends:

Legend of Colors

Package Component Superscript legend

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

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
END ;
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)
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
PREFQ ;
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

External References

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

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+19, SVMAG2A+23, SVMAG2A+26, SVMAG2A+27
^MAG(2006.69 - [#2006.69] PREFETCH+5
^RA(79.2 - [#79.2] SVMAG2A+45
^RADPT - [#70] PRIOR1+26
^RARPT - [#74] SVMAG2A+7
^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+26
^("RAE1" PRIOR1Z+4!

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+7, SVMAG2A+27, SVMAG2B+15, SVMAG2B+16
BEGDT SRCH+2~, SRCH+4*, SRCH+5*, SRCH+6
CPT PRIOR1+15~, SVMAG2A+4~, SVMAG2A+11*, SVMAG2A+12, SVMAG2A+13, SVMAG2A+20, SVMAG2A+26*, SVMAG2A+28, SVMAG2B+4~, SVMAG2B+6*
, SVMAG2B+8, SVMAG2B+9, SVMAG2B+11*, SVMAG2B+12*, SVMAG2B+13, SVMAG2B+14
CPT3 SVMAG2A+4~, SVMAG2A+13*, SVMAG2A+19
CPT4 SVMAG2A+4~, SVMAG2A+13*, SVMAG2A+19
CPT5 SVMAG2A+4~, SVMAG2A+13*, SVMAG2A+19
CT SVMAG2B+4~, SVMAG2B+11*, SVMAG2B+13*, SVMAG2B+14, SVMAG2B+17
CURCPTS SVMAG2A+4~, SVMAG2A+22*, SVMAG2A+23*
CURCPTX SVMAG2A+4~, SVMAG2A+23*, SVMAG2A+26, SVMAG2A+27
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+17, SVMAG2B+18
HIT SVMAG2A+4~, SVMAG2A+22*, SVMAG2A+23, SVMAG2A+26*
I SVMAG2A+4~, SVMAG2A+28*
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+43*, SVMAG2A+46
MAGDTI PRIOR1+15~, PRIOR1+19*, PRIOR1+20, PRIOR1+26, PRIOR1+30, PRIOR1+31, SRCH+10
MAGGRY PRIOR1~, PRIOR1+13!, SVMAG2B+10!
MAGGRY( SVMAG2A+46*, 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+6, SVMAG2A+15, SVMAG2A+20, SVMAG2A+46*, SVMAG2B+6, SVMAG2B+17*, SVMAG2B+18*
MAGGRY(1 PRIOR1Z+2!, SVMAG2A+6, SVMAG2A+22, SVMAG2B+5
MAGJOB PRIOR1+23~
MAGMATCH SVMAG2A+4~, SVMAG2A+14*, SVMAG2A+15, SVMAG2A+19*, SVMAG2A+28*, SVMAG2A+38, SVMAG2A+46
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+46
RADATA PRIOR1+14~, PRIOR1+33*, SRCH+8*, SRCH+9, SVMAG2A+5, SVMAG2A+8, SVMAG2A+11, SVMAG2A+43, SVMAG2A+44, SVMAG2A+46
RADFN PREFETCH+6, PREFETCH+7, PRIOR1+14~, PRIOR1+31*, SRCH~, SRCH+6, SVMAG2A+46
RADTI PREFETCH+6, PREFETCH+7, PRIOR1+14~, PRIOR1+31*, SRCH+9*, SRCH+10, SVMAG2A+46
RAIMGTYP SVMAG2A+3~, SVMAG2A+45*, SVMAG2A+46
RARPT PRIOR1+14~, SVMAG2A+5*, SVMAG2A+7, SVMAG2A+46, SVMAG2B+13*, SVMAG2B+15, SVMAG2B+16
RET PREFETCH+4~*, PREFETCH+7
U PREFETCH+5, PREFETCH+7, PRIOR1+16, PRIOR1+19, PRIOR1+33, SRCH+9, SVMAG2A+5, SVMAG2A+6, SVMAG2A+8, SVMAG2A+11
, SVMAG2A+19, SVMAG2A+22, SVMAG2A+27, SVMAG2A+28, SVMAG2A+43, SVMAG2A+44, SVMAG2A+46, SVMAG2B+5, SVMAG2B+7, SVMAG2B+8
, SVMAG2B+13, SVMAG2B+14
X SVMAG2A+3~, SVMAG2A+19*, SVMAG2A+26*, SVMAG2A+27*, SVMAG2A+28, SVMAG2A+44*, SVMAG2A+45, SVMAG2B+6*, SVMAG2B+7, SVMAG2B+8
, SVMAG2B+9, SVMAG2B+13*, SVMAG2B+14
Y SVMAG2A+16*, SVMAG2A+19*, SVMAG2A+27*, SVMAG2A+46*, SVMAG2B+4~, SVMAG2B+7*, SVMAG2B+8*, SVMAG2B+9, SVMAG2B+15*, SVMAG2B+16*
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 |  All