Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: IBINI061

IBINI061.m

Go to the documentation of this file.
  1. IBINI061 ; ; 21-MAR-1994
  1. ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
  1. 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
  1. Q Q
  1. ;;^DD(356.2,.03,21,5,0)
  1. ;;=entry created for a case that is also an insurance case.
  1. ;;^DD(356.2,.03,"DT")
  1. ;;=2930715
  1. ;;^DD(356.2,.04,0)
  1. ;;=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
  1. ;;^DD(356.2,.04,1,0)
  1. ;;=^.1
  1. ;;^DD(356.2,.04,1,1,0)
  1. ;;=356.2^AC
  1. ;;^DD(356.2,.04,1,1,1)
  1. ;;=S ^IBT(356.2,"AC",$E(X,1,30),DA)=""
  1. ;;^DD(356.2,.04,1,1,2)
  1. ;;=K ^IBT(356.2,"AC",$E(X,1,30),DA)
  1. ;;^DD(356.2,.04,1,1,"DT")
  1. ;;=2930712
  1. ;;^DD(356.2,.04,1,2,0)
  1. ;;=356.2^ATRTP1^MUMPS
  1. ;;^DD(356.2,.04,1,2,1)
  1. ;;=S:$P(^IBT(356.2,DA,0),U,2) ^IBT(356.2,"ATRTP",+$P(^(0),U,2),X,DA)=""
  1. ;;^DD(356.2,.04,1,2,2)
  1. ;;=K ^IBT(356.2,"ATRTP",+$P(^IBT(356.2,DA,0),U,2),X,DA)
  1. ;;^DD(356.2,.04,1,2,"%D",0)
  1. ;;=^^1^1^2930712^
  1. ;;^DD(356.2,.04,1,2,"%D",1,0)
  1. ;;=Index of all communications by tracking id and type.
  1. ;;^DD(356.2,.04,1,2,"DT")
  1. ;;=2930712
  1. ;;^DD(356.2,.04,3)
  1. ;;=
  1. ;;^DD(356.2,.04,12)
  1. ;;=If not associated with a tracking entry, only a patient or other type of contact may be selected.
  1. ;;^DD(356.2,.04,12.1)
  1. ;;=S DIC("S")="I $$CONTCT^IBTRC(DA,Y)"
  1. ;;^DD(356.2,.04,21,0)
  1. ;;=^^9^9^2940112^^^^
  1. ;;^DD(356.2,.04,21,1,0)
  1. ;;=This is the type of contact with a patient or insurance company that
  1. ;;^DD(356.2,.04,21,2,0)
  1. ;;=you are making. If this is a contact with a patient then select patient.
  1. ;;^DD(356.2,.04,21,3,0)
  1. ;;=If this is a contact with an insurance company then indicate if this
  1. ;;^DD(356.2,.04,21,4,0)
  1. ;;=is for pre-certification, urgent/emergent admission,
  1. ;;^DD(356.2,.04,21,5,0)
  1. ;;=continued stay, discharge, outpatient treatment, or an appeal.
  1. ;;^DD(356.2,.04,21,6,0)
  1. ;;=You may also select other if this is a contact that you wish to record
  1. ;;^DD(356.2,.04,21,7,0)
  1. ;;=but does not meet one of these categories.
  1. ;;^DD(356.2,.04,21,8,0)
  1. ;;=
  1. ;;^DD(356.2,.04,21,9,0)
  1. ;;=To add an appeal it must be associated with a denial.
  1. ;;^DD(356.2,.04,"DT")
  1. ;;=2930803
  1. ;;^DD(356.2,.05,0)
  1. ;;=PATIENT^P2'^DPT(^0;5^Q
  1. ;;^DD(356.2,.05,1,0)
  1. ;;=^.1
  1. ;;^DD(356.2,.05,1,1,0)
  1. ;;=356.2^D
  1. ;;^DD(356.2,.05,1,1,1)
  1. ;;=S ^IBT(356.2,"D",$E(X,1,30),DA)=""
  1. ;;^DD(356.2,.05,1,1,2)
  1. ;;=K ^IBT(356.2,"D",$E(X,1,30),DA)
  1. ;;^DD(356.2,.05,1,1,"DT")
  1. ;;=2930729
  1. ;;^DD(356.2,.05,1,2,0)
  1. ;;=356.2^APACT^MUMPS
  1. ;;^DD(356.2,.05,1,2,1)
  1. ;;=S:$P(^IBT(356.2,DA,0),U,11) ^IBT(356.2,"APACT",X,+$P(^(0),U,11),DA)=""
  1. ;;^DD(356.2,.05,1,2,2)
  1. ;;=K ^IBT(356.2,"APACT",X,+$P(^IBT(356.2,DA,0),U,11),DA)
  1. ;;^DD(356.2,.05,1,2,"%D",0)
  1. ;;=^^2^2^2930811^^^
  1. ;;^DD(356.2,.05,1,2,"%D",1,0)
  1. ;;=Index of insurance contacts with actions by patient by action.
  1. ;;^DD(356.2,.05,1,2,"%D",2,0)
  1. ;;=Used primarily to find denials by patient.
  1. ;;^DD(356.2,.05,1,2,"DT")
  1. ;;=2930811
  1. ;;^DD(356.2,.05,1,3,0)
  1. ;;=^^TRIGGER^356.2^1.05
  1. ;;^DD(356.2,.05,1,3,1)
  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)
  1. ;;^DD(356.2,.05,1,3,1.3)
  1. ;;=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=""
  1. ;;^DD(356.2,.05,1,3,1.4)
  1. ;;=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
  1. ;;^DD(356.2,.05,1,3,2)
  1. ;;=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)
  1. ;;^DD(356.2,.05,1,3,2.4)
  1. ;;=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