Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: BGP3DP1

BGP3DP1.m

Go to the documentation of this file.
BGP3DP1 ; IHS/CMI/LAB - print ind 1 21 Mar 2010 12:55 PM ;
 ;;13.0;IHS CLINICAL REPORTING;**1**;NOV 20, 2012;Build 7
 ;
 ;
I1 ;EP
 I '$G(BGPSUMON) D H1^BGP3DPH
I1A1 ;
 I BGPINDH'="E" F BGPPC1="1.1","1.2","1.3" Q:BGPQUIT  D PI
 I BGPINDH="E" F BGPPC1="1.4" D PI
 I BGPINDH'="E" D I1AGE^BGP3DP1C
 Q
IREG ;EP
 I $Y>(BGPIOSL-13),'$G(BGPSUMON) D HEADER^BGP3DPH Q:BGPQUIT  W !!,^BGPINDH(BGPIC,53,1,0) W:$D(^BGPINDH(BGPIC,53,2,0)) !,^BGPINDH(BGPIC,53,2,0)
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:$P(^BGPINDH(BGPIC,0),U,13) S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
IEDA ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:3,6:1:8 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 D I1AGE^BGP3DP14
 Q
IASCRN ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:4 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 D I1AGE^BGP3DP8
 Q
IHIV ;
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:4,8,9 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 D I1AGE^BGP3DP1H
 Q
PHYACT ;
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:$P(^BGPINDH(BGPIC,0),U,13) S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 D I1AGE^BGP3PDLT
 Q
I9 ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1,3,4 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 D I1AGE^BGP3DP19
 Q
I12 ;EP
 D H1^BGP3DPH
 F BGPPC1="12.1","12.2","12.3" Q:BGPQUIT  D PI
 F BGPPC1="12.4","12.5" Q:BGPQUIT  W ! D PI
 F BGPPC1="12.6","12.7" Q:BGPQUIT  D PI
 Q
I13 ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:3 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
I14 ;EP
 I $Y>(BGPIOSL-13),'$G(BGPSUMON) D HEADER^BGP3DPH Q:BGPQUIT  W !!,^BGPINDH(BGPIC,53,1,0) W:$D(^BGPINDH(BGPIC,53,2,0)) !,^BGPINDH(BGPIC,53,2,0)
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:3 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
I007 ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:7 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
I008 ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:5 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
IB ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:6 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
IH ;EP
 D H1^BGP3DPH
 I BGPRTYPE'=9 D  I 1
 .S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:6 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 .D I1AGE^BGP3DP12
 Q
I91 ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:3 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 D I1AGE^BGP3DP13
 Q
IG ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:2 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI W !
 Q
IF ;EP
 I '$G(BGPSUMON) D HEADER^BGP3DPH Q:BGPQUIT  W !!,^BGPINDH(BGPIC,53,1,0) W:$D(^BGPINDH(BGPIC,53,2,0)) !,^BGPINDH(BGPIC,53,2,0)
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:3 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
IA ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:18 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
ICRSAMM ;EP 23
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:2 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
I031A ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:13 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
ID ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:9 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
I0302 ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:9 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
I0303 ;EP
 I $Y>(BGPIOSL-13),'$G(BGPSUMON) D HEADER^BGP3DPH Q:BGPQUIT  W !!,^BGPINDH(BGPIC,53,1,0) W:$D(^BGPINDH(BGPIC,53,2,0)) !,^BGPINDH(BGPIC,53,2,0)
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:3 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
I0302A ;EP
 I $Y>(BGPIOSL-13),'$G(BGPSUMON) D HEADER^BGP3DPH Q:BGPQUIT  W !!,^BGPINDH(BGPIC,53,1,0) W:$D(^BGPINDH(BGPIC,53,2,0)) !,^BGPINDH(BGPIC,53,2,0)
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:4 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
IHEDBBH ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:6 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
IHEDPBH ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:6 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
IHEDCHM ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:6 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
IE2 ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:1 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
IE1 ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:1 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
IK ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:6 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
IOMW ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:2 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
IRAO ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:2 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
II ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:2 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
IAS ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:$P(^BGPINDH(BGPIC,0),U,13) S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
IAA ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:$P(^BGPINDH(BGPIC,0),U,13) S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 D ^BGP3DP1L
 Q
IMTA ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1,2,4 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 D ^BGP3DP1M
 D ^BGP3DP1N
 Q
IL ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:2 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
IMS ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:2 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
IC2 ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:2 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
IAST1 ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:12 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
IRAR ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:2 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
IHEDCWP ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:2 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
IHEDURI ;EP
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:2 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
I28 ;EP
 I '$G(BGPSUMON) D HEADER^BGP3DPH Q:BGPQUIT  W !!,^BGPINDH(BGPIC,53,1,0) W:$D(^BGPINDH(BGPIC,53,2,0)) !,^BGPINDH(BGPIC,53,2,0)
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:2 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
WASS ;
 I $Y>(BGPIOSL-13),'$G(BGPSUMON) D HEADER^BGP3DPH Q:BGPQUIT  W !!,^BGPINDH(BGPIC,53,1,0) W:$D(^BGPINDH(BGPIC,53,2,0)) !,^BGPINDH(BGPIC,53,2,0)
 D H1^BGP3DPH
 S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=1:1:6 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 D ^BGP3DP1S
 ;I $Y>(BGPIOSL-13),'$G(BGPSUMON) D HEADER^BGP3DPH Q:BGPQUIT  W !!,^BGPINDH(BGPIC,53,1,0) W:$D(^BGPINDH(BGPIC,53,2,0)) !,^BGPINDH(BGPIC,53,2,0)
 ;D H1^BGP3DPH
 ;S BGPORDP=$P(^BGPINDH(BGPIC,12),U,6) F BGPORDP1=6,8 S BGPPC1=BGPORDP_"."_BGPORDP1 Q:BGPQUIT  D PI
 Q
PI ;EP
 D PI^BGP3DP1C
 Q