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

BGP9POS2.m

Go to the documentation of this file.
BGP9POS2 ; IHS/CMI/LAB - NO DESCRIPTION PROVIDED 28 Jan 2005 1:34 PM ;
 ;;9.0;IHS CLINICAL REPORTING;;JUL 1, 2009
 ;
 ;
PRE ;EP
 ;CHANGE PACKAGE FILE NAME
 S BGPX=0 F  S BGPX=$O(^BGPPEIN(BGPX)) Q:BGPX'=+BGPX  S DA=BGPX,DIK="^BGPPEIN(" D ^DIK
 S BGPX=0 F  S BGPX=$O(^BGPELIN(BGPX)) Q:BGPX'=+BGPX  S DA=BGPX,DIK="^BGPELIN(" D ^DIK
 S BGPX=0 F  S BGPX=$O(^BGPELIIN(BGPX)) Q:BGPX'=+BGPX  S DA=BGPX,DIK="^BGPELIIN(" D ^DIK
 S BGPX=0 F  S BGPX=$O(^BGPCMSIN(BGPX)) Q:BGPX'=+BGPX  S DA=BGPX,DIK="^BGPCMSIN(" D ^DIK
 S BGPX=0 F  S BGPX=$O(^BGPNPLN(BGPX)) Q:BGPX'=+BGPX  S DA=BGPX,DIK="^BGPNPLN(" D ^DIK
 S BGPX=0 F  S BGPX=$O(^BGPHEIN(BGPX)) Q:BGPX'=+BGPX  S DA=BGPX,DIK="^BGPHEIN(" D ^DIK
 S BGPX=0 F  S BGPX=$O(^BGPHEIIN(BGPX)) Q:BGPX'=+BGPX  S DA=BGPX,DIK="^BGPHEIIN(" D ^DIK
 S BGPX=0 F  S BGPX=$O(^BGPINDNC(BGPX)) Q:BGPX'=+BGPX  S DA=BGPX,DIK="^BGPINDNC(" D ^DIK
 S BGPX=0 F  S BGPX=$O(^BGPINDN(BGPX)) Q:BGPX'=+BGPX  S DA=BGPX,DIK="^BGPINDN(" D ^DIK
 S BGPX=0 F  S BGPX=$O(^BGPTAXN(BGPX)) Q:BGPX'=+BGPX  S DA=BGPX,DIK="^BGPTAXN(" D ^DIK
 S BGPX=0 F  S BGPX=$O(^BGPCMSMN(BGPX)) Q:BGPX'=+BGPX  S DA=BGPX,DIK="^BGPCMSMN(" D ^DIK
 S BGPX=0 F  S BGPX=$O(^BGPSCAT(BGPX)) Q:BGPX'=+BGPX  S DA=BGPX,DIK="^BGPSCAT(" D ^DIK
 S BGPX=0 F  S BGPX=$O(^BGPICAGN(BGPX)) Q:BGPX'=+BGPX  S DA=BGPX,DIK="^BGPICAGN(" D ^DIK
 S BGPX=0 F  S BGPX=$O(^BGPICACN(BGPX)) Q:BGPX'=+BGPX  S DA=BGPX,DIK="^BGPICACN(" D ^DIK
 F BGPX=0 F  S BGPX=$O(^BGPEOMN(BGPX)) Q:BGPX'=+BGPX  S DA=BGPX,DIK="^BGPEOMN(" D ^DIK
 S BGPX=0 F  S BGPX=$O(^BGPEOMIN(BGPX)) Q:BGPX'=+BGPX  S DA=BGPX,DIK="^BGPEOMIN(" D ^DIK
 F BGPX=1:1:2000 K ^BGPTAXN(BGPX)
 S BGPX=0 F  S BGPX=$O(^BGPTAXTN(BGPX)) Q:BGPX'=+BGPX  S DA=BGPX,DIK="^BGPTAXTN(" D ^DIK
 F BGPX=1:1:2000 K ^BGPTAXTN(BGPX)
 S X=0 F  S X=$O(^BGPSITE(X)) Q:X'=+X  S $P(^BGPSITE(X,0),U,3)=""
 S X=0 F  S X=$O(^ATXAX(X)) Q:X'=+X  D
 .I $D(^ATXAX(X,21,0)),$P(^ATXAX(X,21,0),U,2)'["9002226.02101A" S $P(^ATXAX(X,21,0),U,2)="9002226.02101A"
 .I $D(^ATXAX(X,41,0)),$P(^ATXAX(X,41,0),U,2)'["9002226.04101P" S $P(^ATXAX(X,41,0),U,2)="9002226.04101P"
CH S DA=$O(^ATXAX("B","BGP TOTAL CHOLECTOMY CPTS",0)) I DA D
 .S DIE="^ATXAX(",DR=".01///BGP TOTAL COLECTOMY CPTS",ATXFLG=1 D ^DIE K DIE,DA,DR
 S DA=$O(^ATXAX("B","BGP TOTAL CHOLECTOMY PROCS",0)) I DA D
 .S DIE="^ATXAX(",DR=".01///BGP TOTAL COLECTOMY PROCS",ATXFLG=1 D ^DIE K DIE,DA,DR
 K ATXFLG
 Q