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

BGP6DH2.m

Go to the documentation of this file.
  1. BGP6DH2 ; IHS/CMI/LAB - cover page for gpra 28 Apr 2010 11:30 AM 02 Jul 2010 8:28 AM ;
  1. ;;16.1;IHS CLINICAL REPORTING;;MAR 22, 2016;Build 170
  1. ;
  1. ;
  1. DASH ;EP
  1. D W^BGP6DP("",0,1,BGPPTYPE)
  1. S BGPNODEP=91
  1. S BGPX=$O(^BGPCTRL("B",2016,0))
  1. S BGPY=0 F S BGPY=$O(^BGPCTRL(BGPX,BGPNODEP,BGPY)) Q:BGPY'=+BGPY!(BGPQHDR) D
  1. .I BGPPTYPE="P",$Y>(BGPIOSL-2) D HDR^BGP6DH I BGPPTYPE="P" Q:BGPQHDR
  1. .D W^BGP6DP(^BGPCTRL(BGPX,BGPNODEP,BGPY,0),0,1,BGPPTYPE)
  1. .Q
  1. D W^BGP6DP("",0,1,BGPPTYPE)
  1. Q
  1. ONMHDRA ;EP
  1. D W^BGP6DP("",0,1,BGPPTYPE)
  1. S BGPTEXT="ONH1" F BGPJ1=1:1 S BGPX=$T(@BGPTEXT+BGPJ1) Q:$P(BGPX,";;",2)="QUIT" D
  1. .S BGPT=$P(BGPX,";;",2)
  1. .I BGPPTYPE="P",$Y>(BGPIOSL-2) D HDR^BGP6DH I BGPPTYPE="P" Q:BGPQHDR
  1. .D W^BGP6DP(BGPT,0,1,BGPPTYPE)
  1. I BGPPTYPE="P" Q:BGPQHDR
  1. I BGPRTC="U" D I BGPPTYPE="P" Q:BGPQHDR
  1. .I BGPPTYPE="P",$Y>(BGPIOSL-2) D HDR^BGP6DH I BGPPTYPE="P" Q:BGPQHDR
  1. .D W^BGP6DP("3. User defines population: a) Indian/Alaska Natives Only - based on",0,1,BGPPTYPE)
  1. .D W^BGP6DP("Classification of 01; b) Non AI/AN (not 01); or c) Both.",0,1,BGPPTYPE)
  1. I BGPRTC="H" D I BGPPTYPE="P" Q:BGPQHDR
  1. .I BGPPTYPE="P",$Y>(BGPIOSL-2) D I BGPPTYPE="P" Q:BGPQHDR
  1. .D W^BGP6DP("3. Indian/Alaska Natives Only - based on Classification of 01.",0,1,BGPPTYPE)
  1. I BGPPTYPE="P" Q:BGPQHDR
  1. S BGPTEXT="ONH2" F BGPJ1=1:1 S BGPX=$T(@BGPTEXT+BGPJ1) Q:$P(BGPX,";;",2)="QUIT" D
  1. .S BGPT=$P(BGPX,";;",2)
  1. .I BGPPTYPE="P",$Y>(BGPIOSL-2) D HDR^BGP6DH I BGPPTYPE="P" Q:BGPQHDR
  1. .D W^BGP6DP(BGPT,0,1,BGPPTYPE)
  1. I BGPPTYPE="P" Q:BGPQHDR
  1. S BGPTEXT="UP" F BGPJ1=1:1 S BGPX=$T(@BGPTEXT+BGPJ1) Q:$P(BGPX,";;",2)="QUIT" D
  1. .S BGPT=$P(BGPX,";;",2)
  1. .I BGPPTYPE="P",$Y>(BGPIOSL-2) D HDR^BGP6DH I BGPPTYPE="P" Q:BGPQHDR
  1. .D W^BGP6DP(BGPT,0,1,BGPPTYPE)
  1. D W^BGP6DP("See last pages of this report for Performance Summary.",0,2,BGPPTYPE)
  1. D W^BGP6DP("",0,1,BGPPTYPE)
  1. Q
  1. ONH1 ;;
  1. ;;Denominator Definitions used in this Report:
  1. ;;
  1. ;;ACTIVE CLINICAL POPULATION:
  1. ;;1. Must reside in a community specified in the community taxonomy used for
  1. ;;this report.
  1. ;;2. Must be alive on the last day of the Report period.
  1. ;;QUIT
  1. ;
  1. ONH2 ;;
  1. ;;4. Must have 2 visits to medical clinics in the 3 years prior to the end
  1. ;;of the Report period. At least one visit must include: 01 General,
  1. ;;06 Diabetic, 10 GYN, 12 Immunization, 13 Internal Med, 20 Pediatrics, 24
  1. ;;Well Child, 28 Family Practice, 57 EPSDT, 70 Women's Health, 80 Urgent, 89
  1. ;;Evening. See User Manual for complete description of medical clinics.
  1. ;;QUIT
  1. ;;
  1. UP ;;
  1. ;;
  1. ;;USER POPULATION:
  1. ;;1. Definitions 1-3 above.
  1. ;;2. Must have been seen at least once in the 3 years prior to the end of
  1. ;;the Report period, regardless of the clinic type.
  1. ;;
  1. ;;QUIT
  1. ;;
  1. UP1 ;;
  1. ;;
  1. ;;USER POPULATION:
  1. ;;1. Definitions 1-3 above.
  1. ;;2. Must have been seen at least once in the 3 years prior to the end of
  1. ;;the Report period, regardless of the clinic type.
  1. ;;
  1. ;;QUIT
  1. ;;
  1. ;;
  1. GPRAHDRA ;EP
  1. D W^BGP6DP("",0,1,BGPPTYPE)
  1. S BGPX=$O(^BGPCTRL("B",2016,0))
  1. S BGPNODEP=15 D 2
  1. ;S BGPTEXT="UP" F BGPJ1=1:1 S BGPX=$T(@BGPTEXT+BGPJ1) Q:$P(BGPX,";;",2)="QUIT" D
  1. ;.S BGPT=$P(BGPX,";;",2)
  1. ;.I BGPPTYPE="P",$Y>(BGPIOSL-2) D HDR^BGP6DH I BGPPTYPE="P" Q:BGPQHDR
  1. ;.D W^BGP6DP(BGPT,0,1,BGPPTYPE)
  1. Q
  1. 2 S BGPY=0 F S BGPY=$O(^BGPCTRL(BGPX,BGPNODEP,BGPY)) Q:BGPY'=+BGPY!(BGPQHDR) D
  1. .I BGPPTYPE="P",$Y>(BGPIOSL-2) D AHDR^BGP6DH1 Q:BGPQHDR
  1. .D W^BGP6DP(^BGPCTRL(BGPX,BGPNODEP,BGPY,0),0,1,BGPPTYPE)
  1. .Q
  1. Q
  1. DASHHDRA ;EP
  1. D W^BGP6DP("",0,1,BGPPTYPE)
  1. S BGPX=$O(^BGPCTRL("B",2016,0))
  1. S BGPNODEP=94 D 2
  1. ;D W^BGP6DP("",0,1,BGPPTYPE)
  1. S BGPTEXT="UP1" F BGPJ1=1:1 S BGPX=$T(@BGPTEXT+BGPJ1) Q:$P(BGPX,";;",2)="QUIT" D
  1. .S BGPT=$P(BGPX,";;",2)
  1. .I BGPPTYPE="P",$Y>(BGPIOSL-2) D HDR^BGP6DH I BGPPTYPE="P" Q:BGPQHDR
  1. .D W^BGP6DP(BGPT,0,1,BGPPTYPE)
  1. Q