BGP6PARQ ; IHS/CMI/LAB - IHS gpra print ;
;;16.1;IHS CLINICAL REPORTING;;MAR 22, 2016;Build 170
;
;
PRINT ;EP
K ^TMP($J)
S BGPIOSL=$S($G(BGPGUI):55,1:IOSL)
S BGPGPG=0
S BGPPTYPE="P"
S ^TMP($J,"BGPDEL",0)=0
S BGPQUIT=""
D SETEXCEL^BGP6DP
I BGPROT="D" G DEL
D AREACP^BGP6DH
S BGPQUIT="",BGPGPG=0,BGPRPT=0
D PRINT1^BGP6DP
Q:BGPQUIT
Q:BGPROT="P"
DEL ;create delimited output file
S BGPQUIT="",BGPGPG=0,BGPRPT=0
D ^%ZISC ;close printer device
K ^TMP($J)
S ^TMP($J,"BGPDEL",0)=0
S BGPPTYPE="D"
;D ^BGP6PDL ;create ^tmp of delimited report
D AREACP^BGP6DH
S BGPQUIT="",BGPGPG=0,BGPRPT=0
D PRINT1^BGP6DP
D SAVEDEL^BGP6PDL ;D ^BGP6PDL ;create ^tmp of delimited report
K ^TMP($J)
Q
;
BGP6PARQ ; IHS/CMI/LAB - IHS gpra print ;
+1 ;;16.1;IHS CLINICAL REPORTING;;MAR 22, 2016;Build 170
+2 ;
+3 ;
PRINT ;EP
+1 KILL ^TMP($JOB)
+2 SET BGPIOSL=$SELECT($GET(BGPGUI):55,1:IOSL)
+3 SET BGPGPG=0
+4 SET BGPPTYPE="P"
+5 SET ^TMP($JOB,"BGPDEL",0)=0
+6 SET BGPQUIT=""
+7 DO SETEXCEL^BGP6DP
+8 IF BGPROT="D"
GOTO DEL
+9 DO AREACP^BGP6DH
+10 SET BGPQUIT=""
SET BGPGPG=0
SET BGPRPT=0
+11 DO PRINT1^BGP6DP
+12 IF BGPQUIT
QUIT
+13 IF BGPROT="P"
QUIT
DEL ;create delimited output file
+1 SET BGPQUIT=""
SET BGPGPG=0
SET BGPRPT=0
+2 ;close printer device
DO ^%ZISC
+3 KILL ^TMP($JOB)
+4 SET ^TMP($JOB,"BGPDEL",0)=0
+5 SET BGPPTYPE="D"
+6 ;D ^BGP6PDL ;create ^tmp of delimited report
+7 DO AREACP^BGP6DH
+8 SET BGPQUIT=""
SET BGPGPG=0
SET BGPRPT=0
+9 DO PRINT1^BGP6DP
+10 ;D ^BGP6PDL ;create ^tmp of delimited report
DO SAVEDEL^BGP6PDL
+11 KILL ^TMP($JOB)
+12 QUIT
+13 ;