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

IBINI0AB.m

Go to the documentation of this file.
  1. IBINI0AB ; ; 21-MAR-1994
  1. ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
  1. Q:'DIFQ(399) 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(399,101,1,2,1)
  1. ;;=S DGRVRCAL=1
  1. ;;^DD(399,101,1,2,2)
  1. ;;=S DGRVRCAL=2
  1. ;;^DD(399,101,1,2,"%D",0)
  1. ;;=^^3^3^2940214^^
  1. ;;^DD(399,101,1,2,"%D",1,0)
  1. ;;=This variable DGRVRCAL being defined causes the revenue codes to be
  1. ;;^DD(399,101,1,2,"%D",2,0)
  1. ;;=recalculated (results in ^IBCU6 being called). Checked at various places
  1. ;;^DD(399,101,1,2,"%D",3,0)
  1. ;;=within the billing screens (ex. EN+2^IBCSC4).
  1. ;;^DD(399,101,1,3,0)
  1. ;;=399^AE^MUMPS
  1. ;;^DD(399,101,1,3,1)
  1. ;;=S:$P(^DGCR(399,DA,0),"^",2) ^DGCR(399,"AE",$P(^(0),U,2),X,DA)=""
  1. ;;^DD(399,101,1,3,2)
  1. ;;=K:$P(^DGCR(399,DA,0),"^",2) ^DGCR(399,"AE",$P(^(0),U,2),X,DA)
  1. ;;^DD(399,101,1,3,"%D",0)
  1. ;;=^^3^3^2930802^^
  1. ;;^DD(399,101,1,3,"%D",1,0)
  1. ;;=Cross reference of patients and bills to primary insurers. This will
  1. ;;^DD(399,101,1,3,"%D",2,0)
  1. ;;=be used to prevent deletion of insurance policy entries from the
  1. ;;^DD(399,101,1,3,"%D",3,0)
  1. ;;=patient file if a bill has been created to this insurance company.
  1. ;;^DD(399,101,1,3,"DT")
  1. ;;=2930802
  1. ;;^DD(399,101,1,4,0)
  1. ;;=^^TRIGGER^399^.19
  1. ;;^DD(399,101,1,4,1)
  1. ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DGCR(399,D0,0)):^(0),1:"") S X=$P(Y(1),U,19),X=X S DIU=X K Y S X=DIV S X=$$FT^IBCU3(DA) X ^DD(399,101,1,4,1.4)
  1. ;;^DD(399,101,1,4,1.4)
  1. ;;=S DIH=$S($D(^DGCR(399,DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,19)=DIV,DIH=399,DIG=.19 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
  1. ;;^DD(399,101,1,4,2)
  1. ;;=Q
  1. ;;^DD(399,101,1,4,"%D",0)
  1. ;;=^^1^1^2940214^^
  1. ;;^DD(399,101,1,4,"%D",1,0)
  1. ;;=Sets form type depending on ins co. parameter and site default.
  1. ;;^DD(399,101,1,4,"CREATE VALUE")
  1. ;;=S X=$$FT^IBCU3(DA)
  1. ;;^DD(399,101,1,4,"DELETE VALUE")
  1. ;;=NO EFFECT
  1. ;;^DD(399,101,1,4,"DT")
  1. ;;=2931110
  1. ;;^DD(399,101,1,4,"FIELD")
  1. ;;=FORM TYPE
  1. ;;^DD(399,101,1,5,0)
  1. ;;=^^TRIGGER^399^122
  1. ;;^DD(399,101,1,5,1)
  1. ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DGCR(399,D0,"M1")):^("M1"),1:"") S X=$P(Y(1),U,2),X=X S DIU=X K Y X ^DD(399,101,1,5,1.1) X ^DD(399,101,1,5,1.4)
  1. ;;^DD(399,101,1,5,1.1)
  1. ;;=S X=DIV S I(0,0)=$S($D(D0):D0,1:""),D0=DIV S:'$D(^DIC(36,+D0,0)) D0=-1 S Y(101)=$S($D(^DIC(36,D0,0)):^(0),1:"") S X=$P(Y(101),U,11) S D0=I(0,0)
  1. ;;^DD(399,101,1,5,1.4)
  1. ;;=S DIH=$S($D(^DGCR(399,DIV(0),"M1")):^("M1"),1:""),DIV=X S $P(^("M1"),U,2)=DIV,DIH=399,DIG=122 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
  1. ;;^DD(399,101,1,5,2)
  1. ;;=Q
  1. ;;^DD(399,101,1,5,"%D",0)
  1. ;;=^^2^2^2940201^
  1. ;;^DD(399,101,1,5,"%D",1,0)
  1. ;;=Loads the Primary Provider # with the Hospital Provider Number of the
  1. ;;^DD(399,101,1,5,"%D",2,0)
  1. ;;=Primary Insurance Carrier.
  1. ;;^DD(399,101,1,5,"CREATE VALUE")
  1. ;;=PRIMARY INSURANCE CARRIER:HOSPITAL PROVIDER NUMBER
  1. ;;^DD(399,101,1,5,"DELETE VALUE")
  1. ;;=NO EFFECT
  1. ;;^DD(399,101,1,5,"DT")
  1. ;;=2940201
  1. ;;^DD(399,101,1,5,"FIELD")
  1. ;;=PRIMARY PROVIDER #
  1. ;;^DD(399,101,3)
  1. ;;=Enter name of insurance carrier to which this bill is to be sent.
  1. ;;^DD(399,101,5,1,0)
  1. ;;=399^112^1
  1. ;;^DD(399,101,12)
  1. ;;=Only valid insurance companies for this date of care.
  1. ;;^DD(399,101,12.1)
  1. ;;=S DIC("S")="I $D(IBDD(+Y)),'$D(^DGCR(399,DA,""AIC"",+Y))"
  1. ;;^DD(399,101,21,0)
  1. ;;=^^2^2^2940214^^^^
  1. ;;^DD(399,101,21,1,0)
  1. ;;=This is the name of the insurance carrier to which this bill is to be sent.
  1. ;;^DD(399,101,21,2,0)
  1. ;;=This is from the entries in this patients file of insurance companies.
  1. ;;^DD(399,101,23,0)
  1. ;;=^^3^3^2940214^^
  1. ;;^DD(399,101,23,1,0)
  1. ;;=Only valid/active insurance companies for this patient can be choosen,
  1. ;;^DD(399,101,23,2,0)
  1. ;;=as defined by DD^IBCNS. Company must not already be defined as a carrier
  1. ;;^DD(399,101,23,3,0)
  1. ;;=(399,102-103) for this bill.