IBINI04O ; ; 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
;;^DD(355.3,.01,1,3,"DT")
;;=2940213
;;^DD(355.3,.01,1,3,"FIELD")
;;=#1.02
;;^DD(355.3,.01,1,4,0)
;;=355.3^AGNA1^MUMPS
;;^DD(355.3,.01,1,4,1)
;;=S:$P(^IBA(355.3,DA,0),U,3) ^IBA(355.3,"AGNA",X,+$P(^(0),U,3),DA)=""
;;^DD(355.3,.01,1,4,2)
;;=K ^IBA(355.3,"AGNA",X,+$P(^IBA(355.3,DA,0),U,3),DA)
;;^DD(355.3,.01,1,4,"%D",0)
;;=^^1^1^2940213^
;;^DD(355.3,.01,1,4,"%D",1,0)
;;=Cross reference of insurance companies and group names.
;;^DD(355.3,.01,1,4,"DT")
;;=2940213
;;^DD(355.3,.01,1,5,0)
;;=355.3^AGNU1^MUMPS
;;^DD(355.3,.01,1,5,1)
;;=S:$P(^IBA(355.3,DA,0),U,4) ^IBA(355.3,"AGNU",X,+$P(^(0),U,4),DA)=""
;;^DD(355.3,.01,1,5,2)
;;=K ^IBA(355.3,"AGNU",X,+$P(^IBA(355.3,DA,0),U,4),DA)
;;^DD(355.3,.01,1,5,"%D",0)
;;=^^1^1^2940213^
;;^DD(355.3,.01,1,5,"%D",1,0)
;;=Cross reference of insurance companies and group numbers.
;;^DD(355.3,.01,1,5,"DT")
;;=2940213
;;^DD(355.3,.01,3)
;;=
;;^DD(355.3,.01,21,0)
;;=^^1^1^2930603^
;;^DD(355.3,.01,21,1,0)
;;=Select the insurance company that this policy is with.
;;^DD(355.3,.01,"DT")
;;=2940213
;;^DD(355.3,.02,0)
;;=IS THIS A GROUP POLICY?^S^1:YES;0:NO;^0;2^Q
;;^DD(355.3,.02,1,0)
;;=^.1^^0
;;^DD(355.3,.02,3)
;;=If this is a group policy answer "YES" so that other patients may be associated with it. If this is an individual plan answer "NO" and only the current patient can have this policy.
;;^DD(355.3,.02,21,0)
;;=^^5^5^2940110^^
;;^DD(355.3,.02,21,1,0)
;;=Some policies are indiviual policies and are specific to a patient. Many
;;^DD(355.3,.02,21,2,0)
;;=policies are group plans that many patients may have. If this is a group
;;^DD(355.3,.02,21,3,0)
;;=plan, answer 'YES' so that other patients may be associated with this
;;^DD(355.3,.02,21,4,0)
;;=policy. If this is an individual plan then answer 'NO' and only this
;;^DD(355.3,.02,21,5,0)
;;=patient can be associated with this policy.
;;^DD(355.3,.02,"DT")
;;=2930525
;;^DD(355.3,.03,0)
;;=GROUP NAME^F^^0;3^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>20!($L(X)<2) X
;;^DD(355.3,.03,1,0)
;;=^.1
;;^DD(355.3,.03,1,1,0)
;;=355.3^D
;;^DD(355.3,.03,1,1,1)
;;=S ^IBA(355.3,"D",$E(X,1,30),DA)=""
;;^DD(355.3,.03,1,1,2)
;;=K ^IBA(355.3,"D",$E(X,1,30),DA)
;;^DD(355.3,.03,1,1,"DT")
;;=2930525
;;^DD(355.3,.03,1,2,0)
;;=355.3^AGNA^MUMPS
;;^DD(355.3,.03,1,2,1)
;;=S:+^IBA(355.3,DA,0) ^IBA(355.3,"AGNA",+^(0),X,DA)=""
;;^DD(355.3,.03,1,2,2)
;;=K ^IBA(355.3,"AGNA",+^IBA(355.3,DA,0),X,DA)
;;^DD(355.3,.03,1,2,"%D",0)
;;=^^2^2^2930527^
;;^DD(355.3,.03,1,2,"%D",1,0)
;;=Cross reference of insurance companies and group names.
;;^DD(355.3,.03,1,2,"%D",2,0)
;;=|
;;^DD(355.3,.03,1,2,"DT")
;;=2930527
;;^DD(355.3,.03,3)
;;=Answer must be 2-20 characters in length.
;;^DD(355.3,.03,21,0)
;;=^^6^6^2930603^^
;;^DD(355.3,.03,21,1,0)
;;=If this is a group policy, enter the name of the group that this policy
;;^DD(355.3,.03,21,2,0)
;;=is associated with. This is the name that the insurance
;;^DD(355.3,.03,21,3,0)
;;=company uses to identify the plan. This will appear
;;^DD(355.3,.03,21,4,0)
;;=on the health claims forms in the appropriate blocks. It will also be
;;^DD(355.3,.03,21,5,0)
;;=used to help identify this policy so that other patients with the same
;;^DD(355.3,.03,21,6,0)
;;=plan can be associated with it.
;;^DD(355.3,.03,"DT")
;;=2930527
;;^DD(355.3,.04,0)
;;=GROUP NUMBER^F^^0;4^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>17!($L(X)<2) X
;;^DD(355.3,.04,1,0)
;;=^.1
;;^DD(355.3,.04,1,1,0)
;;=355.3^E
;;^DD(355.3,.04,1,1,1)
;;=S ^IBA(355.3,"E",$E(X,1,30),DA)=""
IBINI04O ; ; 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 ;;^DD(355.3,.01,1,3,"DT")
+2 ;;=2940213
+3 ;;^DD(355.3,.01,1,3,"FIELD")
+4 ;;=#1.02
+5 ;;^DD(355.3,.01,1,4,0)
+6 ;;=355.3^AGNA1^MUMPS
+7 ;;^DD(355.3,.01,1,4,1)
+8 ;;=S:$P(^IBA(355.3,DA,0),U,3) ^IBA(355.3,"AGNA",X,+$P(^(0),U,3),DA)=""
+9 ;;^DD(355.3,.01,1,4,2)
+10 ;;=K ^IBA(355.3,"AGNA",X,+$P(^IBA(355.3,DA,0),U,3),DA)
+11 ;;^DD(355.3,.01,1,4,"%D",0)
+12 ;;=^^1^1^2940213^
+13 ;;^DD(355.3,.01,1,4,"%D",1,0)
+14 ;;=Cross reference of insurance companies and group names.
+15 ;;^DD(355.3,.01,1,4,"DT")
+16 ;;=2940213
+17 ;;^DD(355.3,.01,1,5,0)
+18 ;;=355.3^AGNU1^MUMPS
+19 ;;^DD(355.3,.01,1,5,1)
+20 ;;=S:$P(^IBA(355.3,DA,0),U,4) ^IBA(355.3,"AGNU",X,+$P(^(0),U,4),DA)=""
+21 ;;^DD(355.3,.01,1,5,2)
+22 ;;=K ^IBA(355.3,"AGNU",X,+$P(^IBA(355.3,DA,0),U,4),DA)
+23 ;;^DD(355.3,.01,1,5,"%D",0)
+24 ;;=^^1^1^2940213^
+25 ;;^DD(355.3,.01,1,5,"%D",1,0)
+26 ;;=Cross reference of insurance companies and group numbers.
+27 ;;^DD(355.3,.01,1,5,"DT")
+28 ;;=2940213
+29 ;;^DD(355.3,.01,3)
+30 ;;=
+31 ;;^DD(355.3,.01,21,0)
+32 ;;=^^1^1^2930603^
+33 ;;^DD(355.3,.01,21,1,0)
+34 ;;=Select the insurance company that this policy is with.
+35 ;;^DD(355.3,.01,"DT")
+36 ;;=2940213
+37 ;;^DD(355.3,.02,0)
+38 ;;=IS THIS A GROUP POLICY?^S^1:YES;0:NO;^0;2^Q
+39 ;;^DD(355.3,.02,1,0)
+40 ;;=^.1^^0
+41 ;;^DD(355.3,.02,3)
+42 ;;=If this is a group policy answer "YES" so that other patients may be associated with it. If this is an individual plan answer "NO" and only the current patient can have this policy.
+43 ;;^DD(355.3,.02,21,0)
+44 ;;=^^5^5^2940110^^
+45 ;;^DD(355.3,.02,21,1,0)
+46 ;;=Some policies are indiviual policies and are specific to a patient. Many
+47 ;;^DD(355.3,.02,21,2,0)
+48 ;;=policies are group plans that many patients may have. If this is a group
+49 ;;^DD(355.3,.02,21,3,0)
+50 ;;=plan, answer 'YES' so that other patients may be associated with this
+51 ;;^DD(355.3,.02,21,4,0)
+52 ;;=policy. If this is an individual plan then answer 'NO' and only this
+53 ;;^DD(355.3,.02,21,5,0)
+54 ;;=patient can be associated with this policy.
+55 ;;^DD(355.3,.02,"DT")
+56 ;;=2930525
+57 ;;^DD(355.3,.03,0)
+58 ;;=GROUP NAME^F^^0;3^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>20!($L(X)<2) X
+59 ;;^DD(355.3,.03,1,0)
+60 ;;=^.1
+61 ;;^DD(355.3,.03,1,1,0)
+62 ;;=355.3^D
+63 ;;^DD(355.3,.03,1,1,1)
+64 ;;=S ^IBA(355.3,"D",$E(X,1,30),DA)=""
+65 ;;^DD(355.3,.03,1,1,2)
+66 ;;=K ^IBA(355.3,"D",$E(X,1,30),DA)
+67 ;;^DD(355.3,.03,1,1,"DT")
+68 ;;=2930525
+69 ;;^DD(355.3,.03,1,2,0)
+70 ;;=355.3^AGNA^MUMPS
+71 ;;^DD(355.3,.03,1,2,1)
+72 ;;=S:+^IBA(355.3,DA,0) ^IBA(355.3,"AGNA",+^(0),X,DA)=""
+73 ;;^DD(355.3,.03,1,2,2)
+74 ;;=K ^IBA(355.3,"AGNA",+^IBA(355.3,DA,0),X,DA)
+75 ;;^DD(355.3,.03,1,2,"%D",0)
+76 ;;=^^2^2^2930527^
+77 ;;^DD(355.3,.03,1,2,"%D",1,0)
+78 ;;=Cross reference of insurance companies and group names.
+79 ;;^DD(355.3,.03,1,2,"%D",2,0)
+80 ;;=|
+81 ;;^DD(355.3,.03,1,2,"DT")
+82 ;;=2930527
+83 ;;^DD(355.3,.03,3)
+84 ;;=Answer must be 2-20 characters in length.
+85 ;;^DD(355.3,.03,21,0)
+86 ;;=^^6^6^2930603^^
+87 ;;^DD(355.3,.03,21,1,0)
+88 ;;=If this is a group policy, enter the name of the group that this policy
+89 ;;^DD(355.3,.03,21,2,0)
+90 ;;=is associated with. This is the name that the insurance
+91 ;;^DD(355.3,.03,21,3,0)
+92 ;;=company uses to identify the plan. This will appear
+93 ;;^DD(355.3,.03,21,4,0)
+94 ;;=on the health claims forms in the appropriate blocks. It will also be
+95 ;;^DD(355.3,.03,21,5,0)
+96 ;;=used to help identify this policy so that other patients with the same
+97 ;;^DD(355.3,.03,21,6,0)
+98 ;;=plan can be associated with it.
+99 ;;^DD(355.3,.03,"DT")
+100 ;;=2930527
+101 ;;^DD(355.3,.04,0)
+102 ;;=GROUP NUMBER^F^^0;4^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>17!($L(X)<2) X
+103 ;;^DD(355.3,.04,1,0)
+104 ;;=^.1
+105 ;;^DD(355.3,.04,1,1,0)
+106 ;;=355.3^E
+107 ;;^DD(355.3,.04,1,1,1)
+108 ;;=S ^IBA(355.3,"E",$E(X,1,30),DA)=""