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

IBINI0AG.m

Go to the documentation of this file.
  1. IBINI0AG ; ; 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,122,21,2,0)
  1. ;;=Printed in Form Locator 51 for the Primary Insurance Carrier on the UB-92.
  1. ;;^DD(399,122,23,0)
  1. ;;=^^2^2^2940201^^
  1. ;;^DD(399,122,23,1,0)
  1. ;;=Loaded with Hospital Provider Number (36,.11) of the Primary Insurance
  1. ;;^DD(399,122,23,2,0)
  1. ;;=Carrier, if defined.
  1. ;;^DD(399,122,"DT")
  1. ;;=2940201
  1. ;;^DD(399,123,0)
  1. ;;=SECONDARY PROVIDER #^F^^M1;3^K:$L(X)>13!($L(X)<3) X
  1. ;;^DD(399,123,3)
  1. ;;=Answer must be 3-13 characters in length.
  1. ;;^DD(399,123,5,1,0)
  1. ;;=399^102^2
  1. ;;^DD(399,123,21,0)
  1. ;;=^^2^2^2940201^
  1. ;;^DD(399,123,21,1,0)
  1. ;;=This is the number assigned to the provider by the secondary payer.
  1. ;;^DD(399,123,21,2,0)
  1. ;;=Printed in Form Locator 51 for the Secondary Insurance Carrier on the UB-92.
  1. ;;^DD(399,123,23,0)
  1. ;;=^^2^2^2940201^
  1. ;;^DD(399,123,23,1,0)
  1. ;;=Loaded with Hospital Provider Number (36,.11) of the Secondary Insurance
  1. ;;^DD(399,123,23,2,0)
  1. ;;=Carrier, if defined.
  1. ;;^DD(399,123,"DT")
  1. ;;=2940201
  1. ;;^DD(399,124,0)
  1. ;;=TERTIARY PROVIDER #^F^^M1;4^K:$L(X)>13!($L(X)<3) X
  1. ;;^DD(399,124,3)
  1. ;;=Answer must be 3-13 characters in length.
  1. ;;^DD(399,124,5,1,0)
  1. ;;=399^103^2
  1. ;;^DD(399,124,21,0)
  1. ;;=^^2^2^2940201^
  1. ;;^DD(399,124,21,1,0)
  1. ;;=This is the number assigned to the provider by the tertiary payer.
  1. ;;^DD(399,124,21,2,0)
  1. ;;=Printed in Form Locator 51 for the Tertiary Insurance Carrier on the UB-92.
  1. ;;^DD(399,124,23,0)
  1. ;;=^^2^2^2940201^
  1. ;;^DD(399,124,23,1,0)
  1. ;;=Loaded with Hospital Provider Number (36,.11) of the Tertiary Insurance
  1. ;;^DD(399,124,23,2,0)
  1. ;;=Carrier, if defined.
  1. ;;^DD(399,124,"DT")
  1. ;;=2940201
  1. ;;^DD(399,151,0)
  1. ;;=STATEMENT COVERS FROM^RDX^^U;1^S %DT="ETP" D ^%DT S X=Y K:Y<1 X I $D(X) D DDAT^IBCU4 K IB00
  1. ;;^DD(399,151,1,0)
  1. ;;=^.1
  1. ;;^DD(399,151,1,1,0)
  1. ;;=^^TRIGGER^399^165
  1. ;;^DD(399,151,1,1,1)
  1. ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X I $P(^DGCR(399,DA,0),U,5)<3 I X S X=DIV S Y(1)=$S($D(^DGCR(399,D0,"U")):^("U"),1:"") S X=$P(Y(1),U,15),X=X S DIU=X K Y S X=DIV S X=$$LOS1^IBCU64(DA) X ^DD(399,151,1,1,1.4)
  1. ;;^DD(399,151,1,1,1.4)
  1. ;;=S DIH=$S($D(^DGCR(399,DIV(0),"U")):^("U"),1:""),DIV=X S $P(^("U"),U,15)=DIV,DIH=399,DIG=165 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
  1. ;;^DD(399,151,1,1,2)
  1. ;;=Q
  1. ;;^DD(399,151,1,1,"%D",0)
  1. ;;=^^1^1^2931018^
  1. ;;^DD(399,151,1,1,"%D",1,0)
  1. ;;=Sets Length of Stay based on PTF record and date range of bill. Inpatient only.
  1. ;;^DD(399,151,1,1,"CREATE CONDITION")
  1. ;;=I $P(^DGCR(399,DA,0),U,5)<3
  1. ;;^DD(399,151,1,1,"CREATE VALUE")
  1. ;;=S X=$$LOS1^IBCU64(DA)
  1. ;;^DD(399,151,1,1,"DELETE VALUE")
  1. ;;=NO EFFECT
  1. ;;^DD(399,151,1,1,"DT")
  1. ;;=2931018
  1. ;;^DD(399,151,1,1,"FIELD")
  1. ;;=LENGTH OF STAY
  1. ;;^DD(399,151,1,2,0)
  1. ;;=399^AREV2^MUMPS
  1. ;;^DD(399,151,1,2,1)
  1. ;;=S DGRVRCAL=1
  1. ;;^DD(399,151,1,2,2)
  1. ;;=S DGRVRCAL=2
  1. ;;^DD(399,151,1,2,"%D",0)
  1. ;;=^^2^2^2940214^
  1. ;;^DD(399,151,1,2,"%D",1,0)
  1. ;;=Variable causes revenue codes and chrges to be re-calculated on return
  1. ;;^DD(399,151,1,2,"%D",2,0)
  1. ;;=to the enter/edit billing screens.
  1. ;;^DD(399,151,1,3,0)
  1. ;;=^^TRIGGER^399^209
  1. ;;^DD(399,151,1,3,1)
  1. ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DGCR(399,D0,"U1")):^("U1"),1:"") S X=$P(Y(1),U,9),X=X S DIU=X K Y X ^DD(399,151,1,3,1.1) X ^DD(399,151,1,3,1.4)
  1. ;;^DD(399,151,1,3,1.1)
  1. ;;=S X=DIV S X=+^DGCR(399,DA,"U"),X=$E(X,2,3)+$S($E(X,4,5)<10:0,1:1)
  1. ;;^DD(399,151,1,3,1.4)
  1. ;;=S DIH=$S($D(^DGCR(399,DIV(0),"U1")):^("U1"),1:""),DIV=X S $P(^("U1"),U,9)=DIV,DIH=399,DIG=209 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
  1. ;;^DD(399,151,1,3,2)
  1. ;;=Q
  1. ;;^DD(399,151,1,3,"%D",0)
  1. ;;=^^1^1^2931018^
  1. ;;^DD(399,151,1,3,"%D",1,0)
  1. ;;=Set Fiscal Year 1 to the FY the bill is within. (Bills can not span FY.)