DGX5F7 ; ;03/21/13
;;
1 N X,X1,X2 S DIXR=380 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 KDGPT9M^DGPTDDCR(.X,.DA,"M ICD1")
K X M X=X2 I $G(X(1))]"",$G(X(2))]"" D
. D SDGPT9M^DGPTDDCR(.X,.DA,"M ICD1")
Q
X1(DION) K X
S X(1)=$G(@DIEZTMP@("V",45.02,DIIENS,10,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,10))
S X(2)=$G(@DIEZTMP@("V",45.02,DIIENS,5,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,5))
S X=$G(X(1))
Q
2 N X,X1,X2 S DIXR=381 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 KDGPT9M^DGPTDDCR(.X,.DA,"M ICD10")
K X M X=X2 I $G(X(1))]"",$G(X(2))]"" D
. D SDGPT9M^DGPTDDCR(.X,.DA,"M ICD10")
Q
X2(DION) K X
S X(1)=$G(@DIEZTMP@("V",45.02,DIIENS,10,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,10))
S X(2)=$G(@DIEZTMP@("V",45.02,DIIENS,15,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,15))
S X=$G(X(1))
Q
3 N X,X1,X2 S DIXR=382 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 KDGPT9M^DGPTDDCR(.X,.DA,"M ICD2")
K X M X=X2 I $G(X(1))]"",$G(X(2))]"" D
. D SDGPT9M^DGPTDDCR(.X,.DA,"M ICD2")
Q
X3(DION) K X
S X(1)=$G(@DIEZTMP@("V",45.02,DIIENS,10,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,10))
S X(2)=$G(@DIEZTMP@("V",45.02,DIIENS,6,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,6))
S X=$G(X(1))
Q
4 N X,X1,X2 S DIXR=383 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 KDGPT9M^DGPTDDCR(.X,.DA,"M ICD3")
K X M X=X2 I $G(X(1))]"",$G(X(2))]"" D
. D SDGPT9M^DGPTDDCR(.X,.DA,"M ICD3")
Q
X4(DION) K X
S X(1)=$G(@DIEZTMP@("V",45.02,DIIENS,10,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,10))
S X(2)=$G(@DIEZTMP@("V",45.02,DIIENS,7,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,7))
S X=$G(X(1))
Q
5 N X,X1,X2 S DIXR=384 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 KDGPT9M^DGPTDDCR(.X,.DA,"M ICD4")
K X M X=X2 I $G(X(1))]"",$G(X(2))]"" D
. D SDGPT9M^DGPTDDCR(.X,.DA,"M ICD4")
Q
X5(DION) K X
S X(1)=$G(@DIEZTMP@("V",45.02,DIIENS,10,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,10))
S X(2)=$G(@DIEZTMP@("V",45.02,DIIENS,8,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,8))
S X=$G(X(1))
Q
6 N X,X1,X2 S DIXR=385 D X6(U) K X2 M X2=X D X6("F") K X1 M X1=X
I $G(X(1))]"",$G(X(2))]"" D
. D KDGPT9M^DGPTDDCR(.X,.DA,"M ICD5")
K X M X=X2 I $G(X(1))]"",$G(X(2))]"" D
. D SDGPT9M^DGPTDDCR(.X,.DA,"M ICD5")
Q
X6(DION) K X
S X(1)=$G(@DIEZTMP@("V",45.02,DIIENS,10,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,10))
S X(2)=$G(@DIEZTMP@("V",45.02,DIIENS,9,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,9))
S X=$G(X(1))
Q
7 N X,X1,X2 S DIXR=386 D X7(U) K X2 M X2=X D X7("F") K X1 M X1=X
I $G(X(1))]"",$G(X(2))]"" D
. D KDGPT9M^DGPTDDCR(.X,.DA,"M ICD6")
K X M X=X2 I $G(X(1))]"",$G(X(2))]"" D
. D SDGPT9M^DGPTDDCR(.X,.DA,"M ICD6")
Q
X7(DION) K X
S X(1)=$G(@DIEZTMP@("V",45.02,DIIENS,10,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,10))
S X(2)=$G(@DIEZTMP@("V",45.02,DIIENS,11,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,11))
S X=$G(X(1))
Q
8 N X,X1,X2 S DIXR=387 D X8(U) K X2 M X2=X D X8("F") K X1 M X1=X
I $G(X(1))]"",$G(X(2))]"" D
. D KDGPT9M^DGPTDDCR(.X,.DA,"M ICD7")
K X M X=X2 I $G(X(1))]"",$G(X(2))]"" D
. D SDGPT9M^DGPTDDCR(.X,.DA,"M ICD7")
Q
X8(DION) K X
S X(1)=$G(@DIEZTMP@("V",45.02,DIIENS,10,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,10))
S X(2)=$G(@DIEZTMP@("V",45.02,DIIENS,12,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,12))
S X=$G(X(1))
Q
9 N X,X1,X2 S DIXR=388 D X9(U) K X2 M X2=X D X9("F") K X1 M X1=X
I $G(X(1))]"",$G(X(2))]"" D
. D KDGPT9M^DGPTDDCR(.X,.DA,"M ICD8")
K X M X=X2 I $G(X(1))]"",$G(X(2))]"" D
. D SDGPT9M^DGPTDDCR(.X,.DA,"M ICD8")
Q
X9(DION) K X
S X(1)=$G(@DIEZTMP@("V",45.02,DIIENS,10,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,10))
S X(2)=$G(@DIEZTMP@("V",45.02,DIIENS,13,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,13))
S X=$G(X(1))
Q
10 N X,X1,X2 S DIXR=389 D X10(U) K X2 M X2=X D X10("F") K X1 M X1=X
I $G(X(1))]"",$G(X(2))]"" D
. D KDGPT9M^DGPTDDCR(.X,.DA,"M ICD9")
K X M X=X2 I $G(X(1))]"",$G(X(2))]"" D
. D SDGPT9M^DGPTDDCR(.X,.DA,"M ICD9")
Q
X10(DION) K X
S X(1)=$G(@DIEZTMP@("V",45.02,DIIENS,10,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,10))
S X(2)=$G(@DIEZTMP@("V",45.02,DIIENS,14,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,14))
S X=$G(X(1))
Q
DGX5F7 ; ;03/21/13
+1 ;;
1 NEW X,X1,X2
SET DIXR=380
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 KDGPT9M^DGPTDDCR(.X,.DA,"M ICD1")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SDGPT9M^DGPTDDCR(.X,.DA,"M ICD1")
End DoDot:1
+5 QUIT
X1(DION) KILL X
+1 SET X(1)=$GET(@DIEZTMP@("V",45.02,DIIENS,10,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,10))
+2 SET X(2)=$GET(@DIEZTMP@("V",45.02,DIIENS,5,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,5))
+3 SET X=$GET(X(1))
+4 QUIT
2 NEW X,X1,X2
SET DIXR=381
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 KDGPT9M^DGPTDDCR(.X,.DA,"M ICD10")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SDGPT9M^DGPTDDCR(.X,.DA,"M ICD10")
End DoDot:1
+5 QUIT
X2(DION) KILL X
+1 SET X(1)=$GET(@DIEZTMP@("V",45.02,DIIENS,10,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,10))
+2 SET X(2)=$GET(@DIEZTMP@("V",45.02,DIIENS,15,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,15))
+3 SET X=$GET(X(1))
+4 QUIT
3 NEW X,X1,X2
SET DIXR=382
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 KDGPT9M^DGPTDDCR(.X,.DA,"M ICD2")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SDGPT9M^DGPTDDCR(.X,.DA,"M ICD2")
End DoDot:1
+5 QUIT
X3(DION) KILL X
+1 SET X(1)=$GET(@DIEZTMP@("V",45.02,DIIENS,10,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,10))
+2 SET X(2)=$GET(@DIEZTMP@("V",45.02,DIIENS,6,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,6))
+3 SET X=$GET(X(1))
+4 QUIT
4 NEW X,X1,X2
SET DIXR=383
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 KDGPT9M^DGPTDDCR(.X,.DA,"M ICD3")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SDGPT9M^DGPTDDCR(.X,.DA,"M ICD3")
End DoDot:1
+5 QUIT
X4(DION) KILL X
+1 SET X(1)=$GET(@DIEZTMP@("V",45.02,DIIENS,10,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,10))
+2 SET X(2)=$GET(@DIEZTMP@("V",45.02,DIIENS,7,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,7))
+3 SET X=$GET(X(1))
+4 QUIT
5 NEW X,X1,X2
SET DIXR=384
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 KDGPT9M^DGPTDDCR(.X,.DA,"M ICD4")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SDGPT9M^DGPTDDCR(.X,.DA,"M ICD4")
End DoDot:1
+5 QUIT
X5(DION) KILL X
+1 SET X(1)=$GET(@DIEZTMP@("V",45.02,DIIENS,10,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,10))
+2 SET X(2)=$GET(@DIEZTMP@("V",45.02,DIIENS,8,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,8))
+3 SET X=$GET(X(1))
+4 QUIT
6 NEW X,X1,X2
SET DIXR=385
DO X6(U)
KILL X2
MERGE X2=X
DO X6("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+2 DO KDGPT9M^DGPTDDCR(.X,.DA,"M ICD5")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SDGPT9M^DGPTDDCR(.X,.DA,"M ICD5")
End DoDot:1
+5 QUIT
X6(DION) KILL X
+1 SET X(1)=$GET(@DIEZTMP@("V",45.02,DIIENS,10,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,10))
+2 SET X(2)=$GET(@DIEZTMP@("V",45.02,DIIENS,9,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,9))
+3 SET X=$GET(X(1))
+4 QUIT
7 NEW X,X1,X2
SET DIXR=386
DO X7(U)
KILL X2
MERGE X2=X
DO X7("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+2 DO KDGPT9M^DGPTDDCR(.X,.DA,"M ICD6")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SDGPT9M^DGPTDDCR(.X,.DA,"M ICD6")
End DoDot:1
+5 QUIT
X7(DION) KILL X
+1 SET X(1)=$GET(@DIEZTMP@("V",45.02,DIIENS,10,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,10))
+2 SET X(2)=$GET(@DIEZTMP@("V",45.02,DIIENS,11,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,11))
+3 SET X=$GET(X(1))
+4 QUIT
8 NEW X,X1,X2
SET DIXR=387
DO X8(U)
KILL X2
MERGE X2=X
DO X8("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+2 DO KDGPT9M^DGPTDDCR(.X,.DA,"M ICD7")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SDGPT9M^DGPTDDCR(.X,.DA,"M ICD7")
End DoDot:1
+5 QUIT
X8(DION) KILL X
+1 SET X(1)=$GET(@DIEZTMP@("V",45.02,DIIENS,10,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,10))
+2 SET X(2)=$GET(@DIEZTMP@("V",45.02,DIIENS,12,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,12))
+3 SET X=$GET(X(1))
+4 QUIT
9 NEW X,X1,X2
SET DIXR=388
DO X9(U)
KILL X2
MERGE X2=X
DO X9("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+2 DO KDGPT9M^DGPTDDCR(.X,.DA,"M ICD8")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SDGPT9M^DGPTDDCR(.X,.DA,"M ICD8")
End DoDot:1
+5 QUIT
X9(DION) KILL X
+1 SET X(1)=$GET(@DIEZTMP@("V",45.02,DIIENS,10,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,10))
+2 SET X(2)=$GET(@DIEZTMP@("V",45.02,DIIENS,13,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,13))
+3 SET X=$GET(X(1))
+4 QUIT
10 NEW X,X1,X2
SET DIXR=389
DO X10(U)
KILL X2
MERGE X2=X
DO X10("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+2 DO KDGPT9M^DGPTDDCR(.X,.DA,"M ICD9")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SDGPT9M^DGPTDDCR(.X,.DA,"M ICD9")
End DoDot:1
+5 QUIT
X10(DION) KILL X
+1 SET X(1)=$GET(@DIEZTMP@("V",45.02,DIIENS,10,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,10))
+2 SET X(2)=$GET(@DIEZTMP@("V",45.02,DIIENS,14,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,14))
+3 SET X=$GET(X(1))
+4 QUIT