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

IBINI019.m

Go to the documentation of this file.
  1. IBINI019 ; ; 21-MAR-1994
  1. ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
  1. Q:'DIFQ(350) 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(350,.13,"DT")
  1. ;;=2910304
  1. ;;^DD(350,.14,0)
  1. ;;=DATE BILLED FROM^D^^0;14^S %DT="EX" D ^%DT S X=Y K:Y<1 X
  1. ;;^DD(350,.14,1,0)
  1. ;;=^.1^^0
  1. ;;^DD(350,.14,21,0)
  1. ;;=^^1^1^2920414^^^^
  1. ;;^DD(350,.14,21,1,0)
  1. ;;=This is the first date in the date range covered by this billing action.
  1. ;;^DD(350,.14,"DT")
  1. ;;=2920302
  1. ;;^DD(350,.15,0)
  1. ;;=DATE BILLED TO^D^^0;15^S %DT="EX" D ^%DT S X=Y K:Y<1 X
  1. ;;^DD(350,.15,21,0)
  1. ;;=^^1^1^2920414^^
  1. ;;^DD(350,.15,21,1,0)
  1. ;;=This is the last date in the date range covered by this billing action.
  1. ;;^DD(350,.15,"DT")
  1. ;;=2911008
  1. ;;^DD(350,.16,0)
  1. ;;=PARENT EVENT^P350'^IB(^0;16^Q
  1. ;;^DD(350,.16,1,0)
  1. ;;=^.1
  1. ;;^DD(350,.16,1,1,0)
  1. ;;=350^AF
  1. ;;^DD(350,.16,1,1,1)
  1. ;;=S ^IB("AF",$E(X,1,30),DA)=""
  1. ;;^DD(350,.16,1,1,2)
  1. ;;=K ^IB("AF",$E(X,1,30),DA)
  1. ;;^DD(350,.16,1,1,"%D",0)
  1. ;;=^^2^2^2911009^
  1. ;;^DD(350,.16,1,1,"%D",1,0)
  1. ;;=This cross-reference will be used to link all Means Test/Category C
  1. ;;^DD(350,.16,1,1,"%D",2,0)
  1. ;;=co-payment and per diem charges to a particular billable event.
  1. ;;^DD(350,.16,1,1,"DT")
  1. ;;=2911009
  1. ;;^DD(350,.16,1,2,0)
  1. ;;=350^ACT1^MUMPS
  1. ;;^DD(350,.16,1,2,1)
  1. ;;=I $D(^IB(DA,0)),$P(^(0),"^",5)=1,$P($G(^IBE(350.1,+$P(^(0),"^",3),0)),"^")'["ADMISSION" S ^IB("ACT",X,DA)=""
  1. ;;^DD(350,.16,1,2,2)
  1. ;;=K ^IB("ACT",X,DA)
  1. ;;^DD(350,.16,1,2,"%D",0)
  1. ;;=^^9^9^2920115^^^^
  1. ;;^DD(350,.16,1,2,"%D",1,0)
  1. ;;=Cross-reference of all IB ACTIONS for Means Test/Category C charges
  1. ;;^DD(350,.16,1,2,"%D",2,0)
  1. ;;=which have a status (field #.05) of INCOMPLETE.
  1. ;;^DD(350,.16,1,2,"%D",3,0)
  1. ;;=
  1. ;;^DD(350,.16,1,2,"%D",4,0)
  1. ;;=This is a temporary cross-reference which is used to locate per diem
  1. ;;^DD(350,.16,1,2,"%D",5,0)
  1. ;;=and co-payment charges, for an inpatient/NHCU admission, which are
  1. ;;^DD(350,.16,1,2,"%D",6,0)
  1. ;;=established, but not yet passed to AR. The cross-reference is set
  1. ;;^DD(350,.16,1,2,"%D",7,0)
  1. ;;=whenever the status (#.05) of a billable charge is changed to 1
  1. ;;^DD(350,.16,1,2,"%D",8,0)
  1. ;;=(INCOMPLETE), and killed without condition. The "ACT" cross-reference
  1. ;;^DD(350,.16,1,2,"%D",9,0)
  1. ;;=on the status field is the companion to this cross-reference.
  1. ;;^DD(350,.16,1,2,"DT")
  1. ;;=2911106
  1. ;;^DD(350,.16,21,0)
  1. ;;=^^12^12^2940209^^^^
  1. ;;^DD(350,.16,21,1,0)
  1. ;;=This field is used only for IB ACTION entries (both events and charges)
  1. ;;^DD(350,.16,21,2,0)
  1. ;;=which are associated with Category C billing.
  1. ;;^DD(350,.16,21,3,0)
  1. ;;=
  1. ;;^DD(350,.16,21,4,0)
  1. ;;=This field is a pointer to the IB ACTION event (inpatient/NHCU admission
  1. ;;^DD(350,.16,21,5,0)
  1. ;;=or outpatient visit) for which the charges are being billed. For an
  1. ;;^DD(350,.16,21,6,0)
  1. ;;=event entry, this field will point to itself. For all IB ACTION charges
  1. ;;^DD(350,.16,21,7,0)
  1. ;;=(new, cancelled, and updated) associated with a billable event,
  1. ;;^DD(350,.16,21,8,0)
  1. ;;=this field will point to that event.
  1. ;;^DD(350,.16,21,9,0)
  1. ;;=
  1. ;;^DD(350,.16,21,10,0)
  1. ;;=Note that cancelled and updated actions will still point to the parent
  1. ;;^DD(350,.16,21,11,0)
  1. ;;=(new) action through the Parent Charge (.09) field, in the same manner
  1. ;;^DD(350,.16,21,12,0)
  1. ;;=as Pharmacy co-pay charges.
  1. ;;^DD(350,.16,"DT")
  1. ;;=2911106
  1. ;;^DD(350,.17,0)
  1. ;;=EVENT DATE^D^^0;17^S %DT="EX" D ^%DT S X=Y K:Y<1 X
  1. ;;^DD(350,.17,1,0)
  1. ;;=^.1
  1. ;;^DD(350,.17,1,1,0)
  1. ;;=350^AFDT1^MUMPS
  1. ;;^DD(350,.17,1,1,1)
  1. ;;=I $D(^IB(DA,0)),$P(^(0),"^",2) S ^IB("AFDT",$P(^(0),"^",2),-X,DA)=""
  1. ;;^DD(350,.17,1,1,2)
  1. ;;=I $D(^IB(DA,0)),$P(^(0),"^",2) K ^IB("AFDT",$P(^(0),"^",2),-X,DA)
  1. ;;^DD(350,.17,1,1,"%D",0)
  1. ;;=^^5^5^2911227^^^