DGX77 ; ;01/03/22
;;
1 N X,X1,X2 S DIXR=1249 D X1(U) K X2 M X2=X D X1("F") K X1 M X1=X
I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D
. D KPTFDD^DGPTDDCR(.X,.DA,"D SD24")
K X M X=X2 I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D
. D SPTFDD^DGPTDDCR(.X,.DA,"D SD24")
Q
X1(DION) K X
S X(1)=$G(@DIEZTMP@("V",45,DIIENS,.01,DION),$P($G(^DGPT(DA,0)),U,1))
S X(2)=$G(@DIEZTMP@("V",45,DIIENS,2,DION),$P($G(^DGPT(DA,0)),U,2))
S X(3)=$G(@DIEZTMP@("V",45,DIIENS,11,DION),$P($G(^DGPT(DA,0)),U,11))
S X(4)=$G(@DIEZTMP@("V",45,DIIENS,79.24915,DION),$P($G(^DGPT(DA,71)),U,15))
S X(5)=$G(@DIEZTMP@("V",45,DIIENS,70,DION),$P($G(^DGPT(DA,70)),U,1))
S X=$G(X(1))
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HDGX77 685 printed Dec 13, 2024@03:00:02 Page 2
DGX77 ; ;01/03/22
+1 ;;
1 NEW X,X1,X2
SET DIXR=1249
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))]""
IF $GET(X(3))]""
IF $GET(X(4))]""
Begin DoDot:1
+2 DO KPTFDD^DGPTDDCR(.X,.DA,"D SD24")
End DoDot:1
+3 KILL X
MERGE X=X2
IF $GET(X(1))]""
IF $GET(X(2))]""
IF $GET(X(3))]""
IF $GET(X(4))]""
Begin DoDot:1
+4 DO SPTFDD^DGPTDDCR(.X,.DA,"D SD24")
End DoDot:1
+5 QUIT
X1(DION) KILL X
+1 SET X(1)=$GET(@DIEZTMP@("V",45,DIIENS,.01,DION),$PIECE($GET(^DGPT(DA,0)),U,1))
+2 SET X(2)=$GET(@DIEZTMP@("V",45,DIIENS,2,DION),$PIECE($GET(^DGPT(DA,0)),U,2))
+3 SET X(3)=$GET(@DIEZTMP@("V",45,DIIENS,11,DION),$PIECE($GET(^DGPT(DA,0)),U,11))
+4 SET X(4)=$GET(@DIEZTMP@("V",45,DIIENS,79.24915,DION),$PIECE($GET(^DGPT(DA,71)),U,15))
+5 SET X(5)=$GET(@DIEZTMP@("V",45,DIIENS,70,DION),$PIECE($GET(^DGPT(DA,70)),U,1))
+6 SET X=$GET(X(1))
+7 QUIT