BGP9PARP ; IHS/CMI/LAB - IHS gpra print ;
;;9.0;IHS CLINICAL REPORTING;;JUL 1, 2009
;
;
PRINT ;EP
K ^TMP($J)
S BGPIOSL=$S($G(BGPGUI):55,1:IOSL)
S BGPGPG=0
S BGPQUIT=""
S BGPIFTR=""
D SETEXCEL^BGP9DP
I BGPROT="D" G DEL
D AREACP^BGP9DH
S BGPQUIT="",BGPGPG=0,BGPRPT=0
D PRINT1^BGP9DP
Q:BGPQUIT
Q:BGPROT="P"
DEL ;create delimited output file
S BGPQUIT="",BGPGPG=0,BGPRPT=0
D ^%ZISC ;close printer device
K ^TMP($J)
D ^BGP9PDL ;create ^tmp of delimited report
S BGPIFTR=1
Q
;
BGP9PARP ; IHS/CMI/LAB - IHS gpra print ;
+1 ;;9.0;IHS CLINICAL REPORTING;;JUL 1, 2009
+2 ;
+3 ;
PRINT ;EP
+1 KILL ^TMP($JOB)
+2 SET BGPIOSL=$SELECT($GET(BGPGUI):55,1:IOSL)
+3 SET BGPGPG=0
+4 SET BGPQUIT=""
+5 SET BGPIFTR=""
+6 DO SETEXCEL^BGP9DP
+7 IF BGPROT="D"
GOTO DEL
+8 DO AREACP^BGP9DH
+9 SET BGPQUIT=""
SET BGPGPG=0
SET BGPRPT=0
+10 DO PRINT1^BGP9DP
+11 IF BGPQUIT
QUIT
+12 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 ;create ^tmp of delimited report
DO ^BGP9PDL
+5 SET BGPIFTR=1
+6 QUIT
+7 ;