- IBINI05H ; ; 21-MAR-1994
- ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
- Q:'DIFQ(356) 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(356,.17,1,2,"DT")
- ;;=2930824
- ;;^DD(356,.17,3)
- ;;=Enter the date the autobiller will first try and create a bill for this visit. Delete this date if the visit is not billable.
- ;;^DD(356,.17,5,1,0)
- ;;=356^.18^3
- ;;^DD(356,.17,5,2,0)
- ;;=356^1.01^1
- ;;^DD(356,.17,5,3,0)
- ;;=356^.11^2
- ;;^DD(356,.17,5,4,0)
- ;;=356^.12^3
- ;;^DD(356,.17,5,5,0)
- ;;=356^.19^3
- ;;^DD(356,.17,5,6,0)
- ;;=356^.2^2
- ;;^DD(356,.17,21,0)
- ;;=^^15^15^2940213^^^^
- ;;^DD(356,.17,21,1,0)
- ;;=This is the earliest date that this visit can be automatically billed.
- ;;^DD(356,.17,21,2,0)
- ;;=The automatic billing software will use this date when searching for events
- ;;^DD(356,.17,21,3,0)
- ;;=to bill. All events with an Earliest Auto Bill Date on or before the run
- ;;^DD(356,.17,21,4,0)
- ;;=date of the automatic biller will be considered for inclusion on a bill.
- ;;^DD(356,.17,21,5,0)
- ;;=
- ;;^DD(356,.17,21,6,0)
- ;;=This field may be set in one of two ways. If AUTOMATE BILLING is on for
- ;;^DD(356,.17,21,7,0)
- ;;=the Event Type then this field will be automatically set when apparently
- ;;^DD(356,.17,21,8,0)
- ;;=billable events are added to the claims tracking module.
- ;;^DD(356,.17,21,9,0)
- ;;=This field can also be directly set by a user, AUTOMATE BILLING does not
- ;;^DD(356,.17,21,10,0)
- ;;=need to be on for the Event Type. When the automated biller runs it will
- ;;^DD(356,.17,21,11,0)
- ;;=attempt to add the event to a bill.
- ;;^DD(356,.17,21,12,0)
- ;;=
- ;;^DD(356,.17,21,13,0)
- ;;=This date should be deleted if the event turns out not to be suitable for
- ;;^DD(356,.17,21,14,0)
- ;;=a reimbursable insurance bill. This field will automatically be deleted
- ;;^DD(356,.17,21,15,0)
- ;;=if the event is added to a bill or a reason not-billable is entered.
- ;;^DD(356,.17,22)
- ;;=
- ;;^DD(356,.17,23,0)
- ;;=^^13^13^2940213^^^^
- ;;^DD(356,.17,23,1,0)
- ;;=If and only if this field is set will the event be considered by the
- ;;^DD(356,.17,23,2,0)
- ;;=automatic biller. This will be set to the date the event was entered
- ;;^DD(356,.17,23,3,0)
- ;;=into claims tracking plus the number of days delay for the event type.
- ;;^DD(356,.17,23,4,0)
- ;;=
- ;;^DD(356,.17,23,5,0)
- ;;=Setting of this field may be automatic, ie. all by triggers, if automated
- ;;^DD(356,.17,23,6,0)
- ;;=billing is turned on for the event type. Initially set by triggers on
- ;;^DD(356,.17,23,7,0)
- ;;=Event Type (.18) and Date Entered (1.01).
- ;;^DD(356,.17,23,8,0)
- ;;=
- ;;^DD(356,.17,23,9,0)
- ;;=This may also be set by user.
- ;;^DD(356,.17,23,10,0)
- ;;=
- ;;^DD(356,.17,23,11,0)
- ;;=There is no checking to determine if the event is actually billable when
- ;;^DD(356,.17,23,12,0)
- ;;=the date is added. Instead, if one of the fields that makes an event not
- ;;^DD(356,.17,23,13,0)
- ;;=billable is entered this field is deleted.
- ;;^DD(356,.17,"DT")
- ;;=2930824
- ;;^DD(356,.18,0)
- ;;=EVENT TYPE^P356.6'^IBE(356.6,^0;18^Q
- ;;^DD(356,.18,1,0)
- ;;=^.1
- ;;^DD(356,.18,1,1,0)
- ;;=356^EVNT
- ;;^DD(356,.18,1,1,1)
- ;;=S ^IBT(356,"EVNT",$E(X,1,30),DA)=""
- ;;^DD(356,.18,1,1,2)
- ;;=K ^IBT(356,"EVNT",$E(X,1,30),DA)
- ;;^DD(356,.18,1,1,"DT")
- ;;=2930820
- ;;^DD(356,.18,1,2,0)
- ;;=356^ANABD3^MUMPS
- ;;^DD(356,.18,1,2,1)
- ;;=S:$P(^IBT(356,DA,0),U,20)&($P(^(0),U,19)="")&($P(^(0),"^",17)) ^IBT(356,"ANABD",X,$P(^(0),U,17),DA)=""
- ;;^DD(356,.18,1,2,2)
- ;;=K ^IBT(356,"ANABD",X,+$P(^IBT(356,DA,0),U,17),DA)
- ;;^DD(356,.18,1,2,"%D",0)
- ;;=^^2^2^2930709^
- ;;^DD(356,.18,1,2,"%D",1,0)
- ;;=Cross reference of all active, billable events by event type and next
- ;;^DD(356,.18,1,2,"%D",2,0)
- ;;=auto bill date.
- IBINI05H ; ; 21-MAR-1994
- +1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
- +2 IF 'DIFQ(356)
- 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(356,.17,1,2,"DT")
- +2 ;;=2930824
- +3 ;;^DD(356,.17,3)
- +4 ;;=Enter the date the autobiller will first try and create a bill for this visit. Delete this date if the visit is not billable.
- +5 ;;^DD(356,.17,5,1,0)
- +6 ;;=356^.18^3
- +7 ;;^DD(356,.17,5,2,0)
- +8 ;;=356^1.01^1
- +9 ;;^DD(356,.17,5,3,0)
- +10 ;;=356^.11^2
- +11 ;;^DD(356,.17,5,4,0)
- +12 ;;=356^.12^3
- +13 ;;^DD(356,.17,5,5,0)
- +14 ;;=356^.19^3
- +15 ;;^DD(356,.17,5,6,0)
- +16 ;;=356^.2^2
- +17 ;;^DD(356,.17,21,0)
- +18 ;;=^^15^15^2940213^^^^
- +19 ;;^DD(356,.17,21,1,0)
- +20 ;;=This is the earliest date that this visit can be automatically billed.
- +21 ;;^DD(356,.17,21,2,0)
- +22 ;;=The automatic billing software will use this date when searching for events
- +23 ;;^DD(356,.17,21,3,0)
- +24 ;;=to bill. All events with an Earliest Auto Bill Date on or before the run
- +25 ;;^DD(356,.17,21,4,0)
- +26 ;;=date of the automatic biller will be considered for inclusion on a bill.
- +27 ;;^DD(356,.17,21,5,0)
- +28 ;;=
- +29 ;;^DD(356,.17,21,6,0)
- +30 ;;=This field may be set in one of two ways. If AUTOMATE BILLING is on for
- +31 ;;^DD(356,.17,21,7,0)
- +32 ;;=the Event Type then this field will be automatically set when apparently
- +33 ;;^DD(356,.17,21,8,0)
- +34 ;;=billable events are added to the claims tracking module.
- +35 ;;^DD(356,.17,21,9,0)
- +36 ;;=This field can also be directly set by a user, AUTOMATE BILLING does not
- +37 ;;^DD(356,.17,21,10,0)
- +38 ;;=need to be on for the Event Type. When the automated biller runs it will
- +39 ;;^DD(356,.17,21,11,0)
- +40 ;;=attempt to add the event to a bill.
- +41 ;;^DD(356,.17,21,12,0)
- +42 ;;=
- +43 ;;^DD(356,.17,21,13,0)
- +44 ;;=This date should be deleted if the event turns out not to be suitable for
- +45 ;;^DD(356,.17,21,14,0)
- +46 ;;=a reimbursable insurance bill. This field will automatically be deleted
- +47 ;;^DD(356,.17,21,15,0)
- +48 ;;=if the event is added to a bill or a reason not-billable is entered.
- +49 ;;^DD(356,.17,22)
- +50 ;;=
- +51 ;;^DD(356,.17,23,0)
- +52 ;;=^^13^13^2940213^^^^
- +53 ;;^DD(356,.17,23,1,0)
- +54 ;;=If and only if this field is set will the event be considered by the
- +55 ;;^DD(356,.17,23,2,0)
- +56 ;;=automatic biller. This will be set to the date the event was entered
- +57 ;;^DD(356,.17,23,3,0)
- +58 ;;=into claims tracking plus the number of days delay for the event type.
- +59 ;;^DD(356,.17,23,4,0)
- +60 ;;=
- +61 ;;^DD(356,.17,23,5,0)
- +62 ;;=Setting of this field may be automatic, ie. all by triggers, if automated
- +63 ;;^DD(356,.17,23,6,0)
- +64 ;;=billing is turned on for the event type. Initially set by triggers on
- +65 ;;^DD(356,.17,23,7,0)
- +66 ;;=Event Type (.18) and Date Entered (1.01).
- +67 ;;^DD(356,.17,23,8,0)
- +68 ;;=
- +69 ;;^DD(356,.17,23,9,0)
- +70 ;;=This may also be set by user.
- +71 ;;^DD(356,.17,23,10,0)
- +72 ;;=
- +73 ;;^DD(356,.17,23,11,0)
- +74 ;;=There is no checking to determine if the event is actually billable when
- +75 ;;^DD(356,.17,23,12,0)
- +76 ;;=the date is added. Instead, if one of the fields that makes an event not
- +77 ;;^DD(356,.17,23,13,0)
- +78 ;;=billable is entered this field is deleted.
- +79 ;;^DD(356,.17,"DT")
- +80 ;;=2930824
- +81 ;;^DD(356,.18,0)
- +82 ;;=EVENT TYPE^P356.6'^IBE(356.6,^0;18^Q
- +83 ;;^DD(356,.18,1,0)
- +84 ;;=^.1
- +85 ;;^DD(356,.18,1,1,0)
- +86 ;;=356^EVNT
- +87 ;;^DD(356,.18,1,1,1)
- +88 ;;=S ^IBT(356,"EVNT",$E(X,1,30),DA)=""
- +89 ;;^DD(356,.18,1,1,2)
- +90 ;;=K ^IBT(356,"EVNT",$E(X,1,30),DA)
- +91 ;;^DD(356,.18,1,1,"DT")
- +92 ;;=2930820
- +93 ;;^DD(356,.18,1,2,0)
- +94 ;;=356^ANABD3^MUMPS
- +95 ;;^DD(356,.18,1,2,1)
- +96 ;;=S:$P(^IBT(356,DA,0),U,20)&($P(^(0),U,19)="")&($P(^(0),"^",17)) ^IBT(356,"ANABD",X,$P(^(0),U,17),DA)=""
- +97 ;;^DD(356,.18,1,2,2)
- +98 ;;=K ^IBT(356,"ANABD",X,+$P(^IBT(356,DA,0),U,17),DA)
- +99 ;;^DD(356,.18,1,2,"%D",0)
- +100 ;;=^^2^2^2930709^
- +101 ;;^DD(356,.18,1,2,"%D",1,0)
- +102 ;;=Cross reference of all active, billable events by event type and next
- +103 ;;^DD(356,.18,1,2,"%D",2,0)
- +104 ;;=auto bill date.