BGP0PARP ; IHS/CMI/LAB - IHS gpra print ;
;;11.0;IHS CLINICAL REPORTING;;JAN 06, 2011;Build 17
;
;
PRINT ;EP
K ^TMP($J)
S BGPIOSL=$S($G(BGPGUI):55,1:IOSL)
S BGPGPG=0
S BGPQUIT=""
S BGPIFTR=""
S ^TMP($J,"BGPDEL",0)=0
S BGPPTYPE="P"
D SETEXCEL^BGP0DP
I BGPROT="D" G DEL
D AREACP^BGP0DH
S BGPQUIT="",BGPGPG=0,BGPRPT=0
D PRINT1^BGP0DP
Q:BGPQUIT
S BGPIFTR=1
Q:BGPROT="P"
DEL ;create delimited output file
S BGPQUIT="",BGPGPG=0,BGPRPT=0,BGPIFTR=""
D ^%ZISC ;close printer device
K ^TMP($J)
;D ^BGP0PDL ;create ^tmp of delimited report
S ^TMP($J,"BGPDEL",0)=0
S BGPPTYPE="D",BGPQUIT=0
D AREACP^BGP0DH
S BGPQUIT="",BGPGPG=0,BGPRPT=0
D PRINT1^BGP0DP
D SAVEDEL^BGP0PDL ;D ^BGP0PDL ;create ^tmp of delimited report
S BGPIFTR=1
K ^TMP($J)
Q
;
BGP0PARP ; IHS/CMI/LAB - IHS gpra print ;
+1 ;;11.0;IHS CLINICAL REPORTING;;JAN 06, 2011;Build 17
+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 SET ^TMP($JOB,"BGPDEL",0)=0
+7 SET BGPPTYPE="P"
+8 DO SETEXCEL^BGP0DP
+9 IF BGPROT="D"
GOTO DEL
+10 DO AREACP^BGP0DH
+11 SET BGPQUIT=""
SET BGPGPG=0
SET BGPRPT=0
+12 DO PRINT1^BGP0DP
+13 IF BGPQUIT
QUIT
+14 SET BGPIFTR=1
+15 IF BGPROT="P"
QUIT
DEL ;create delimited output file
+1 SET BGPQUIT=""
SET BGPGPG=0
SET BGPRPT=0
SET BGPIFTR=""
+2 ;close printer device
DO ^%ZISC
+3 KILL ^TMP($JOB)
+4 ;D ^BGP0PDL ;create ^tmp of delimited report
+5 SET ^TMP($JOB,"BGPDEL",0)=0
+6 SET BGPPTYPE="D"
SET BGPQUIT=0
+7 DO AREACP^BGP0DH
+8 SET BGPQUIT=""
SET BGPGPG=0
SET BGPRPT=0
+9 DO PRINT1^BGP0DP
+10 ;D ^BGP0PDL ;create ^tmp of delimited report
DO SAVEDEL^BGP0PDL
+11 SET BGPIFTR=1
+12 KILL ^TMP($JOB)
+13 QUIT
+14 ;