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

BGP9SDPD.m

Go to the documentation of this file.
  1. BGP9SDPD ; IHS/CMI/LAB - IHS summary page ;
  1. ;;9.0;IHS CLINICAL REPORTING;**1**;JUL 01, 2009
  1. ;
  1. START ;
  1. I '$G(BGPAREAA) Q
  1. I BGPRTYPE'=1 Q
  1. S BGPQUIT=""
  1. D HEADER
  1. W !!,"GPRA DEVELOPMENTAL MEASURES"
  1. W !,"---------------------------"
  1. S BGPC=0 F S BGPC=$O(^TMP($J,"SUMMARY DETAIL PAGE DEVEL",BGPC)) Q:BGPC'=+BGPC!(BGPQUIT) D
  1. .I $Y>(BGPIOSL-3) D HEADER Q:BGPQUIT
  1. .S BGPC1=$O(^BGPSCAT("D",BGPC,0))
  1. .W !
  1. .W !,$P(^BGPSCAT(BGPC1,0),U)
  1. .S BGPO="" F S BGPO=$O(^TMP($J,"SUMMARY DETAIL PAGE DEVEL",BGPC,BGPO)) Q:BGPO=""!(BGPQUIT) D
  1. ..S BGPPC=$O(^TMP($J,"SUMMARY DETAIL PAGE DEVEL",BGPC,BGPO,0))
  1. ..I $Y>(BGPIOSL-3) D HEADER Q:BGPQUIT
  1. ..Q:$P($G(^BGPINDNC(BGPPC,22)),U,13) ;part
  1. ..W !!?2,$P(^BGPINDNC(BGPPC,22),U,4)
  1. ..I $P(^BGPINDNC(BGPPC,22),U,7)]"" W !,$P(^BGPINDNC(BGPPC,22),U,7)
  1. ..I $P(^BGPINDNC(BGPPC,22),U,12)]"" W !,$P(^BGPINDNC(BGPPC,22),U,12)
  1. ..S F=$O(^TMP($J,"SUMMARY DETAIL PAGE DEVEL",BGPC,BGPO,BGPPC,0))
  1. ..S F=$P(^TMP($J,"SUMMARY DETAIL PAGE DEVEL",BGPC,BGPO,BGPPC,F),U,4)
  1. ..W ?50,F,$S($P(^BGPINDNC(BGPPC,0),U,4)["014."!($P(^BGPINDNC(BGPPC,0),U,4)["023.")!($P(^BGPINDNC(BGPPC,0),U,4)["016.")!($P($G(^BGPINDNC(BGPPC,19)),U,13)):"",1:"%")
  1. ..W ?60,$P(^BGPINDNC(BGPPC,22),U,2) ;,?65,$P(^BGPINDNC(BGPPC,22),U,3)
  1. ..I $P(^BGPINDNC(BGPPC,22),U,9)]""!($P(^BGPINDNC(BGPPC,22),U,10)]"")!($P(^BGPINDNC(BGPPC,22),U,11)]"") W !?60,$TR($P(^BGPINDNC(BGPPC,22),U,10),"$","^") ;,?65,$P(^BGPINDNC(BGPPC,22),U,11)
  1. ..S BGPSN=0 F S BGPSN=$O(^TMP($J,"SUMMARY DETAIL PAGE DEVEL",BGPC,BGPO,BGPPC,BGPSN)) Q:BGPSN'=+BGPSN!(BGPQUIT) D
  1. ...S BGPSASU=$P(^BGPGPDCN(BGPSN,0),U,9),X=$O(^AUTTLOC("C",BGPSASU,0)) S BGPSNAM=$S(X:$P(^DIC(4,X,0),U),1:"?????"),BGPSNAM=$S($P(^BGPGPDCN(BGPSN,0),U,17):"+"_BGPSNAM,1:BGPSNAM)
  1. ...I $P(^BGPINDNC(BGPPC,0),U,4)["014."!($P(^BGPINDNC(BGPPC,0),U,4)["023.")!($P(^BGPINDNC(BGPPC,0),U,4)["016.")!($P($G(^BGPINDNC(BGPPC,19)),U,13)) D I 1
  1. ....I $Y>(BGPIOSL-3) D HEADER Q:BGPQUIT
  1. ....W !?2,BGPSASU,?8,$E(BGPSNAM,1,12)
  1. ....W ?20,$J($P(^TMP($J,"SUMMARY DETAIL PAGE DEVEL",BGPC,BGPO,BGPPC,BGPSN),U),7,0)
  1. ....W ?29,$J($P(^TMP($J,"SUMMARY DETAIL PAGE DEVEL",BGPC,BGPO,BGPPC,BGPSN),U,2),7,0)
  1. ....W ?38,$J($P(^TMP($J,"SUMMARY DETAIL PAGE DEVEL",BGPC,BGPO,BGPPC,BGPSN),U,3),7,0)
  1. ...E D
  1. ....I $Y>(BGPIOSL-3) D HEADER Q:BGPQUIT
  1. ....W !?2,BGPSASU,?8,$E(BGPSNAM,1,12)
  1. ....W ?20,$J($P(^TMP($J,"SUMMARY DETAIL PAGE DEVEL",BGPC,BGPO,BGPPC,BGPSN),U),7,1),"%"
  1. ....W ?29,$J($P(^TMP($J,"SUMMARY DETAIL PAGE DEVEL",BGPC,BGPO,BGPPC,BGPSN),U,2),7,1),"%"
  1. ....W ?38,$J($P(^TMP($J,"SUMMARY DETAIL PAGE DEVEL",BGPC,BGPO,BGPPC,BGPSN),U,3),7,1),"%"
  1. I $Y>(BGPIOSL-2) D HEADER Q:BGPQUIT
  1. W !!,"* Not GPRA Developmental measure but included to show percentage of"
  1. W !,"refusals with respect to GPRA Developmental measure."
  1. W !
  1. D PART
  1. Q
  1. ;
  1. D HEADER^BGP9DPH
  1. D H1
  1. Q
  1. H1 ;
  1. I BGPRTYPE=1 S X="GPRA DEVELOPMENTAL & PART MEASURES CLINICAL PERFORMANCE DETAIL" W !,$$CTR(X,80)
  1. W !?22," Site",?32,"Site",?40,"Site",?50,"Area",?60,"Nat'l"
  1. W !?22,"Current",?32,"Prev",?40,"Base",?50,"Current",?60,"2008"
  1. W !,$TR($J("",80)," ","-")
  1. Q
  1. CTR(X,Y) ;EP - Center X in a field Y wide.
  1. Q $J("",$S($D(Y):Y,1:IOM)-$L(X)\2)_X
  1. ;----------
  1. USR() ;EP - Return name of current user from ^VA(200.
  1. Q $S($G(DUZ):$S($D(^VA(200,DUZ,0)):$P(^(0),U),1:"UNKNOWN"),1:"DUZ UNDEFINED OR 0")
  1. ;----------
  1. LOC() ;EP - Return location name from file 4 based on DUZ(2).
  1. Q $S($G(DUZ(2)):$S($D(^DIC(4,DUZ(2),0)):$P(^(0),U),1:"UNKNOWN"),1:"DUZ(2) UNDEFINED OR 0")
  1. ;----------
  1. PART ;
  1. D HEADERP
  1. S P1=$S($G(BGPNGR09):14,1:8)
  1. S BGPC=0 F S BGPC=$O(^TMP($J,"SUMMARY DETAIL PAGE DEVEL",BGPC)) Q:BGPC'=+BGPC!(BGPQUIT) D
  1. .I $Y>(BGPIOSL-3) D HEADERP Q:BGPQUIT
  1. .S BGPC1=$O(^BGPSCAT("C",BGPC,0))
  1. .;W !
  1. .;W !,$P(^BGPSCAT(BGPC1,0),U)
  1. .S BGPO="" F S BGPO=$O(^TMP($J,"SUMMARY DETAIL PAGE DEVEL",BGPC,BGPO)) Q:BGPO=""!(BGPQUIT) D
  1. ..S BGPPC=$O(^TMP($J,"SUMMARY DETAIL PAGE DEVEL",BGPC,BGPO,0))
  1. ..Q:'$P($G(^BGPINDNC(BGPPC,22)),U,13)
  1. ..I $Y>(BGPIOSL-3) D HEADERP Q:BGPQUIT
  1. ..W !!?1,$P(^BGPINDNC(BGPPC,22),U,4)
  1. ..I $P(^BGPINDNC(BGPPC,22),U,7)]"" W !,$P(^BGPINDNC(BGPPC,22),U,7)
  1. ..I $P(^BGPINDNC(BGPPC,22),U,12)]"" W !,$P(^BGPINDNC(BGPPC,22),U,12)
  1. ..S F=$O(^TMP($J,"SUMMARY DETAIL PAGE DEVEL",BGPC,BGPO,BGPPC,0))
  1. ..S F=$P(^TMP($J,"SUMMARY DETAIL PAGE DEVEL",BGPC,BGPO,BGPPC,F),U,4)
  1. ..W ?50,F,$S($P(^BGPINDNC(BGPPC,0),U,4)["014."!($P(^BGPINDNC(BGPPC,0),U,4)["023.")!($P(^BGPINDNC(BGPPC,0),U,4)["016."):"",1:"%"),?60,$P(^BGPINDNC(BGPPC,22),U,P1),?65,$P(^BGPINDNC(BGPPC,22),U,2),?74,$P(^BGPINDNC(BGPPC,22),U,3)
  1. ..I $P(^BGPINDNC(BGPPC,22),U,9)]""!($P(^BGPINDNC(BGPPC,22),U,10)]"")!($P(^BGPINDNC(BGPPC,22),U,11)]"") W !?60,$TR($P(^BGPINDNC(BGPPC,22),U,9),"$","^"),?64,$TR($P(^BGPINDNC(BGPPC,22),U,10),"$","^"),?73,$P(^BGPINDNC(BGPPC,22),U,11)
  1. ..S BGPSN=0 F S BGPSN=$O(^TMP($J,"SUMMARY DETAIL PAGE DEVEL",BGPC,BGPO,BGPPC,BGPSN)) Q:BGPSN'=+BGPSN!(BGPQUIT) D
  1. ...S BGPSASU=$P(^BGPGPDCN(BGPSN,0),U,9),X=$O(^AUTTLOC("C",BGPSASU,0)) S BGPSNAM=$S(X:$P(^DIC(4,X,0),U),1:"?????"),BGPSNAM=$S($P(^BGPGPDCN(BGPSN,0),U,17):"+"_BGPSNAM,1:BGPSNAM)
  1. ...I $P(^BGPINDNC(BGPPC,0),U,4)["014."!($P(^BGPINDNC(BGPPC,0),U,4)["023.")!($P(^BGPINDNC(BGPPC,0),U,4)["016.") D I 1
  1. ....I $Y>(BGPIOSL-3) D HEADERP Q:BGPQUIT
  1. ....W !?2,BGPSASU,?8,$E(BGPSNAM,1,12)
  1. ....W ?20,$J($P(^TMP($J,"SUMMARY DETAIL PAGE DEVEL",BGPC,BGPO,BGPPC,BGPSN),U),7,0)
  1. ....W ?29,$J($P(^TMP($J,"SUMMARY DETAIL PAGE DEVEL",BGPC,BGPO,BGPPC,BGPSN),U,2),7,0)
  1. ....W ?38,$J($P(^TMP($J,"SUMMARY DETAIL PAGE DEVEL",BGPC,BGPO,BGPPC,BGPSN),U,3),7,0)
  1. ...E D
  1. ....I $Y>(BGPIOSL-3) D HEADERP Q:BGPQUIT
  1. ....W !?2,BGPSASU,?8,$E(BGPSNAM,1,12)
  1. ....W ?20,$J($P(^TMP($J,"SUMMARY DETAIL PAGE DEVEL",BGPC,BGPO,BGPPC,BGPSN),U),7,1),"%"
  1. ....W ?29,$J($P(^TMP($J,"SUMMARY DETAIL PAGE DEVEL",BGPC,BGPO,BGPPC,BGPSN),U,2),7,1),"%"
  1. ....W ?38,$J($P(^TMP($J,"SUMMARY DETAIL PAGE DEVEL",BGPC,BGPO,BGPPC,BGPSN),U,3),7,1),"%"
  1. I $Y>(BGPIOSL-5) D HEADERP Q:BGPQUIT
  1. W !
  1. I $G(BGPNGR09) D
  1. .W !," * PART 2010 target represented here is a preliminary target since it will be"
  1. .W !,"adjusted for FY 2009 actual results and FY 2010 appropriations."
  1. W !,$S($G(BGPNGR09):"**",1:"*")," Federally Administered Activities measure. National 2008 rate is for federal"
  1. W !,"sites only."
  1. W ! Q
  1. Q
  1. ;
  1. HEADERP ;EP
  1. D HEADER^BGP9DPH
  1. D H1P
  1. Q
  1. H1P ;
  1. I BGPRTYPE=1 S X="GPRA DEVELOPMENTAL & PART MEASURES CLINICAL PERFORMANCE DETAIL" W !,$$CTR(X,80)
  1. W !?22," Site",?32,"Site",?40,"Site",?50,"Area",?60,$S($G(BGPNGR09):"PART10",1:"PART09"),?64,"Nat'l",?74,"2010"
  1. W !?22,"Current",?32,"Prev",?40,"Base",?50,"Current",?60,"Target"_$S($G(BGPNGR09):"*",1:""),?65,"2008",?74,"Target"
  1. W !,$TR($J("",80)," ","-")
  1. W !!,"PART MEASURE"
  1. W !,"------------"
  1. Q