IBINI04S ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQ(355.4) F I=1:2 S X=$T(Q+I) Q:X="" S Y=$E($T(Q+I+1),4,999),X=$E(X,4,999) S:$A(Y)=126 I=I+1,Y=$E(Y,2,999)_$E($T(Q+I+1),5,99) S:$A(Y)=61 Y=$E(Y,2,999) X NO E S @X=Y
Q Q
;;^DIC(355.4,0,"GL")
;;=^IBA(355.4,
;;^DIC("B","ANNUAL BENEFITS",355.4)
;;=
;;^DIC(355.4,"%D",0)
;;=^^4^4^2940214^^^^
;;^DIC(355.4,"%D",1,0)
;;=This file contains the fields to maintain the annual benefits by year
;;^DIC(355.4,"%D",2,0)
;;=for an insurance policy.
;;^DIC(355.4,"%D",3,0)
;;=
;;^DIC(355.4,"%D",4,0)
;;=Per VHA Directive 10-93-142, this file definition should not be modified.
;;^DD(355.4,0)
;;=FIELD^^5.14^60
;;^DD(355.4,0,"DDA")
;;=N
;;^DD(355.4,0,"DT")
;;=2940228
;;^DD(355.4,0,"ID",.02)
;;=S %I=Y,Y=$S('$D(^(0)):"",$D(^IBA(355.3,+$P(^(0),U,2),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(355.3,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
;;^DD(355.4,0,"IX","APY",355.4,.02)
;;=
;;^DD(355.4,0,"IX","APY1",355.4,.01)
;;=
;;^DD(355.4,0,"IX","B",355.4,.01)
;;=
;;^DD(355.4,0,"IX","C",355.4,.02)
;;=
;;^DD(355.4,0,"NM","ANNUAL BENEFITS")
;;=
;;^DD(355.4,.01,0)
;;=BENEFIT YEAR BEGINNING ON^RDX^^0;1^S %DT="EX" D:$D(X) ^%DT S X=Y K:Y<1 X D DATECHK^IBCNSA2
;;^DD(355.4,.01,1,0)
;;=^.1
;;^DD(355.4,.01,1,1,0)
;;=355.4^B
;;^DD(355.4,.01,1,1,1)
;;=S ^IBA(355.4,"B",$E(X,1,30),DA)=""
;;^DD(355.4,.01,1,1,2)
;;=K ^IBA(355.4,"B",$E(X,1,30),DA)
;;^DD(355.4,.01,1,2,0)
;;=355.4^APY1^MUMPS
;;^DD(355.4,.01,1,2,1)
;;=S:$P(^IBA(355.4,DA,0),U,2) ^IBA(355.4,"APY",$P(^(0),U,2),-X,DA)=""
;;^DD(355.4,.01,1,2,2)
;;=K ^IBA(355.4,"APY",+$P(^IBA(355.4,DA,0),U,2),-X,DA)
;;^DD(355.4,.01,1,2,3)
;;=DO NOT DELETE
;;^DD(355.4,.01,1,2,"%D",0)
;;=^^1^1^2930831^^^^
;;^DD(355.4,.01,1,2,"%D",1,0)
;;=Cross-reference of all policies by calendar year.
;;^DD(355.4,.01,1,2,"DT")
;;=2930831
;;^DD(355.4,.01,1,3,0)
;;=^^TRIGGER^355.4^1.01
;;^DD(355.4,.01,1,3,1)
;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y(1)=$S($D(^IBA(355.4,D0,1)):^(1),1:"") S X=$P(Y(1),U,1)="" I X S X=DIV S Y(1)=$S($D(^IBA(355.4,D0,1)):^(1),1:"") S X=$P(Y(1),U,1),X=X S DIU=X K Y S X=DIV S X=DT X ^DD(355.4,.01,1,3,1.4)
;;^DD(355.4,.01,1,3,1.4)
;;=S DIH=$S($D(^IBA(355.4,DIV(0),1)):^(1),1:""),DIV=X S $P(^(1),U,1)=DIV,DIH=355.4,DIG=1.01 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
;;^DD(355.4,.01,1,3,2)
;;=Q
;;^DD(355.4,.01,1,3,"CREATE CONDITION")
;;=#1.01=""
;;^DD(355.4,.01,1,3,"CREATE VALUE")
;;=S X=DT
;;^DD(355.4,.01,1,3,"DELETE VALUE")
;;=NO EFFECT
;;^DD(355.4,.01,1,3,"DT")
;;=2930604
;;^DD(355.4,.01,1,3,"FIELD")
;;=#1.01
;;^DD(355.4,.01,1,4,0)
;;=^^TRIGGER^355.4^1.02
;;^DD(355.4,.01,1,4,1)
;;=X ^DD(355.4,.01,1,4,1.3) I X S X=DIV S Y(1)=$S($D(^IBA(355.4,D0,1)):^(1),1:"") S X=$P(Y(1),U,2),X=X S DIU=X K Y S X=DIV S X=DUZ X ^DD(355.4,.01,1,4,1.4)
;;^DD(355.4,.01,1,4,1.3)
;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y(1)=$S($D(^IBA(355.4,D0,1)):^(1),1:"") S X=$S('$D(^VA(200,+$P(Y(1),U,2),0)):"",1:$P(^(0),U,1))=""
;;^DD(355.4,.01,1,4,1.4)
;;=S DIH=$S($D(^IBA(355.4,DIV(0),1)):^(1),1:""),DIV=X S $P(^(1),U,2)=DIV,DIH=355.4,DIG=1.02 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
;;^DD(355.4,.01,1,4,2)
;;=Q
;;^DD(355.4,.01,1,4,"CREATE CONDITION")
;;=#1.02=""
;;^DD(355.4,.01,1,4,"CREATE VALUE")
;;=S X=DUZ
;;^DD(355.4,.01,1,4,"DELETE VALUE")
;;=NO EFFECT
;;^DD(355.4,.01,1,4,"DT")
;;=2930604
;;^DD(355.4,.01,1,4,"FIELD")
;;=#1.02
;;^DD(355.4,.01,3)
;;=Partial benefit years not allowed.
;;^DD(355.4,.01,21,0)
;;=^^1^1^2940228^^^^
;;^DD(355.4,.01,21,1,0)
;;=This is the year to which the health insurance policy's benefits apply.
;;^DD(355.4,.01,"DT")
;;=2930903
;;^DD(355.4,.02,0)
;;=HEALTH INSURANCE POLICY^P355.3'^IBA(355.3,^0;2^Q
;;^DD(355.4,.02,1,0)
;;=^.1
;;^DD(355.4,.02,1,1,0)
;;=355.4^C
IBINI04S ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQ(355.4)
QUIT
FOR I=1:2
SET X=$TEXT(Q+I)
IF X=""
QUIT
SET Y=$EXTRACT($TEXT(Q+I+1),4,999)
SET X=$EXTRACT(X,4,999)
IF $ASCII(Y)=126
SET I=I+1
SET Y=$EXTRACT(Y,2,999)_$EXTRACT($TEXT(Q+I+1),5,99)
IF $ASCII(Y)=61
SET Y=$EXTRACT(Y,2,999)
XECUTE NO
IF '$TEST
SET @X=Y
Q QUIT
+1 ;;^DIC(355.4,0,"GL")
+2 ;;=^IBA(355.4,
+3 ;;^DIC("B","ANNUAL BENEFITS",355.4)
+4 ;;=
+5 ;;^DIC(355.4,"%D",0)
+6 ;;=^^4^4^2940214^^^^
+7 ;;^DIC(355.4,"%D",1,0)
+8 ;;=This file contains the fields to maintain the annual benefits by year
+9 ;;^DIC(355.4,"%D",2,0)
+10 ;;=for an insurance policy.
+11 ;;^DIC(355.4,"%D",3,0)
+12 ;;=
+13 ;;^DIC(355.4,"%D",4,0)
+14 ;;=Per VHA Directive 10-93-142, this file definition should not be modified.
+15 ;;^DD(355.4,0)
+16 ;;=FIELD^^5.14^60
+17 ;;^DD(355.4,0,"DDA")
+18 ;;=N
+19 ;;^DD(355.4,0,"DT")
+20 ;;=2940228
+21 ;;^DD(355.4,0,"ID",.02)
+22 ;;=S %I=Y,Y=$S('$D(^(0)):"",$D(^IBA(355.3,+$P(^(0),U,2),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(355.3,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
+23 ;;^DD(355.4,0,"IX","APY",355.4,.02)
+24 ;;=
+25 ;;^DD(355.4,0,"IX","APY1",355.4,.01)
+26 ;;=
+27 ;;^DD(355.4,0,"IX","B",355.4,.01)
+28 ;;=
+29 ;;^DD(355.4,0,"IX","C",355.4,.02)
+30 ;;=
+31 ;;^DD(355.4,0,"NM","ANNUAL BENEFITS")
+32 ;;=
+33 ;;^DD(355.4,.01,0)
+34 ;;=BENEFIT YEAR BEGINNING ON^RDX^^0;1^S %DT="EX" D:$D(X) ^%DT S X=Y K:Y<1 X D DATECHK^IBCNSA2
+35 ;;^DD(355.4,.01,1,0)
+36 ;;=^.1
+37 ;;^DD(355.4,.01,1,1,0)
+38 ;;=355.4^B
+39 ;;^DD(355.4,.01,1,1,1)
+40 ;;=S ^IBA(355.4,"B",$E(X,1,30),DA)=""
+41 ;;^DD(355.4,.01,1,1,2)
+42 ;;=K ^IBA(355.4,"B",$E(X,1,30),DA)
+43 ;;^DD(355.4,.01,1,2,0)
+44 ;;=355.4^APY1^MUMPS
+45 ;;^DD(355.4,.01,1,2,1)
+46 ;;=S:$P(^IBA(355.4,DA,0),U,2) ^IBA(355.4,"APY",$P(^(0),U,2),-X,DA)=""
+47 ;;^DD(355.4,.01,1,2,2)
+48 ;;=K ^IBA(355.4,"APY",+$P(^IBA(355.4,DA,0),U,2),-X,DA)
+49 ;;^DD(355.4,.01,1,2,3)
+50 ;;=DO NOT DELETE
+51 ;;^DD(355.4,.01,1,2,"%D",0)
+52 ;;=^^1^1^2930831^^^^
+53 ;;^DD(355.4,.01,1,2,"%D",1,0)
+54 ;;=Cross-reference of all policies by calendar year.
+55 ;;^DD(355.4,.01,1,2,"DT")
+56 ;;=2930831
+57 ;;^DD(355.4,.01,1,3,0)
+58 ;;=^^TRIGGER^355.4^1.01
+59 ;;^DD(355.4,.01,1,3,1)
+60 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y(1)=$S($D(^IBA(355.4,D0,1)):^(1),1:"") S X=$P(Y(1),U,1)="" I X S X=DIV S Y(1)=$S($D(^IBA(355.4,D0,1)):^(1),1:"") S X=$P(Y(1),U,1),X=X S DIU=X K Y S X=DIV S X=DT X ^DD(355.4,.01,1,3,1.4)
+61 ;;^DD(355.4,.01,1,3,1.4)
+62 ;;=S DIH=$S($D(^IBA(355.4,DIV(0),1)):^(1),1:""),DIV=X S $P(^(1),U,1)=DIV,DIH=355.4,DIG=1.01 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
+63 ;;^DD(355.4,.01,1,3,2)
+64 ;;=Q
+65 ;;^DD(355.4,.01,1,3,"CREATE CONDITION")
+66 ;;=#1.01=""
+67 ;;^DD(355.4,.01,1,3,"CREATE VALUE")
+68 ;;=S X=DT
+69 ;;^DD(355.4,.01,1,3,"DELETE VALUE")
+70 ;;=NO EFFECT
+71 ;;^DD(355.4,.01,1,3,"DT")
+72 ;;=2930604
+73 ;;^DD(355.4,.01,1,3,"FIELD")
+74 ;;=#1.01
+75 ;;^DD(355.4,.01,1,4,0)
+76 ;;=^^TRIGGER^355.4^1.02
+77 ;;^DD(355.4,.01,1,4,1)
+78 ;;=X ^DD(355.4,.01,1,4,1.3) I X S X=DIV S Y(1)=$S($D(^IBA(355.4,D0,1)):^(1),1:"") S X=$P(Y(1),U,2),X=X S DIU=X K Y S X=DIV S X=DUZ X ^DD(355.4,.01,1,4,1.4)
+79 ;;^DD(355.4,.01,1,4,1.3)
+80 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y(1)=$S($D(^IBA(355.4,D0,1)):^(1),1:"") S X=$S('$D(^VA(200,+$P(Y(1),U,2),0)):"",1:$P(^(0),U,1))=""
+81 ;;^DD(355.4,.01,1,4,1.4)
+82 ;;=S DIH=$S($D(^IBA(355.4,DIV(0),1)):^(1),1:""),DIV=X S $P(^(1),U,2)=DIV,DIH=355.4,DIG=1.02 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
+83 ;;^DD(355.4,.01,1,4,2)
+84 ;;=Q
+85 ;;^DD(355.4,.01,1,4,"CREATE CONDITION")
+86 ;;=#1.02=""
+87 ;;^DD(355.4,.01,1,4,"CREATE VALUE")
+88 ;;=S X=DUZ
+89 ;;^DD(355.4,.01,1,4,"DELETE VALUE")
+90 ;;=NO EFFECT
+91 ;;^DD(355.4,.01,1,4,"DT")
+92 ;;=2930604
+93 ;;^DD(355.4,.01,1,4,"FIELD")
+94 ;;=#1.02
+95 ;;^DD(355.4,.01,3)
+96 ;;=Partial benefit years not allowed.
+97 ;;^DD(355.4,.01,21,0)
+98 ;;=^^1^1^2940228^^^^
+99 ;;^DD(355.4,.01,21,1,0)
+100 ;;=This is the year to which the health insurance policy's benefits apply.
+101 ;;^DD(355.4,.01,"DT")
+102 ;;=2930903
+103 ;;^DD(355.4,.02,0)
+104 ;;=HEALTH INSURANCE POLICY^P355.3'^IBA(355.3,^0;2^Q
+105 ;;^DD(355.4,.02,1,0)
+106 ;;=^.1
+107 ;;^DD(355.4,.02,1,1,0)
+108 ;;=355.4^C