IBINI053 ; ; 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
;;^DD(355.5,.1,"DT")
;;=2931214
;;^DD(355.5,.11,0)
;;=MH DEDUCTIBLE (INP) MET?^S^0:NO;1:YES;^0;11^Q
;;^DD(355.5,.11,21,0)
;;=^^4^4^2940213^^^
;;^DD(355.5,.11,21,1,0)
;;=If the dollar amount of claims for inpatient mental health services
;;^DD(355.5,.11,21,2,0)
;;=is less than the policy's annual deductible for these services,
;;^DD(355.5,.11,21,3,0)
;;=enter "NO". If it is equal to or greater than the annual
;;^DD(355.5,.11,21,4,0)
;;=deductible for such services, enter "YES".
;;^DD(355.5,.11,"DT")
;;=2930513
;;^DD(355.5,.12,0)
;;=AMOUNT OF MH (INP) DED MET^NJ6,0^^0;12^K:+X'=X!(X>999999)!(X<0)!(X?.E1"."1N.N) X
;;^DD(355.5,.12,3)
;;=Type a Number between 0 and 999999, 0 Decimal Digits
;;^DD(355.5,.12,21,0)
;;=^^2^2^2930713^
;;^DD(355.5,.12,21,1,0)
;;=Enter the dollar amount of claims against this policy for inpatient
;;^DD(355.5,.12,21,2,0)
;;=mental health services.
;;^DD(355.5,.12,"DT")
;;=2930513
;;^DD(355.5,.13,0)
;;=MH DEDUCTIBLE (OPT) MET?^S^0:NO;1:YES;^0;13^Q
;;^DD(355.5,.13,3)
;;=
;;^DD(355.5,.13,21,0)
;;=^^4^4^2930713^
;;^DD(355.5,.13,21,1,0)
;;=If the dollar amount of claims for outpatient mental health services
;;^DD(355.5,.13,21,2,0)
;;=is less than the policy's annual deductible for these services,
;;^DD(355.5,.13,21,3,0)
;;=enter "NO". If it is equal to or greater than the annual deductible
;;^DD(355.5,.13,21,4,0)
;;=for such services, enter "YES".
;;^DD(355.5,.13,"DT")
;;=2930513
;;^DD(355.5,.14,0)
;;=AMOUNT OF MH (OPT) DED MET^NJ6,0^^0;14^K:+X'=X!(X>999999)!(X<0)!(X?.E1"."1N.N) X
;;^DD(355.5,.14,3)
;;=Type a Number between 0 and 999999, 0 Decimal Digits
;;^DD(355.5,.14,21,0)
;;=^^2^2^2930713^
;;^DD(355.5,.14,21,1,0)
;;=Enter the dollar amount of claims against this policy for outpatient
;;^DD(355.5,.14,21,2,0)
;;=mental health services.
;;^DD(355.5,.14,"DT")
;;=2930513
;;^DD(355.5,.15,0)
;;=PRE-EXISTING CONDITIONS^F^^0;15^K:$L(X)>30!($L(X)<3) X
;;^DD(355.5,.15,3)
;;=Answer must be 3-30 characters in length.
;;^DD(355.5,.15,21,0)
;;=^^1^1^2930713^
;;^DD(355.5,.15,21,1,0)
;;=Enter the patient's pre-existing conditions.
;;^DD(355.5,.15,"DT")
;;=2930513
;;^DD(355.5,.16,0)
;;=COORDINATION OF BENEFITS DATA^F^^0;16^K:$L(X)>30!($L(X)<3) X
;;^DD(355.5,.16,3)
;;=Answer must be 3-30 characters in length.
;;^DD(355.5,.16,21,0)
;;=^^2^2^2930713^
;;^DD(355.5,.16,21,1,0)
;;=If the patient is included in a policy held by a family member, e.g.
;;^DD(355.5,.16,21,2,0)
;;=spouse, enter that information here.
;;^DD(355.5,.16,"DT")
;;=2930513
;;^DD(355.5,.17,0)
;;=PATIENT POLICY POINTER^NJ6,0I^^0;17^K:+X'=X!(X>999999)!(X<1)!(X?.E1"."1N.N) X
;;^DD(355.5,.17,1,0)
;;=^.1
;;^DD(355.5,.17,1,1,0)
;;=355.5^APPY3^MUMPS
;;^DD(355.5,.17,1,1,1)
;;=I $P(^IBA(355.5,DA,0),U,2),+^(0),-$P(^(0),U,3) S ^IBA(355.5,"APPY",+$P(^(0),U,2),+^(0),-$P(^(0),U,3),X,DA)=""
;;^DD(355.5,.17,1,1,2)
;;=K ^IBA(355.5,"APPY",+$P(^(0),U,2),+^(0),-$P(^(0),U,3),X,DA)
;;^DD(355.5,.17,1,1,"%D",0)
;;=^^1^1^2930831^^^
;;^DD(355.5,.17,1,1,"%D",1,0)
;;=Cross-references patients by policy by year.
;;^DD(355.5,.17,1,1,"DT")
;;=2930831
;;^DD(355.5,.17,3)
;;=Type a Number between 1 and 999999, 0 Decimal Digits
;;^DD(355.5,.17,8.5)
;;=^
;;^DD(355.5,.17,9)
;;=^
;;^DD(355.5,.17,"DT")
;;=2930831
;;^DD(355.5,.18,0)
;;=AMT. MH LIFET. MAX USED (INPT)^NJ10,2^^0;18^S:X["$" X=$P(X,"$",2) K:X'?.N.1".".2N!(X>9999999)!(X<0) X
;;^DD(355.5,.18,3)
;;=Type a Dollar Amount between 0 and 9999999, 2 Decimal Digits
;;^DD(355.5,.18,21,0)
;;=^^2^2^2931214^^^^
IBINI053 ; ; 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 ;;^DD(355.5,.1,"DT")
+2 ;;=2931214
+3 ;;^DD(355.5,.11,0)
+4 ;;=MH DEDUCTIBLE (INP) MET?^S^0:NO;1:YES;^0;11^Q
+5 ;;^DD(355.5,.11,21,0)
+6 ;;=^^4^4^2940213^^^
+7 ;;^DD(355.5,.11,21,1,0)
+8 ;;=If the dollar amount of claims for inpatient mental health services
+9 ;;^DD(355.5,.11,21,2,0)
+10 ;;=is less than the policy's annual deductible for these services,
+11 ;;^DD(355.5,.11,21,3,0)
+12 ;;=enter "NO". If it is equal to or greater than the annual
+13 ;;^DD(355.5,.11,21,4,0)
+14 ;;=deductible for such services, enter "YES".
+15 ;;^DD(355.5,.11,"DT")
+16 ;;=2930513
+17 ;;^DD(355.5,.12,0)
+18 ;;=AMOUNT OF MH (INP) DED MET^NJ6,0^^0;12^K:+X'=X!(X>999999)!(X<0)!(X?.E1"."1N.N) X
+19 ;;^DD(355.5,.12,3)
+20 ;;=Type a Number between 0 and 999999, 0 Decimal Digits
+21 ;;^DD(355.5,.12,21,0)
+22 ;;=^^2^2^2930713^
+23 ;;^DD(355.5,.12,21,1,0)
+24 ;;=Enter the dollar amount of claims against this policy for inpatient
+25 ;;^DD(355.5,.12,21,2,0)
+26 ;;=mental health services.
+27 ;;^DD(355.5,.12,"DT")
+28 ;;=2930513
+29 ;;^DD(355.5,.13,0)
+30 ;;=MH DEDUCTIBLE (OPT) MET?^S^0:NO;1:YES;^0;13^Q
+31 ;;^DD(355.5,.13,3)
+32 ;;=
+33 ;;^DD(355.5,.13,21,0)
+34 ;;=^^4^4^2930713^
+35 ;;^DD(355.5,.13,21,1,0)
+36 ;;=If the dollar amount of claims for outpatient mental health services
+37 ;;^DD(355.5,.13,21,2,0)
+38 ;;=is less than the policy's annual deductible for these services,
+39 ;;^DD(355.5,.13,21,3,0)
+40 ;;=enter "NO". If it is equal to or greater than the annual deductible
+41 ;;^DD(355.5,.13,21,4,0)
+42 ;;=for such services, enter "YES".
+43 ;;^DD(355.5,.13,"DT")
+44 ;;=2930513
+45 ;;^DD(355.5,.14,0)
+46 ;;=AMOUNT OF MH (OPT) DED MET^NJ6,0^^0;14^K:+X'=X!(X>999999)!(X<0)!(X?.E1"."1N.N) X
+47 ;;^DD(355.5,.14,3)
+48 ;;=Type a Number between 0 and 999999, 0 Decimal Digits
+49 ;;^DD(355.5,.14,21,0)
+50 ;;=^^2^2^2930713^
+51 ;;^DD(355.5,.14,21,1,0)
+52 ;;=Enter the dollar amount of claims against this policy for outpatient
+53 ;;^DD(355.5,.14,21,2,0)
+54 ;;=mental health services.
+55 ;;^DD(355.5,.14,"DT")
+56 ;;=2930513
+57 ;;^DD(355.5,.15,0)
+58 ;;=PRE-EXISTING CONDITIONS^F^^0;15^K:$L(X)>30!($L(X)<3) X
+59 ;;^DD(355.5,.15,3)
+60 ;;=Answer must be 3-30 characters in length.
+61 ;;^DD(355.5,.15,21,0)
+62 ;;=^^1^1^2930713^
+63 ;;^DD(355.5,.15,21,1,0)
+64 ;;=Enter the patient's pre-existing conditions.
+65 ;;^DD(355.5,.15,"DT")
+66 ;;=2930513
+67 ;;^DD(355.5,.16,0)
+68 ;;=COORDINATION OF BENEFITS DATA^F^^0;16^K:$L(X)>30!($L(X)<3) X
+69 ;;^DD(355.5,.16,3)
+70 ;;=Answer must be 3-30 characters in length.
+71 ;;^DD(355.5,.16,21,0)
+72 ;;=^^2^2^2930713^
+73 ;;^DD(355.5,.16,21,1,0)
+74 ;;=If the patient is included in a policy held by a family member, e.g.
+75 ;;^DD(355.5,.16,21,2,0)
+76 ;;=spouse, enter that information here.
+77 ;;^DD(355.5,.16,"DT")
+78 ;;=2930513
+79 ;;^DD(355.5,.17,0)
+80 ;;=PATIENT POLICY POINTER^NJ6,0I^^0;17^K:+X'=X!(X>999999)!(X<1)!(X?.E1"."1N.N) X
+81 ;;^DD(355.5,.17,1,0)
+82 ;;=^.1
+83 ;;^DD(355.5,.17,1,1,0)
+84 ;;=355.5^APPY3^MUMPS
+85 ;;^DD(355.5,.17,1,1,1)
+86 ;;=I $P(^IBA(355.5,DA,0),U,2),+^(0),-$P(^(0),U,3) S ^IBA(355.5,"APPY",+$P(^(0),U,2),+^(0),-$P(^(0),U,3),X,DA)=""
+87 ;;^DD(355.5,.17,1,1,2)
+88 ;;=K ^IBA(355.5,"APPY",+$P(^(0),U,2),+^(0),-$P(^(0),U,3),X,DA)
+89 ;;^DD(355.5,.17,1,1,"%D",0)
+90 ;;=^^1^1^2930831^^^
+91 ;;^DD(355.5,.17,1,1,"%D",1,0)
+92 ;;=Cross-references patients by policy by year.
+93 ;;^DD(355.5,.17,1,1,"DT")
+94 ;;=2930831
+95 ;;^DD(355.5,.17,3)
+96 ;;=Type a Number between 1 and 999999, 0 Decimal Digits
+97 ;;^DD(355.5,.17,8.5)
+98 ;;=^
+99 ;;^DD(355.5,.17,9)
+100 ;;=^
+101 ;;^DD(355.5,.17,"DT")
+102 ;;=2930831
+103 ;;^DD(355.5,.18,0)
+104 ;;=AMT. MH LIFET. MAX USED (INPT)^NJ10,2^^0;18^S:X["$" X=$P(X,"$",2) K:X'?.N.1".".2N!(X>9999999)!(X<0) X
+105 ;;^DD(355.5,.18,3)
+106 ;;=Type a Dollar Amount between 0 and 9999999, 2 Decimal Digits
+107 ;;^DD(355.5,.18,21,0)
+108 ;;=^^2^2^2931214^^^^