BGP7PPEL ; IHS/CMI/LAB - IHS gpra print ;
;;17.1;IHS CLINICAL REPORTING;;MAY 10, 2017;Build 29
;
;
PRINT ;EP
S BGPGPG=0
S BGPIOSL=$S($G(BGPGUI):55,1:IOSL)
S BGPQUIT=""
S ^TMP($J,"BGPDEL",0)=0
I BGPROT="D" G DEL
S BGPPTYPE="P"
D AREACP^BGP7DH
S BGPQUIT="",BGPGPG=0,BGPRPT=0
D PRINT1^BGP7DPEP
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 BGPPTYPE="D"
D ^BGP7DPED ;create ^tmp of delimited report
Q
;
BGP7PPEL ; IHS/CMI/LAB - IHS gpra print ;
+1 ;;17.1;IHS CLINICAL REPORTING;;MAY 10, 2017;Build 29
+2 ;
+3 ;
PRINT ;EP
+1 SET BGPGPG=0
+2 SET BGPIOSL=$SELECT($GET(BGPGUI):55,1:IOSL)
+3 SET BGPQUIT=""
+4 SET ^TMP($JOB,"BGPDEL",0)=0
+5 IF BGPROT="D"
GOTO DEL
+6 SET BGPPTYPE="P"
+7 DO AREACP^BGP7DH
+8 SET BGPQUIT=""
SET BGPGPG=0
SET BGPRPT=0
+9 DO PRINT1^BGP7DPEP
+10 IF BGPQUIT
QUIT
+11 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 BGPPTYPE="D"
+5 ;create ^tmp of delimited report
DO ^BGP7DPED
+6 QUIT
+7 ;