DGRPTX28 ; ;02/09/12
;;;;;;Build 21
1 N X,X1,X2 S DIXR=309 D X1(U) K X2 M X2=X D X1("F") K X1 M X1=X
D
. D PNOK^DGDDDTTM
K X M X=X2 D
. D PNOK^DGDDDTTM
Q
X1(DION) K X
S X(1)=$G(@DIEZTMP@("V",2,DIIENS,.211,DION),$P($G(^DPT(DA,.21)),U,1))
S X(2)=$G(@DIEZTMP@("V",2,DIIENS,.212,DION),$P($G(^DPT(DA,.21)),U,2))
S X(3)=$G(@DIEZTMP@("V",2,DIIENS,.213,DION),$P($G(^DPT(DA,.21)),U,3))
S X(4)=$G(@DIEZTMP@("V",2,DIIENS,.214,DION),$P($G(^DPT(DA,.21)),U,4))
S X(5)=$G(@DIEZTMP@("V",2,DIIENS,.215,DION),$P($G(^DPT(DA,.21)),U,5))
S X(6)=$G(@DIEZTMP@("V",2,DIIENS,.216,DION),$P($G(^DPT(DA,.21)),U,6))
S X(7)=$G(@DIEZTMP@("V",2,DIIENS,.217,DION),$P($G(^DPT(DA,.21)),U,7))
S X(8)=$G(@DIEZTMP@("V",2,DIIENS,.218,DION),$P($G(^DPT(DA,.21)),U,8))
S X(9)=$G(@DIEZTMP@("V",2,DIIENS,.2125,DION),$P($G(^DPT(DA,.21)),U,10))
S X(10)=$G(@DIEZTMP@("V",2,DIIENS,.2207,DION),$P($G(^DPT(DA,.22)),U,7))
S X=$G(X(1))
Q
2 N X,X1,X2 S DIXR=311 D X2(U) K X2 M X2=X D X2("F") K X1 M X1=X
D
. D ECON^DGDDDTTM
K X M X=X2 D
. D ECON^DGDDDTTM
Q
X2(DION) K X
S X(1)=$G(@DIEZTMP@("V",2,DIIENS,.331,DION),$P($G(^DPT(DA,.33)),U,1))
S X(2)=$G(@DIEZTMP@("V",2,DIIENS,.332,DION),$P($G(^DPT(DA,.33)),U,2))
S X(3)=$G(@DIEZTMP@("V",2,DIIENS,.333,DION),$P($G(^DPT(DA,.33)),U,3))
S X(4)=$G(@DIEZTMP@("V",2,DIIENS,.334,DION),$P($G(^DPT(DA,.33)),U,4))
S X(5)=$G(@DIEZTMP@("V",2,DIIENS,.335,DION),$P($G(^DPT(DA,.33)),U,5))
S X(6)=$G(@DIEZTMP@("V",2,DIIENS,.336,DION),$P($G(^DPT(DA,.33)),U,6))
S X(7)=$G(@DIEZTMP@("V",2,DIIENS,.337,DION),$P($G(^DPT(DA,.33)),U,7))
S X(8)=$G(@DIEZTMP@("V",2,DIIENS,.338,DION),$P($G(^DPT(DA,.33)),U,8))
S X(9)=$G(@DIEZTMP@("V",2,DIIENS,.3305,DION),$P($G(^DPT(DA,.33)),U,10))
S X(10)=$G(@DIEZTMP@("V",2,DIIENS,.2201,DION),$P($G(^DPT(DA,.22)),U,1))
S X=$G(X(1))
Q
DGRPTX28 ; ;02/09/12
+1 ;;;;;;Build 21
1 NEW X,X1,X2
SET DIXR=309
DO X1(U)
KILL X2
MERGE X2=X
DO X1("F")
KILL X1
MERGE X1=X
+1 Begin DoDot:1
+2 DO PNOK^DGDDDTTM
End DoDot:1
+3 KILL X
MERGE X=X2
Begin DoDot:1
+4 DO PNOK^DGDDDTTM
End DoDot:1
+5 QUIT
X1(DION) KILL X
+1 SET X(1)=$GET(@DIEZTMP@("V",2,DIIENS,.211,DION),$PIECE($GET(^DPT(DA,.21)),U,1))
+2 SET X(2)=$GET(@DIEZTMP@("V",2,DIIENS,.212,DION),$PIECE($GET(^DPT(DA,.21)),U,2))
+3 SET X(3)=$GET(@DIEZTMP@("V",2,DIIENS,.213,DION),$PIECE($GET(^DPT(DA,.21)),U,3))
+4 SET X(4)=$GET(@DIEZTMP@("V",2,DIIENS,.214,DION),$PIECE($GET(^DPT(DA,.21)),U,4))
+5 SET X(5)=$GET(@DIEZTMP@("V",2,DIIENS,.215,DION),$PIECE($GET(^DPT(DA,.21)),U,5))
+6 SET X(6)=$GET(@DIEZTMP@("V",2,DIIENS,.216,DION),$PIECE($GET(^DPT(DA,.21)),U,6))
+7 SET X(7)=$GET(@DIEZTMP@("V",2,DIIENS,.217,DION),$PIECE($GET(^DPT(DA,.21)),U,7))
+8 SET X(8)=$GET(@DIEZTMP@("V",2,DIIENS,.218,DION),$PIECE($GET(^DPT(DA,.21)),U,8))
+9 SET X(9)=$GET(@DIEZTMP@("V",2,DIIENS,.2125,DION),$PIECE($GET(^DPT(DA,.21)),U,10))
+10 SET X(10)=$GET(@DIEZTMP@("V",2,DIIENS,.2207,DION),$PIECE($GET(^DPT(DA,.22)),U,7))
+11 SET X=$GET(X(1))
+12 QUIT
2 NEW X,X1,X2
SET DIXR=311
DO X2(U)
KILL X2
MERGE X2=X
DO X2("F")
KILL X1
MERGE X1=X
+1 Begin DoDot:1
+2 DO ECON^DGDDDTTM
End DoDot:1
+3 KILL X
MERGE X=X2
Begin DoDot:1
+4 DO ECON^DGDDDTTM
End DoDot:1
+5 QUIT
X2(DION) KILL X
+1 SET X(1)=$GET(@DIEZTMP@("V",2,DIIENS,.331,DION),$PIECE($GET(^DPT(DA,.33)),U,1))
+2 SET X(2)=$GET(@DIEZTMP@("V",2,DIIENS,.332,DION),$PIECE($GET(^DPT(DA,.33)),U,2))
+3 SET X(3)=$GET(@DIEZTMP@("V",2,DIIENS,.333,DION),$PIECE($GET(^DPT(DA,.33)),U,3))
+4 SET X(4)=$GET(@DIEZTMP@("V",2,DIIENS,.334,DION),$PIECE($GET(^DPT(DA,.33)),U,4))
+5 SET X(5)=$GET(@DIEZTMP@("V",2,DIIENS,.335,DION),$PIECE($GET(^DPT(DA,.33)),U,5))
+6 SET X(6)=$GET(@DIEZTMP@("V",2,DIIENS,.336,DION),$PIECE($GET(^DPT(DA,.33)),U,6))
+7 SET X(7)=$GET(@DIEZTMP@("V",2,DIIENS,.337,DION),$PIECE($GET(^DPT(DA,.33)),U,7))
+8 SET X(8)=$GET(@DIEZTMP@("V",2,DIIENS,.338,DION),$PIECE($GET(^DPT(DA,.33)),U,8))
+9 SET X(9)=$GET(@DIEZTMP@("V",2,DIIENS,.3305,DION),$PIECE($GET(^DPT(DA,.33)),U,10))
+10 SET X(10)=$GET(@DIEZTMP@("V",2,DIIENS,.2201,DION),$PIECE($GET(^DPT(DA,.22)),U,1))
+11 SET X=$GET(X(1))
+12 QUIT