Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: IBXS310

IBXS310.m

Go to the documentation of this file.
  1. IBXS310 ; ;11/02/18
  1. ;;
  1. 1 N X,X1,X2 S DIXR=139 D X1(U) K X2 M X2=X D X1("F") K X1 M X1=X
  1. D
  1. . N DIEZCOND,DIEXARR M DIEXARR=X S DIEZCOND=1
  1. . S X=$S($O(^DGCR(399,DA,"PRV",0)):1,1:0)
  1. . S DIEZCOND=$G(X) K X M X=DIEXARR Q:'DIEZCOND
  1. . D:X1(1)'=X2(1)!(X1(5)'=X2(5)) DELID^IBCEP3(DA,1) D:X1(2)'=X2(2)!(X1(4)'=X2(4)) DELID^IBCEP3(DA,2) D:X1(3)'=X2(3)!(X1(6)'=X2(6)) DELID^IBCEP3(DA,3)
  1. K X M X=X2 D
  1. . N DIEZCOND,DIEXARR M DIEXARR=X S DIEZCOND=1
  1. . S X=$S($O(^DGCR(399,DA,"PRV",0)):1,1:0)
  1. . S DIEZCOND=$G(X) K X M X=DIEXARR Q:'DIEZCOND
  1. . D:X1(1)'=X2(1)!(X1(5)'=X2(5)) SETID^IBCEP3(DA,1) D:X1(2)'=X2(2)!(X1(4)'=X2(4)) SETID^IBCEP3(DA,2) D:X1(3)'=X2(3)!(X1(6)'=X2(6)) SETID^IBCEP3(DA,3)
  1. Q
  1. X1(DION) K X
  1. S X(1)=$G(@DIEZTMP@("V",399,DIIENS,101,DION),$P($G(^DGCR(399,DA,"M")),U,1))
  1. S X(2)=$G(@DIEZTMP@("V",399,DIIENS,102,DION),$P($G(^DGCR(399,DA,"M")),U,2))
  1. S X(3)=$G(@DIEZTMP@("V",399,DIIENS,103,DION),$P($G(^DGCR(399,DA,"M")),U,3))
  1. S X(4)=$G(@DIEZTMP@("V",399,DIIENS,113,DION),$P($G(^DGCR(399,DA,"M")),U,13))
  1. S X(5)=$G(@DIEZTMP@("V",399,DIIENS,112,DION),$P($G(^DGCR(399,DA,"M")),U,12))
  1. S X(6)=$G(@DIEZTMP@("V",399,DIIENS,114,DION),$P($G(^DGCR(399,DA,"M")),U,14))
  1. S X=$G(X(1))
  1. Q
  1. 2 N X,X1,X2 S DIXR=820 D X2(U) K X2 M X2=X D X2("F") K X1 M X1=X
  1. D
  1. . D TAX^IBCEF79(DA)
  1. K X M X=X2 D
  1. . D TAX^IBCEF79(DA)
  1. Q
  1. X2(DION) K X
  1. S X(1)=$G(@DIEZTMP@("V",399,DIIENS,.22,DION),$P($G(^DGCR(399,DA,0)),U,22))
  1. S X(2)=$G(@DIEZTMP@("V",399,DIIENS,232,DION),$P($G(^DGCR(399,DA,"U2")),U,10))
  1. S X(3)=$G(@DIEZTMP@("V",399,DIIENS,136,DION),$P($G(^DGCR(399,DA,"MP")),U,2))
  1. S X(4)=$G(@DIEZTMP@("V",399,DIIENS,.19,DION),$P($G(^DGCR(399,DA,0)),U,19))
  1. S X=$G(X(1))
  1. Q