IBINI051 ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQ(355.5) 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.5,0,"GL")
;;=^IBA(355.5,
;;^DIC("B","INSURANCE CLAIMS YEAR TO DATE",355.5)
;;=
;;^DIC(355.5,"%D",0)
;;=^^6^6^2940214^^^^
;;^DIC(355.5,"%D",1,0)
;;=This file will contain the claim to date information about a patient's
;;^DIC(355.5,"%D",2,0)
;;=health insurance claims to a specific carrier for a specific year. This
;;^DIC(355.5,"%D",3,0)
;;=will allow estimate of receivables based on whether claims exceed deductibles
;;^DIC(355.5,"%D",4,0)
;;=or other maximum benefits.
;;^DIC(355.5,"%D",5,0)
;;=
;;^DIC(355.5,"%D",6,0)
;;=Per VHA Directive 10-93-142, this file definition should not be modified.
;;^DD(355.5,0)
;;=FIELD^^1.09^29
;;^DD(355.5,0,"DDA")
;;=N
;;^DD(355.5,0,"DT")
;;=2931217
;;^DD(355.5,0,"IX","APPY",355.5,.02)
;;=
;;^DD(355.5,0,"IX","APPY1",355.5,.01)
;;=
;;^DD(355.5,0,"IX","APPY2",355.5,.03)
;;=
;;^DD(355.5,0,"IX","APPY3",355.5,.17)
;;=
;;^DD(355.5,0,"IX","B",355.5,.01)
;;=
;;^DD(355.5,0,"IX","C",355.5,.02)
;;=
;;^DD(355.5,0,"NM","INSURANCE CLAIMS YEAR TO DATE")
;;=
;;^DD(355.5,.01,0)
;;=POLICY^RP355.3I^IBA(355.3,^0;1^Q
;;^DD(355.5,.01,1,0)
;;=^.1
;;^DD(355.5,.01,1,1,0)
;;=355.5^B
;;^DD(355.5,.01,1,1,1)
;;=S ^IBA(355.5,"B",$E(X,1,30),DA)=""
;;^DD(355.5,.01,1,1,2)
;;=K ^IBA(355.5,"B",$E(X,1,30),DA)
;;^DD(355.5,.01,1,2,0)
;;=355.5^APPY1^MUMPS
;;^DD(355.5,.01,1,2,1)
;;=I +$P(^IBA(355.5,DA,0),U,2),-$P(^(0),U,3),+$P(^(0),U,17) S ^IBA(355.5,"APPY",+$P(^(0),U,2),X,-$P(^(0),U,3),+$P(^(0),U,17),DA)=""
;;^DD(355.5,.01,1,2,2)
;;=K ^IBA(355.5,"APPY",+$P(^IBA(355.5,DA,0),U,2),X,-$P(^(0),U,3),+$P(^(0),U,17),DA)
;;^DD(355.5,.01,1,2,"%D",0)
;;=^^1^1^2930831^^^^
;;^DD(355.5,.01,1,2,"%D",1,0)
;;=Cross-reference of patients by policy by year.
;;^DD(355.5,.01,1,2,"DT")
;;=2930831
;;^DD(355.5,.01,3)
;;=
;;^DD(355.5,.01,21,0)
;;=^^2^2^2930713^^
;;^DD(355.5,.01,21,1,0)
;;=Select the patient's health insurance policy against which claims
;;^DD(355.5,.01,21,2,0)
;;=may have been made.
;;^DD(355.5,.01,"DT")
;;=2930831
;;^DD(355.5,.02,0)
;;=PATIENT^P2'I^DPT(^0;2^Q
;;^DD(355.5,.02,1,0)
;;=^.1
;;^DD(355.5,.02,1,1,0)
;;=355.5^C
;;^DD(355.5,.02,1,1,1)
;;=S ^IBA(355.5,"C",$E(X,1,30),DA)=""
;;^DD(355.5,.02,1,1,2)
;;=K ^IBA(355.5,"C",$E(X,1,30),DA)
;;^DD(355.5,.02,1,1,"DT")
;;=2930622
;;^DD(355.5,.02,1,2,0)
;;=355.5^APPY^MUMPS
;;^DD(355.5,.02,1,2,1)
;;=I -$P(^IBA(355.5,DA,0),U,3),+^(0),+$P(^(0),U,17) S ^IBA(355.5,"APPY",X,+^(0),-$P(^(0),U,3),+$P(^(0),U,17),DA)=""
;;^DD(355.5,.02,1,2,2)
;;=K ^IBA(355.5,"APPY",X,+^IBA(355.5,DA,0),-$P(^(0),U,3),+$P(^(0),U,17),DA)
;;^DD(355.5,.02,1,2,"%D",0)
;;=^^1^1^2930831^^^^
;;^DD(355.5,.02,1,2,"%D",1,0)
;;=Cross-references patient by policy by year.
;;^DD(355.5,.02,1,2,"DT")
;;=2930831
;;^DD(355.5,.02,21,0)
;;=^^1^1^2930713^^
;;^DD(355.5,.02,21,1,0)
;;=Enter the name of the patient who is on this policy.
;;^DD(355.5,.02,"DT")
;;=2931217
;;^DD(355.5,.03,0)
;;=BENEFIT YEAR BEGINNING ON^RDI^^0;3^S %DT="EX" D ^%DT S X=Y K:Y<1 X
;;^DD(355.5,.03,1,0)
;;=^.1
;;^DD(355.5,.03,1,1,0)
;;=355.5^APPY2^MUMPS
;;^DD(355.5,.03,1,1,1)
;;=I +$P(^IBA(355.5,DA,0),U,2),+^(0),+$P(^(0),U,17) S ^IBA(355.5,"APPY",+$P(^(0),U,2),+^(0),-X,+$P(^(0),U,17),DA)=""
;;^DD(355.5,.03,1,1,2)
;;=K ^IBA(355.5,"APPY",+$P(^IBA(355.5,DA,0),U,2),+^(0),-X,+$P(^(0),U,17),DA)
;;^DD(355.5,.03,1,1,"%D",0)
;;=^^1^1^2930831^^^^
;;^DD(355.5,.03,1,1,"%D",1,0)
;;=Cross-reference of patients by policy by year.
;;^DD(355.5,.03,1,1,"DT")
;;=2930831
;;^DD(355.5,.03,3)
;;=
;;^DD(355.5,.03,9)
;;=^
;;^DD(355.5,.03,21,0)
;;=^^2^2^2931217^^^^
IBINI051 ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQ(355.5)
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.5,0,"GL")
+2 ;;=^IBA(355.5,
+3 ;;^DIC("B","INSURANCE CLAIMS YEAR TO DATE",355.5)
+4 ;;=
+5 ;;^DIC(355.5,"%D",0)
+6 ;;=^^6^6^2940214^^^^
+7 ;;^DIC(355.5,"%D",1,0)
+8 ;;=This file will contain the claim to date information about a patient's
+9 ;;^DIC(355.5,"%D",2,0)
+10 ;;=health insurance claims to a specific carrier for a specific year. This
+11 ;;^DIC(355.5,"%D",3,0)
+12 ;;=will allow estimate of receivables based on whether claims exceed deductibles
+13 ;;^DIC(355.5,"%D",4,0)
+14 ;;=or other maximum benefits.
+15 ;;^DIC(355.5,"%D",5,0)
+16 ;;=
+17 ;;^DIC(355.5,"%D",6,0)
+18 ;;=Per VHA Directive 10-93-142, this file definition should not be modified.
+19 ;;^DD(355.5,0)
+20 ;;=FIELD^^1.09^29
+21 ;;^DD(355.5,0,"DDA")
+22 ;;=N
+23 ;;^DD(355.5,0,"DT")
+24 ;;=2931217
+25 ;;^DD(355.5,0,"IX","APPY",355.5,.02)
+26 ;;=
+27 ;;^DD(355.5,0,"IX","APPY1",355.5,.01)
+28 ;;=
+29 ;;^DD(355.5,0,"IX","APPY2",355.5,.03)
+30 ;;=
+31 ;;^DD(355.5,0,"IX","APPY3",355.5,.17)
+32 ;;=
+33 ;;^DD(355.5,0,"IX","B",355.5,.01)
+34 ;;=
+35 ;;^DD(355.5,0,"IX","C",355.5,.02)
+36 ;;=
+37 ;;^DD(355.5,0,"NM","INSURANCE CLAIMS YEAR TO DATE")
+38 ;;=
+39 ;;^DD(355.5,.01,0)
+40 ;;=POLICY^RP355.3I^IBA(355.3,^0;1^Q
+41 ;;^DD(355.5,.01,1,0)
+42 ;;=^.1
+43 ;;^DD(355.5,.01,1,1,0)
+44 ;;=355.5^B
+45 ;;^DD(355.5,.01,1,1,1)
+46 ;;=S ^IBA(355.5,"B",$E(X,1,30),DA)=""
+47 ;;^DD(355.5,.01,1,1,2)
+48 ;;=K ^IBA(355.5,"B",$E(X,1,30),DA)
+49 ;;^DD(355.5,.01,1,2,0)
+50 ;;=355.5^APPY1^MUMPS
+51 ;;^DD(355.5,.01,1,2,1)
+52 ;;=I +$P(^IBA(355.5,DA,0),U,2),-$P(^(0),U,3),+$P(^(0),U,17) S ^IBA(355.5,"APPY",+$P(^(0),U,2),X,-$P(^(0),U,3),+$P(^(0),U,17),DA)=""
+53 ;;^DD(355.5,.01,1,2,2)
+54 ;;=K ^IBA(355.5,"APPY",+$P(^IBA(355.5,DA,0),U,2),X,-$P(^(0),U,3),+$P(^(0),U,17),DA)
+55 ;;^DD(355.5,.01,1,2,"%D",0)
+56 ;;=^^1^1^2930831^^^^
+57 ;;^DD(355.5,.01,1,2,"%D",1,0)
+58 ;;=Cross-reference of patients by policy by year.
+59 ;;^DD(355.5,.01,1,2,"DT")
+60 ;;=2930831
+61 ;;^DD(355.5,.01,3)
+62 ;;=
+63 ;;^DD(355.5,.01,21,0)
+64 ;;=^^2^2^2930713^^
+65 ;;^DD(355.5,.01,21,1,0)
+66 ;;=Select the patient's health insurance policy against which claims
+67 ;;^DD(355.5,.01,21,2,0)
+68 ;;=may have been made.
+69 ;;^DD(355.5,.01,"DT")
+70 ;;=2930831
+71 ;;^DD(355.5,.02,0)
+72 ;;=PATIENT^P2'I^DPT(^0;2^Q
+73 ;;^DD(355.5,.02,1,0)
+74 ;;=^.1
+75 ;;^DD(355.5,.02,1,1,0)
+76 ;;=355.5^C
+77 ;;^DD(355.5,.02,1,1,1)
+78 ;;=S ^IBA(355.5,"C",$E(X,1,30),DA)=""
+79 ;;^DD(355.5,.02,1,1,2)
+80 ;;=K ^IBA(355.5,"C",$E(X,1,30),DA)
+81 ;;^DD(355.5,.02,1,1,"DT")
+82 ;;=2930622
+83 ;;^DD(355.5,.02,1,2,0)
+84 ;;=355.5^APPY^MUMPS
+85 ;;^DD(355.5,.02,1,2,1)
+86 ;;=I -$P(^IBA(355.5,DA,0),U,3),+^(0),+$P(^(0),U,17) S ^IBA(355.5,"APPY",X,+^(0),-$P(^(0),U,3),+$P(^(0),U,17),DA)=""
+87 ;;^DD(355.5,.02,1,2,2)
+88 ;;=K ^IBA(355.5,"APPY",X,+^IBA(355.5,DA,0),-$P(^(0),U,3),+$P(^(0),U,17),DA)
+89 ;;^DD(355.5,.02,1,2,"%D",0)
+90 ;;=^^1^1^2930831^^^^
+91 ;;^DD(355.5,.02,1,2,"%D",1,0)
+92 ;;=Cross-references patient by policy by year.
+93 ;;^DD(355.5,.02,1,2,"DT")
+94 ;;=2930831
+95 ;;^DD(355.5,.02,21,0)
+96 ;;=^^1^1^2930713^^
+97 ;;^DD(355.5,.02,21,1,0)
+98 ;;=Enter the name of the patient who is on this policy.
+99 ;;^DD(355.5,.02,"DT")
+100 ;;=2931217
+101 ;;^DD(355.5,.03,0)
+102 ;;=BENEFIT YEAR BEGINNING ON^RDI^^0;3^S %DT="EX" D ^%DT S X=Y K:Y<1 X
+103 ;;^DD(355.5,.03,1,0)
+104 ;;=^.1
+105 ;;^DD(355.5,.03,1,1,0)
+106 ;;=355.5^APPY2^MUMPS
+107 ;;^DD(355.5,.03,1,1,1)
+108 ;;=I +$P(^IBA(355.5,DA,0),U,2),+^(0),+$P(^(0),U,17) S ^IBA(355.5,"APPY",+$P(^(0),U,2),+^(0),-X,+$P(^(0),U,17),DA)=""
+109 ;;^DD(355.5,.03,1,1,2)
+110 ;;=K ^IBA(355.5,"APPY",+$P(^IBA(355.5,DA,0),U,2),+^(0),-X,+$P(^(0),U,17),DA)
+111 ;;^DD(355.5,.03,1,1,"%D",0)
+112 ;;=^^1^1^2930831^^^^
+113 ;;^DD(355.5,.03,1,1,"%D",1,0)
+114 ;;=Cross-reference of patients by policy by year.
+115 ;;^DD(355.5,.03,1,1,"DT")
+116 ;;=2930831
+117 ;;^DD(355.5,.03,3)
+118 ;;=
+119 ;;^DD(355.5,.03,9)
+120 ;;=^
+121 ;;^DD(355.5,.03,21,0)
+122 ;;=^^2^2^2931217^^^^