IBINI04N ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQ(355.3) 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.3,0,"GL")
;;=^IBA(355.3,
;;^DIC("B","GROUP INSURANCE PLAN",355.3)
;;=
;;^DIC(355.3,"%D",0)
;;=^^8^8^2940225^^^^
;;^DIC(355.3,"%D",1,0)
;;=This file contains the relevent data for Group insurance plans.
;;^DIC(355.3,"%D",2,0)
;;=The data in this file is specific to the plan itself.
;;^DIC(355.3,"%D",3,0)
;;=
;;^DIC(355.3,"%D",4,0)
;;=This is in contrast to the patient file which contains data about
;;^DIC(355.3,"%D",5,0)
;;=patient's policies, where the policy may be for a group or Health
;;^DIC(355.3,"%D",6,0)
;;=Insurance Plan.
;;^DIC(355.3,"%D",7,0)
;;=
;;^DIC(355.3,"%D",8,0)
;;=Per VHA Directive 10-93-142, this file definition should not be modified.
;;^DD(355.3,0)
;;=FIELD^^11^17
;;^DD(355.3,0,"DDA")
;;=N
;;^DD(355.3,0,"DT")
;;=2931109
;;^DD(355.3,0,"ID",.02)
;;=W:$P(^(0),U,2)=0 " Individual Policy" W:$P(^(0),U,2) " Group Policy"
;;^DD(355.3,0,"ID",.03)
;;=I $P(^(0),U,3)]"" W " Group Name: ",$P(^(0),U,3)
;;^DD(355.3,0,"ID",.04)
;;=I $P(^(0),U,4)]"" W " Group No: ",$P(^(0),U,4)
;;^DD(355.3,0,"IX","AGNA",355.3,.03)
;;=
;;^DD(355.3,0,"IX","AGNA1",355.3,.01)
;;=
;;^DD(355.3,0,"IX","AGNU",355.3,.04)
;;=
;;^DD(355.3,0,"IX","AGNU1",355.3,.01)
;;=
;;^DD(355.3,0,"IX","B",355.3,.01)
;;=
;;^DD(355.3,0,"IX","D",355.3,.03)
;;=
;;^DD(355.3,0,"IX","E",355.3,.04)
;;=
;;^DD(355.3,0,"NM","GROUP INSURANCE PLAN")
;;=
;;^DD(355.3,0,"PT",2.312,.18)
;;=
;;^DD(355.3,0,"PT",355.4,.02)
;;=
;;^DD(355.3,0,"PT",355.5,.01)
;;=
;;^DD(355.3,.01,0)
;;=INSURANCE COMPANY^RP36'^DIC(36,^0;1^Q
;;^DD(355.3,.01,1,0)
;;=^.1
;;^DD(355.3,.01,1,1,0)
;;=355.3^B
;;^DD(355.3,.01,1,1,1)
;;=S ^IBA(355.3,"B",$E(X,1,30),DA)=""
;;^DD(355.3,.01,1,1,2)
;;=K ^IBA(355.3,"B",$E(X,1,30),DA)
;;^DD(355.3,.01,1,2,0)
;;=^^TRIGGER^355.3^1.01
;;^DD(355.3,.01,1,2,1)
;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y(1)=$S($D(^IBA(355.3,D0,1)):^(1),1:"") S X=$P(Y(1),U,1)="" I X S X=DIV S Y(1)=$S($D(^IBA(355.3,D0,1)):^(1),1:"") S X=$P(Y(1),U,1),X=X S DIU=X K Y X ^DD(355.3,.01,1,2,1.1) X ^DD(355.3,.01,1,2,1.4)
;;^DD(355.3,.01,1,2,1.1)
;;=S X=DIV S %=$P($H,",",2),X=DT_(%\60#60/100+(%\3600)+(%#60/10000)/100)
;;^DD(355.3,.01,1,2,1.4)
;;=S DIH=$S($D(^IBA(355.3,DIV(0),1)):^(1),1:""),DIV=X S $P(^(1),U,1)=DIV,DIH=355.3,DIG=1.01 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
;;^DD(355.3,.01,1,2,2)
;;=Q
;;^DD(355.3,.01,1,2,"%D",0)
;;=^^1^1^2940213^
;;^DD(355.3,.01,1,2,"%D",1,0)
;;=Triggers the date/time entered when creating a new entry.
;;^DD(355.3,.01,1,2,"CREATE CONDITION")
;;=#1.01=""
;;^DD(355.3,.01,1,2,"CREATE VALUE")
;;=NOW
;;^DD(355.3,.01,1,2,"DELETE VALUE")
;;=NO EFFECT
;;^DD(355.3,.01,1,2,"DT")
;;=2940213
;;^DD(355.3,.01,1,2,"FIELD")
;;=#1.01
;;^DD(355.3,.01,1,3,0)
;;=^^TRIGGER^355.3^1.02
;;^DD(355.3,.01,1,3,1)
;;=X ^DD(355.3,.01,1,3,1.3) I X S X=DIV S Y(1)=$S($D(^IBA(355.3,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.3,.01,1,3,1.4)
;;^DD(355.3,.01,1,3,1.3)
;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y(1)=$S($D(^IBA(355.3,D0,1)):^(1),1:"") S X=$S('$D(^VA(200,+$P(Y(1),U,2),0)):"",1:$P(^(0),U,1))=""
;;^DD(355.3,.01,1,3,1.4)
;;=S DIH=$S($D(^IBA(355.3,DIV(0),1)):^(1),1:""),DIV=X S $P(^(1),U,2)=DIV,DIH=355.3,DIG=1.02 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
;;^DD(355.3,.01,1,3,2)
;;=Q
;;^DD(355.3,.01,1,3,"%D",0)
;;=^^1^1^2940213^
;;^DD(355.3,.01,1,3,"%D",1,0)
;;=Triggers the user who created this entry.
;;^DD(355.3,.01,1,3,"CREATE CONDITION")
;;=#1.02=""
;;^DD(355.3,.01,1,3,"CREATE VALUE")
;;=S X=DUZ
;;^DD(355.3,.01,1,3,"DELETE VALUE")
;;=NO EFFECT
IBINI04N ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQ(355.3)
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.3,0,"GL")
+2 ;;=^IBA(355.3,
+3 ;;^DIC("B","GROUP INSURANCE PLAN",355.3)
+4 ;;=
+5 ;;^DIC(355.3,"%D",0)
+6 ;;=^^8^8^2940225^^^^
+7 ;;^DIC(355.3,"%D",1,0)
+8 ;;=This file contains the relevent data for Group insurance plans.
+9 ;;^DIC(355.3,"%D",2,0)
+10 ;;=The data in this file is specific to the plan itself.
+11 ;;^DIC(355.3,"%D",3,0)
+12 ;;=
+13 ;;^DIC(355.3,"%D",4,0)
+14 ;;=This is in contrast to the patient file which contains data about
+15 ;;^DIC(355.3,"%D",5,0)
+16 ;;=patient's policies, where the policy may be for a group or Health
+17 ;;^DIC(355.3,"%D",6,0)
+18 ;;=Insurance Plan.
+19 ;;^DIC(355.3,"%D",7,0)
+20 ;;=
+21 ;;^DIC(355.3,"%D",8,0)
+22 ;;=Per VHA Directive 10-93-142, this file definition should not be modified.
+23 ;;^DD(355.3,0)
+24 ;;=FIELD^^11^17
+25 ;;^DD(355.3,0,"DDA")
+26 ;;=N
+27 ;;^DD(355.3,0,"DT")
+28 ;;=2931109
+29 ;;^DD(355.3,0,"ID",.02)
+30 ;;=W:$P(^(0),U,2)=0 " Individual Policy" W:$P(^(0),U,2) " Group Policy"
+31 ;;^DD(355.3,0,"ID",.03)
+32 ;;=I $P(^(0),U,3)]"" W " Group Name: ",$P(^(0),U,3)
+33 ;;^DD(355.3,0,"ID",.04)
+34 ;;=I $P(^(0),U,4)]"" W " Group No: ",$P(^(0),U,4)
+35 ;;^DD(355.3,0,"IX","AGNA",355.3,.03)
+36 ;;=
+37 ;;^DD(355.3,0,"IX","AGNA1",355.3,.01)
+38 ;;=
+39 ;;^DD(355.3,0,"IX","AGNU",355.3,.04)
+40 ;;=
+41 ;;^DD(355.3,0,"IX","AGNU1",355.3,.01)
+42 ;;=
+43 ;;^DD(355.3,0,"IX","B",355.3,.01)
+44 ;;=
+45 ;;^DD(355.3,0,"IX","D",355.3,.03)
+46 ;;=
+47 ;;^DD(355.3,0,"IX","E",355.3,.04)
+48 ;;=
+49 ;;^DD(355.3,0,"NM","GROUP INSURANCE PLAN")
+50 ;;=
+51 ;;^DD(355.3,0,"PT",2.312,.18)
+52 ;;=
+53 ;;^DD(355.3,0,"PT",355.4,.02)
+54 ;;=
+55 ;;^DD(355.3,0,"PT",355.5,.01)
+56 ;;=
+57 ;;^DD(355.3,.01,0)
+58 ;;=INSURANCE COMPANY^RP36'^DIC(36,^0;1^Q
+59 ;;^DD(355.3,.01,1,0)
+60 ;;=^.1
+61 ;;^DD(355.3,.01,1,1,0)
+62 ;;=355.3^B
+63 ;;^DD(355.3,.01,1,1,1)
+64 ;;=S ^IBA(355.3,"B",$E(X,1,30),DA)=""
+65 ;;^DD(355.3,.01,1,1,2)
+66 ;;=K ^IBA(355.3,"B",$E(X,1,30),DA)
+67 ;;^DD(355.3,.01,1,2,0)
+68 ;;=^^TRIGGER^355.3^1.01
+69 ;;^DD(355.3,.01,1,2,1)
+70 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y(1)=$S($D(^IBA(355.3,D0,1)):^(1),1:"") S X=$P(Y(1),U,1)="" I X S X=DIV S Y(1)=$S($D(^IBA(355.3,D0,1)):^(1),1:"") S X=$P(Y(1),U,1),X=X S DIU=X K Y X ^DD(355.3,.01,1,2,1.1) X ^DD(355.3,.01,1,2,1.4)
+71 ;;^DD(355.3,.01,1,2,1.1)
+72 ;;=S X=DIV S %=$P($H,",",2),X=DT_(%\60#60/100+(%\3600)+(%#60/10000)/100)
+73 ;;^DD(355.3,.01,1,2,1.4)
+74 ;;=S DIH=$S($D(^IBA(355.3,DIV(0),1)):^(1),1:""),DIV=X S $P(^(1),U,1)=DIV,DIH=355.3,DIG=1.01 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
+75 ;;^DD(355.3,.01,1,2,2)
+76 ;;=Q
+77 ;;^DD(355.3,.01,1,2,"%D",0)
+78 ;;=^^1^1^2940213^
+79 ;;^DD(355.3,.01,1,2,"%D",1,0)
+80 ;;=Triggers the date/time entered when creating a new entry.
+81 ;;^DD(355.3,.01,1,2,"CREATE CONDITION")
+82 ;;=#1.01=""
+83 ;;^DD(355.3,.01,1,2,"CREATE VALUE")
+84 ;;=NOW
+85 ;;^DD(355.3,.01,1,2,"DELETE VALUE")
+86 ;;=NO EFFECT
+87 ;;^DD(355.3,.01,1,2,"DT")
+88 ;;=2940213
+89 ;;^DD(355.3,.01,1,2,"FIELD")
+90 ;;=#1.01
+91 ;;^DD(355.3,.01,1,3,0)
+92 ;;=^^TRIGGER^355.3^1.02
+93 ;;^DD(355.3,.01,1,3,1)
+94 ;;=X ^DD(355.3,.01,1,3,1.3) I X S X=DIV S Y(1)=$S($D(^IBA(355.3,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.3,.01,1,3,1.4)
+95 ;;^DD(355.3,.01,1,3,1.3)
+96 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y(1)=$S($D(^IBA(355.3,D0,1)):^(1),1:"") S X=$S('$D(^VA(200,+$P(Y(1),U,2),0)):"",1:$P(^(0),U,1))=""
+97 ;;^DD(355.3,.01,1,3,1.4)
+98 ;;=S DIH=$S($D(^IBA(355.3,DIV(0),1)):^(1),1:""),DIV=X S $P(^(1),U,2)=DIV,DIH=355.3,DIG=1.02 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
+99 ;;^DD(355.3,.01,1,3,2)
+100 ;;=Q
+101 ;;^DD(355.3,.01,1,3,"%D",0)
+102 ;;=^^1^1^2940213^
+103 ;;^DD(355.3,.01,1,3,"%D",1,0)
+104 ;;=Triggers the user who created this entry.
+105 ;;^DD(355.3,.01,1,3,"CREATE CONDITION")
+106 ;;=#1.02=""
+107 ;;^DD(355.3,.01,1,3,"CREATE VALUE")
+108 ;;=S X=DUZ
+109 ;;^DD(355.3,.01,1,3,"DELETE VALUE")
+110 ;;=NO EFFECT