DGX5FD10 ; ;01/03/22
;;
1 N X,X1,X2 S DIXR=835 D X1(U) K X2 M X2=X D X1("F") K X1 M X1=X
D
. D NOTIFY^DGPTDD(.X1,.X2,.DA,45,"MOVEMENT","KILL")
K X M X=X2 D
. D NOTIFY^DGPTDD(.X1,.X2,.DA,45,"MOVEMENT","SET")
Q
X1(DION) K X
S X(1)=$G(@DIEZTMP@("V",45.02,DIIENS,.01,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,1))
S X(2)=$G(@DIEZTMP@("V",45.02,DIIENS,5,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,5))
S X(3)=$G(@DIEZTMP@("V",45.02,DIIENS,6,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,6))
S X(4)=$G(@DIEZTMP@("V",45.02,DIIENS,7,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,7))
S X(5)=$G(@DIEZTMP@("V",45.02,DIIENS,8,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,8))
S X(6)=$G(@DIEZTMP@("V",45.02,DIIENS,9,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,9))
S X(7)=$G(@DIEZTMP@("V",45.02,DIIENS,11,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,11))
S X(8)=$G(@DIEZTMP@("V",45.02,DIIENS,12,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,12))
S X(9)=$G(@DIEZTMP@("V",45.02,DIIENS,13,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,13))
S X(10)=$G(@DIEZTMP@("V",45.02,DIIENS,14,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,14))
S X(11)=$G(@DIEZTMP@("V",45.02,DIIENS,15,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,15))
S X(12)=$G(@DIEZTMP@("V",45.02,DIIENS,81.01,DION),$P($G(^DGPT(DA(1),"M",DA,81)),U,1))
S X(13)=$G(@DIEZTMP@("V",45.02,DIIENS,81.02,DION),$P($G(^DGPT(DA(1),"M",DA,81)),U,2))
S X(14)=$G(@DIEZTMP@("V",45.02,DIIENS,81.03,DION),$P($G(^DGPT(DA(1),"M",DA,81)),U,3))
S X(15)=$G(@DIEZTMP@("V",45.02,DIIENS,81.04,DION),$P($G(^DGPT(DA(1),"M",DA,81)),U,4))
S X(16)=$G(@DIEZTMP@("V",45.02,DIIENS,81.05,DION),$P($G(^DGPT(DA(1),"M",DA,81)),U,5))
S X(17)=$G(@DIEZTMP@("V",45.02,DIIENS,81.06,DION),$P($G(^DGPT(DA(1),"M",DA,81)),U,6))
S X(18)=$G(@DIEZTMP@("V",45.02,DIIENS,81.07,DION),$P($G(^DGPT(DA(1),"M",DA,81)),U,7))
S X(19)=$G(@DIEZTMP@("V",45.02,DIIENS,81.08,DION),$P($G(^DGPT(DA(1),"M",DA,81)),U,8))
S X(20)=$G(@DIEZTMP@("V",45.02,DIIENS,81.09,DION),$P($G(^DGPT(DA(1),"M",DA,81)),U,9))
S X(21)=$G(@DIEZTMP@("V",45.02,DIIENS,81.1,DION),$P($G(^DGPT(DA(1),"M",DA,81)),U,10))
S X(22)=$G(@DIEZTMP@("V",45.02,DIIENS,81.11,DION),$P($G(^DGPT(DA(1),"M",DA,81)),U,11))
S X(23)=$G(@DIEZTMP@("V",45.02,DIIENS,81.12,DION),$P($G(^DGPT(DA(1),"M",DA,81)),U,12))
S X(24)=$G(@DIEZTMP@("V",45.02,DIIENS,81.13,DION),$P($G(^DGPT(DA(1),"M",DA,81)),U,13))
S X(25)=$G(@DIEZTMP@("V",45.02,DIIENS,81.14,DION),$P($G(^DGPT(DA(1),"M",DA,81)),U,14))
S X(26)=$G(@DIEZTMP@("V",45.02,DIIENS,81.15,DION),$P($G(^DGPT(DA(1),"M",DA,81)),U,15))
S X=$G(X(1))
Q
2 N X,X1,X2 S DIXR=1177 D X2(U) K X2 M X2=X D X2("F") K X1 M X1=X
I $G(X(2))]"" D
. D KPTFMD^DGPTDDCR(.X,.DA,"M ICD1")
K X M X=X2 I $G(X(2))]"" D
. D SPTFMD^DGPTDDCR(.X,.DA,"M ICD1")
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,5,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,5))
S X=$G(X(1))
Q
3 N X,X1,X2 S DIXR=1178 D X3(U) K X2 M X2=X D X3("F") K X1 M X1=X
I $G(X(2))]"" D
. D KPTFMD^DGPTDDCR(.X,.DA,"M ICD10")
K X M X=X2 I $G(X(2))]"" D
. D SPTFMD^DGPTDDCR(.X,.DA,"M ICD10")
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,15,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,15))
S X=$G(X(1))
Q
4 N X,X1,X2 S DIXR=1179 D X4(U) K X2 M X2=X D X4("F") K X1 M X1=X
I $G(X(2))]"" D
. D KPTFMD^DGPTDDCR(.X,.DA,"M ICD2")
K X M X=X2 I $G(X(2))]"" D
. D SPTFMD^DGPTDDCR(.X,.DA,"M ICD2")
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,6,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,6))
S X=$G(X(1))
Q
5 N X,X1,X2 S DIXR=1180 D X5(U) K X2 M X2=X D X5("F") K X1 M X1=X
I $G(X(2))]"" D
. D KPTFMD^DGPTDDCR(.X,.DA,"M ICD3")
K X M X=X2 I $G(X(2))]"" D
. D SPTFMD^DGPTDDCR(.X,.DA,"M ICD3")
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,7,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,7))
S X=$G(X(1))
Q
6 N X,X1,X2 S DIXR=1181 D X6(U) K X2 M X2=X D X6("F") K X1 M X1=X
I $G(X(2))]"" D
. D KPTFMD^DGPTDDCR(.X,.DA,"M ICD4")
K X M X=X2 I $G(X(2))]"" D
. D SPTFMD^DGPTDDCR(.X,.DA,"M ICD4")
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,8,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,8))
S X=$G(X(1))
Q
7 N X,X1,X2 S DIXR=1182 D X7(U) K X2 M X2=X D X7("F") K X1 M X1=X
I $G(X(2))]"" D
. D KPTFMD^DGPTDDCR(.X,.DA,"M ICD5")
K X M X=X2 I $G(X(2))]"" D
. D SPTFMD^DGPTDDCR(.X,.DA,"M ICD5")
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,9,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,9))
S X=$G(X(1))
Q
8 N X,X1,X2 S DIXR=1183 D X8(U) K X2 M X2=X D X8("F") K X1 M X1=X
I $G(X(2))]"" D
. D KPTFMD^DGPTDDCR(.X,.DA,"M ICD6")
K X M X=X2 I $G(X(2))]"" D
. D SPTFMD^DGPTDDCR(.X,.DA,"M ICD6")
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,11,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,11))
S X=$G(X(1))
Q
9 N X,X1,X2 S DIXR=1184 D X9(U) K X2 M X2=X D X9("F") K X1 M X1=X
I $G(X(2))]"" D
. D KPTFMD^DGPTDDCR(.X,.DA,"M ICD7")
K X M X=X2 I $G(X(2))]"" D
. D SPTFMD^DGPTDDCR(.X,.DA,"M ICD7")
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,12,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,12))
S X=$G(X(1))
Q
10 N X,X1,X2 S DIXR=1185 D X10(U) K X2 M X2=X D X10("F") K X1 M X1=X
I $G(X(2))]"" D
. D KPTFMD^DGPTDDCR(.X,.DA,"M ICD8")
K X M X=X2 I $G(X(2))]"" D
. D SPTFMD^DGPTDDCR(.X,.DA,"M ICD8")
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,13,DION),$P($G(^DGPT(DA(1),"M",DA,0)),U,13))
S X=$G(X(1))
Q
11 N X,X1,X2 S DIXR=1186 D X11(U) K X2 M X2=X D X11("F") K X1 M X1=X
I $G(X(2))]"" D
. D KPTFMD^DGPTDDCR(.X,.DA,"M ICD9")
K X M X=X2 I $G(X(2))]"" D
. D SPTFMD^DGPTDDCR(.X,.DA,"M ICD9")
Q
X11(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
12 N X,X1,X2 S DIXR=1224 D X12(U) K X2 M X2=X D X12("F") K X1 M X1=X
I $G(X(2))]"" D
. D KPTFMD^DGPTDDCR(.X,.DA,"M ICD11")
K X M X=X2 I $G(X(2))]"" D
. D SPTFMD^DGPTDDCR(.X,.DA,"M ICD11")
Q
X12(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,81.01,DION),$P($G(^DGPT(DA(1),"M",DA,81)),U,1))
S X=$G(X(1))
Q
13 N X,X1,X2 S DIXR=1225 D X13(U) K X2 M X2=X D X13("F") K X1 M X1=X
I $G(X(2))]"" D
. D KPTFMD^DGPTDDCR(.X,.DA,"M ICD12")
K X M X=X2 I $G(X(2))]"" D
. D SPTFMD^DGPTDDCR(.X,.DA,"M ICD12")
Q
X13(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,81.02,DION),$P($G(^DGPT(DA(1),"M",DA,81)),U,2))
S X=$G(X(1))
Q
14 N X,X1,X2 S DIXR=1226 D X14(U) K X2 M X2=X D X14("F") K X1 M X1=X
I $G(X(2))]"" D
. D KPTFMD^DGPTDDCR(.X,.DA,"M ICD13")
K X M X=X2 I $G(X(2))]"" D
. D SPTFMD^DGPTDDCR(.X,.DA,"M ICD13")
Q
X14(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,81.03,DION),$P($G(^DGPT(DA(1),"M",DA,81)),U,3))
S X=$G(X(1))
Q
15 N X,X1,X2 S DIXR=1227 D X15(U) K X2 M X2=X D X15("F") K X1 M X1=X
I $G(X(2))]"" D
. D KPTFMD^DGPTDDCR(.X,.DA,"M ICD14")
K X M X=X2 I $G(X(2))]"" D
. D SPTFMD^DGPTDDCR(.X,.DA,"M ICD14")
Q
X15(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,81.04,DION),$P($G(^DGPT(DA(1),"M",DA,81)),U,4))
S X=$G(X(1))
Q
16 N X,X1,X2 S DIXR=1228 D X16(U) K X2 M X2=X D X16("F") K X1 M X1=X
I $G(X(2))]"" D
. D KPTFMD^DGPTDDCR(.X,.DA,"M ICD15")
K X M X=X2 I $G(X(2))]"" D
. D SPTFMD^DGPTDDCR(.X,.DA,"M ICD15")
Q
X16(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,81.05,DION),$P($G(^DGPT(DA(1),"M",DA,81)),U,5))
S X=$G(X(1))
Q
17 N X,X1,X2 S DIXR=1229 D X17(U) K X2 M X2=X D X17("F") K X1 M X1=X
I $G(X(2))]"" D
. D KPTFMD^DGPTDDCR(.X,.DA,"M ICD16")
K X M X=X2 I $G(X(2))]"" D
. D SPTFMD^DGPTDDCR(.X,.DA,"M ICD16")
Q
X17(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,81.06,DION),$P($G(^DGPT(DA(1),"M",DA,81)),U,6))
S X=$G(X(1))
Q
18 N X,X1,X2 S DIXR=1230 D X18(U) K X2 M X2=X D X18("F") K X1 M X1=X
I $G(X(2))]"" D
. D KPTFMD^DGPTDDCR(.X,.DA,"M ICD17")
K X M X=X2 I $G(X(2))]"" D
. D SPTFMD^DGPTDDCR(.X,.DA,"M ICD17")
Q
X18(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,81.07,DION),$P($G(^DGPT(DA(1),"M",DA,81)),U,7))
S X=$G(X(1))
Q
19 N X,X1,X2 S DIXR=1231 D X19(U) K X2 M X2=X D X19("F") K X1 M X1=X
I $G(X(2))]"" D
. D KPTFMD^DGPTDDCR(.X,.DA,"M ICD18")
K X M X=X2 I $G(X(2))]"" D
. D SPTFMD^DGPTDDCR(.X,.DA,"M ICD18")
Q
X19(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,81.08,DION),$P($G(^DGPT(DA(1),"M",DA,81)),U,8))
S X=$G(X(1))
Q
20 N X,X1,X2 S DIXR=1232 D X20(U) K X2 M X2=X D X20("F") K X1 M X1=X
I $G(X(2))]"" D
. D KPTFMD^DGPTDDCR(.X,.DA,"M ICD19")
K X M X=X2 I $G(X(2))]"" D
. D SPTFMD^DGPTDDCR(.X,.DA,"M ICD19")
Q
X20(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,81.09,DION),$P($G(^DGPT(DA(1),"M",DA,81)),U,9))
S X=$G(X(1))
Q
21 N X,X1,X2 S DIXR=1233 D X21(U) K X2 M X2=X D X21("F") K X1 M X1=X
I $G(X(2))]"" D
. D KPTFMD^DGPTDDCR(.X,.DA,"M ICD20")
K X M X=X2 I $G(X(2))]"" D
. D SPTFMD^DGPTDDCR(.X,.DA,"M ICD20")
Q
X21(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,81.1,DION),$P($G(^DGPT(DA(1),"M",DA,81)),U,10))
S X=$G(X(1))
Q
22 N X,X1,X2 S DIXR=1234 D X22(U) K X2 M X2=X D X22("F") K X1 M X1=X
I $G(X(2))]"" D
. D KPTFMD^DGPTDDCR(.X,.DA,"M ICD21")
K X M X=X2 I $G(X(2))]"" D
. D SPTFMD^DGPTDDCR(.X,.DA,"M ICD21")
Q
X22(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,81.11,DION),$P($G(^DGPT(DA(1),"M",DA,81)),U,11))
S X=$G(X(1))
Q
23 N X,X1,X2 S DIXR=1235 D X23(U) K X2 M X2=X D X23("F") K X1 M X1=X
I $G(X(2))]"" D
. D KPTFMD^DGPTDDCR(.X,.DA,"M ICD22")
K X M X=X2 I $G(X(2))]"" D
. D SPTFMD^DGPTDDCR(.X,.DA,"M ICD22")
Q
X23(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,81.12,DION),$P($G(^DGPT(DA(1),"M",DA,81)),U,12))
S X=$G(X(1))
Q
24 N X,X1,X2 S DIXR=1236 D X24(U) K X2 M X2=X D X24("F") K X1 M X1=X
I $G(X(2))]"" D
. D KPTFMD^DGPTDDCR(.X,.DA,"M ICD23")
K X M X=X2 I $G(X(2))]"" D
. D SPTFMD^DGPTDDCR(.X,.DA,"M ICD23")
Q
X24(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,81.13,DION),$P($G(^DGPT(DA(1),"M",DA,81)),U,13))
S X=$G(X(1))
Q
25 N X,X1,X2 S DIXR=1237 D X25(U) K X2 M X2=X D X25("F") K X1 M X1=X
I $G(X(2))]"" D
. D KPTFMD^DGPTDDCR(.X,.DA,"M ICD24")
K X M X=X2 I $G(X(2))]"" D
. D SPTFMD^DGPTDDCR(.X,.DA,"M ICD24")
Q
X25(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,81.14,DION),$P($G(^DGPT(DA(1),"M",DA,81)),U,14))
S X=$G(X(1))
Q
26 N X,X1,X2 S DIXR=1238 D X26(U) K X2 M X2=X D X26("F") K X1 M X1=X
I $G(X(2))]"" D
. D KPTFMD^DGPTDDCR(.X,.DA,"M ICD25")
K X M X=X2 I $G(X(2))]"" D
. D SPTFMD^DGPTDDCR(.X,.DA,"M ICD25")
Q
X26(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,81.15,DION),$P($G(^DGPT(DA(1),"M",DA,81)),U,15))
S X=$G(X(1))
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HDGX5FD10 12562 printed Dec 13, 2024@02:59:41 Page 2
DGX5FD10 ; ;01/03/22
+1 ;;
1 NEW X,X1,X2
SET DIXR=835
DO X1(U)
KILL X2
MERGE X2=X
DO X1("F")
KILL X1
MERGE X1=X
+1 Begin DoDot:1
+2 DO NOTIFY^DGPTDD(.X1,.X2,.DA,45,"MOVEMENT","KILL")
End DoDot:1
+3 KILL X
MERGE X=X2
Begin DoDot:1
+4 DO NOTIFY^DGPTDD(.X1,.X2,.DA,45,"MOVEMENT","SET")
End DoDot:1
+5 QUIT
X1(DION) KILL X
+1 SET X(1)=$GET(@DIEZTMP@("V",45.02,DIIENS,.01,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,1))
+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(3)=$GET(@DIEZTMP@("V",45.02,DIIENS,6,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,6))
+4 SET X(4)=$GET(@DIEZTMP@("V",45.02,DIIENS,7,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,7))
+5 SET X(5)=$GET(@DIEZTMP@("V",45.02,DIIENS,8,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,8))
+6 SET X(6)=$GET(@DIEZTMP@("V",45.02,DIIENS,9,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,9))
+7 SET X(7)=$GET(@DIEZTMP@("V",45.02,DIIENS,11,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,11))
+8 SET X(8)=$GET(@DIEZTMP@("V",45.02,DIIENS,12,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,12))
+9 SET X(9)=$GET(@DIEZTMP@("V",45.02,DIIENS,13,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,13))
+10 SET X(10)=$GET(@DIEZTMP@("V",45.02,DIIENS,14,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,14))
+11 SET X(11)=$GET(@DIEZTMP@("V",45.02,DIIENS,15,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,15))
+12 SET X(12)=$GET(@DIEZTMP@("V",45.02,DIIENS,81.01,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,81)),U,1))
+13 SET X(13)=$GET(@DIEZTMP@("V",45.02,DIIENS,81.02,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,81)),U,2))
+14 SET X(14)=$GET(@DIEZTMP@("V",45.02,DIIENS,81.03,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,81)),U,3))
+15 SET X(15)=$GET(@DIEZTMP@("V",45.02,DIIENS,81.04,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,81)),U,4))
+16 SET X(16)=$GET(@DIEZTMP@("V",45.02,DIIENS,81.05,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,81)),U,5))
+17 SET X(17)=$GET(@DIEZTMP@("V",45.02,DIIENS,81.06,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,81)),U,6))
+18 SET X(18)=$GET(@DIEZTMP@("V",45.02,DIIENS,81.07,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,81)),U,7))
+19 SET X(19)=$GET(@DIEZTMP@("V",45.02,DIIENS,81.08,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,81)),U,8))
+20 SET X(20)=$GET(@DIEZTMP@("V",45.02,DIIENS,81.09,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,81)),U,9))
+21 SET X(21)=$GET(@DIEZTMP@("V",45.02,DIIENS,81.1,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,81)),U,10))
+22 SET X(22)=$GET(@DIEZTMP@("V",45.02,DIIENS,81.11,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,81)),U,11))
+23 SET X(23)=$GET(@DIEZTMP@("V",45.02,DIIENS,81.12,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,81)),U,12))
+24 SET X(24)=$GET(@DIEZTMP@("V",45.02,DIIENS,81.13,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,81)),U,13))
+25 SET X(25)=$GET(@DIEZTMP@("V",45.02,DIIENS,81.14,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,81)),U,14))
+26 SET X(26)=$GET(@DIEZTMP@("V",45.02,DIIENS,81.15,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,81)),U,15))
+27 SET X=$GET(X(1))
+28 QUIT
2 NEW X,X1,X2
SET DIXR=1177
DO X2(U)
KILL X2
MERGE X2=X
DO X2("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(2))]""
Begin DoDot:1
+2 DO KPTFMD^DGPTDDCR(.X,.DA,"M ICD1")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SPTFMD^DGPTDDCR(.X,.DA,"M ICD1")
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,5,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,5))
+3 SET X=$GET(X(1))
+4 QUIT
3 NEW X,X1,X2
SET DIXR=1178
DO X3(U)
KILL X2
MERGE X2=X
DO X3("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(2))]""
Begin DoDot:1
+2 DO KPTFMD^DGPTDDCR(.X,.DA,"M ICD10")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SPTFMD^DGPTDDCR(.X,.DA,"M ICD10")
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,15,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,15))
+3 SET X=$GET(X(1))
+4 QUIT
4 NEW X,X1,X2
SET DIXR=1179
DO X4(U)
KILL X2
MERGE X2=X
DO X4("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(2))]""
Begin DoDot:1
+2 DO KPTFMD^DGPTDDCR(.X,.DA,"M ICD2")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SPTFMD^DGPTDDCR(.X,.DA,"M ICD2")
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,6,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,6))
+3 SET X=$GET(X(1))
+4 QUIT
5 NEW X,X1,X2
SET DIXR=1180
DO X5(U)
KILL X2
MERGE X2=X
DO X5("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(2))]""
Begin DoDot:1
+2 DO KPTFMD^DGPTDDCR(.X,.DA,"M ICD3")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SPTFMD^DGPTDDCR(.X,.DA,"M ICD3")
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,7,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,7))
+3 SET X=$GET(X(1))
+4 QUIT
6 NEW X,X1,X2
SET DIXR=1181
DO X6(U)
KILL X2
MERGE X2=X
DO X6("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(2))]""
Begin DoDot:1
+2 DO KPTFMD^DGPTDDCR(.X,.DA,"M ICD4")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SPTFMD^DGPTDDCR(.X,.DA,"M ICD4")
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,8,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,8))
+3 SET X=$GET(X(1))
+4 QUIT
7 NEW X,X1,X2
SET DIXR=1182
DO X7(U)
KILL X2
MERGE X2=X
DO X7("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(2))]""
Begin DoDot:1
+2 DO KPTFMD^DGPTDDCR(.X,.DA,"M ICD5")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SPTFMD^DGPTDDCR(.X,.DA,"M ICD5")
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,9,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,9))
+3 SET X=$GET(X(1))
+4 QUIT
8 NEW X,X1,X2
SET DIXR=1183
DO X8(U)
KILL X2
MERGE X2=X
DO X8("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(2))]""
Begin DoDot:1
+2 DO KPTFMD^DGPTDDCR(.X,.DA,"M ICD6")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SPTFMD^DGPTDDCR(.X,.DA,"M ICD6")
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,11,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,11))
+3 SET X=$GET(X(1))
+4 QUIT
9 NEW X,X1,X2
SET DIXR=1184
DO X9(U)
KILL X2
MERGE X2=X
DO X9("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(2))]""
Begin DoDot:1
+2 DO KPTFMD^DGPTDDCR(.X,.DA,"M ICD7")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SPTFMD^DGPTDDCR(.X,.DA,"M ICD7")
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,12,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,12))
+3 SET X=$GET(X(1))
+4 QUIT
10 NEW X,X1,X2
SET DIXR=1185
DO X10(U)
KILL X2
MERGE X2=X
DO X10("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(2))]""
Begin DoDot:1
+2 DO KPTFMD^DGPTDDCR(.X,.DA,"M ICD8")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SPTFMD^DGPTDDCR(.X,.DA,"M ICD8")
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,13,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,0)),U,13))
+3 SET X=$GET(X(1))
+4 QUIT
11 NEW X,X1,X2
SET DIXR=1186
DO X11(U)
KILL X2
MERGE X2=X
DO X11("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(2))]""
Begin DoDot:1
+2 DO KPTFMD^DGPTDDCR(.X,.DA,"M ICD9")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SPTFMD^DGPTDDCR(.X,.DA,"M ICD9")
End DoDot:1
+5 QUIT
X11(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
12 NEW X,X1,X2
SET DIXR=1224
DO X12(U)
KILL X2
MERGE X2=X
DO X12("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(2))]""
Begin DoDot:1
+2 DO KPTFMD^DGPTDDCR(.X,.DA,"M ICD11")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SPTFMD^DGPTDDCR(.X,.DA,"M ICD11")
End DoDot:1
+5 QUIT
X12(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,81.01,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,81)),U,1))
+3 SET X=$GET(X(1))
+4 QUIT
13 NEW X,X1,X2
SET DIXR=1225
DO X13(U)
KILL X2
MERGE X2=X
DO X13("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(2))]""
Begin DoDot:1
+2 DO KPTFMD^DGPTDDCR(.X,.DA,"M ICD12")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SPTFMD^DGPTDDCR(.X,.DA,"M ICD12")
End DoDot:1
+5 QUIT
X13(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,81.02,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,81)),U,2))
+3 SET X=$GET(X(1))
+4 QUIT
14 NEW X,X1,X2
SET DIXR=1226
DO X14(U)
KILL X2
MERGE X2=X
DO X14("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(2))]""
Begin DoDot:1
+2 DO KPTFMD^DGPTDDCR(.X,.DA,"M ICD13")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SPTFMD^DGPTDDCR(.X,.DA,"M ICD13")
End DoDot:1
+5 QUIT
X14(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,81.03,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,81)),U,3))
+3 SET X=$GET(X(1))
+4 QUIT
15 NEW X,X1,X2
SET DIXR=1227
DO X15(U)
KILL X2
MERGE X2=X
DO X15("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(2))]""
Begin DoDot:1
+2 DO KPTFMD^DGPTDDCR(.X,.DA,"M ICD14")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SPTFMD^DGPTDDCR(.X,.DA,"M ICD14")
End DoDot:1
+5 QUIT
X15(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,81.04,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,81)),U,4))
+3 SET X=$GET(X(1))
+4 QUIT
16 NEW X,X1,X2
SET DIXR=1228
DO X16(U)
KILL X2
MERGE X2=X
DO X16("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(2))]""
Begin DoDot:1
+2 DO KPTFMD^DGPTDDCR(.X,.DA,"M ICD15")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SPTFMD^DGPTDDCR(.X,.DA,"M ICD15")
End DoDot:1
+5 QUIT
X16(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,81.05,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,81)),U,5))
+3 SET X=$GET(X(1))
+4 QUIT
17 NEW X,X1,X2
SET DIXR=1229
DO X17(U)
KILL X2
MERGE X2=X
DO X17("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(2))]""
Begin DoDot:1
+2 DO KPTFMD^DGPTDDCR(.X,.DA,"M ICD16")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SPTFMD^DGPTDDCR(.X,.DA,"M ICD16")
End DoDot:1
+5 QUIT
X17(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,81.06,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,81)),U,6))
+3 SET X=$GET(X(1))
+4 QUIT
18 NEW X,X1,X2
SET DIXR=1230
DO X18(U)
KILL X2
MERGE X2=X
DO X18("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(2))]""
Begin DoDot:1
+2 DO KPTFMD^DGPTDDCR(.X,.DA,"M ICD17")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SPTFMD^DGPTDDCR(.X,.DA,"M ICD17")
End DoDot:1
+5 QUIT
X18(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,81.07,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,81)),U,7))
+3 SET X=$GET(X(1))
+4 QUIT
19 NEW X,X1,X2
SET DIXR=1231
DO X19(U)
KILL X2
MERGE X2=X
DO X19("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(2))]""
Begin DoDot:1
+2 DO KPTFMD^DGPTDDCR(.X,.DA,"M ICD18")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SPTFMD^DGPTDDCR(.X,.DA,"M ICD18")
End DoDot:1
+5 QUIT
X19(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,81.08,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,81)),U,8))
+3 SET X=$GET(X(1))
+4 QUIT
20 NEW X,X1,X2
SET DIXR=1232
DO X20(U)
KILL X2
MERGE X2=X
DO X20("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(2))]""
Begin DoDot:1
+2 DO KPTFMD^DGPTDDCR(.X,.DA,"M ICD19")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SPTFMD^DGPTDDCR(.X,.DA,"M ICD19")
End DoDot:1
+5 QUIT
X20(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,81.09,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,81)),U,9))
+3 SET X=$GET(X(1))
+4 QUIT
21 NEW X,X1,X2
SET DIXR=1233
DO X21(U)
KILL X2
MERGE X2=X
DO X21("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(2))]""
Begin DoDot:1
+2 DO KPTFMD^DGPTDDCR(.X,.DA,"M ICD20")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SPTFMD^DGPTDDCR(.X,.DA,"M ICD20")
End DoDot:1
+5 QUIT
X21(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,81.1,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,81)),U,10))
+3 SET X=$GET(X(1))
+4 QUIT
22 NEW X,X1,X2
SET DIXR=1234
DO X22(U)
KILL X2
MERGE X2=X
DO X22("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(2))]""
Begin DoDot:1
+2 DO KPTFMD^DGPTDDCR(.X,.DA,"M ICD21")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SPTFMD^DGPTDDCR(.X,.DA,"M ICD21")
End DoDot:1
+5 QUIT
X22(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,81.11,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,81)),U,11))
+3 SET X=$GET(X(1))
+4 QUIT
23 NEW X,X1,X2
SET DIXR=1235
DO X23(U)
KILL X2
MERGE X2=X
DO X23("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(2))]""
Begin DoDot:1
+2 DO KPTFMD^DGPTDDCR(.X,.DA,"M ICD22")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SPTFMD^DGPTDDCR(.X,.DA,"M ICD22")
End DoDot:1
+5 QUIT
X23(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,81.12,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,81)),U,12))
+3 SET X=$GET(X(1))
+4 QUIT
24 NEW X,X1,X2
SET DIXR=1236
DO X24(U)
KILL X2
MERGE X2=X
DO X24("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(2))]""
Begin DoDot:1
+2 DO KPTFMD^DGPTDDCR(.X,.DA,"M ICD23")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SPTFMD^DGPTDDCR(.X,.DA,"M ICD23")
End DoDot:1
+5 QUIT
X24(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,81.13,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,81)),U,13))
+3 SET X=$GET(X(1))
+4 QUIT
25 NEW X,X1,X2
SET DIXR=1237
DO X25(U)
KILL X2
MERGE X2=X
DO X25("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(2))]""
Begin DoDot:1
+2 DO KPTFMD^DGPTDDCR(.X,.DA,"M ICD24")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SPTFMD^DGPTDDCR(.X,.DA,"M ICD24")
End DoDot:1
+5 QUIT
X25(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,81.14,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,81)),U,14))
+3 SET X=$GET(X(1))
+4 QUIT
26 NEW X,X1,X2
SET DIXR=1238
DO X26(U)
KILL X2
MERGE X2=X
DO X26("F")
KILL X1
MERGE X1=X
+1 IF $GET(X(2))]""
Begin DoDot:1
+2 DO KPTFMD^DGPTDDCR(.X,.DA,"M ICD25")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(2))]""
Begin DoDot:1
+4 DO SPTFMD^DGPTDDCR(.X,.DA,"M ICD25")
End DoDot:1
+5 QUIT
X26(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,81.15,DION),$PIECE($GET(^DGPT(DA(1),"M",DA,81)),U,15))
+3 SET X=$GET(X(1))
+4 QUIT