BGP0SDPO ; IHS/CMI/LAB - IHS summary page ;
;;10.0;IHS CLINICAL REPORTING;;JUN 18, 2010
;
START ;
I '$G(BGPAREAA) Q
I BGPRTYPE'=7 Q
S BGPQUIT="",BGPGPG=0
D HEADER
S BGPC=0 F S BGPC=$O(^TMP($J,"SUMMARY DETAIL PAGE OTHER",BGPC)) Q:BGPC'=+BGPC!(BGPQUIT) D
.I BGPPTYPE-"P" I $Y>(BGPIOSL-3) D HEADER Q:BGPQUIT
.S BGPC1=$O(^BGPSCAT("D",BGPC,0))
.D W^BGP0DP("",0,1,BGPPTYPE)
.D W^BGP0DP($P(^BGPSCAT(BGPC1,0),U),0,1,BGPPTYPE)
.S BGPO="" F S BGPO=$O(^TMP($J,"SUMMARY DETAIL PAGE OTHER",BGPC,BGPO)) Q:BGPO=""!(BGPQUIT) D
..S BGPPC=$O(^TMP($J,"SUMMARY DETAIL PAGE OTHER",BGPC,BGPO,0))
..I BGPPTYPE="P" D
...I $Y>(BGPIOSL-3) D HEADER Q:BGPQUIT
...D W^BGP0DP($P(^BGPINDTC(BGPPC,19),U,4),0,2,BGPPTYPE)
...I $P(^BGPINDTC(BGPPC,19),U,7)]"" D W^BGP0DP($P(^BGPINDTC(BGPPC,19),U,7),0,1,BGPPTYPE)
...I $P(^BGPINDTC(BGPPC,19),U,12)]"" D W^BGP0DP($P(^BGPINDTC(BGPPC,19),U,12),0,1,BGPPTYPE)
...S F=$O(^TMP($J,"SUMMARY DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,0))
...S F=$P(^TMP($J,"SUMMARY DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,F),U,4)
...D W^BGP0DP(F_$S($P(^BGPINDTC(BGPPC,0),U,4)["014.A"!($P(^BGPINDTC(BGPPC,0),U,4)["023.")!($P(^BGPINDTC(BGPPC,0),U,4)="016.A.1")!($P(^BGPINDTC(BGPPC,0),U,4)="016.A.5")!($P($G(^BGPINDTC(BGPPC,19)),U,13)):"",1:"%"),0,0,BGPPTYPE,,46)
...D W^BGP0DP($P(^BGPINDTC(BGPPC,19),U,2),0,0,BGPPTYPE,,55)
...D W^BGP0DP($P(^BGPINDTC(BGPPC,19),U,3),0,0,BGPPTYPE,,65)
...I $P(^BGPINDTC(BGPPC,19),U,9)]""!($P(^BGPINDTC(BGPPC,19),U,10)]"")!($P(^BGPINDTC(BGPPC,19),U,11)]"") D
....D W^BGP0DP($TR($P(^BGPINDTC(BGPPC,19),U,10),"$","^"),0,0,BGPPTYPE,,55),W^BGP0DP($P(^BGPINDTC(BGPPC,19),U,11),0,0,BGPPTYPE,,65)
...S BGPSN=0 F S BGPSN=$O(^TMP($J,"SUMMARY DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,BGPSN)) Q:BGPSN'=+BGPSN!(BGPQUIT) D
....S BGPSASU=$P(^BGPGPDCT(BGPSN,0),U,9),X=$O(^AUTTLOC("C",BGPSASU,0)) S BGPSNAM=$S(X:$P(^DIC(4,X,0),U),1:"?????"),BGPSNAM=$S($P(^BGPGPDCT(BGPSN,0),U,17):"+"_BGPSNAM,1:BGPSNAM)
....I $P(^BGPINDTC(BGPPC,0),U,4)["014.A"!($P(^BGPINDTC(BGPPC,0),U,4)["023.")!($P(^BGPINDTC(BGPPC,0),U,4)="016.A.1")!($P(^BGPINDTC(BGPPC,0),U,4)="016.A.5")!($P($G(^BGPINDTC(BGPPC,19)),U,13)) D I 1
.....I $Y>(BGPIOSL-3) D HEADER Q:BGPQUIT
.....D W^BGP0DP(BGPSASU,0,1,BGPPTYPE,,2),W^BGP0DP($E(BGPSNAM,1,12),0,0,BGPPTYPE,,8)
.....D W^BGP0DP($J($P(^TMP($J,"SUMMARY DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,BGPSN),U),7,0),0,0,BGPPTYPE,,20)
.....D W^BGP0DP($J($P(^TMP($J,"SUMMARY DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,BGPSN),U,2),7,0),0,0,BGPPTYPE,,29)
.....D W^BGP0DP($J($P(^TMP($J,"SUMMARY DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,BGPSN),U,3),7,0),0,0,BGPPTYPE,,38)
....E D
.....I $Y>(BGPIOSL-3) D HEADER Q:BGPQUIT
.....D W^BGP0DP(BGPSASU,0,1,BGPPTYPE,,2),W^BGP0DP($E(BGPSNAM,1,12),0,0,BGPPTYPE,,8)
.....D W^BGP0DP($J($P(^TMP($J,"SUMMARY DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,BGPSN),U),7,1)_"%",0,0,BGPPTYPE,,20)
.....D W^BGP0DP($J($P(^TMP($J,"SUMMARY DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,BGPSN),U,2),7,1)_"%",0,0,BGPPTYPE,,29)
.....D W^BGP0DP($J($P(^TMP($J,"SUMMARY DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,BGPSN),U,3),7,1)_"%",0,0,BGPPTYPE,,38)
..I BGPPTYPE="D" D
...D W^BGP0DP("",0,1,BGPPTYPE)
...S XX=" "_$P(^BGPINDTC(BGPPC,19),U,4)
...I $P(^BGPINDTC(BGPPC,19),U,7)]"" D W^BGP0DP(XX,0,1,BGPPTYPE) S XX=" "_$P(^BGPINDTC(BGPPC,19),U,7)
...I $P(^BGPINDTC(BGPPC,19),U,12)]"" D W^BGP0DP(XX,0,1,BGPPTYPE) S XX=" "_$P(^BGPINDTC(BGPPC,19),U,12)
...S F=$O(^TMP($J,"SUMMARYDEL DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,0))
...S F=$P(^TMP($J,"SUMMARYDEL DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,F),U,4)
...S $P(XX,U,5)=F_$S($P(^BGPINDTC(BGPPC,0),U,4)["014.A"!($P(^BGPINDTC(BGPPC,0),U,4)["023.")!($P(^BGPINDTC(BGPPC,0),U,4)="016.A.1")!($P($G(^BGPINDTC(BGPPC,19)),U,13)):"",1:"%")
...S $P(XX,U,6)=$P(^BGPINDTC(BGPPC,19),U,2) ;,$P(XX,U,7)=$P(^BGPINDTC(BGPPC,19),U,3)
...S BGPSN=0,BGPCNT=0 F S BGPSN=$O(^TMP($J,"SUMMARYDEL DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,BGPSN)) Q:BGPSN'=+BGPSN S BGPCNT=BGPCNT+1 D
....S BGPSASU=$P(^BGPGPDCT(BGPSN,0),U,9),X=$O(^AUTTLOC("C",BGPSASU,0)),BGPSNAM=$S(X:$P(^DIC(4,X,0),U),1:"?????"),BGPSNAM=$S($P(^BGPGPDCT(BGPSN,0),U,17):"+"_BGPSNAM,1:BGPSNAM)
....I $P(^BGPINDTC(BGPPC,0),U,4)["014.A"!($P(^BGPINDTC(BGPPC,0),U,4)["023.")!($P(^BGPINDTC(BGPPC,0),U,4)="016.A.1")!($P(^BGPINDTC(BGPPC,0),U,4)="016.A.5")!($P($G(^BGPINDTC(BGPPC,19)),U,13)) D I 1
.....S X="",$P(X,U,1)=BGPSASU_" "_BGPSNAM
.....S $P(X,U,2)=+$P(^TMP($J,"SUMMARYDEL DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,BGPSN),U)
.....S $P(X,U,3)=+$P(^TMP($J,"SUMMARYDEL DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,BGPSN),U,2)
.....S $P(X,U,4)=+$P(^TMP($J,"SUMMARYDEL DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,BGPSN),U,3)
.....;S $P(X,U,5)=$P(^TMP($J,"SUMMARYDEL DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,BGPSN),U,4)
....E D
.....S $P(X,U,1)=BGPSASU_" "_BGPSNAM
.....S $P(X,U,2)=$P(^TMP($J,"SUMMARYDEL DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,BGPSN),U)_"%"
.....S $P(X,U,3)=$P(^TMP($J,"SUMMARYDEL DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,BGPSN),U,2)_"%"
.....S $P(X,U,4)=$P(^TMP($J,"SUMMARYDEL DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,BGPSN),U,3)_"%"
....I BGPCNT=1 D W^BGP0DP(XX,0,1,BGPPTYPE,1)
....;S Y="" I $P(^BGPINDTC(BGPPC,19),U,9)]""!($P(^BGPINDTC(BGPPC,19),U,10)]"") S $P(Y,U,6)=$TR($P(^BGPINDTC(BGPPC,19),U,9),"$","^"),$P(Y,U,7)=$TR($P(^BGPINDTC(BGPPC,19),U,10),"$","^")
....S Y="" I $P(^BGPINDTC(BGPPC,19),U,9)]""!($P(^BGPINDTC(BGPPC,19),U,10)]"")!($P(^BGPINDTC(BGPPC,19),U,11)]"") S $P(Y,U,6)=$TR($P(^BGPINDTC(BGPPC,19),U,9),"$","^") D
.....S $P(Y,U,8)=$P(^BGPINDTC(BGPPC,19),U,11)
....I Y]"" D W^BGP0DP(Y,0,1,BGPPTYPE,1) ;D S(Y,1,1)
....D W^BGP0DP(X,0,1,BGPPTYPE,1) ;D S(X,1,1)
..;D W^BGP0DP(" ",0,1,BGPPTYPE) ;S X=" " D S(X,1,1)
I BGPPTYPE="P",$Y>(BGPIOSL-2) D HEADER Q:BGPQUIT
D W^BGP0DP("",0,1,BGPPTYPE)
Q
;
D HEADER^BGP0DPH
D H1
Q
H1 ;
S X="SELECTED OTHER NATIONAL MEASURES CLINICAL PERFORMANCE DETAIL" D W^BGP0DP(X,0,1,BGPPTYPE)
D W^BGP0DP("Site",0,1,BGPPTYPE,2,21),W^BGP0DP("Site",0,0,BGPPTYPE,3,32),W^BGP0DP("Site",0,0,BGPPTYPE,4,40),W^BGP0DP("Area",0,0,BGPPTYPE,5,46),W^BGP0DP("Nat'l",0,0,BGPPTYPE,6,55),W^BGP0DP("2010",0,0,BGPPTYPE,7,66)
D W^BGP0DP("Current",0,1,BGPPTYPE,2,22),W^BGP0DP("Prev",0,0,BGPPTYPE,3,32),W^BGP0DP("Base",0,0,BGPPTYPE,4,40),W^BGP0DP("Current",0,0,BGPPTYPE,5,46),W^BGP0DP("2009",0,0,BGPPTYPE,6,55),W^BGP0DP("Target",0,0,BGPPTYPE,8,66)
D W^BGP0DP($TR($J("",80)," ","-"),0,1,BGPPTYPE)
Q
BGP0SDPO ; IHS/CMI/LAB - IHS summary page ;
+1 ;;10.0;IHS CLINICAL REPORTING;;JUN 18, 2010
+2 ;
START ;
+1 IF '$GET(BGPAREAA)
QUIT
+2 IF BGPRTYPE'=7
QUIT
+3 SET BGPQUIT=""
SET BGPGPG=0
+4 DO HEADER
+5 SET BGPC=0
FOR
SET BGPC=$ORDER(^TMP($JOB,"SUMMARY DETAIL PAGE OTHER",BGPC))
IF BGPC'=+BGPC!(BGPQUIT)
QUIT
Begin DoDot:1
+6 IF BGPPTYPE-"P"
IF $Y>(BGPIOSL-3)
DO HEADER
IF BGPQUIT
QUIT
+7 SET BGPC1=$ORDER(^BGPSCAT("D",BGPC,0))
+8 DO W^BGP0DP("",0,1,BGPPTYPE)
+9 DO W^BGP0DP($PIECE(^BGPSCAT(BGPC1,0),U),0,1,BGPPTYPE)
+10 SET BGPO=""
FOR
SET BGPO=$ORDER(^TMP($JOB,"SUMMARY DETAIL PAGE OTHER",BGPC,BGPO))
IF BGPO=""!(BGPQUIT)
QUIT
Begin DoDot:2
+11 SET BGPPC=$ORDER(^TMP($JOB,"SUMMARY DETAIL PAGE OTHER",BGPC,BGPO,0))
+12 IF BGPPTYPE="P"
Begin DoDot:3
+13 IF $Y>(BGPIOSL-3)
DO HEADER
IF BGPQUIT
QUIT
+14 DO W^BGP0DP($PIECE(^BGPINDTC(BGPPC,19),U,4),0,2,BGPPTYPE)
+15 IF $PIECE(^BGPINDTC(BGPPC,19),U,7)]""
DO W^BGP0DP($PIECE(^BGPINDTC(BGPPC,19),U,7),0,1,BGPPTYPE)
+16 IF $PIECE(^BGPINDTC(BGPPC,19),U,12)]""
DO W^BGP0DP($PIECE(^BGPINDTC(BGPPC,19),U,12),0,1,BGPPTYPE)
+17 SET F=$ORDER(^TMP($JOB,"SUMMARY DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,0))
+18 SET F=$PIECE(^TMP($JOB,"SUMMARY DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,F),U,4)
+19 DO W^BGP0DP(F_$SELECT($PIECE(^BGPINDTC(BGPPC,0),U,4)["014.A"!($PIECE(^BGPINDTC(BGPPC,0),U,4)["023.")!($PIECE(^BGPINDTC(BGPPC,0),U,4)="016.A.1")!($PIECE(^BGPINDTC(BGPPC,0),U,4)="016.A.5")!(...
... $PIECE($GET(^BGPINDTC(BGPPC,19)),U,13)):"",1:"%"),0,0,BGPPTYPE,,46)
+20 DO W^BGP0DP($PIECE(^BGPINDTC(BGPPC,19),U,2),0,0,BGPPTYPE,,55)
+21 DO W^BGP0DP($PIECE(^BGPINDTC(BGPPC,19),U,3),0,0,BGPPTYPE,,65)
+22 IF $PIECE(^BGPINDTC(BGPPC,19),U,9)]""!($PIECE(^BGPINDTC(BGPPC,19),U,10)]"")!($PIECE(^BGPINDTC(BGPPC,19),U,11)]"")
Begin DoDot:4
+23 DO W^BGP0DP($TRANSLATE($PIECE(^BGPINDTC(BGPPC,19),U,10),"$","^"),0,0,BGPPTYPE,,55)
DO W^BGP0DP($PIECE(^BGPINDTC(BGPPC,19),U,11),0,0,BGPPTYPE,,65)
End DoDot:4
+24 SET BGPSN=0
FOR
SET BGPSN=$ORDER(^TMP($JOB,"SUMMARY DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,BGPSN))
IF BGPSN'=+BGPSN!(BGPQUIT)
QUIT
Begin DoDot:4
+25 SET BGPSASU=$PIECE(^BGPGPDCT(BGPSN,0),U,9)
SET X=$ORDER(^AUTTLOC("C",BGPSASU,0))
SET BGPSNAM=$SELECT(X:$PIECE(^DIC(4,X,0),U),1:"?????")
SET BGPSNAM=$SELECT($PIECE(^BGPGPDCT(BGPSN,0),U,17):"+"_BGPSNAM,1:BGPSNAM)
+26 IF $PIECE(^BGPINDTC(BGPPC,0),U,4)["014.A"!($PIECE(^BGPINDTC(BGPPC,0),U,4)["023.")!($PIECE(^BGPINDTC(BGPPC,0),U,4)="016.A.1")!($PIECE(^BGPINDTC(BGPPC,0),U,4)="016.A.5")!($PIECE($GET(^BGPINDTC(BGPPC,19)),U,13))
Begin DoDot:5
+27 IF $Y>(BGPIOSL-3)
DO HEADER
IF BGPQUIT
QUIT
+28 DO W^BGP0DP(BGPSASU,0,1,BGPPTYPE,,2)
DO W^BGP0DP($EXTRACT(BGPSNAM,1,12),0,0,BGPPTYPE,,8)
+29 DO W^BGP0DP($JUSTIFY($PIECE(^TMP($JOB,"SUMMARY DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,BGPSN),U),7,0),0,0,BGPPTYPE,,20)
+30 DO W^BGP0DP($JUSTIFY($PIECE(^TMP($JOB,"SUMMARY DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,BGPSN),U,2),7,0),0,0,BGPPTYPE,,29)
+31 DO W^BGP0DP($JUSTIFY($PIECE(^TMP($JOB,"SUMMARY DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,BGPSN),U,3),7,0),0,0,BGPPTYPE,,38)
End DoDot:5
IF 1
+32 IF '$TEST
Begin DoDot:5
+33 IF $Y>(BGPIOSL-3)
DO HEADER
IF BGPQUIT
QUIT
+34 DO W^BGP0DP(BGPSASU,0,1,BGPPTYPE,,2)
DO W^BGP0DP($EXTRACT(BGPSNAM,1,12),0,0,BGPPTYPE,,8)
+35 DO W^BGP0DP($JUSTIFY($PIECE(^TMP($JOB,"SUMMARY DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,BGPSN),U),7,1)_"%",0,0,BGPPTYPE,,20)
+36 DO W^BGP0DP($JUSTIFY($PIECE(^TMP($JOB,"SUMMARY DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,BGPSN),U,2),7,1)_"%",0,0,BGPPTYPE,,29)
+37 DO W^BGP0DP($JUSTIFY($PIECE(^TMP($JOB,"SUMMARY DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,BGPSN),U,3),7,1)_"%",0,0,BGPPTYPE,,38)
End DoDot:5
End DoDot:4
End DoDot:3
+38 IF BGPPTYPE="D"
Begin DoDot:3
+39 DO W^BGP0DP("",0,1,BGPPTYPE)
+40 SET XX=" "_$PIECE(^BGPINDTC(BGPPC,19),U,4)
+41 IF $PIECE(^BGPINDTC(BGPPC,19),U,7)]""
DO W^BGP0DP(XX,0,1,BGPPTYPE)
SET XX=" "_$PIECE(^BGPINDTC(BGPPC,19),U,7)
+42 IF $PIECE(^BGPINDTC(BGPPC,19),U,12)]""
DO W^BGP0DP(XX,0,1,BGPPTYPE)
SET XX=" "_$PIECE(^BGPINDTC(BGPPC,19),U,12)
+43 SET F=$ORDER(^TMP($JOB,"SUMMARYDEL DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,0))
+44 SET F=$PIECE(^TMP($JOB,"SUMMARYDEL DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,F),U,4)
+45 SET $PIECE(XX,U,5)=F_$SELECT($PIECE(^BGPINDTC(BGPPC,0),U,4)["014.A"!($PIECE(^BGPINDTC(BGPPC,0),U,4)["023.")!($PIECE(^BGPINDTC(BGPPC,0),U,4)="016.A.1")!($PIECE($GET(^BGPINDTC(BGPPC,19)),U,13)):"",1:"%")
+46 ;,$P(XX,U,7)=$P(^BGPINDTC(BGPPC,19),U,3)
SET $PIECE(XX,U,6)=$PIECE(^BGPINDTC(BGPPC,19),U,2)
+47 SET BGPSN=0
SET BGPCNT=0
FOR
SET BGPSN=$ORDER(^TMP($JOB,"SUMMARYDEL DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,BGPSN))
IF BGPSN'=+BGPSN
QUIT
SET BGPCNT=BGPCNT+1
Begin DoDot:4
+48 SET BGPSASU=$PIECE(^BGPGPDCT(BGPSN,0),U,9)
SET X=$ORDER(^AUTTLOC("C",BGPSASU,0))
SET BGPSNAM=$SELECT(X:$PIECE(^DIC(4,X,0),U),1:"?????")
SET BGPSNAM=$SELECT($PIECE(^BGPGPDCT(BGPSN,0),U,17):"+"_BGPSNAM,1:BGPSNAM)
+49 IF $PIECE(^BGPINDTC(BGPPC,0),U,4)["014.A"!($PIECE(^BGPINDTC(BGPPC,0),U,4)["023.")!($PIECE(^BGPINDTC(BGPPC,0),U,4)="016.A.1")!($PIECE(^BGPINDTC(BGPPC,0),U,4)="016.A.5")!($PIECE($GET(^BGPINDTC(BGPPC,19)),U,13))
Begin DoDot:5
+50 SET X=""
SET $PIECE(X,U,1)=BGPSASU_" "_BGPSNAM
+51 SET $PIECE(X,U,2)=+$PIECE(^TMP($JOB,"SUMMARYDEL DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,BGPSN),U)
+52 SET $PIECE(X,U,3)=+$PIECE(^TMP($JOB,"SUMMARYDEL DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,BGPSN),U,2)
+53 SET $PIECE(X,U,4)=+$PIECE(^TMP($JOB,"SUMMARYDEL DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,BGPSN),U,3)
+54 ;S $P(X,U,5)=$P(^TMP($J,"SUMMARYDEL DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,BGPSN),U,4)
End DoDot:5
IF 1
+55 IF '$TEST
Begin DoDot:5
+56 SET $PIECE(X,U,1)=BGPSASU_" "_BGPSNAM
+57 SET $PIECE(X,U,2)=$PIECE(^TMP($JOB,"SUMMARYDEL DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,BGPSN),U)_"%"
+58 SET $PIECE(X,U,3)=$PIECE(^TMP($JOB,"SUMMARYDEL DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,BGPSN),U,2)_"%"
+59 SET $PIECE(X,U,4)=$PIECE(^TMP($JOB,"SUMMARYDEL DETAIL PAGE OTHER",BGPC,BGPO,BGPPC,BGPSN),U,3)_"%"
End DoDot:5
+60 IF BGPCNT=1
DO W^BGP0DP(XX,0,1,BGPPTYPE,1)
+61 ;S Y="" I $P(^BGPINDTC(BGPPC,19),U,9)]""!($P(^BGPINDTC(BGPPC,19),U,10)]"") S $P(Y,U,6)=$TR($P(^BGPINDTC(BGPPC,19),U,9),"$","^"),$P(Y,U,7)=$TR($P(^BGPINDTC(BGPPC,19),U,10),"$","^")
+62 SET Y=""
IF $PIECE(^BGPINDTC(BGPPC,19),U,9)]""!($PIECE(^BGPINDTC(BGPPC,19),U,10)]"")!($PIECE(^BGPINDTC(BGPPC,19),U,11)]"")
SET $PIECE(Y,U,6)=$TRANSLATE($PIECE(^BGPINDTC(BGPPC,19),U,9),"$","^")
Begin DoDot:5
+63 SET $PIECE(Y,U,8)=$PIECE(^BGPINDTC(BGPPC,19),U,11)
End DoDot:5
+64 ;D S(Y,1,1)
IF Y]""
DO W^BGP0DP(Y,0,1,BGPPTYPE,1)
+65 ;D S(X,1,1)
DO W^BGP0DP(X,0,1,BGPPTYPE,1)
End DoDot:4
End DoDot:3
+66 ;D W^BGP0DP(" ",0,1,BGPPTYPE) ;S X=" " D S(X,1,1)
End DoDot:2
End DoDot:1
+67 IF BGPPTYPE="P"
IF $Y>(BGPIOSL-2)
DO HEADER
IF BGPQUIT
QUIT
+68 DO W^BGP0DP("",0,1,BGPPTYPE)
+69 QUIT
+70 ;
+1 DO HEADER^BGP0DPH
+2 DO H1
+3 QUIT
H1 ;
+1 SET X="SELECTED OTHER NATIONAL MEASURES CLINICAL PERFORMANCE DETAIL"
DO W^BGP0DP(X,0,1,BGPPTYPE)
+2 DO W^BGP0DP("Site",0,1,BGPPTYPE,2,21)
DO W^BGP0DP("Site",0,0,BGPPTYPE,3,32)
DO W^BGP0DP("Site",0,0,BGPPTYPE,4,40)
DO W^BGP0DP("Area",0,0,BGPPTYPE,5,46)
DO W^BGP0DP("Nat'l",0,0,BGPPTYPE,6,55)
DO W^BGP0DP("2010",0,0,BGPPTYPE,7,66)
+3 DO W^BGP0DP("Current",0,1,BGPPTYPE,2,22)
DO W^BGP0DP("Prev",0,0,BGPPTYPE,3,32)
DO W^BGP0DP("Base",0,0,BGPPTYPE,4,40)
DO W^BGP0DP("Current",0,0,BGPPTYPE,5,46)
DO W^BGP0DP("2009",0,0,BGPPTYPE,6,55)
DO W^BGP0DP("Target",0,0,BGPPTYPE,8,66)
+4 DO W^BGP0DP($TRANSLATE($JUSTIFY("",80)," ","-"),0,1,BGPPTYPE)
+5 QUIT