RAORD61 ;HISC/GJC-Print A Request Cont. ;2/2/98 15:28
;;5.0;Radiology/Nuclear Medicine;**45,68,47,123,143**;Mar 16, 1998;Build 11
;Per VHA Directive 2004-038, this routine should not be modified.
;11/18/05 KAM Remedy Call 100930 Remove extra dash lines
; 5-P123 6/23/2015 MJT RA*5*123 NSR 20140507 print weight & date taken in Radiology requests
;
TC ;technologist information & comment (called from RAORD6)
;*143 add RAEXST & RADTP
N RA18FL,RA18ARR,RA18EX,RA18CNI,RA18DTI,RA18PRC,RA18ND,RA18TC,RAEXST,RADTP S RA18EX=0,RA18CNI=0
;11/18/05 KAM Modified next line - was G:RA18DTI="" DASHLN^RAORD6
; RA*5*143 - FIX FOR EXAMS AND EXAM SETS ORDERED IN ARREARS
;S RA18DTI=$O(^RADPT("AO",RAOIFN,RADFN,0)) Q:RA18DTI=""
F S RA18CNI=$O(^TMP($J,"RAE2",RADFN,RA18CNI)) Q:+RA18CNI=0 D Q:RAX["^"
. S RA18PRC=""
. F S RA18PRC=$O(^TMP($J,"RAE2",RADFN,RA18CNI,RA18PRC)) Q:RA18PRC="" D Q:RAX["^"
.. S RA18DTI=0 F S RA18DTI=$O(^TMP($J,"RAE2",RADFN,RA18CNI,RA18PRC,"DTI",RA18DTI)) Q:'RA18DTI D
... ;case info
... I $$USESSAN^RAHLRU1() W !,"Case No: "_$P($G(^RADPT(RADFN,"DT",RA18DTI,"P",RA18CNI,0)),"^",31),!
... I '$$USESSAN^RAHLRU1() W !,"Case No: "_$P($G(^RADPT(RADFN,"DT",RA18DTI,"P",RA18CNI,0)),"^")
... S RA18FL=0,RA18ARR("FT")=""
... S RA18TC=0 F S RA18TC=$O(^RADPT(RADFN,"DT",RA18DTI,"P",RA18CNI,"F",RA18TC)) Q:RA18TC="" S RA18ARR("F")=$G(^RADPT(RADFN,"DT",RA18DTI,"P",RA18CNI,"F",RA18TC,0),0) D Q:$L(RA18ARR("FT"))>32
.... I RA18ARR("F")'=0 S RA18ARR("FT")=RA18ARR("FT")_$P($G(RA18ARR("F")),"^",2)_"-"_$P($G(^RA(78.4,$P($G(RA18ARR("F")),"^",1),0)),"^",1)_";"
... S RA18TC=0 F S RA18TC=$O(^RADPT(RADFN,"DT",RA18DTI,"P",RA18CNI,"TC",RA18TC)) Q:RA18TC="" S RA18ARR("T",RA18TC,0)=$G(^RADPT(RADFN,"DT",RA18DTI,"P",RA18CNI,"TC",RA18TC,0),0) D
.... I RA18ARR("T",RA18TC,0)'=0 W:RA18FL>0 ! W ?14,"Tech: " I RA18ARR("T",RA18TC,0)'="" S RA18ARR("N")=$$GET1^DIQ(200,RA18ARR("T",RA18TC,0),.01) W $E($P(RA18ARR("N"),"^",1),1,18)
.... W:(RA18FL'>0) ?38," Film: "_$E(RA18ARR("FT"),1,32)
.... S RA18FL=RA18FL+1
... I '$D(RA18ARR("T")) W ?14,"Tech: ",?38," Film: "_$E(RA18ARR("FT"),1,32)
... K RA18ARR("T"),RA18ARR("F"),RA18ARR("N")
... I $O(^TMP($J,"RAE2",RADFN,RA18CNI,RA18PRC,"TCOM",0))>0 D Q
.... ;tech comm
.... W !
.... S RA18EX=$$TXTOUT^RAUTL11(^TMP($J,"RAE2",RADFN,RA18CNI,RA18PRC,"TCOM",1),1,70,-1,"",4,1,1,1)
.... D HD^RAORD6:($Y+10)>IOSL ; 5-P123
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HRAORD61 2415 printed Oct 16, 2024@18:38:44 Page 2
RAORD61 ;HISC/GJC-Print A Request Cont. ;2/2/98 15:28
+1 ;;5.0;Radiology/Nuclear Medicine;**45,68,47,123,143**;Mar 16, 1998;Build 11
+2 ;Per VHA Directive 2004-038, this routine should not be modified.
+3 ;11/18/05 KAM Remedy Call 100930 Remove extra dash lines
+4 ; 5-P123 6/23/2015 MJT RA*5*123 NSR 20140507 print weight & date taken in Radiology requests
+5 ;
TC ;technologist information & comment (called from RAORD6)
+1 ;*143 add RAEXST & RADTP
+2 NEW RA18FL,RA18ARR,RA18EX,RA18CNI,RA18DTI,RA18PRC,RA18ND,RA18TC,RAEXST,RADTP
SET RA18EX=0
SET RA18CNI=0
+3 ;11/18/05 KAM Modified next line - was G:RA18DTI="" DASHLN^RAORD6
+4 ; RA*5*143 - FIX FOR EXAMS AND EXAM SETS ORDERED IN ARREARS
+5 ;S RA18DTI=$O(^RADPT("AO",RAOIFN,RADFN,0)) Q:RA18DTI=""
+6 FOR
SET RA18CNI=$ORDER(^TMP($JOB,"RAE2",RADFN,RA18CNI))
if +RA18CNI=0
QUIT
Begin DoDot:1
+7 SET RA18PRC=""
+8 FOR
SET RA18PRC=$ORDER(^TMP($JOB,"RAE2",RADFN,RA18CNI,RA18PRC))
if RA18PRC=""
QUIT
Begin DoDot:2
+9 SET RA18DTI=0
FOR
SET RA18DTI=$ORDER(^TMP($JOB,"RAE2",RADFN,RA18CNI,RA18PRC,"DTI",RA18DTI))
if 'RA18DTI
QUIT
Begin DoDot:3
+10 ;case info
+11 IF $$USESSAN^RAHLRU1()
WRITE !,"Case No: "_$PIECE($GET(^RADPT(RADFN,"DT",RA18DTI,"P",RA18CNI,0)),"^",31),!
+12 IF '$$USESSAN^RAHLRU1()
WRITE !,"Case No: "_$PIECE($GET(^RADPT(RADFN,"DT",RA18DTI,"P",RA18CNI,0)),"^")
+13 SET RA18FL=0
SET RA18ARR("FT")=""
+14 SET RA18TC=0
FOR
SET RA18TC=$ORDER(^RADPT(RADFN,"DT",RA18DTI,"P",RA18CNI,"F",RA18TC))
if RA18TC=""
QUIT
SET RA18ARR("F")=$GET(^RADPT(RADFN,"DT",RA18DTI,"P",RA18CNI,"F",RA18TC,0),0)
Begin DoDot:4
+15 IF RA18ARR("F")'=0
SET RA18ARR("FT")=RA18ARR("FT")_$PIECE($GET(RA18ARR("F")),"^",2)_"-"_$PIECE($GET(^RA(78.4,$PIECE($GET(RA18ARR("F")),"^",1),0)),"^",1)_";"
End DoDot:4
if $LENGTH(RA18ARR("FT"))>32
QUIT
+16 SET RA18TC=0
FOR
SET RA18TC=$ORDER(^RADPT(RADFN,"DT",RA18DTI,"P",RA18CNI,"TC",RA18TC))
if RA18TC=""
QUIT
SET RA18ARR("T",RA18TC,0)=$GET(^RADPT(RADFN,"DT",RA18DTI,"P",RA18CNI,"TC",RA18TC,0),0)
Begin DoDot:4
+17 IF RA18ARR("T",RA18TC,0)'=0
if RA18FL>0
WRITE !
WRITE ?14,"Tech: "
IF RA18ARR("T",RA18TC,0)'=""
SET RA18ARR("N")=$$GET1^DIQ(200,RA18ARR("T",RA18TC,0),.01)
WRITE $EXTRACT($PIECE(RA18ARR("N"),"^",1),1,18)
+18 if (RA18FL'>0)
WRITE ?38," Film: "_$EXTRACT(RA18ARR("FT"),1,32)
+19 SET RA18FL=RA18FL+1
End DoDot:4
+20 IF '$DATA(RA18ARR("T"))
WRITE ?14,"Tech: ",?38," Film: "_$EXTRACT(RA18ARR("FT"),1,32)
+21 KILL RA18ARR("T"),RA18ARR("F"),RA18ARR("N")
+22 IF $ORDER(^TMP($JOB,"RAE2",RADFN,RA18CNI,RA18PRC,"TCOM",0))>0
Begin DoDot:4
+23 ;tech comm
+24 WRITE !
+25 SET RA18EX=$$TXTOUT^RAUTL11(^TMP($JOB,"RAE2",RADFN,RA18CNI,RA18PRC,"TCOM",1),1,70,-1,"",4,1,1,1)
+26 ; 5-P123
if ($Y+10)>IOSL
DO HD^RAORD6
End DoDot:4
QUIT
End DoDot:3
End DoDot:2
if RAX["^"
QUIT
End DoDot:1
if RAX["^"
QUIT
+27 QUIT