- IBINI061 ; ; 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,.03,21,5,0)
- ;;=entry created for a case that is also an insurance case.
- ;;^DD(356.2,.03,"DT")
- ;;=2930715
- ;;^DD(356.2,.04,0)
- ;;=TYPE OF CONTACT^R*P356.11'^IBE(356.11,^0;4^S DIC("S")="I $$CONTCT^IBTRC(DA,Y)" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
- ;;^DD(356.2,.04,1,0)
- ;;=^.1
- ;;^DD(356.2,.04,1,1,0)
- ;;=356.2^AC
- ;;^DD(356.2,.04,1,1,1)
- ;;=S ^IBT(356.2,"AC",$E(X,1,30),DA)=""
- ;;^DD(356.2,.04,1,1,2)
- ;;=K ^IBT(356.2,"AC",$E(X,1,30),DA)
- ;;^DD(356.2,.04,1,1,"DT")
- ;;=2930712
- ;;^DD(356.2,.04,1,2,0)
- ;;=356.2^ATRTP1^MUMPS
- ;;^DD(356.2,.04,1,2,1)
- ;;=S:$P(^IBT(356.2,DA,0),U,2) ^IBT(356.2,"ATRTP",+$P(^(0),U,2),X,DA)=""
- ;;^DD(356.2,.04,1,2,2)
- ;;=K ^IBT(356.2,"ATRTP",+$P(^IBT(356.2,DA,0),U,2),X,DA)
- ;;^DD(356.2,.04,1,2,"%D",0)
- ;;=^^1^1^2930712^
- ;;^DD(356.2,.04,1,2,"%D",1,0)
- ;;=Index of all communications by tracking id and type.
- ;;^DD(356.2,.04,1,2,"DT")
- ;;=2930712
- ;;^DD(356.2,.04,3)
- ;;=
- ;;^DD(356.2,.04,12)
- ;;=If not associated with a tracking entry, only a patient or other type of contact may be selected.
- ;;^DD(356.2,.04,12.1)
- ;;=S DIC("S")="I $$CONTCT^IBTRC(DA,Y)"
- ;;^DD(356.2,.04,21,0)
- ;;=^^9^9^2940112^^^^
- ;;^DD(356.2,.04,21,1,0)
- ;;=This is the type of contact with a patient or insurance company that
- ;;^DD(356.2,.04,21,2,0)
- ;;=you are making. If this is a contact with a patient then select patient.
- ;;^DD(356.2,.04,21,3,0)
- ;;=If this is a contact with an insurance company then indicate if this
- ;;^DD(356.2,.04,21,4,0)
- ;;=is for pre-certification, urgent/emergent admission,
- ;;^DD(356.2,.04,21,5,0)
- ;;=continued stay, discharge, outpatient treatment, or an appeal.
- ;;^DD(356.2,.04,21,6,0)
- ;;=You may also select other if this is a contact that you wish to record
- ;;^DD(356.2,.04,21,7,0)
- ;;=but does not meet one of these categories.
- ;;^DD(356.2,.04,21,8,0)
- ;;=
- ;;^DD(356.2,.04,21,9,0)
- ;;=To add an appeal it must be associated with a denial.
- ;;^DD(356.2,.04,"DT")
- ;;=2930803
- ;;^DD(356.2,.05,0)
- ;;=PATIENT^P2'^DPT(^0;5^Q
- ;;^DD(356.2,.05,1,0)
- ;;=^.1
- ;;^DD(356.2,.05,1,1,0)
- ;;=356.2^D
- ;;^DD(356.2,.05,1,1,1)
- ;;=S ^IBT(356.2,"D",$E(X,1,30),DA)=""
- ;;^DD(356.2,.05,1,1,2)
- ;;=K ^IBT(356.2,"D",$E(X,1,30),DA)
- ;;^DD(356.2,.05,1,1,"DT")
- ;;=2930729
- ;;^DD(356.2,.05,1,2,0)
- ;;=356.2^APACT^MUMPS
- ;;^DD(356.2,.05,1,2,1)
- ;;=S:$P(^IBT(356.2,DA,0),U,11) ^IBT(356.2,"APACT",X,+$P(^(0),U,11),DA)=""
- ;;^DD(356.2,.05,1,2,2)
- ;;=K ^IBT(356.2,"APACT",X,+$P(^IBT(356.2,DA,0),U,11),DA)
- ;;^DD(356.2,.05,1,2,"%D",0)
- ;;=^^2^2^2930811^^^
- ;;^DD(356.2,.05,1,2,"%D",1,0)
- ;;=Index of insurance contacts with actions by patient by action.
- ;;^DD(356.2,.05,1,2,"%D",2,0)
- ;;=Used primarily to find denials by patient.
- ;;^DD(356.2,.05,1,2,"DT")
- ;;=2930811
- ;;^DD(356.2,.05,1,3,0)
- ;;=^^TRIGGER^356.2^1.05
- ;;^DD(356.2,.05,1,3,1)
- ;;=X ^DD(356.2,.05,1,3,1.3) I X S X=DIV S Y(1)=$S($D(^IBT(356.2,D0,1)):^(1),1:"") S X=$P(Y(1),U,5),X=X S DIU=X K Y S X=DIV S X=$P($$HIP^IBTRC3(DA),"^",1) X ^DD(356.2,.05,1,3,1.4)
- ;;^DD(356.2,.05,1,3,1.3)
- ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y(1)=$S($D(^IBT(356.2,D0,1)):^(1),1:""),Y=$P(Y(1),U,5) X:$D(^DD(356.2,1.05,2)) ^(2) S X=Y=""
- ;;^DD(356.2,.05,1,3,1.4)
- ;;=S DIH=$S($D(^IBT(356.2,DIV(0),1)):^(1),1:""),DIV=X S $P(^(1),U,5)=DIV,DIH=356.2,DIG=1.05 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
- ;;^DD(356.2,.05,1,3,2)
- ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^IBT(356.2,D0,1)):^(1),1:"") S X=$P(Y(1),U,5),X=X S DIU=X K Y S X="" X ^DD(356.2,.05,1,3,2.4)
- ;;^DD(356.2,.05,1,3,2.4)
- ;;=S DIH=$S($D(^IBT(356.2,DIV(0),1)):^(1),1:""),DIV=X S $P(^(1),U,5)=DIV,DIH=356.2,DIG=1.05 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
- IBINI061 ; ; 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,.03,21,5,0)
- +2 ;;=entry created for a case that is also an insurance case.
- +3 ;;^DD(356.2,.03,"DT")
- +4 ;;=2930715
- +5 ;;^DD(356.2,.04,0)
- +6 ;;=TYPE OF CONTACT^R*P356.11'^IBE(356.11,^0;4^S DIC("S")="I $$CONTCT^IBTRC(DA,Y)" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
- +7 ;;^DD(356.2,.04,1,0)
- +8 ;;=^.1
- +9 ;;^DD(356.2,.04,1,1,0)
- +10 ;;=356.2^AC
- +11 ;;^DD(356.2,.04,1,1,1)
- +12 ;;=S ^IBT(356.2,"AC",$E(X,1,30),DA)=""
- +13 ;;^DD(356.2,.04,1,1,2)
- +14 ;;=K ^IBT(356.2,"AC",$E(X,1,30),DA)
- +15 ;;^DD(356.2,.04,1,1,"DT")
- +16 ;;=2930712
- +17 ;;^DD(356.2,.04,1,2,0)
- +18 ;;=356.2^ATRTP1^MUMPS
- +19 ;;^DD(356.2,.04,1,2,1)
- +20 ;;=S:$P(^IBT(356.2,DA,0),U,2) ^IBT(356.2,"ATRTP",+$P(^(0),U,2),X,DA)=""
- +21 ;;^DD(356.2,.04,1,2,2)
- +22 ;;=K ^IBT(356.2,"ATRTP",+$P(^IBT(356.2,DA,0),U,2),X,DA)
- +23 ;;^DD(356.2,.04,1,2,"%D",0)
- +24 ;;=^^1^1^2930712^
- +25 ;;^DD(356.2,.04,1,2,"%D",1,0)
- +26 ;;=Index of all communications by tracking id and type.
- +27 ;;^DD(356.2,.04,1,2,"DT")
- +28 ;;=2930712
- +29 ;;^DD(356.2,.04,3)
- +30 ;;=
- +31 ;;^DD(356.2,.04,12)
- +32 ;;=If not associated with a tracking entry, only a patient or other type of contact may be selected.
- +33 ;;^DD(356.2,.04,12.1)
- +34 ;;=S DIC("S")="I $$CONTCT^IBTRC(DA,Y)"
- +35 ;;^DD(356.2,.04,21,0)
- +36 ;;=^^9^9^2940112^^^^
- +37 ;;^DD(356.2,.04,21,1,0)
- +38 ;;=This is the type of contact with a patient or insurance company that
- +39 ;;^DD(356.2,.04,21,2,0)
- +40 ;;=you are making. If this is a contact with a patient then select patient.
- +41 ;;^DD(356.2,.04,21,3,0)
- +42 ;;=If this is a contact with an insurance company then indicate if this
- +43 ;;^DD(356.2,.04,21,4,0)
- +44 ;;=is for pre-certification, urgent/emergent admission,
- +45 ;;^DD(356.2,.04,21,5,0)
- +46 ;;=continued stay, discharge, outpatient treatment, or an appeal.
- +47 ;;^DD(356.2,.04,21,6,0)
- +48 ;;=You may also select other if this is a contact that you wish to record
- +49 ;;^DD(356.2,.04,21,7,0)
- +50 ;;=but does not meet one of these categories.
- +51 ;;^DD(356.2,.04,21,8,0)
- +52 ;;=
- +53 ;;^DD(356.2,.04,21,9,0)
- +54 ;;=To add an appeal it must be associated with a denial.
- +55 ;;^DD(356.2,.04,"DT")
- +56 ;;=2930803
- +57 ;;^DD(356.2,.05,0)
- +58 ;;=PATIENT^P2'^DPT(^0;5^Q
- +59 ;;^DD(356.2,.05,1,0)
- +60 ;;=^.1
- +61 ;;^DD(356.2,.05,1,1,0)
- +62 ;;=356.2^D
- +63 ;;^DD(356.2,.05,1,1,1)
- +64 ;;=S ^IBT(356.2,"D",$E(X,1,30),DA)=""
- +65 ;;^DD(356.2,.05,1,1,2)
- +66 ;;=K ^IBT(356.2,"D",$E(X,1,30),DA)
- +67 ;;^DD(356.2,.05,1,1,"DT")
- +68 ;;=2930729
- +69 ;;^DD(356.2,.05,1,2,0)
- +70 ;;=356.2^APACT^MUMPS
- +71 ;;^DD(356.2,.05,1,2,1)
- +72 ;;=S:$P(^IBT(356.2,DA,0),U,11) ^IBT(356.2,"APACT",X,+$P(^(0),U,11),DA)=""
- +73 ;;^DD(356.2,.05,1,2,2)
- +74 ;;=K ^IBT(356.2,"APACT",X,+$P(^IBT(356.2,DA,0),U,11),DA)
- +75 ;;^DD(356.2,.05,1,2,"%D",0)
- +76 ;;=^^2^2^2930811^^^
- +77 ;;^DD(356.2,.05,1,2,"%D",1,0)
- +78 ;;=Index of insurance contacts with actions by patient by action.
- +79 ;;^DD(356.2,.05,1,2,"%D",2,0)
- +80 ;;=Used primarily to find denials by patient.
- +81 ;;^DD(356.2,.05,1,2,"DT")
- +82 ;;=2930811
- +83 ;;^DD(356.2,.05,1,3,0)
- +84 ;;=^^TRIGGER^356.2^1.05
- +85 ;;^DD(356.2,.05,1,3,1)
- +86 ;;=X ^DD(356.2,.05,1,3,1.3) I X S X=DIV S Y(1)=$S($D(^IBT(356.2,D0,1)):^(1),1:"") S X=$P(Y(1),U,5),X=X S DIU=X K Y S X=DIV S X=$P($$HIP^IBTRC3(DA),"^",1) X ^DD(356.2,.05,1,3,1.4)
- +87 ;;^DD(356.2,.05,1,3,1.3)
- +88 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y(1)=$S($D(^IBT(356.2,D0,1)):^(1),1:""),Y=$P(Y(1),U,5) X:$D(^DD(356.2,1.05,2)) ^(2) S X=Y=""
- +89 ;;^DD(356.2,.05,1,3,1.4)
- +90 ;;=S DIH=$S($D(^IBT(356.2,DIV(0),1)):^(1),1:""),DIV=X S $P(^(1),U,5)=DIV,DIH=356.2,DIG=1.05 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
- +91 ;;^DD(356.2,.05,1,3,2)
- +92 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^IBT(356.2,D0,1)):^(1),1:"") S X=$P(Y(1),U,5),X=X S DIU=X K Y S X="" X ^DD(356.2,.05,1,3,2.4)
- +93 ;;^DD(356.2,.05,1,3,2.4)
- +94 ;;=S DIH=$S($D(^IBT(356.2,DIV(0),1)):^(1),1:""),DIV=X S $P(^(1),U,5)=DIV,DIH=356.2,DIG=1.05 D ^DICR:$N(^DD(DIH,DIG,1,0))>0