- IBINI019 ; ; 21-MAR-1994
- ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
- 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
- Q Q
- ;;^DD(350,.13,"DT")
- ;;=2910304
- ;;^DD(350,.14,0)
- ;;=DATE BILLED FROM^D^^0;14^S %DT="EX" D ^%DT S X=Y K:Y<1 X
- ;;^DD(350,.14,1,0)
- ;;=^.1^^0
- ;;^DD(350,.14,21,0)
- ;;=^^1^1^2920414^^^^
- ;;^DD(350,.14,21,1,0)
- ;;=This is the first date in the date range covered by this billing action.
- ;;^DD(350,.14,"DT")
- ;;=2920302
- ;;^DD(350,.15,0)
- ;;=DATE BILLED TO^D^^0;15^S %DT="EX" D ^%DT S X=Y K:Y<1 X
- ;;^DD(350,.15,21,0)
- ;;=^^1^1^2920414^^
- ;;^DD(350,.15,21,1,0)
- ;;=This is the last date in the date range covered by this billing action.
- ;;^DD(350,.15,"DT")
- ;;=2911008
- ;;^DD(350,.16,0)
- ;;=PARENT EVENT^P350'^IB(^0;16^Q
- ;;^DD(350,.16,1,0)
- ;;=^.1
- ;;^DD(350,.16,1,1,0)
- ;;=350^AF
- ;;^DD(350,.16,1,1,1)
- ;;=S ^IB("AF",$E(X,1,30),DA)=""
- ;;^DD(350,.16,1,1,2)
- ;;=K ^IB("AF",$E(X,1,30),DA)
- ;;^DD(350,.16,1,1,"%D",0)
- ;;=^^2^2^2911009^
- ;;^DD(350,.16,1,1,"%D",1,0)
- ;;=This cross-reference will be used to link all Means Test/Category C
- ;;^DD(350,.16,1,1,"%D",2,0)
- ;;=co-payment and per diem charges to a particular billable event.
- ;;^DD(350,.16,1,1,"DT")
- ;;=2911009
- ;;^DD(350,.16,1,2,0)
- ;;=350^ACT1^MUMPS
- ;;^DD(350,.16,1,2,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)=""
- ;;^DD(350,.16,1,2,2)
- ;;=K ^IB("ACT",X,DA)
- ;;^DD(350,.16,1,2,"%D",0)
- ;;=^^9^9^2920115^^^^
- ;;^DD(350,.16,1,2,"%D",1,0)
- ;;=Cross-reference of all IB ACTIONS for Means Test/Category C charges
- ;;^DD(350,.16,1,2,"%D",2,0)
- ;;=which have a status (field #.05) of INCOMPLETE.
- ;;^DD(350,.16,1,2,"%D",3,0)
- ;;=
- ;;^DD(350,.16,1,2,"%D",4,0)
- ;;=This is a temporary cross-reference which is used to locate per diem
- ;;^DD(350,.16,1,2,"%D",5,0)
- ;;=and co-payment charges, for an inpatient/NHCU admission, which are
- ;;^DD(350,.16,1,2,"%D",6,0)
- ;;=established, but not yet passed to AR. The cross-reference is set
- ;;^DD(350,.16,1,2,"%D",7,0)
- ;;=whenever the status (#.05) of a billable charge is changed to 1
- ;;^DD(350,.16,1,2,"%D",8,0)
- ;;=(INCOMPLETE), and killed without condition. The "ACT" cross-reference
- ;;^DD(350,.16,1,2,"%D",9,0)
- ;;=on the status field is the companion to this cross-reference.
- ;;^DD(350,.16,1,2,"DT")
- ;;=2911106
- ;;^DD(350,.16,21,0)
- ;;=^^12^12^2940209^^^^
- ;;^DD(350,.16,21,1,0)
- ;;=This field is used only for IB ACTION entries (both events and charges)
- ;;^DD(350,.16,21,2,0)
- ;;=which are associated with Category C billing.
- ;;^DD(350,.16,21,3,0)
- ;;=
- ;;^DD(350,.16,21,4,0)
- ;;=This field is a pointer to the IB ACTION event (inpatient/NHCU admission
- ;;^DD(350,.16,21,5,0)
- ;;=or outpatient visit) for which the charges are being billed. For an
- ;;^DD(350,.16,21,6,0)
- ;;=event entry, this field will point to itself. For all IB ACTION charges
- ;;^DD(350,.16,21,7,0)
- ;;=(new, cancelled, and updated) associated with a billable event,
- ;;^DD(350,.16,21,8,0)
- ;;=this field will point to that event.
- ;;^DD(350,.16,21,9,0)
- ;;=
- ;;^DD(350,.16,21,10,0)
- ;;=Note that cancelled and updated actions will still point to the parent
- ;;^DD(350,.16,21,11,0)
- ;;=(new) action through the Parent Charge (.09) field, in the same manner
- ;;^DD(350,.16,21,12,0)
- ;;=as Pharmacy co-pay charges.
- ;;^DD(350,.16,"DT")
- ;;=2911106
- ;;^DD(350,.17,0)
- ;;=EVENT DATE^D^^0;17^S %DT="EX" D ^%DT S X=Y K:Y<1 X
- ;;^DD(350,.17,1,0)
- ;;=^.1
- ;;^DD(350,.17,1,1,0)
- ;;=350^AFDT1^MUMPS
- ;;^DD(350,.17,1,1,1)
- ;;=I $D(^IB(DA,0)),$P(^(0),"^",2) S ^IB("AFDT",$P(^(0),"^",2),-X,DA)=""
- ;;^DD(350,.17,1,1,2)
- ;;=I $D(^IB(DA,0)),$P(^(0),"^",2) K ^IB("AFDT",$P(^(0),"^",2),-X,DA)
- ;;^DD(350,.17,1,1,"%D",0)
- ;;=^^5^5^2911227^^^
- IBINI019 ; ; 21-MAR-1994
- +1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
- +2 IF 'DIFQ(350)
- QUIT
- FOR I=1:2
- SET X=$TEXT(Q+I)
- IF X=""
- QUIT
- SET Y=$EXTRACT($TEXT(Q+I+1),4,999)
- SET X=$EXTRACT(X,4,999)
- IF $ASCII(Y)=126
- SET I=I+1
- SET Y=$EXTRACT(Y,2,999)_$EXTRACT($TEXT(Q+I+1),5,99)
- IF $ASCII(Y)=61
- SET Y=$EXTRACT(Y,2,999)
- XECUTE NO
- IF '$TEST
- SET @X=Y
- Q QUIT
- +1 ;;^DD(350,.13,"DT")
- +2 ;;=2910304
- +3 ;;^DD(350,.14,0)
- +4 ;;=DATE BILLED FROM^D^^0;14^S %DT="EX" D ^%DT S X=Y K:Y<1 X
- +5 ;;^DD(350,.14,1,0)
- +6 ;;=^.1^^0
- +7 ;;^DD(350,.14,21,0)
- +8 ;;=^^1^1^2920414^^^^
- +9 ;;^DD(350,.14,21,1,0)
- +10 ;;=This is the first date in the date range covered by this billing action.
- +11 ;;^DD(350,.14,"DT")
- +12 ;;=2920302
- +13 ;;^DD(350,.15,0)
- +14 ;;=DATE BILLED TO^D^^0;15^S %DT="EX" D ^%DT S X=Y K:Y<1 X
- +15 ;;^DD(350,.15,21,0)
- +16 ;;=^^1^1^2920414^^
- +17 ;;^DD(350,.15,21,1,0)
- +18 ;;=This is the last date in the date range covered by this billing action.
- +19 ;;^DD(350,.15,"DT")
- +20 ;;=2911008
- +21 ;;^DD(350,.16,0)
- +22 ;;=PARENT EVENT^P350'^IB(^0;16^Q
- +23 ;;^DD(350,.16,1,0)
- +24 ;;=^.1
- +25 ;;^DD(350,.16,1,1,0)
- +26 ;;=350^AF
- +27 ;;^DD(350,.16,1,1,1)
- +28 ;;=S ^IB("AF",$E(X,1,30),DA)=""
- +29 ;;^DD(350,.16,1,1,2)
- +30 ;;=K ^IB("AF",$E(X,1,30),DA)
- +31 ;;^DD(350,.16,1,1,"%D",0)
- +32 ;;=^^2^2^2911009^
- +33 ;;^DD(350,.16,1,1,"%D",1,0)
- +34 ;;=This cross-reference will be used to link all Means Test/Category C
- +35 ;;^DD(350,.16,1,1,"%D",2,0)
- +36 ;;=co-payment and per diem charges to a particular billable event.
- +37 ;;^DD(350,.16,1,1,"DT")
- +38 ;;=2911009
- +39 ;;^DD(350,.16,1,2,0)
- +40 ;;=350^ACT1^MUMPS
- +41 ;;^DD(350,.16,1,2,1)
- +42 ;;=I $D(^IB(DA,0)),$P(^(0),"^",5)=1,$P($G(^IBE(350.1,+$P(^(0),"^",3),0)),"^")'["ADMISSION" S ^IB("ACT",X,DA)=""
- +43 ;;^DD(350,.16,1,2,2)
- +44 ;;=K ^IB("ACT",X,DA)
- +45 ;;^DD(350,.16,1,2,"%D",0)
- +46 ;;=^^9^9^2920115^^^^
- +47 ;;^DD(350,.16,1,2,"%D",1,0)
- +48 ;;=Cross-reference of all IB ACTIONS for Means Test/Category C charges
- +49 ;;^DD(350,.16,1,2,"%D",2,0)
- +50 ;;=which have a status (field #.05) of INCOMPLETE.
- +51 ;;^DD(350,.16,1,2,"%D",3,0)
- +52 ;;=
- +53 ;;^DD(350,.16,1,2,"%D",4,0)
- +54 ;;=This is a temporary cross-reference which is used to locate per diem
- +55 ;;^DD(350,.16,1,2,"%D",5,0)
- +56 ;;=and co-payment charges, for an inpatient/NHCU admission, which are
- +57 ;;^DD(350,.16,1,2,"%D",6,0)
- +58 ;;=established, but not yet passed to AR. The cross-reference is set
- +59 ;;^DD(350,.16,1,2,"%D",7,0)
- +60 ;;=whenever the status (#.05) of a billable charge is changed to 1
- +61 ;;^DD(350,.16,1,2,"%D",8,0)
- +62 ;;=(INCOMPLETE), and killed without condition. The "ACT" cross-reference
- +63 ;;^DD(350,.16,1,2,"%D",9,0)
- +64 ;;=on the status field is the companion to this cross-reference.
- +65 ;;^DD(350,.16,1,2,"DT")
- +66 ;;=2911106
- +67 ;;^DD(350,.16,21,0)
- +68 ;;=^^12^12^2940209^^^^
- +69 ;;^DD(350,.16,21,1,0)
- +70 ;;=This field is used only for IB ACTION entries (both events and charges)
- +71 ;;^DD(350,.16,21,2,0)
- +72 ;;=which are associated with Category C billing.
- +73 ;;^DD(350,.16,21,3,0)
- +74 ;;=
- +75 ;;^DD(350,.16,21,4,0)
- +76 ;;=This field is a pointer to the IB ACTION event (inpatient/NHCU admission
- +77 ;;^DD(350,.16,21,5,0)
- +78 ;;=or outpatient visit) for which the charges are being billed. For an
- +79 ;;^DD(350,.16,21,6,0)
- +80 ;;=event entry, this field will point to itself. For all IB ACTION charges
- +81 ;;^DD(350,.16,21,7,0)
- +82 ;;=(new, cancelled, and updated) associated with a billable event,
- +83 ;;^DD(350,.16,21,8,0)
- +84 ;;=this field will point to that event.
- +85 ;;^DD(350,.16,21,9,0)
- +86 ;;=
- +87 ;;^DD(350,.16,21,10,0)
- +88 ;;=Note that cancelled and updated actions will still point to the parent
- +89 ;;^DD(350,.16,21,11,0)
- +90 ;;=(new) action through the Parent Charge (.09) field, in the same manner
- +91 ;;^DD(350,.16,21,12,0)
- +92 ;;=as Pharmacy co-pay charges.
- +93 ;;^DD(350,.16,"DT")
- +94 ;;=2911106
- +95 ;;^DD(350,.17,0)
- +96 ;;=EVENT DATE^D^^0;17^S %DT="EX" D ^%DT S X=Y K:Y<1 X
- +97 ;;^DD(350,.17,1,0)
- +98 ;;=^.1
- +99 ;;^DD(350,.17,1,1,0)
- +100 ;;=350^AFDT1^MUMPS
- +101 ;;^DD(350,.17,1,1,1)
- +102 ;;=I $D(^IB(DA,0)),$P(^(0),"^",2) S ^IB("AFDT",$P(^(0),"^",2),-X,DA)=""
- +103 ;;^DD(350,.17,1,1,2)
- +104 ;;=I $D(^IB(DA,0)),$P(^(0),"^",2) K ^IB("AFDT",$P(^(0),"^",2),-X,DA)
- +105 ;;^DD(350,.17,1,1,"%D",0)
- +106 ;;=^^5^5^2911227^^^