BGP2PHEP ; IHS/CMI/LAB - IHS gpra print ;
;;12.1;IHS CLINICAL REPORTING;;MAY 17, 2012;Build 66
;
;
PRINT ;EP
S BGPIOSL=$S($G(BGPGUI):55,1:IOSL)
S ^TMP($J,"BGPDEL",0)=0
S BGPPTYPE="P"
S BGPGPG=0
S BGPQUIT=""
I BGPROT="D" G DEL
D AREACP^BGP2HEH
S BGPQUIT="",BGPGPG=0,BGPRPT=0
D PRINT1^BGP2DHEP
Q:BGPQUIT
Q:BGPROT="P"
DEL ;create delimited output file
S BGPQUIT="",BGPGPG=0,BGPRPT=0
D ^%ZISC ;close printer device
S BGPPTYPE="D"
K ^TMP($J)
D ^BGP2HEL ;create ^tmp of delimited report
Q
;
BGP2PHEP ; IHS/CMI/LAB - IHS gpra print ;
+1 ;;12.1;IHS CLINICAL REPORTING;;MAY 17, 2012;Build 66
+2 ;
+3 ;
PRINT ;EP
+1 SET BGPIOSL=$SELECT($GET(BGPGUI):55,1:IOSL)
+2 SET ^TMP($JOB,"BGPDEL",0)=0
+3 SET BGPPTYPE="P"
+4 SET BGPGPG=0
+5 SET BGPQUIT=""
+6 IF BGPROT="D"
GOTO DEL
+7 DO AREACP^BGP2HEH
+8 SET BGPQUIT=""
SET BGPGPG=0
SET BGPRPT=0
+9 DO PRINT1^BGP2DHEP
+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 SET BGPPTYPE="D"
+4 KILL ^TMP($JOB)
+5 ;create ^tmp of delimited report
DO ^BGP2HEL
+6 QUIT
+7 ;