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

ACRCSS1.m

Go to the documentation of this file.
ACRCSS1 ; COMPILED XREF FOR FILE #9002193 ; 09/30/09
 ; 
 S DIKZK=2
 S DIKZ(0)=$G(^ACRSS(DA,0))
 S X=$P(DIKZ(0),U,2)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACRSS(D0,0)):^(0),1:"") S X=$P(Y(1),U,6),X=X S DIU=X K Y X ^DD(9002193,.02,1,1,2.1) X ^DD(9002193,.02,1,1,2.4)
 S X=$P(DIKZ(0),U,2)
 I X'="" K ^ACRSS("D",$E(X,1,30),DA)
 S X=$P(DIKZ(0),U,2)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACRSS(D0,0)):^(0),1:"") S X=$P(Y(1),U,10),X=X S DIU=X K Y X ^DD(9002193,.02,1,4,2.1) X ^DD(9002193,.02,1,4,2.4)
 S X=$P(DIKZ(0),U,2)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y(1)=$S($D(^ACRSS(D0,"DT")):^("DT"),1:"") S X=$P(Y(1),U,4)'="" I X S X=DIV X ^DD(9002193,.02,1,6,89.2) S X=$P(Y(101),U,1) S D0=I(0,0) S DIU=X K Y X ^DD(9002193,.02,1,6,2.1) X ^DD(9002193,.02,1,6,2.4)
 S X=$P(DIKZ(0),U,2)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y(1)=$S($D(^ACRSS(D0,"DT")):^("DT"),1:"") S X=$P(Y(1),U,9)'="" I X S X=DIV X ^DD(9002193,.02,1,7,89.2) S X=$P(Y(101),U,4) S D0=I(0,0) S DIU=X K Y X ^DD(9002193,.02,1,7,2.1) X ^DD(9002193,.02,1,7,2.4)
 S X=$P(DIKZ(0),U,2)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y(1)=$S($D(^ACRSS(D0,"DT")):^("DT"),1:"") S X=$P(Y(1),U,7)'="" I X S X=DIV X ^DD(9002193,.02,1,8,89.2) S X=$P(Y(101),U,2) S D0=I(0,0) S DIU=X K Y X ^DD(9002193,.02,1,8,2.1) X ^DD(9002193,.02,1,8,2.4)
 S DIKZ(0)=$G(^ACRSS(DA,0))
 S X=$P(DIKZ(0),U,3)
 I X'="" K ^ACRSS("C",$E(X,1,30),DA)
 S X=$P(DIKZ(0),U,3)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACRSS(D0,"PO")):^("PO"),1:"") S X=$P(Y(1),U,1),X=X S DIU=X K Y S X="" X ^DD(9002193,.03,1,2,2.4)
 S DIKZ(0)=$G(^ACRSS(DA,0))
 S X=$P(DIKZ(0),U,5)
 I X'="" K ^ACRSS("CAN",$E(X,1,30),DA)
 S X=$P(DIKZ(0),U,5)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACRSS(D0,0)):^(0),1:"") S X=$P(Y(1),U,11),X=X S DIU=X K Y X ^DD(9002193,.05,1,2,2.1) X ^DD(9002193,.05,1,2,2.4)
 S DIKZ(0)=$G(^ACRSS(DA,0))
 S X=$P(DIKZ(0),U,6)
 I X'="" K ^ACRSS("F",$E(X,1,30),DA)
 S X=$P(DIKZ(0),U,6)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACRSS(D0,0)):^(0),1:"") S X=$P(Y(1),U,8),X=X S DIU=X K Y S X="" S DIH=$S($D(^ACRSS(DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,8)=DIV,DIH=9002193,DIG=.08 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
 S X=$P(DIKZ(0),U,6)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACRSS(D0,0)):^(0),1:"") S X=$P(Y(1),U,9),X=X S DIU=X K Y S X="" S DIH=$S($D(^ACRSS(DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,9)=DIV,DIH=9002193,DIG=.09 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
 S X=$P(DIKZ(0),U,6)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(101)=$S($D(^ACRLOCB(DIV,"BA")):^("BA"),1:"") S X=$P(Y(101),U,2) S DIU=X K Y X ^DD(9002193,.06,1,4,2.1) X ^DD(9002193,.06,1,4,2.4)
 S X=$P(DIKZ(0),U,6)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(101)=$S($D(^ACRLOCB(DIV,"BA")):^("BA"),1:"") S X=$P(Y(101),U,5) S DIU=X K Y X ^DD(9002193,.06,1,5,2.1) X ^DD(9002193,.06,1,5,2.4)
 S X=$P(DIKZ(0),U,6)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(101)=$S($D(^ACRLOCB(DIV,"BA")):^("BA"),1:"") S X=$P(Y(101),U,3) S DIU=X K Y X ^DD(9002193,.06,1,6,2.1) X ^DD(9002193,.06,1,6,2.4)
 S DIKZ(0)=$G(^ACRSS(DA,0))
 S X=$P(DIKZ(0),U,7)
 I X'="" K ^ACRSS("E",$E(X,1,30),$P(^ACRSS(DA,0),U),DA)
 S X=$P(DIKZ(0),U,8)
 I X'="" K ^ACRSS("G",$E(X,1,30),DA)
 S X=$P(DIKZ(0),U,9)
 I X'="" K ^ACRSS("H",$E(X,1,30),DA)
 S X=$P(DIKZ(0),U,11)
 I X'="" K ^ACRSS("AREA",$E(X,1,30),DA)
 S X=$P(DIKZ(0),U,12)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACRSS(D0,"DESC")):^("DESC"),1:"") S X=$P(Y(1),U,1),X=X S DIU=X K Y S X="" X ^DD(9002193,.12,1,1,2.4)
 S X=$P(DIKZ(0),U,12)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACRSS(D0,"DESC")):^("DESC"),1:"") S X=$P(Y(1),U,2),X=X S DIU=X K Y S X="" X ^DD(9002193,.12,1,2,2.4)
 S DIKZ(0)=$G(^ACRSS(DA,0))
 S X=$P(DIKZ(0),U,13)
 I X'="" K ^ACRSS("I",$E(X,1,30),DA)
 S X=$P(DIKZ(0),U,13)
 I X'="" I $P($G(^ACRSS(+$G(DA),"NMS")),U)]"",$P($G(^(0)),U,17) K ^ACRSS("PR",X,$P(^("NMS"),U),$P(^(0),U,17),DA)
 S X=$P(DIKZ(0),U,15)
 I X'="" K ^ACRSS("LCOD",$E(X,1,30),DA)
 S X=$P(DIKZ(0),U,17)
 I X'="" I $P($G(^ACRSS(+$G(DA),"NMS")),U)]"",$P(^(0),U,13) K ^ACRSS("PR",$P(^("NMS"),U),$P(^(0),U,13),X,DA)
 S DIKZ("PO")=$G(^ACRSS(DA,"PO"))
 S X=$P(DIKZ("PO"),U,1)
 I X'="" K ^ACRSS("J",$E(X,1,30),DA)
 S DIKZ("NMS")=$G(^ACRSS(DA,"NMS"))
 S X=$P(DIKZ("NMS"),U,1)
 I X'="" I $P($G(^ACRSS(+$G(DA),0)),U,13)]"",$P(^(0),U,17) K ^ACRSS("PR",$P(^(0),U,13),X,$P(^(0),U,17),DA)
 S DIKZ("DT")=$G(^ACRSS(DA,"DT"))
 S X=$P(DIKZ("DT"),U,3)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACRSS(D0,"DT")):^("DT"),1:"") S X=$P(Y(1),U,4),X=X S DIU=X K Y S X="" X ^DD(9002193,12,1,1,2.4)
 S DIKZ("DT")=$G(^ACRSS(DA,"DT"))
 S X=$P(DIKZ("DT"),U,4)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 X ^DD(9002193,13,1,1,89.2) S X=$P(Y(101),U,2) S D0=I(0,0) S DIU=X K Y S X=DIV S X=DIU-X X ^DD(9002193,13,1,1,2.4)
 S X=$P(DIKZ("DT"),U,4)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 X ^DD(9002193,13,1,2,89.2) S X=$P(Y(101),U,2) S D0=I(0,0) S DIU=X K Y S X=DIV S X=DIU-X X ^DD(9002193,13,1,2,2.4)
 S X=$P(DIKZ("DT"),U,4)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 X ^DD(9002193,13,1,3,89.2) S X=$P(Y(101),U,2) S D0=I(0,0) S DIU=X K Y S X=DIV S X=DIU-X X ^DD(9002193,13,1,3,2.4)
 S X=$P(DIKZ("DT"),U,4)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 X ^DD(9002193,13,1,4,89.2) S X=$P(Y(101),U,1) S D0=I(0,0) S DIU=X K Y S X=DIV S X=DIU-X X ^DD(9002193,13,1,4,2.4)
 S DIKZ("DT")=$G(^ACRSS(DA,"DT"))
 S X=$P(DIKZ("DT"),U,21)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S X=X'=0 I X S X=DIV X ^DD(9002193,16.1,1,1,89.2) S X=$P(Y(101),U,2) S D0=I(0,0) S DIU=X K Y S X=DIV S X=DIU-X X ^DD(9002193,16.1,1,1,2.4)
 S X=$P(DIKZ("DT"),U,21)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S X=X'=0 I X S X=DIV X ^DD(9002193,16.1,1,2,89.2) S X=$P(Y(101),U,3) S D0=I(0,0) S DIU=X K Y S X=DIV S X=DIU-X X ^DD(9002193,16.1,1,2,2.4)
 S X=$P(DIKZ("DT"),U,21)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S X=X'=0 I X S X=DIV X ^DD(9002193,16.1,1,3,89.2) S X=$P(Y(101),U,3) S D0=I(0,0) S DIU=X K Y S X=DIV S X=DIU-X X ^DD(9002193,16.1,1,3,2.4)
 S X=$P(DIKZ("DT"),U,21)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S X=X'=0 I X S X=DIV X ^DD(9002193,16.1,1,4,89.2) S X=$P(Y(101),U,3) S D0=I(0,0) S DIU=X K Y S X=DIV S X=DIU-X X ^DD(9002193,16.1,1,4,2.4)
 S DIKZ("DT")=$G(^ACRSS(DA,"DT"))
 S X=$P(DIKZ("DT"),U,9)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y(1)=$S($D(^ACRSS(D0,"DT")):^("DT"),1:"") S X=$P(Y(1),U,9)'="" I X S X=DIV X ^DD(9002193,18,1,1,89.2) S X=$P(Y(101),U,4) S D0=I(0,0) S DIU=X K Y S X=DIV S X=DIU-X X ^DD(9002193,18,1,1,2.4)
 S X=$P(DIKZ("DT"),U,9)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 X ^DD(9002193,18,1,2,89.2) S X=$P(Y(101),U,5) S D0=I(0,0) S DIU=X K Y S X=DIV S X=DIU-X X ^DD(9002193,18,1,2,2.4)
 S X=$P(DIKZ("DT"),U,9)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 X ^DD(9002193,18,1,3,89.2) S X=$P(Y(101),U,5) S D0=I(0,0) S DIU=X K Y S X=DIV S X=DIU-X X ^DD(9002193,18,1,3,2.4)
 S X=$P(DIKZ("DT"),U,9)
 I X'="" D
 .N DIK,DIV,DIU,DIN
 .K DIV S DIV=X,D0=DA,DIV(0)=D0 X ^DD(9002193,18,1,4,89.2) S X=$P(Y(101),U,5) S D0=I(0,0) S DIU=X K Y S X=DIV S X=DIU-X X ^DD(9002193,18,1,4,2.4)
 S DIKZ("VND")=$G(^ACRSS(DA,"VND"))
 S X=$P(DIKZ("VND"),U,1)
 I X'="" K ^ACRSS("VND",$E(X,1,30),DA)
 S DIKZ(0)=$G(^ACRSS(DA,0))
 S X=$P(DIKZ(0),U,1)
END G ^ACRCSS2