VistA-WorldVistAEHR/r/REGISTRATION-DGQE-DG-DPT-GR.../DGRPTX30.m

22 lines
892 B
Mathematica

DGRPTX30 ; ;12/08/05
;;
1 N X,X1,X2 S DIXR=602 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