BGP6DSP ; IHS/CMI/LAB - IHS summary page 16 Nov 2010 7:12 AM ; 17 Sep 2015 1:51 PM
;;16.1;IHS CLINICAL REPORTING;;MAR 22, 2016;Build 170
;
START ;
I BGPRTYPE'=1 Q
I $G(BGPNPL) Q ;not on gpra pat list
I $G(BGPCPPL) Q ;not on comp list
S BGPQUIT=""
D HEADER
NEW P8,P4,P7,P12
S P8=$S('$G(BGPNGR09):8,1:8) ;CHANGE 1:8 TO 1:13
S P4=$S('$G(BGPNGR09):4,1:4) ;CHANGE 1:4 TO 1:14
S P7=$S('$G(BGPNGR09):7,1:7) ;CHANGE 1:7 TO 1:15
S P12=$S('$G(BGPNGR09):12,1:12) ;CHANGE 1:12 TO 1:16
S BGPC=0 F S BGPC=$O(^TMP($J,"SUMMARY",BGPC)) Q:BGPC'=+BGPC!(BGPQUIT) D
.I BGPPTYPE="P",$Y>(BGPIOSL-3) D HEADER Q:BGPQUIT
.S BGPC1=$O(^BGPSCAT("C",BGPC,0))
.D W^BGP6DP("",0,1,BGPPTYPE)
.D W^BGP6DP($P(^BGPSCAT(BGPC1,0),U),0,1,BGPPTYPE) ;W !,$P(^BGPSCAT(BGPC1,0),U)
.S BGPO="" F S BGPO=$O(^TMP($J,"SUMMARY",BGPC,BGPO)) Q:BGPO=""!(BGPQUIT) D
..S BGPPC=$O(^TMP($J,"SUMMARY",BGPC,BGPO,0))
..Q:$P($G(^BGPINDMC(BGPPC,22)),U,13) ;part measure displays last
..I BGPPTYPE="P" D
...I $Y>(BGPIOSL-4) D HEADER Q:BGPQUIT
...I $P(^BGPINDMC(BGPPC,0),U,4)["014.A"!($P(^BGPINDMC(BGPPC,0),U,4)["023.")!($P(^BGPINDMC(BGPPC,0),U,4)="016.A.1")!($P(^BGPINDMC(BGPPC,0),U,4)="016.A.5")!($P($G(^BGPINDMC(BGPPC,19)),U,13)) D I 1
....D W^BGP6DP($P(^BGPINDMC(BGPPC,14),U,P4),0,1,BGPPTYPE)
....I $P(^BGPINDMC(BGPPC,14),U,P7)]"" D W^BGP6DP($P(^BGPINDMC(BGPPC,14),U,P7),0,1,BGPPTYPE)
....I $P(^BGPINDMC(BGPPC,14),U,P12)]"" D W^BGP6DP($P(^BGPINDMC(BGPPC,14),U,P12),0,1,BGPPTYPE)
....D W^BGP6DP($J($P(^TMP($J,"SUMMARY",BGPC,BGPO,BGPPC),U),7,0),0,0,BGPPTYPE,2,26)
....D W^BGP6DP($J($P(^TMP($J,"SUMMARY",BGPC,BGPO,BGPPC),U,2),7,0),0,0,BGPPTYPE,3,34)
....D W^BGP6DP($J($P(^TMP($J,"SUMMARY",BGPC,BGPO,BGPPC),U,3),7,0),0,0,BGPPTYPE,4,41)
....D W^BGP6DP($P(^BGPINDMC(BGPPC,14),U,P8),0,0,BGPPTYPE,5,53)
....D W^BGP6DP($P(^BGPINDMC(BGPPC,14),U,2),0,0,BGPPTYPE,6,64)
....D W^BGP6DP($P(^BGPINDMC(BGPPC,14),U,3),0,0,BGPPTYPE,7,73)
...E D
....D W^BGP6DP($P(^BGPINDMC(BGPPC,14),U,P4),0,1,BGPPTYPE,1)
....I $P(^BGPINDMC(BGPPC,14),U,P7)]"" D W^BGP6DP($P(^BGPINDMC(BGPPC,14),U,P7),0,1,BGPPTYPE) ;W !,$P(^BGPINDMC(BGPPC,14),U,P7)
....I $P(^BGPINDMC(BGPPC,14),U,P12)]"" D W^BGP6DP($P(^BGPINDMC(BGPPC,14),U,P12),0,1,BGPPTYPE) ;W !,$P(^BGPINDMC(BGPPC,14),U,P12)
....D W^BGP6DP($J($P(^TMP($J,"SUMMARY",BGPC,BGPO,BGPPC),U),7,1)_"%",0,0,BGPPTYPE,2,26)
....D W^BGP6DP($J($P(^TMP($J,"SUMMARY",BGPC,BGPO,BGPPC),U,2),7,1)_"%",0,0,BGPPTYPE,3,34)
....D W^BGP6DP($J($P(^TMP($J,"SUMMARY",BGPC,BGPO,BGPPC),U,3),7,1)_"%",0,0,BGPPTYPE,4,41)
....D W^BGP6DP($TR($P(^BGPINDMC(BGPPC,14),U,P8),"$","^"),0,0,BGPPTYPE,5,53)
....D W^BGP6DP($TR($P(^BGPINDMC(BGPPC,14),U,2),"$","^"),0,0,BGPPTYPE,6,64)
....D W^BGP6DP($P(^BGPINDMC(BGPPC,14),U,3),0,0,BGPPTYPE,7,73)
....I $P(^BGPINDMC(BGPPC,14),U,9)]""!($P(^BGPINDMC(BGPPC,14),U,10)]"")!($P(^BGPINDMC(BGPPC,14),U,11)]"") D
.....D W^BGP6DP($TR($P(^BGPINDMC(BGPPC,14),U,9),"$","^"),0,1,BGPPTYPE,5,53),W^BGP6DP($TR($P(^BGPINDMC(BGPPC,14),U,10),"$","^"),0,0,BGPPTYPE,6,64),W^BGP6DP($P(^BGPINDMC(BGPPC,14),U,11),0,0,7,73)
..I BGPPTYPE="D" D
...S X=""
...I $P(^BGPINDMC(BGPPC,0),U,4)["014.A"!($P(^BGPINDMC(BGPPC,0),U,4)["023.")!($P(^BGPINDMC(BGPPC,0),U,4)="016.A.1")!($P(^BGPINDMC(BGPPC,0),U,4)="016.A.5")!($P($G(^BGPINDMC(BGPPC,19)),U,13)) D I 1
....S X=$P(^BGPINDMC(BGPPC,14),U,P4)
....I $P(^BGPINDMC(BGPPC,14),U,P7)]"" D W^BGP6DP(X,0,1,BGPPTYPE) S X=$P(^BGPINDMC(BGPPC,14),U,P7)
....I $P(^BGPINDMC(BGPPC,14),U,P12)]"" D W^BGP6DP(X,0,1,BGPPTYPE) S X=$P(^BGPINDMC(BGPPC,14),U,P12)
....S $P(X,U,2)=$P(^TMP($J,"SUMMARYDEL",BGPC,BGPO,BGPPC),U)
....S $P(X,U,3)=$P(^TMP($J,"SUMMARYDEL",BGPC,BGPO,BGPPC),U,2)
....S $P(X,U,4)=$P(^TMP($J,"SUMMARYDEL",BGPC,BGPO,BGPPC),U,3)
....S $P(X,U,5)=$P(^BGPINDMC(BGPPC,14),U,P8)
....S $P(X,U,6)=$P(^BGPINDMC(BGPPC,14),U,2),$P(X,U,7)=$P(^BGPINDMC(BGPPC,14),U,3)
....D W^BGP6DP(X,0,1,BGPPTYPE)
...E D
....S X=$P(^BGPINDMC(BGPPC,14),U,P4)
....I $P(^BGPINDMC(BGPPC,14),U,P7)]"" D W^BGP6DP(X,0,1,BGPPTYPE) S X=$P(^BGPINDMC(BGPPC,14),U,P7)
....I $P(^BGPINDMC(BGPPC,14),U,P12)]"" D W^BGP6DP(X,0,1,BGPPTYPE) S X=$P(^BGPINDMC(BGPPC,14),U,P12)
....S $P(X,U,2)=$P(^TMP($J,"SUMMARYDEL",BGPC,BGPO,BGPPC),U)_"%"
....S $P(X,U,3)=$P(^TMP($J,"SUMMARYDEL",BGPC,BGPO,BGPPC),U,2)_"%"
....S $P(X,U,4)=$P(^TMP($J,"SUMMARYDEL",BGPC,BGPO,BGPPC),U,3)_"%"
....S $P(X,U,5)=$TR($P(^BGPINDMC(BGPPC,14),U,P8),"$","^")
....S $P(X,U,6)=$TR($P(^BGPINDMC(BGPPC,14),U,2),"$","^"),$P(X,U,7)=$P(^BGPINDMC(BGPPC,14),U,3)
....D W^BGP6DP(X,0,1,BGPPTYPE)
....S X="" I $P(^BGPINDMC(BGPPC,14),U,9)]""!($P(^BGPINDMC(BGPPC,14),U,10)]"")!($P(^BGPINDMC(BGPPC,14),U,11)]"") S $P(X,U,5)=$TR($P(^BGPINDMC(BGPPC,14),U,9),"$","^"),$P(X,U,6)=$TR($P(^BGPINDMC(BGPPC,14),U,10),"$","^") D
.....S $P(X,U,7)=$P(^BGPINDMC(BGPPC,14),U,11)
.....I X]"" D W^BGP6DP(X,0,1,BGPPTYPE)
I BGPPTYPE="P" I $Y>(BGPIOSL-9) D HEADER Q:BGPQUIT
D W^BGP6DP(" * Measure definition changed in 2013.",0,2,BGPPTYPE)
D W^BGP6DP("** Measure definition changed in 2014.",0,1,BGPPTYPE)
;D W^BGP6DP(" + Site Previous and Site Baseline values are not applicable for this measure.",0,1,BGPPTYPE)
D W^BGP6DP("",0,1,BGPPTYPE)
;D PART
Q
;
D HEADER^BGP6DPH
D H1
Q
H1 ;
S X="OFFICIAL GPRA/GPRAMA MEASURES CLINICAL PERFORMANCE SUMMARY" D W^BGP6DP(X,1,1,BGPPTYPE)
I $G(BGPAREAA) D W^BGP6DP("Area",0,1,BGPPTYPE,2,27),W^BGP6DP("Area",0,0,BGPPTYPE,3,35) D
.D W^BGP6DP("Area",0,0,BGPPTYPE,4,44),W^BGP6DP($S('$G(BGPNGR09):"GPRA",1:"GPRA"),0,0,BGPPTYPE,5,53),W^BGP6DP("Nat'l",0,0,BGPPTYPE,6,64),W^BGP6DP("2020",0,0,BGPPTYPE,7,73) ;CHANGE 1:"GPRA" TO 1:"GPRA"
I '$G(BGPAREAA) D W^BGP6DP("Site",0,1,BGPPTYPE,2,27),W^BGP6DP("Site",0,0,BGPPTYPE,3,35) D
.D W^BGP6DP("Site",0,0,BGPPTYPE,4,44),W^BGP6DP($S('$G(BGPNGR09):"GPRA",1:"GPRA"),0,0,BGPPTYPE,5,53),W^BGP6DP("Nat'l",0,0,BGPPTYPE,6,64),W^BGP6DP("2020",0,0,BGPPTYPE,7,73) ;CHANGE 1:"GPRA" TO 1:"GPRA"
D W^BGP6DP("Current",0,1,BGPPTYPE,2,26),W^BGP6DP("Previous",0,0,BGPPTYPE,3,34) D
.D W^BGP6DP("Baseline",0,0,BGPPTYPE,4,43),W^BGP6DP("Target"_$S($G(BGPNGR09):"",1:""),0,0,BGPPTYPE,5,53),W^BGP6DP("2015",0,0,BGPPTYPE,6,64),W^BGP6DP("Target",0,0,BGPPTYPE,7,73) ;CHANGE 09 TO "*" IF NEEDED
D W^BGP6DP($TR($J("",80)," ","-"),0,1,BGPPTYPE)
Q
CTR(X,Y) ;EP - Center X in a field Y wide.
Q $J("",$S($D(Y):Y,1:IOM)-$L(X)\2)_X
;----------
USR() ;EP - Return name of current user from ^VA(200.
Q $S($G(DUZ):$S($D(^VA(200,DUZ,0)):$P(^(0),U),1:"UNKNOWN"),1:"DUZ UNDEFINED OR 0")
;----------
LOC() ;EP - Return location name from file 4 based on DUZ(2).
Q $S($G(DUZ(2)):$S($D(^DIC(4,DUZ(2),0)):$P(^(0),U),1:"UNKNOWN"),1:"DUZ(2) UNDEFINED OR 0")
;----------
PART ;
D HEADERP
S P1=$S($G(BGPNGR09):8,1:8) ;CHANGE 1:14 TO 1:8
S BGPC=0 F S BGPC=$O(^TMP($J,"SUMMARY",BGPC)) Q:BGPC'=+BGPC!(BGPQUIT) D
.I BGPPTYPE="P",$Y>(BGPIOSL-3) D HEADERP Q:BGPQUIT
.S BGPC1=$O(^BGPSCAT("C",BGPC,0))
.;W !
.;W !,$P(^BGPSCAT(BGPC1,0),U)
.S BGPO="" F S BGPO=$O(^TMP($J,"SUMMARY",BGPC,BGPO)) Q:BGPO=""!(BGPQUIT) D
..S BGPPC=$O(^TMP($J,"SUMMARY",BGPC,BGPO,0))
..Q:'$P($G(^BGPINDMC(BGPPC,22)),U,13) ;part measures only
..I BGPPTYPE="P" D
...I BGPPTYPE,$Y>(BGPIOSL-4) D HEADERP Q:BGPQUIT
...I $P(^BGPINDMC(BGPPC,0),U,4)["014.A"!($P(^BGPINDMC(BGPPC,0),U,4)["023.")!($P(^BGPINDMC(BGPPC,0),U,4)="016.A.1")!($P(^BGPINDMC(BGPPC,0),U,4)="016.A.5")!($P($G(^BGPINDMC(BGPPC,19)),U,13)) D I 1
....D W^BGP6DP($P(^BGPINDMC(BGPPC,14),U,P4),0,1,BGPPTYPE)
....I $P(^BGPINDMC(BGPPC,14),U,P7)]"" D W^BGP6DP($P(^BGPINDMC(BGPPC,14),U,P7),0,1,BGPPTYPE)
....I $P(^BGPINDMC(BGPPC,14),U,P12)]"" D W^BGP6DP($P(^BGPINDMC(BGPPC,14),U,P12),0,1,BGPPTYPE)
....D W^BGP6DP($J($P(^TMP($J,"SUMMARY",BGPC,BGPO,BGPPC),U),7,0),0,0,BGPPTYPE,2,26)
....D W^BGP6DP($J($P(^TMP($J,"SUMMARY",BGPC,BGPO,BGPPC),U,2),7,0),0,0,BGPPTYPE,3,34)
....D W^BGP6DP($J($P(^TMP($J,"SUMMARY",BGPC,BGPO,BGPPC),U,3),7,0),0,0,BGPPTYPE,4,44)
....D W^BGP6DP($P(^BGPINDMC(BGPPC,14),U,P8),0,0,BGPPTYPE,5,53)
....D W^BGP6DP($P(^BGPINDMC(BGPPC,14),U,2),0,0,BGPPTYPE,6,64)
....D W^BGP6DP($P(^BGPINDMC(BGPPC,14),U,3),0,0,BGPPTYPE,7,73)
...E D
....D W^BGP6DP($P(^BGPINDMC(BGPPC,14),U,P4),0,1,BGPPTYPE,1)
....I $P(^BGPINDMC(BGPPC,14),U,P7)]"" D W^BGP6DP($P(^BGPINDMC(BGPPC,14),U,P7),0,1,BGPPTYPE) ;W !,$P(^BGPINDMC(BGPPC,14),U,P7)
....I $P(^BGPINDMC(BGPPC,14),U,P12)]"" D W^BGP6DP($P(^BGPINDMC(BGPPC,14),U,P12),0,1,BGPPTYPE) ;W !,$P(^BGPINDMC(BGPPC,14),U,P12)
....D W^BGP6DP($J($P(^TMP($J,"SUMMARY",BGPC,BGPO,BGPPC),U),7,1)_"%",0,0,BGPPTYPE,2,26)
....D W^BGP6DP($J($P(^TMP($J,"SUMMARY",BGPC,BGPO,BGPPC),U,2),7,1)_"%",0,0,BGPPTYPE,3,34)
....D W^BGP6DP($J($P(^TMP($J,"SUMMARY",BGPC,BGPO,BGPPC),U,3),7,1)_"%",0,0,BGPPTYPE,4,44)
....D W^BGP6DP($TR($P(^BGPINDMC(BGPPC,14),U,P8),"$","^"),0,0,BGPPTYPE,5,53)
....D W^BGP6DP($TR($P(^BGPINDMC(BGPPC,14),U,2),"$","^"),0,0,BGPPTYPE,6,64)
....D W^BGP6DP($P(^BGPINDMC(BGPPC,14),U,3),0,0,BGPPTYPE,7,73)
....I $P(^BGPINDMC(BGPPC,14),U,9)]""!($P(^BGPINDMC(BGPPC,14),U,10)]"")!($P(^BGPINDMC(BGPPC,14),U,11)]"") D
.....D W^BGP6DP($TR($P(^BGPINDMC(BGPPC,14),U,9),"$","^"),0,1,BGPPTYPE,5,53),W^BGP6DP($TR($P(^BGPINDMC(BGPPC,14),U,10),"$","^"),0,0,BGPPTYPE,6,64),W^BGP6DP($P(^BGPINDMC(BGPPC,14),U,11),0,0,7,73)
..I BGPPTYPE="D" D
...S X=""
...I $P(^BGPINDMC(BGPPC,0),U,4)["014.A"!($P(^BGPINDMC(BGPPC,0),U,4)["023.")!($P(^BGPINDMC(BGPPC,0),U,4)="016.A.1")!($P(^BGPINDMC(BGPPC,0),U,4)="016.A.5")!($P($G(^BGPINDMC(BGPPC,19)),U,13)) D I 1
....S X=$P(^BGPINDMC(BGPPC,14),U,P4)
....I $P(^BGPINDMC(BGPPC,14),U,P7)]"" D W^BGP6DP(X,0,1,BGPPTYPE) S X=$P(^BGPINDMC(BGPPC,14),U,P7)
....I $P(^BGPINDMC(BGPPC,14),U,P12)]"" D W^BGP6DP(X,0,1,BGPPTYPE) S X=$P(^BGPINDMC(BGPPC,14),U,P12)
....S $P(X,U,2)=$P(^TMP($J,"SUMMARYDEL",BGPC,BGPO,BGPPC),U)
....S $P(X,U,3)=$P(^TMP($J,"SUMMARYDEL",BGPC,BGPO,BGPPC),U,2)
....S $P(X,U,4)=$P(^TMP($J,"SUMMARYDEL",BGPC,BGPO,BGPPC),U,3)
....S $P(X,U,5)=$P(^BGPINDMC(BGPPC,14),U,P8)
....S $P(X,U,6)=$P(^BGPINDMC(BGPPC,14),U,2),$P(X,U,7)=$P(^BGPINDMC(BGPPC,14),U,3)
....D W^BGP6DP(X,0,1,BGPPTYPE)
...E D
....S X=$P(^BGPINDMC(BGPPC,14),U,P4)
....I $P(^BGPINDMC(BGPPC,14),U,P7)]"" D W^BGP6DP(X,0,1,BGPPTYPE) S X=$P(^BGPINDMC(BGPPC,14),U,P7)
....I $P(^BGPINDMC(BGPPC,14),U,P12)]"" D W^BGP6DP(X,0,1,BGPPTYPE) S X=$P(^BGPINDMC(BGPPC,14),U,P12)
....S $P(X,U,2)=$P(^TMP($J,"SUMMARYDEL",BGPC,BGPO,BGPPC),U)_"%"
....S $P(X,U,3)=$P(^TMP($J,"SUMMARYDEL",BGPC,BGPO,BGPPC),U,2)_"%"
....S $P(X,U,4)=$P(^TMP($J,"SUMMARYDEL",BGPC,BGPO,BGPPC),U,3)_"%"
....S $P(X,U,5)=$TR($P(^BGPINDMC(BGPPC,14),U,P8),"$","^")
....S $P(X,U,6)=$TR($P(^BGPINDMC(BGPPC,14),U,2),"$","^"),$P(X,U,7)=$P(^BGPINDMC(BGPPC,14),U,3)
....D W^BGP6DP(X,0,1,BGPPTYPE)
....S X="" I $P(^BGPINDMC(BGPPC,14),U,9)]""!($P(^BGPINDMC(BGPPC,14),U,10)]"")!($P(^BGPINDMC(BGPPC,14),U,11)]"") S $P(X,U,5)=$TR($P(^BGPINDMC(BGPPC,14),U,9),"$","^"),$P(X,U,6)=$TR($P(^BGPINDMC(BGPPC,14),U,10),"$","^") D
.....S $P(X,U,7)=$P(^BGPINDMC(BGPPC,14),U,11)
.....I X]"" D W^BGP6DP(X,0,1,BGPPTYPE)
I BGPPTYPE="P",$Y>(BGPIOSL-9) D HEADERP Q:BGPQUIT
D W^BGP6DP("",0,1,BGPPTYPE)
D W^BGP6DP($S($G(BGPNGR09):"*",1:"*")_" Federally Administered Activities measure. National 2015 rate is for federal",0,1,BGPPTYPE) ;CHANGE NGR09 TO "**"
D W^BGP6DP("sites only.",0,1,BGPPTYPE)
D W^BGP6DP("",0,1,BGPPTYPE)
Q
;
D HEADER^BGP6DPH
D H1P
Q
H1P ;
S X="OFFICIAL GPRA/GPRAMA MEASURES CLINICAL PERFORMANCE SUMMARY" D W^BGP6DP(X,1,1,BGPPTYPE)
I $G(BGPAREAA) D W^BGP6DP("Area",0,1,BGPPTYPE,2,27),W^BGP6DP("Area",0,0,BGPPTYPE,3,35) D
.D W^BGP6DP("Area",0,0,BGPPTYPE,4,44),W^BGP6DP($S('$G(BGPNGR09):"PART",1:"PART"),0,0,BGPPTYPE,5,53),W^BGP6DP("Nat'l",0,0,BGPPTYPE,6,63),W^BGP6DP("2020",0,0,BGPPTYPE,7,73)
I '$G(BGPAREAA) D W^BGP6DP("Site",0,1,BGPPTYPE,2,27),W^BGP6DP("Site",0,0,BGPPTYPE,3,35) D
.D W^BGP6DP("Site",0,0,BGPPTYPE,4,44),W^BGP6DP($S('$G(BGPNGR09):"PART",1:"PART"),0,0,BGPPTYPE,5,53),W^BGP6DP("Nat'l",0,0,BGPPTYPE,6,63),W^BGP6DP("2020",0,0,BGPPTYPE,7,73)
D W^BGP6DP("Current",0,1,BGPPTYPE,2,26),W^BGP6DP("Previous",0,0,BGPPTYPE,3,34) D
.D W^BGP6DP("Baseline",0,0,BGPPTYPE,4,43),W^BGP6DP("Target"_$S($G(BGPNGR09):"",1:""),0,0,BGPPTYPE,5,53),W^BGP6DP("2015",0,0,BGPPTYPE,6,63),W^BGP6DP("Target",0,0,BGPPTYPE,7,73)
D W^BGP6DP($TR($J("",80)," ","-"),0,1,BGPPTYPE)
D W^BGP6DP("PART MEASURE",0,2,BGPPTYPE)
D W^BGP6DP("------------",0,1,BGPPTYPE)
D W^BGP6DP("",0,1,BGPPTYPE)
Q
BGP6DSP ; IHS/CMI/LAB - IHS summary page 16 Nov 2010 7:12 AM ; 17 Sep 2015 1:51 PM
+1 ;;16.1;IHS CLINICAL REPORTING;;MAR 22, 2016;Build 170
+2 ;
START ;
+1 IF BGPRTYPE'=1
QUIT
+2 ;not on gpra pat list
IF $GET(BGPNPL)
QUIT
+3 ;not on comp list
IF $GET(BGPCPPL)
QUIT
+4 SET BGPQUIT=""
+5 DO HEADER
+6 NEW P8,P4,P7,P12
+7 ;CHANGE 1:8 TO 1:13
SET P8=$SELECT('$GET(BGPNGR09):8,1:8)
+8 ;CHANGE 1:4 TO 1:14
SET P4=$SELECT('$GET(BGPNGR09):4,1:4)
+9 ;CHANGE 1:7 TO 1:15
SET P7=$SELECT('$GET(BGPNGR09):7,1:7)
+10 ;CHANGE 1:12 TO 1:16
SET P12=$SELECT('$GET(BGPNGR09):12,1:12)
+11 SET BGPC=0
FOR
SET BGPC=$ORDER(^TMP($JOB,"SUMMARY",BGPC))
IF BGPC'=+BGPC!(BGPQUIT)
QUIT
Begin DoDot:1
+12 IF BGPPTYPE="P"
IF $Y>(BGPIOSL-3)
DO HEADER
IF BGPQUIT
QUIT
+13 SET BGPC1=$ORDER(^BGPSCAT("C",BGPC,0))
+14 DO W^BGP6DP("",0,1,BGPPTYPE)
+15 ;W !,$P(^BGPSCAT(BGPC1,0),U)
DO W^BGP6DP($PIECE(^BGPSCAT(BGPC1,0),U),0,1,BGPPTYPE)
+16 SET BGPO=""
FOR
SET BGPO=$ORDER(^TMP($JOB,"SUMMARY",BGPC,BGPO))
IF BGPO=""!(BGPQUIT)
QUIT
Begin DoDot:2
+17 SET BGPPC=$ORDER(^TMP($JOB,"SUMMARY",BGPC,BGPO,0))
+18 ;part measure displays last
IF $PIECE($GET(^BGPINDMC(BGPPC,22)),U,13)
QUIT
+19 IF BGPPTYPE="P"
Begin DoDot:3
+20 IF $Y>(BGPIOSL-4)
DO HEADER
IF BGPQUIT
QUIT
+21 IF $PIECE(^BGPINDMC(BGPPC,0),U,4)["014.A"!($PIECE(^BGPINDMC(BGPPC,0),U,4)["023.")!($PIECE(^BGPINDMC(BGPPC,0),U,4)="016.A.1")!($PIECE(^BGPINDMC(BGPPC,0),U,4)="016.A.5")!($PIECE($GET(^BGPINDMC(BGPPC,19)),U,13))
Begin DoDot:4
+22 DO W^BGP6DP($PIECE(^BGPINDMC(BGPPC,14),U,P4),0,1,BGPPTYPE)
+23 IF $PIECE(^BGPINDMC(BGPPC,14),U,P7)]""
DO W^BGP6DP($PIECE(^BGPINDMC(BGPPC,14),U,P7),0,1,BGPPTYPE)
+24 IF $PIECE(^BGPINDMC(BGPPC,14),U,P12)]""
DO W^BGP6DP($PIECE(^BGPINDMC(BGPPC,14),U,P12),0,1,BGPPTYPE)
+25 DO W^BGP6DP($JUSTIFY($PIECE(^TMP($JOB,"SUMMARY",BGPC,BGPO,BGPPC),U),7,0),0,0,BGPPTYPE,2,26)
+26 DO W^BGP6DP($JUSTIFY($PIECE(^TMP($JOB,"SUMMARY",BGPC,BGPO,BGPPC),U,2),7,0),0,0,BGPPTYPE,3,34)
+27 DO W^BGP6DP($JUSTIFY($PIECE(^TMP($JOB,"SUMMARY",BGPC,BGPO,BGPPC),U,3),7,0),0,0,BGPPTYPE,4,41)
+28 DO W^BGP6DP($PIECE(^BGPINDMC(BGPPC,14),U,P8),0,0,BGPPTYPE,5,53)
+29 DO W^BGP6DP($PIECE(^BGPINDMC(BGPPC,14),U,2),0,0,BGPPTYPE,6,64)
+30 DO W^BGP6DP($PIECE(^BGPINDMC(BGPPC,14),U,3),0,0,BGPPTYPE,7,73)
End DoDot:4
IF 1
+31 IF '$TEST
Begin DoDot:4
+32 DO W^BGP6DP($PIECE(^BGPINDMC(BGPPC,14),U,P4),0,1,BGPPTYPE,1)
+33 ;W !,$P(^BGPINDMC(BGPPC,14),U,P7)
IF $PIECE(^BGPINDMC(BGPPC,14),U,P7)]""
DO W^BGP6DP($PIECE(^BGPINDMC(BGPPC,14),U,P7),0,1,BGPPTYPE)
+34 ;W !,$P(^BGPINDMC(BGPPC,14),U,P12)
IF $PIECE(^BGPINDMC(BGPPC,14),U,P12)]""
DO W^BGP6DP($PIECE(^BGPINDMC(BGPPC,14),U,P12),0,1,BGPPTYPE)
+35 DO W^BGP6DP($JUSTIFY($PIECE(^TMP($JOB,"SUMMARY",BGPC,BGPO,BGPPC),U),7,1)_"%",0,0,BGPPTYPE,2,26)
+36 DO W^BGP6DP($JUSTIFY($PIECE(^TMP($JOB,"SUMMARY",BGPC,BGPO,BGPPC),U,2),7,1)_"%",0,0,BGPPTYPE,3,34)
+37 DO W^BGP6DP($JUSTIFY($PIECE(^TMP($JOB,"SUMMARY",BGPC,BGPO,BGPPC),U,3),7,1)_"%",0,0,BGPPTYPE,4,41)
+38 DO W^BGP6DP($TRANSLATE($PIECE(^BGPINDMC(BGPPC,14),U,P8),"$","^"),0,0,BGPPTYPE,5,53)
+39 DO W^BGP6DP($TRANSLATE($PIECE(^BGPINDMC(BGPPC,14),U,2),"$","^"),0,0,BGPPTYPE,6,64)
+40 DO W^BGP6DP($PIECE(^BGPINDMC(BGPPC,14),U,3),0,0,BGPPTYPE,7,73)
+41 IF $PIECE(^BGPINDMC(BGPPC,14),U,9)]""!($PIECE(^BGPINDMC(BGPPC,14),U,10)]"")!($PIECE(^BGPINDMC(BGPPC,14),U,11)]"")
Begin DoDot:5
+42 DO W^BGP6DP($TRANSLATE($PIECE(^BGPINDMC(BGPPC,14),U,9),"$","^"),0,1,BGPPTYPE,5,53)
DO W^BGP6DP($TRANSLATE($PIECE(^BGPINDMC(BGPPC,14),U,10),"$","^"),0,0,BGPPTYPE,6,64)
DO W^BGP6DP($PIECE(^BGPINDMC(BGPPC,14),U,11),0,0,7,73)
End DoDot:5
End DoDot:4
End DoDot:3
+43 IF BGPPTYPE="D"
Begin DoDot:3
+44 SET X=""
+45 IF $PIECE(^BGPINDMC(BGPPC,0),U,4)["014.A"!($PIECE(^BGPINDMC(BGPPC,0),U,4)["023.")!($PIECE(^BGPINDMC(BGPPC,0),U,4)="016.A.1")!($PIECE(^BGPINDMC(BGPPC,0),U,4)="016.A.5")!($PIECE($GET(^BGPINDMC(BGPPC,19)),U,13))
Begin DoDot:4
+46 SET X=$PIECE(^BGPINDMC(BGPPC,14),U,P4)
+47 IF $PIECE(^BGPINDMC(BGPPC,14),U,P7)]""
DO W^BGP6DP(X,0,1,BGPPTYPE)
SET X=$PIECE(^BGPINDMC(BGPPC,14),U,P7)
+48 IF $PIECE(^BGPINDMC(BGPPC,14),U,P12)]""
DO W^BGP6DP(X,0,1,BGPPTYPE)
SET X=$PIECE(^BGPINDMC(BGPPC,14),U,P12)
+49 SET $PIECE(X,U,2)=$PIECE(^TMP($JOB,"SUMMARYDEL",BGPC,BGPO,BGPPC),U)
+50 SET $PIECE(X,U,3)=$PIECE(^TMP($JOB,"SUMMARYDEL",BGPC,BGPO,BGPPC),U,2)
+51 SET $PIECE(X,U,4)=$PIECE(^TMP($JOB,"SUMMARYDEL",BGPC,BGPO,BGPPC),U,3)
+52 SET $PIECE(X,U,5)=$PIECE(^BGPINDMC(BGPPC,14),U,P8)
+53 SET $PIECE(X,U,6)=$PIECE(^BGPINDMC(BGPPC,14),U,2)
SET $PIECE(X,U,7)=$PIECE(^BGPINDMC(BGPPC,14),U,3)
+54 DO W^BGP6DP(X,0,1,BGPPTYPE)
End DoDot:4
IF 1
+55 IF '$TEST
Begin DoDot:4
+56 SET X=$PIECE(^BGPINDMC(BGPPC,14),U,P4)
+57 IF $PIECE(^BGPINDMC(BGPPC,14),U,P7)]""
DO W^BGP6DP(X,0,1,BGPPTYPE)
SET X=$PIECE(^BGPINDMC(BGPPC,14),U,P7)
+58 IF $PIECE(^BGPINDMC(BGPPC,14),U,P12)]""
DO W^BGP6DP(X,0,1,BGPPTYPE)
SET X=$PIECE(^BGPINDMC(BGPPC,14),U,P12)
+59 SET $PIECE(X,U,2)=$PIECE(^TMP($JOB,"SUMMARYDEL",BGPC,BGPO,BGPPC),U)_"%"
+60 SET $PIECE(X,U,3)=$PIECE(^TMP($JOB,"SUMMARYDEL",BGPC,BGPO,BGPPC),U,2)_"%"
+61 SET $PIECE(X,U,4)=$PIECE(^TMP($JOB,"SUMMARYDEL",BGPC,BGPO,BGPPC),U,3)_"%"
+62 SET $PIECE(X,U,5)=$TRANSLATE($PIECE(^BGPINDMC(BGPPC,14),U,P8),"$","^")
+63 SET $PIECE(X,U,6)=$TRANSLATE($PIECE(^BGPINDMC(BGPPC,14),U,2),"$","^")
SET $PIECE(X,U,7)=$PIECE(^BGPINDMC(BGPPC,14),U,3)
+64 DO W^BGP6DP(X,0,1,BGPPTYPE)
+65 SET X=""
IF $PIECE(^BGPINDMC(BGPPC,14),U,9)]""!($PIECE(^BGPINDMC(BGPPC,14),U,10)]"")!($PIECE(^BGPINDMC(BGPPC,14),U,11)]"")
SET $PIECE(X,U,5)=$TRANSLATE($PIECE(^BGPINDMC(BGPPC,14),U,9),"$","^")
SET $PIECE(X,U,6)=$TRANSLATE($PIECE(^BGPINDMC(BGPPC,14),U,10),"$","^")
Begin DoDot:5
+66 SET $PIECE(X,U,7)=$PIECE(^BGPINDMC(BGPPC,14),U,11)
+67 IF X]""
DO W^BGP6DP(X,0,1,BGPPTYPE)
End DoDot:5
End DoDot:4
End DoDot:3
End DoDot:2
End DoDot:1
+68 IF BGPPTYPE="P"
IF $Y>(BGPIOSL-9)
DO HEADER
IF BGPQUIT
QUIT
+69 DO W^BGP6DP(" * Measure definition changed in 2013.",0,2,BGPPTYPE)
+70 DO W^BGP6DP("** Measure definition changed in 2014.",0,1,BGPPTYPE)
+71 ;D W^BGP6DP(" + Site Previous and Site Baseline values are not applicable for this measure.",0,1,BGPPTYPE)
+72 DO W^BGP6DP("",0,1,BGPPTYPE)
+73 ;D PART
+74 QUIT
+75 ;
+1 DO HEADER^BGP6DPH
+2 DO H1
+3 QUIT
H1 ;
+1 SET X="OFFICIAL GPRA/GPRAMA MEASURES CLINICAL PERFORMANCE SUMMARY"
DO W^BGP6DP(X,1,1,BGPPTYPE)
+2 IF $GET(BGPAREAA)
DO W^BGP6DP("Area",0,1,BGPPTYPE,2,27)
DO W^BGP6DP("Area",0,0,BGPPTYPE,3,35)
Begin DoDot:1
+3 ;CHANGE 1:"GPRA" TO 1:"GPRA"
DO W^BGP6DP("Area",0,0,BGPPTYPE,4,44)
DO W^BGP6DP($SELECT('$GET(BGPNGR09):"GPRA",1:"GPRA"),0,0,BGPPTYPE,5,53)
DO W^BGP6DP("Nat'l",0,0,BGPPTYPE,6,64)
DO W^BGP6DP("2020",0,0,BGPPTYPE,7,73)
End DoDot:1
+4 IF '$GET(BGPAREAA)
DO W^BGP6DP("Site",0,1,BGPPTYPE,2,27)
DO W^BGP6DP("Site",0,0,BGPPTYPE,3,35)
Begin DoDot:1
+5 ;CHANGE 1:"GPRA" TO 1:"GPRA"
DO W^BGP6DP("Site",0,0,BGPPTYPE,4,44)
DO W^BGP6DP($SELECT('$GET(BGPNGR09):"GPRA",1:"GPRA"),0,0,BGPPTYPE,5,53)
DO W^BGP6DP("Nat'l",0,0,BGPPTYPE,6,64)
DO W^BGP6DP("2020",0,0,BGPPTYPE,7,73)
End DoDot:1
+6 DO W^BGP6DP("Current",0,1,BGPPTYPE,2,26)
DO W^BGP6DP("Previous",0,0,BGPPTYPE,3,34)
Begin DoDot:1
+7 ;CHANGE 09 TO "*" IF NEEDED
DO W^BGP6DP("Baseline",0,0,BGPPTYPE,4,43)
DO W^BGP6DP("Target"_$SELECT($GET(BGPNGR09):"",1:""),0,0,BGPPTYPE,5,53)
DO W^BGP6DP("2015",0,0,BGPPTYPE,6,64)
DO W^BGP6DP("Target",0,0,BGPPTYPE,7,73)
End DoDot:1
+8 DO W^BGP6DP($TRANSLATE($JUSTIFY("",80)," ","-"),0,1,BGPPTYPE)
+9 QUIT
CTR(X,Y) ;EP - Center X in a field Y wide.
+1 QUIT $JUSTIFY("",$SELECT($DATA(Y):Y,1:IOM)-$LENGTH(X)\2)_X
+2 ;----------
USR() ;EP - Return name of current user from ^VA(200.
+1 QUIT $SELECT($GET(DUZ):$SELECT($DATA(^VA(200,DUZ,0)):$PIECE(^(0),U),1:"UNKNOWN"),1:"DUZ UNDEFINED OR 0")
+2 ;----------
LOC() ;EP - Return location name from file 4 based on DUZ(2).
+1 QUIT $SELECT($GET(DUZ(2)):$SELECT($DATA(^DIC(4,DUZ(2),0)):$PIECE(^(0),U),1:"UNKNOWN"),1:"DUZ(2) UNDEFINED OR 0")
+2 ;----------
PART ;
+1 DO HEADERP
+2 ;CHANGE 1:14 TO 1:8
SET P1=$SELECT($GET(BGPNGR09):8,1:8)
+3 SET BGPC=0
FOR
SET BGPC=$ORDER(^TMP($JOB,"SUMMARY",BGPC))
IF BGPC'=+BGPC!(BGPQUIT)
QUIT
Begin DoDot:1
+4 IF BGPPTYPE="P"
IF $Y>(BGPIOSL-3)
DO HEADERP
IF BGPQUIT
QUIT
+5 SET BGPC1=$ORDER(^BGPSCAT("C",BGPC,0))
+6 ;W !
+7 ;W !,$P(^BGPSCAT(BGPC1,0),U)
+8 SET BGPO=""
FOR
SET BGPO=$ORDER(^TMP($JOB,"SUMMARY",BGPC,BGPO))
IF BGPO=""!(BGPQUIT)
QUIT
Begin DoDot:2
+9 SET BGPPC=$ORDER(^TMP($JOB,"SUMMARY",BGPC,BGPO,0))
+10 ;part measures only
IF '$PIECE($GET(^BGPINDMC(BGPPC,22)),U,13)
QUIT
+11 IF BGPPTYPE="P"
Begin DoDot:3
+12 IF BGPPTYPE
IF $Y>(BGPIOSL-4)
DO HEADERP
IF BGPQUIT
QUIT
+13 IF $PIECE(^BGPINDMC(BGPPC,0),U,4)["014.A"!($PIECE(^BGPINDMC(BGPPC,0),U,4)["023.")!($PIECE(^BGPINDMC(BGPPC,0),U,4)="016.A.1")!($PIECE(^BGPINDMC(BGPPC,0),U,4)="016.A.5")!($PIECE($GET(^BGPINDMC(BGPPC,19)),U,13))
Begin DoDot:4
+14 DO W^BGP6DP($PIECE(^BGPINDMC(BGPPC,14),U,P4),0,1,BGPPTYPE)
+15 IF $PIECE(^BGPINDMC(BGPPC,14),U,P7)]""
DO W^BGP6DP($PIECE(^BGPINDMC(BGPPC,14),U,P7),0,1,BGPPTYPE)
+16 IF $PIECE(^BGPINDMC(BGPPC,14),U,P12)]""
DO W^BGP6DP($PIECE(^BGPINDMC(BGPPC,14),U,P12),0,1,BGPPTYPE)
+17 DO W^BGP6DP($JUSTIFY($PIECE(^TMP($JOB,"SUMMARY",BGPC,BGPO,BGPPC),U),7,0),0,0,BGPPTYPE,2,26)
+18 DO W^BGP6DP($JUSTIFY($PIECE(^TMP($JOB,"SUMMARY",BGPC,BGPO,BGPPC),U,2),7,0),0,0,BGPPTYPE,3,34)
+19 DO W^BGP6DP($JUSTIFY($PIECE(^TMP($JOB,"SUMMARY",BGPC,BGPO,BGPPC),U,3),7,0),0,0,BGPPTYPE,4,44)
+20 DO W^BGP6DP($PIECE(^BGPINDMC(BGPPC,14),U,P8),0,0,BGPPTYPE,5,53)
+21 DO W^BGP6DP($PIECE(^BGPINDMC(BGPPC,14),U,2),0,0,BGPPTYPE,6,64)
+22 DO W^BGP6DP($PIECE(^BGPINDMC(BGPPC,14),U,3),0,0,BGPPTYPE,7,73)
End DoDot:4
IF 1
+23 IF '$TEST
Begin DoDot:4
+24 DO W^BGP6DP($PIECE(^BGPINDMC(BGPPC,14),U,P4),0,1,BGPPTYPE,1)
+25 ;W !,$P(^BGPINDMC(BGPPC,14),U,P7)
IF $PIECE(^BGPINDMC(BGPPC,14),U,P7)]""
DO W^BGP6DP($PIECE(^BGPINDMC(BGPPC,14),U,P7),0,1,BGPPTYPE)
+26 ;W !,$P(^BGPINDMC(BGPPC,14),U,P12)
IF $PIECE(^BGPINDMC(BGPPC,14),U,P12)]""
DO W^BGP6DP($PIECE(^BGPINDMC(BGPPC,14),U,P12),0,1,BGPPTYPE)
+27 DO W^BGP6DP($JUSTIFY($PIECE(^TMP($JOB,"SUMMARY",BGPC,BGPO,BGPPC),U),7,1)_"%",0,0,BGPPTYPE,2,26)
+28 DO W^BGP6DP($JUSTIFY($PIECE(^TMP($JOB,"SUMMARY",BGPC,BGPO,BGPPC),U,2),7,1)_"%",0,0,BGPPTYPE,3,34)
+29 DO W^BGP6DP($JUSTIFY($PIECE(^TMP($JOB,"SUMMARY",BGPC,BGPO,BGPPC),U,3),7,1)_"%",0,0,BGPPTYPE,4,44)
+30 DO W^BGP6DP($TRANSLATE($PIECE(^BGPINDMC(BGPPC,14),U,P8),"$","^"),0,0,BGPPTYPE,5,53)
+31 DO W^BGP6DP($TRANSLATE($PIECE(^BGPINDMC(BGPPC,14),U,2),"$","^"),0,0,BGPPTYPE,6,64)
+32 DO W^BGP6DP($PIECE(^BGPINDMC(BGPPC,14),U,3),0,0,BGPPTYPE,7,73)
+33 IF $PIECE(^BGPINDMC(BGPPC,14),U,9)]""!($PIECE(^BGPINDMC(BGPPC,14),U,10)]"")!($PIECE(^BGPINDMC(BGPPC,14),U,11)]"")
Begin DoDot:5
+34 DO W^BGP6DP($TRANSLATE($PIECE(^BGPINDMC(BGPPC,14),U,9),"$","^"),0,1,BGPPTYPE,5,53)
DO W^BGP6DP($TRANSLATE($PIECE(^BGPINDMC(BGPPC,14),U,10),"$","^"),0,0,BGPPTYPE,6,64)
DO W^BGP6DP($PIECE(^BGPINDMC(BGPPC,14),U,11),0,0,7,73)
End DoDot:5
End DoDot:4
End DoDot:3
+35 IF BGPPTYPE="D"
Begin DoDot:3
+36 SET X=""
+37 IF $PIECE(^BGPINDMC(BGPPC,0),U,4)["014.A"!($PIECE(^BGPINDMC(BGPPC,0),U,4)["023.")!($PIECE(^BGPINDMC(BGPPC,0),U,4)="016.A.1")!($PIECE(^BGPINDMC(BGPPC,0),U,4)="016.A.5")!($PIECE($GET(^BGPINDMC(BGPPC,19)),U,13))
Begin DoDot:4
+38 SET X=$PIECE(^BGPINDMC(BGPPC,14),U,P4)
+39 IF $PIECE(^BGPINDMC(BGPPC,14),U,P7)]""
DO W^BGP6DP(X,0,1,BGPPTYPE)
SET X=$PIECE(^BGPINDMC(BGPPC,14),U,P7)
+40 IF $PIECE(^BGPINDMC(BGPPC,14),U,P12)]""
DO W^BGP6DP(X,0,1,BGPPTYPE)
SET X=$PIECE(^BGPINDMC(BGPPC,14),U,P12)
+41 SET $PIECE(X,U,2)=$PIECE(^TMP($JOB,"SUMMARYDEL",BGPC,BGPO,BGPPC),U)
+42 SET $PIECE(X,U,3)=$PIECE(^TMP($JOB,"SUMMARYDEL",BGPC,BGPO,BGPPC),U,2)
+43 SET $PIECE(X,U,4)=$PIECE(^TMP($JOB,"SUMMARYDEL",BGPC,BGPO,BGPPC),U,3)
+44 SET $PIECE(X,U,5)=$PIECE(^BGPINDMC(BGPPC,14),U,P8)
+45 SET $PIECE(X,U,6)=$PIECE(^BGPINDMC(BGPPC,14),U,2)
SET $PIECE(X,U,7)=$PIECE(^BGPINDMC(BGPPC,14),U,3)
+46 DO W^BGP6DP(X,0,1,BGPPTYPE)
End DoDot:4
IF 1
+47 IF '$TEST
Begin DoDot:4
+48 SET X=$PIECE(^BGPINDMC(BGPPC,14),U,P4)
+49 IF $PIECE(^BGPINDMC(BGPPC,14),U,P7)]""
DO W^BGP6DP(X,0,1,BGPPTYPE)
SET X=$PIECE(^BGPINDMC(BGPPC,14),U,P7)
+50 IF $PIECE(^BGPINDMC(BGPPC,14),U,P12)]""
DO W^BGP6DP(X,0,1,BGPPTYPE)
SET X=$PIECE(^BGPINDMC(BGPPC,14),U,P12)
+51 SET $PIECE(X,U,2)=$PIECE(^TMP($JOB,"SUMMARYDEL",BGPC,BGPO,BGPPC),U)_"%"
+52 SET $PIECE(X,U,3)=$PIECE(^TMP($JOB,"SUMMARYDEL",BGPC,BGPO,BGPPC),U,2)_"%"
+53 SET $PIECE(X,U,4)=$PIECE(^TMP($JOB,"SUMMARYDEL",BGPC,BGPO,BGPPC),U,3)_"%"
+54 SET $PIECE(X,U,5)=$TRANSLATE($PIECE(^BGPINDMC(BGPPC,14),U,P8),"$","^")
+55 SET $PIECE(X,U,6)=$TRANSLATE($PIECE(^BGPINDMC(BGPPC,14),U,2),"$","^")
SET $PIECE(X,U,7)=$PIECE(^BGPINDMC(BGPPC,14),U,3)
+56 DO W^BGP6DP(X,0,1,BGPPTYPE)
+57 SET X=""
IF $PIECE(^BGPINDMC(BGPPC,14),U,9)]""!($PIECE(^BGPINDMC(BGPPC,14),U,10)]"")!($PIECE(^BGPINDMC(BGPPC,14),U,11)]"")
SET $PIECE(X,U,5)=$TRANSLATE($PIECE(^BGPINDMC(BGPPC,14),U,9),"$","^")
SET $PIECE(X,U,6)=$TRANSLATE($PIECE(^BGPINDMC(BGPPC,14),U,10),"$","^")
Begin DoDot:5
+58 SET $PIECE(X,U,7)=$PIECE(^BGPINDMC(BGPPC,14),U,11)
+59 IF X]""
DO W^BGP6DP(X,0,1,BGPPTYPE)
End DoDot:5
End DoDot:4
End DoDot:3
End DoDot:2
End DoDot:1
+60 IF BGPPTYPE="P"
IF $Y>(BGPIOSL-9)
DO HEADERP
IF BGPQUIT
QUIT
+61 DO W^BGP6DP("",0,1,BGPPTYPE)
+62 ;CHANGE NGR09 TO "**"
DO W^BGP6DP($SELECT($GET(BGPNGR09):"*",1:"*")_" Federally Administered Activities measure. National 2015 rate is for federal",0,1,BGPPTYPE)
+63 DO W^BGP6DP("sites only.",0,1,BGPPTYPE)
+64 DO W^BGP6DP("",0,1,BGPPTYPE)
+65 QUIT
+66 ;
+1 DO HEADER^BGP6DPH
+2 DO H1P
+3 QUIT
H1P ;
+1 SET X="OFFICIAL GPRA/GPRAMA MEASURES CLINICAL PERFORMANCE SUMMARY"
DO W^BGP6DP(X,1,1,BGPPTYPE)
+2 IF $GET(BGPAREAA)
DO W^BGP6DP("Area",0,1,BGPPTYPE,2,27)
DO W^BGP6DP("Area",0,0,BGPPTYPE,3,35)
Begin DoDot:1
+3 DO W^BGP6DP("Area",0,0,BGPPTYPE,4,44)
DO W^BGP6DP($SELECT('$GET(BGPNGR09):"PART",1:"PART"),0,0,BGPPTYPE,5,53)
DO W^BGP6DP("Nat'l",0,0,BGPPTYPE,6,63)
DO W^BGP6DP("2020",0,0,BGPPTYPE,7,73)
End DoDot:1
+4 IF '$GET(BGPAREAA)
DO W^BGP6DP("Site",0,1,BGPPTYPE,2,27)
DO W^BGP6DP("Site",0,0,BGPPTYPE,3,35)
Begin DoDot:1
+5 DO W^BGP6DP("Site",0,0,BGPPTYPE,4,44)
DO W^BGP6DP($SELECT('$GET(BGPNGR09):"PART",1:"PART"),0,0,BGPPTYPE,5,53)
DO W^BGP6DP("Nat'l",0,0,BGPPTYPE,6,63)
DO W^BGP6DP("2020",0,0,BGPPTYPE,7,73)
End DoDot:1
+6 DO W^BGP6DP("Current",0,1,BGPPTYPE,2,26)
DO W^BGP6DP("Previous",0,0,BGPPTYPE,3,34)
Begin DoDot:1
+7 DO W^BGP6DP("Baseline",0,0,BGPPTYPE,4,43)
DO W^BGP6DP("Target"_$SELECT($GET(BGPNGR09):"",1:""),0,0,BGPPTYPE,5,53)
DO W^BGP6DP("2015",0,0,BGPPTYPE,6,63)
DO W^BGP6DP("Target",0,0,BGPPTYPE,7,73)
End DoDot:1
+8 DO W^BGP6DP($TRANSLATE($JUSTIFY("",80)," ","-"),0,1,BGPPTYPE)
+9 DO W^BGP6DP("PART MEASURE",0,2,BGPPTYPE)
+10 DO W^BGP6DP("------------",0,1,BGPPTYPE)
+11 DO W^BGP6DP("",0,1,BGPPTYPE)
+12 QUIT