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

IBINI0AE.m

Go to the documentation of this file.
  1. IBINI0AE ; ; 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,111,1,2,"%D",1,0)
  1. ;;=Variable causes revenue codes and chrges to be re-calculated on return
  1. ;;^DD(399,111,1,2,"%D",2,0)
  1. ;;=to the enter/edit billing screens.
  1. ;;^DD(399,111,3)
  1. ;;=Enter name of the institution or organization responsible for payment of this bill.
  1. ;;^DD(399,111,21,0)
  1. ;;=^^2^2^2940114^^^
  1. ;;^DD(399,111,21,1,0)
  1. ;;=This is the name of the institution or organization responsible for payment
  1. ;;^DD(399,111,21,2,0)
  1. ;;=of this bill.
  1. ;;^DD(399,111,"DT")
  1. ;;=2900515
  1. ;;^DD(399,112,0)
  1. ;;=PRIMARY INSURANCE POLICY^FXO^^M;12^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>20!($L(X)<1) X D:$D(X) DD^IBCNS2(X,DA,1)
  1. ;;^DD(399,112,1,0)
  1. ;;=^.1
  1. ;;^DD(399,112,1,1,0)
  1. ;;=^^TRIGGER^399^101
  1. ;;^DD(399,112,1,1,1)
  1. ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DGCR(399,D0,"M")):^("M"),1:"") S X=$P(Y(1),U,1),X=X S DIU=X K Y X ^DD(399,112,1,1,1.1) X ^DD(399,112,1,1,1.4)
  1. ;;^DD(399,112,1,1,1.1)
  1. ;;=S X=DIV S X=+$$INSCO^IBCNS2(DA,$P(^DGCR(399,DA,"M"),U,12))
  1. ;;^DD(399,112,1,1,1.4)
  1. ;;=S DIH=$S($D(^DGCR(399,DIV(0),"M")):^("M"),1:""),DIV=X S $P(^("M"),U,1)=DIV,DIH=399,DIG=101 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
  1. ;;^DD(399,112,1,1,2)
  1. ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DGCR(399,D0,"M")):^("M"),1:"") S X=$P(Y(1),U,1),X=X S DIU=X K Y S X="" X ^DD(399,112,1,1,2.4)
  1. ;;^DD(399,112,1,1,2.4)
  1. ;;=S DIH=$S($D(^DGCR(399,DIV(0),"M")):^("M"),1:""),DIV=X S $P(^("M"),U,1)=DIV,DIH=399,DIG=101 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
  1. ;;^DD(399,112,1,1,"CREATE VALUE")
  1. ;;=S X=+$$INSCO^IBCNS2(DA,$P(^DGCR(399,DA,"M"),U,12))
  1. ;;^DD(399,112,1,1,"DELETE VALUE")
  1. ;;=@
  1. ;;^DD(399,112,1,1,"FIELD")
  1. ;;=#101
  1. ;;^DD(399,112,1,2,0)
  1. ;;=399^AI11^MUMPS
  1. ;;^DD(399,112,1,2,1)
  1. ;;=D IX^IBCNS2(DA,"I1")
  1. ;;^DD(399,112,1,2,2)
  1. ;;=D KIX^IBCNS2(DA,"I1")
  1. ;;^DD(399,112,1,2,"%D",0)
  1. ;;=^^2^2^2931220^^
  1. ;;^DD(399,112,1,2,"%D",1,0)
  1. ;;=Sets "I1" x-ref and "aic" x-ref for bill/claims file. These indexes
  1. ;;^DD(399,112,1,2,"%D",2,0)
  1. ;;=previously were set by field #101.
  1. ;;^DD(399,112,1,2,"DT")
  1. ;;=2931220
  1. ;;^DD(399,112,2)
  1. ;;=S Y(0)=Y S Y=$$TRANS^IBCNS2(DA,Y)
  1. ;;^DD(399,112,2.1)
  1. ;;=S Y=$$TRANS^IBCNS2(DA,Y)
  1. ;;^DD(399,112,3)
  1. ;;=Select this patient's insurance policy that is the primary policy to be billed. Enter the name of the Ins. Company or the number.
  1. ;;^DD(399,112,4)
  1. ;;=D DDHELP^IBCNS2(DA,1)
  1. ;;^DD(399,112,5,1,0)
  1. ;;=399^.11^1
  1. ;;^DD(399,112,21,0)
  1. ;;=^^1^1^2940214^^^
  1. ;;^DD(399,112,21,1,0)
  1. ;;=The policy to be billed for this episode of care.
  1. ;;^DD(399,112,"DT")
  1. ;;=2931220
  1. ;;^DD(399,113,0)
  1. ;;=SECONDARY INSURANCE POLICY^FOX^^M;13^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>4!($L(X)<1) X D:$D(X) DD^IBCNS2(X,DA,1)
  1. ;;^DD(399,113,1,0)
  1. ;;=^.1
  1. ;;^DD(399,113,1,1,0)
  1. ;;=^^TRIGGER^399^102
  1. ;;^DD(399,113,1,1,1)
  1. ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DGCR(399,D0,"M")):^("M"),1:"") S X=$P(Y(1),U,2),X=X S DIU=X K Y X ^DD(399,113,1,1,1.1) X ^DD(399,113,1,1,1.4)
  1. ;;^DD(399,113,1,1,1.1)
  1. ;;=S X=DIV S X=+$$INSCO^IBCNS2(DA,+$P(^DGCR(399,DA,"M"),U,13))
  1. ;;^DD(399,113,1,1,1.4)
  1. ;;=S DIH=$S($D(^DGCR(399,DIV(0),"M")):^("M"),1:""),DIV=X S $P(^("M"),U,2)=DIV,DIH=399,DIG=102 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
  1. ;;^DD(399,113,1,1,2)
  1. ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DGCR(399,D0,"M")):^("M"),1:"") S X=$P(Y(1),U,2),X=X S DIU=X K Y S X="" X ^DD(399,113,1,1,2.4)
  1. ;;^DD(399,113,1,1,2.4)
  1. ;;=S DIH=$S($D(^DGCR(399,DIV(0),"M")):^("M"),1:""),DIV=X S $P(^("M"),U,2)=DIV,DIH=399,DIG=102 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
  1. ;;^DD(399,113,1,1,"CREATE VALUE")
  1. ;;=S X=+$$INSCO^IBCNS2(DA,+$P(^DGCR(399,DA,"M"),U,13))
  1. ;;^DD(399,113,1,1,"DELETE VALUE")
  1. ;;=@