MAGJEX2 ;WIRMFO/JHC,NST - Rad. Workstation RPC calls ; 10/17/2022
Source file <MAGJEX2.m>
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 | ;
|
RPC Name | Call Tags |
---|---|
MAGJ PRIOREXAMS | PRIOR1 |
HL7 Protocol Name | Call Tags |
---|---|
MAGJ PREFETCH/SEND ORM | PREFETCH |