DGPTX45 ; ;10/15/12
;;
1 N X,X1,X2 S DIXR=361 D X1(U) K X2 M X2=X D X1("F") K X1 M X1=X
I $G(X(1))]"",$G(X(2))]"" D
. D KDGPT0^DGPTDDCR(.X,.DA,"S",1)
K X M X=X2 I $G(X(1))]"",$G(X(2))]"" D
. D SDGPT0^DGPTDDCR(.X,.DA,"S",1)
Q
X1(DION) K X
S X(1)=$G(@DIEZTMP@("V",45.01,DIIENS,.01,DION),$P($G(^DGPT(DA(1),"S",DA,0)),U,1))
S X(2)=$G(@DIEZTMP@("V",45.01,DIIENS,8,DION),$P($G(^DGPT(DA(1),"S",DA,0)),U,8))
S X=$G(X(1))
Q
2 N X,X1,X2 S DIXR=362 D X2(U) K X2 M X2=X D X2("F") K X1 M X1=X
I $G(X(1))]"",$G(X(2))]"" D
. D KDGPT0^DGPTDDCR(.X,.DA,"S",2)
K X M X=X2 I $G(X(1))]"",$G(X(2))]"" D
. D SDGPT0^DGPTDDCR(.X,.DA,"S",2)
Q
X2(DION) K X
S X(1)=$G(@DIEZTMP@("V",45.01,DIIENS,.01,DION),$P($G(^DGPT(DA(1),"S",DA,0)),U,1))
S X(2)=$G(@DIEZTMP@("V",45.01,DIIENS,9,DION),$P($G(^DGPT(DA(1),"S",DA,0)),U,9))
S X=$G(X(1))
Q
3 N X,X1,X2 S DIXR=363 D X3(U) K X2 M X2=X D X3("F") K X1 M X1=X
I $G(X(1))]"",$G(X(2))]"" D
. D KDGPT0^DGPTDDCR(.X,.DA,"S",3)
K X M X=X2 I $G(X(1))]"",$G(X(2))]"" D
. D SDGPT0^DGPTDDCR(.X,.DA,"S",3)
Q
X3(DION) K X
S X(1)=$G(@DIEZTMP@("V",45.01,DIIENS,.01,DION),$P($G(^DGPT(DA(1),"S",DA,0)),U,1))
S X(2)=$G(@DIEZTMP@("V",45.01,DIIENS,10,DION),$P($G(^DGPT(DA(1),"S",DA,0)),U,10))
S X=$G(X(1))
Q
4 N X,X1,X2 S DIXR=364 D X4(U) K X2 M X2=X D X4("F") K X1 M X1=X
I $G(X(1))]"",$G(X(2))]"" D
. D KDGPT0^DGPTDDCR(.X,.DA,"S",4)
K X M X=X2 I $G(X(1))]"",$G(X(2))]"" D
. D SDGPT0^DGPTDDCR(.X,.DA,"S",4)
Q
X4(DION) K X
S X(1)=$G(@DIEZTMP@("V",45.01,DIIENS,.01,DION),$P($G(^DGPT(DA(1),"S",DA,0)),U,1))
S X(2)=$G(@DIEZTMP@("V",45.01,DIIENS,11,DION),$P($G(^DGPT(DA(1),"S",DA,0)),U,11))
S X=$G(X(1))
Q
5 N X,X1,X2 S DIXR=365 D X5(U) K X2 M X2=X D X5("F") K X1 M X1=X
I $G(X(1))]"",$G(X(2))]"" D
. D KDGPT0^DGPTDDCR(.X,.DA,"S",5)
K X M X=X2 I $G(X(1))]"",$G(X(2))]"" D
. D SDGPT0^DGPTDDCR(.X,.DA,"S",5)
Q
X5(DION) K X
S X(1)=$G(@DIEZTMP@("V",45.01,DIIENS,.01,DION),$P($G(^DGPT(DA(1),"S",DA,0)),U,1))
S X(2)=$G(@DIEZTMP@("V",45.01,DIIENS,12,DION),$P($G(^DGPT(DA(1),"S",DA,0)),U,12))
S X=$G(X(1))
Q
DGPTX45 ; ;10/15/12
+1 ;;
1 NEW X,X1,X2
SET DIXR=361
DO X1(U)
KILL X2
MERGE X2=X
DO X1("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+2 DO KDGPT0^DGPTDDCR(.X,.DA,"S",1)
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SDGPT0^DGPTDDCR(.X,.DA,"S",1)
End DoDot:1
+5 QUIT
X1(DION) KILL X
+1 SET X(1)=$GET(@DIEZTMP@("V",45.01,DIIENS,.01,DION),$PIECE($GET(^DGPT(DA(1),"S",DA,0)),U,1))
+2 SET X(2)=$GET(@DIEZTMP@("V",45.01,DIIENS,8,DION),$PIECE($GET(^DGPT(DA(1),"S",DA,0)),U,8))
+3 SET X=$GET(X(1))
+4 QUIT
2 NEW X,X1,X2
SET DIXR=362
DO X2(U)
KILL X2
MERGE X2=X
DO X2("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+2 DO KDGPT0^DGPTDDCR(.X,.DA,"S",2)
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SDGPT0^DGPTDDCR(.X,.DA,"S",2)
End DoDot:1
+5 QUIT
X2(DION) KILL X
+1 SET X(1)=$GET(@DIEZTMP@("V",45.01,DIIENS,.01,DION),$PIECE($GET(^DGPT(DA(1),"S",DA,0)),U,1))
+2 SET X(2)=$GET(@DIEZTMP@("V",45.01,DIIENS,9,DION),$PIECE($GET(^DGPT(DA(1),"S",DA,0)),U,9))
+3 SET X=$GET(X(1))
+4 QUIT
3 NEW X,X1,X2
SET DIXR=363
DO X3(U)
KILL X2
MERGE X2=X
DO X3("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+2 DO KDGPT0^DGPTDDCR(.X,.DA,"S",3)
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SDGPT0^DGPTDDCR(.X,.DA,"S",3)
End DoDot:1
+5 QUIT
X3(DION) KILL X
+1 SET X(1)=$GET(@DIEZTMP@("V",45.01,DIIENS,.01,DION),$PIECE($GET(^DGPT(DA(1),"S",DA,0)),U,1))
+2 SET X(2)=$GET(@DIEZTMP@("V",45.01,DIIENS,10,DION),$PIECE($GET(^DGPT(DA(1),"S",DA,0)),U,10))
+3 SET X=$GET(X(1))
+4 QUIT
4 NEW X,X1,X2
SET DIXR=364
DO X4(U)
KILL X2
MERGE X2=X
DO X4("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+2 DO KDGPT0^DGPTDDCR(.X,.DA,"S",4)
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SDGPT0^DGPTDDCR(.X,.DA,"S",4)
End DoDot:1
+5 QUIT
X4(DION) KILL X
+1 SET X(1)=$GET(@DIEZTMP@("V",45.01,DIIENS,.01,DION),$PIECE($GET(^DGPT(DA(1),"S",DA,0)),U,1))
+2 SET X(2)=$GET(@DIEZTMP@("V",45.01,DIIENS,11,DION),$PIECE($GET(^DGPT(DA(1),"S",DA,0)),U,11))
+3 SET X=$GET(X(1))
+4 QUIT
5 NEW X,X1,X2
SET DIXR=365
DO X5(U)
KILL X2
MERGE X2=X
DO X5("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+2 DO KDGPT0^DGPTDDCR(.X,.DA,"S",5)
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SDGPT0^DGPTDDCR(.X,.DA,"S",5)
End DoDot:1
+5 QUIT
X5(DION) KILL X
+1 SET X(1)=$GET(@DIEZTMP@("V",45.01,DIIENS,.01,DION),$PIECE($GET(^DGPT(DA(1),"S",DA,0)),U,1))
+2 SET X(2)=$GET(@DIEZTMP@("V",45.01,DIIENS,12,DION),$PIECE($GET(^DGPT(DA(1),"S",DA,0)),U,12))
+3 SET X=$GET(X(1))
+4 QUIT