- IBINI063 ; ; 21-MAR-1994
- ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
- Q:'DIFQ(356.2) 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(356.2,.1,1,0)
- ;;=^.1
- ;;^DD(356.2,.1,1,1,0)
- ;;=^^TRIGGER^356.2^.24
- ;;^DD(356.2,.1,1,1,1)
- ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X I $P(^IBT(356.2,DA,0),U,10)=3 I X S X=DIV S Y(1)=$S($D(^IBT(356.2,D0,0)):^(0),1:"") S X=$P(Y(1),U,24),X=X S DIU=X K Y S X="" X ^DD(356.2,.1,1,1,1.4)
- ;;^DD(356.2,.1,1,1,1.4)
- ;;=S DIH=$S($D(^IBT(356.2,DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,24)=DIV,DIH=356.2,DIG=.24 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
- ;;^DD(356.2,.1,1,1,2)
- ;;=Q
- ;;^DD(356.2,.1,1,1,"CREATE CONDITION")
- ;;=I $P(^IBT(356.2,DA,0),U,10)=3
- ;;^DD(356.2,.1,1,1,"CREATE VALUE")
- ;;=@
- ;;^DD(356.2,.1,1,1,"DELETE VALUE")
- ;;=NO EFFECT
- ;;^DD(356.2,.1,1,1,"DT")
- ;;=2940207
- ;;^DD(356.2,.1,1,1,"FIELD")
- ;;=#.24
- ;;^DD(356.2,.1,21,0)
- ;;=^^3^3^2930809^^
- ;;^DD(356.2,.1,21,1,0)
- ;;=If this Insurance Action is an appeal, this is the status of the appeal.
- ;;^DD(356.2,.1,21,2,0)
- ;;=Appeals that are OPEN will continue to be on the list of pending work
- ;;^DD(356.2,.1,21,3,0)
- ;;=based on the next review date.
- ;;^DD(356.2,.1,"DT")
- ;;=2940207
- ;;^DD(356.2,.11,0)
- ;;=ACTION^*P356.7'^IBE(356.7,^0;11^S DIC("S")="N ACODE,CTYPE S ACODE=$P(^(0),U,3),CTYPE=$P(^IBT(356.2,DA,0),U,4) I $$SCREEN^IBTRC1(ACODE,CTYPE)" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
- ;;^DD(356.2,.11,1,0)
- ;;=^.1
- ;;^DD(356.2,.11,1,1,0)
- ;;=356.2^ACT
- ;;^DD(356.2,.11,1,1,1)
- ;;=S ^IBT(356.2,"ACT",$E(X,1,30),DA)=""
- ;;^DD(356.2,.11,1,1,2)
- ;;=K ^IBT(356.2,"ACT",$E(X,1,30),DA)
- ;;^DD(356.2,.11,1,1,"%D",0)
- ;;=^^1^1^2930908^^^
- ;;^DD(356.2,.11,1,1,"%D",1,0)
- ;;=Regular cross refence of actions
- ;;^DD(356.2,.11,1,1,"DT")
- ;;=2930811
- ;;^DD(356.2,.11,1,2,0)
- ;;=356.2^APACT1^MUMPS
- ;;^DD(356.2,.11,1,2,1)
- ;;=S:$P(^IBT(356.2,DA,0),U,5) ^IBT(356.2,"APACT",+$P(^(0),U,5),X,DA)=""
- ;;^DD(356.2,.11,1,2,2)
- ;;=K ^IBT(356.2,"APACT",+$P(^IBT(356.2,DA,0),U,5),X,DA)
- ;;^DD(356.2,.11,1,2,"%D",0)
- ;;=^^2^2^2930811^^^^
- ;;^DD(356.2,.11,1,2,"%D",1,0)
- ;;=Index of insurance contacts with actions by patient by action.
- ;;^DD(356.2,.11,1,2,"%D",2,0)
- ;;=Used primarily to find denials by patient.
- ;;^DD(356.2,.11,1,2,"DT")
- ;;=2930811
- ;;^DD(356.2,.11,1,3,0)
- ;;=356.2^AIACT1^MUMPS
- ;;^DD(356.2,.11,1,3,1)
- ;;=S:$P(^IBT(356.2,DA,0),U,8) ^IBT(356.2,"AIACT",+$P(^(0),U,8),X,DA)=""
- ;;^DD(356.2,.11,1,3,2)
- ;;=K ^IBT(356.2,"AIACT",+$P(^IBT(356.2,DA,0),U,8),X,DA)
- ;;^DD(356.2,.11,1,3,"%D",0)
- ;;=^^2^2^2930908^^^^
- ;;^DD(356.2,.11,1,3,"%D",1,0)
- ;;=Index of insurance contacts with actions by insurance co. by type of
- ;;^DD(356.2,.11,1,3,"%D",2,0)
- ;;=action. Used primarily to find denials by insurance company.
- ;;^DD(356.2,.11,1,3,"DT")
- ;;=2930811
- ;;^DD(356.2,.11,1,4,0)
- ;;=^^TRIGGER^356.2^.19
- ;;^DD(356.2,.11,1,4,1)
- ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X I $P(^IBT(356.2,DA,0),"^",19)=1 I X S X=DIV S Y(1)=$S($D(^IBT(356.2,D0,0)):^(0),1:"") S X=$P(Y(1),U,19),X=X S DIU=X K Y S X=DIV S X=2 X ^DD(356.2,.11,1,4,1.4)
- ;;^DD(356.2,.11,1,4,1.4)
- ;;=S DIH=$S($D(^IBT(356.2,DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,19)=DIV,DIH=356.2,DIG=.19 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
- ;;^DD(356.2,.11,1,4,2)
- ;;=Q
- ;;^DD(356.2,.11,1,4,"%D",0)
- ;;=^^2^2^2931005^
- ;;^DD(356.2,.11,1,4,"%D",1,0)
- ;;=Trigger Review Status from entered to Pending when an action is entered.
- ;;^DD(356.2,.11,1,4,"%D",2,0)
- ;;=
- ;;^DD(356.2,.11,1,4,"CREATE CONDITION")
- ;;=I $P(^IBT(356.2,DA,0),"^",19)=1
- ;;^DD(356.2,.11,1,4,"CREATE VALUE")
- ;;=S X=2
- ;;^DD(356.2,.11,1,4,"DELETE VALUE")
- ;;=NO EFFECT
- ;;^DD(356.2,.11,1,4,"DT")
- ;;=2931005
- ;;^DD(356.2,.11,1,4,"FIELD")
- ;;=#.19
- ;;^DD(356.2,.11,3)
- ;;=Select the action taken by the insurance company on this call.
- IBINI063 ; ; 21-MAR-1994
- +1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
- +2 IF 'DIFQ(356.2)
- 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(356.2,.1,1,0)
- +2 ;;=^.1
- +3 ;;^DD(356.2,.1,1,1,0)
- +4 ;;=^^TRIGGER^356.2^.24
- +5 ;;^DD(356.2,.1,1,1,1)
- +6 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X I $P(^IBT(356.2,DA,0),U,10)=3 I X S X=DIV S Y(1)=$S($D(^IBT(356.2,D0,0)):^(0),1:"") S X=$P(Y(1),U,24),X=X S DIU=X K Y S X="" X ^DD(356.2,.1,1,1,1.4)
- +7 ;;^DD(356.2,.1,1,1,1.4)
- +8 ;;=S DIH=$S($D(^IBT(356.2,DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,24)=DIV,DIH=356.2,DIG=.24 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
- +9 ;;^DD(356.2,.1,1,1,2)
- +10 ;;=Q
- +11 ;;^DD(356.2,.1,1,1,"CREATE CONDITION")
- +12 ;;=I $P(^IBT(356.2,DA,0),U,10)=3
- +13 ;;^DD(356.2,.1,1,1,"CREATE VALUE")
- +14 ;;=@
- +15 ;;^DD(356.2,.1,1,1,"DELETE VALUE")
- +16 ;;=NO EFFECT
- +17 ;;^DD(356.2,.1,1,1,"DT")
- +18 ;;=2940207
- +19 ;;^DD(356.2,.1,1,1,"FIELD")
- +20 ;;=#.24
- +21 ;;^DD(356.2,.1,21,0)
- +22 ;;=^^3^3^2930809^^
- +23 ;;^DD(356.2,.1,21,1,0)
- +24 ;;=If this Insurance Action is an appeal, this is the status of the appeal.
- +25 ;;^DD(356.2,.1,21,2,0)
- +26 ;;=Appeals that are OPEN will continue to be on the list of pending work
- +27 ;;^DD(356.2,.1,21,3,0)
- +28 ;;=based on the next review date.
- +29 ;;^DD(356.2,.1,"DT")
- +30 ;;=2940207
- +31 ;;^DD(356.2,.11,0)
- +32 ;;=ACTION^*P356.7'^IBE(356.7,^0;11^S DIC("S")="N ACODE,CTYPE S ACODE=$P(^(0),U,3),CTYPE=$P(^IBT(356.2,DA,0),U,4) I $$SCREEN^IBTRC1(ACODE,CTYPE)" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
- +33 ;;^DD(356.2,.11,1,0)
- +34 ;;=^.1
- +35 ;;^DD(356.2,.11,1,1,0)
- +36 ;;=356.2^ACT
- +37 ;;^DD(356.2,.11,1,1,1)
- +38 ;;=S ^IBT(356.2,"ACT",$E(X,1,30),DA)=""
- +39 ;;^DD(356.2,.11,1,1,2)
- +40 ;;=K ^IBT(356.2,"ACT",$E(X,1,30),DA)
- +41 ;;^DD(356.2,.11,1,1,"%D",0)
- +42 ;;=^^1^1^2930908^^^
- +43 ;;^DD(356.2,.11,1,1,"%D",1,0)
- +44 ;;=Regular cross refence of actions
- +45 ;;^DD(356.2,.11,1,1,"DT")
- +46 ;;=2930811
- +47 ;;^DD(356.2,.11,1,2,0)
- +48 ;;=356.2^APACT1^MUMPS
- +49 ;;^DD(356.2,.11,1,2,1)
- +50 ;;=S:$P(^IBT(356.2,DA,0),U,5) ^IBT(356.2,"APACT",+$P(^(0),U,5),X,DA)=""
- +51 ;;^DD(356.2,.11,1,2,2)
- +52 ;;=K ^IBT(356.2,"APACT",+$P(^IBT(356.2,DA,0),U,5),X,DA)
- +53 ;;^DD(356.2,.11,1,2,"%D",0)
- +54 ;;=^^2^2^2930811^^^^
- +55 ;;^DD(356.2,.11,1,2,"%D",1,0)
- +56 ;;=Index of insurance contacts with actions by patient by action.
- +57 ;;^DD(356.2,.11,1,2,"%D",2,0)
- +58 ;;=Used primarily to find denials by patient.
- +59 ;;^DD(356.2,.11,1,2,"DT")
- +60 ;;=2930811
- +61 ;;^DD(356.2,.11,1,3,0)
- +62 ;;=356.2^AIACT1^MUMPS
- +63 ;;^DD(356.2,.11,1,3,1)
- +64 ;;=S:$P(^IBT(356.2,DA,0),U,8) ^IBT(356.2,"AIACT",+$P(^(0),U,8),X,DA)=""
- +65 ;;^DD(356.2,.11,1,3,2)
- +66 ;;=K ^IBT(356.2,"AIACT",+$P(^IBT(356.2,DA,0),U,8),X,DA)
- +67 ;;^DD(356.2,.11,1,3,"%D",0)
- +68 ;;=^^2^2^2930908^^^^
- +69 ;;^DD(356.2,.11,1,3,"%D",1,0)
- +70 ;;=Index of insurance contacts with actions by insurance co. by type of
- +71 ;;^DD(356.2,.11,1,3,"%D",2,0)
- +72 ;;=action. Used primarily to find denials by insurance company.
- +73 ;;^DD(356.2,.11,1,3,"DT")
- +74 ;;=2930811
- +75 ;;^DD(356.2,.11,1,4,0)
- +76 ;;=^^TRIGGER^356.2^.19
- +77 ;;^DD(356.2,.11,1,4,1)
- +78 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X I $P(^IBT(356.2,DA,0),"^",19)=1 I X S X=DIV S Y(1)=$S($D(^IBT(356.2,D0,0)):^(0),1:"") S X=$P(Y(1),U,19),X=X S DIU=X K Y S X=DIV S X=2 X ^DD(356.2,.11,1,4,1.4)
- +79 ;;^DD(356.2,.11,1,4,1.4)
- +80 ;;=S DIH=$S($D(^IBT(356.2,DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,19)=DIV,DIH=356.2,DIG=.19 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
- +81 ;;^DD(356.2,.11,1,4,2)
- +82 ;;=Q
- +83 ;;^DD(356.2,.11,1,4,"%D",0)
- +84 ;;=^^2^2^2931005^
- +85 ;;^DD(356.2,.11,1,4,"%D",1,0)
- +86 ;;=Trigger Review Status from entered to Pending when an action is entered.
- +87 ;;^DD(356.2,.11,1,4,"%D",2,0)
- +88 ;;=
- +89 ;;^DD(356.2,.11,1,4,"CREATE CONDITION")
- +90 ;;=I $P(^IBT(356.2,DA,0),"^",19)=1
- +91 ;;^DD(356.2,.11,1,4,"CREATE VALUE")
- +92 ;;=S X=2
- +93 ;;^DD(356.2,.11,1,4,"DELETE VALUE")
- +94 ;;=NO EFFECT
- +95 ;;^DD(356.2,.11,1,4,"DT")
- +96 ;;=2931005
- +97 ;;^DD(356.2,.11,1,4,"FIELD")
- +98 ;;=#.19
- +99 ;;^DD(356.2,.11,3)
- +100 ;;=Select the action taken by the insurance company on this call.