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

IBINI05I.m

Go to the documentation of this file.
  1. IBINI05I ; ; 21-MAR-1994
  1. ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
  1. 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
  1. Q Q
  1. ;;^DD(356,.18,1,2,"DT")
  1. ;;=2930709
  1. ;;^DD(356,.18,1,3,0)
  1. ;;=^^TRIGGER^356^.17
  1. ;;^DD(356,.18,1,3,1)
  1. ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^IBT(356,D0,0)):^(0),1:"") S X=$P(Y(1),U,17),X=X S DIU=X K Y X ^DD(356,.18,1,3,1.1) X ^DD(356,.18,1,3,1.4)
  1. ;;^DD(356,.18,1,3,1.1)
  1. ;;=S X=DIV S X=$$EABD^IBTUTL($P($G(^IBT(356,+DA,0)),U,18),+$G(^IBT(356,+DA,1)))
  1. ;;^DD(356,.18,1,3,1.4)
  1. ;;=S DIH=$S($D(^IBT(356,DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,17)=DIV,DIH=356,DIG=.17 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
  1. ;;^DD(356,.18,1,3,2)
  1. ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^IBT(356,D0,0)):^(0),1:"") S X=$P(Y(1),U,17),X=X S DIU=X K Y S X="" S DIH=$S($D(^IBT(356,DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,17)=DIV,DIH=356,DIG=.17 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
  1. ;;^DD(356,.18,1,3,"%D",0)
  1. ;;=^^2^2^2930824^^
  1. ;;^DD(356,.18,1,3,"%D",1,0)
  1. ;;=Sets the Earliest Auto Bill Date whenever Event Type is set. Does not
  1. ;;^DD(356,.18,1,3,"%D",2,0)
  1. ;;=check if event is billable.
  1. ;;^DD(356,.18,1,3,"CREATE VALUE")
  1. ;;=S X=$$EABD^IBTUTL($P($G(^IBT(356,+DA,0)),U,18),+$G(^IBT(356,+DA,1)))
  1. ;;^DD(356,.18,1,3,"DELETE VALUE")
  1. ;;=@
  1. ;;^DD(356,.18,1,3,"DT")
  1. ;;=2930824
  1. ;;^DD(356,.18,1,3,"FIELD")
  1. ;;=EARLIEST AUTO BILL DATE
  1. ;;^DD(356,.18,1,4,0)
  1. ;;=356^APTY2^MUMPS
  1. ;;^DD(356,.18,1,4,1)
  1. ;;=S:$P(^IBT(356,DA,0),U,2)&($P(^(0),U,6)) ^IBT(356,"APTY",+$P(^(0),U,2),X,+$P(^(0),U,6),DA)=""
  1. ;;^DD(356,.18,1,4,2)
  1. ;;=K ^IBT(356,"APTY",+$P(^IBT(356,DA,0),U,2),X,+$P(^(0),U,6),DA)
  1. ;;^DD(356,.18,1,4,"%D",0)
  1. ;;=^^1^1^2930809^
  1. ;;^DD(356,.18,1,4,"%D",1,0)
  1. ;;=Cross-reference of all entries by patient by event type, by episode date.
  1. ;;^DD(356,.18,1,4,"DT")
  1. ;;=2930809
  1. ;;^DD(356,.18,1,5,0)
  1. ;;=^^TRIGGER^356^.07
  1. ;;^DD(356,.18,1,5,1)
  1. ;;=X ^DD(356,.18,1,5,1.3) I X S X=DIV S Y(1)=$S($D(^IBT(356,D0,0)):^(0),1:"") S X=$P(Y(1),U,7),X=X S DIU=X K Y S X=DIV S X=$$ADT^IBTRE0(DA) X ^DD(356,.18,1,5,1.4)
  1. ;;^DD(356,.18,1,5,1.3)
  1. ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y(2)=$C(59)_$S($D(^DD(356,.07,0)):$P(^(0),U,3),1:""),Y(1)=$S($D(^IBT(356,D0,0)):^(0),1:"") S X=$P($P(Y(2),$C(59)_$P(Y(1),U,7)_":",2),$C(59),1)=""
  1. ;;^DD(356,.18,1,5,1.4)
  1. ;;=S DIH=$S($D(^IBT(356,DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,7)=DIV,DIH=356,DIG=.07 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
  1. ;;^DD(356,.18,1,5,2)
  1. ;;=Q
  1. ;;^DD(356,.18,1,5,"%D",0)
  1. ;;=^^1^1^2931008^
  1. ;;^DD(356,.18,1,5,"%D",1,0)
  1. ;;=
  1. ;;^DD(356,.18,1,5,"CREATE CONDITION")
  1. ;;=#.07=""
  1. ;;^DD(356,.18,1,5,"CREATE VALUE")
  1. ;;=S X=$$ADT^IBTRE0(DA)
  1. ;;^DD(356,.18,1,5,"DELETE VALUE")
  1. ;;=NO EFFECT
  1. ;;^DD(356,.18,1,5,"DT")
  1. ;;=2931008
  1. ;;^DD(356,.18,1,5,"FIELD")
  1. ;;=#.07
  1. ;;^DD(356,.18,21,0)
  1. ;;=^^15^15^2940118^^^^
  1. ;;^DD(356,.18,21,1,0)
  1. ;;=This is the type of event that is being tracked. This field
  1. ;;^DD(356,.18,21,2,0)
  1. ;;=is automatically stored when an entry is created. Scheduled admissions
  1. ;;^DD(356,.18,21,3,0)
  1. ;;=are tracked to allow for precertification reviews. When an admission
  1. ;;^DD(356,.18,21,4,0)
  1. ;;=occurs within 7 days of a scheduled admission the scheduled admission will
  1. ;;^DD(356,.18,21,5,0)
  1. ;;=be updated to an inpatient care event type automatically.
  1. ;;^DD(356,.18,21,6,0)
  1. ;;=
  1. ;;^DD(356,.18,21,7,0)
  1. ;;=Choose an event type of Scheduled Admission only for future scheduled
  1. ;;^DD(356,.18,21,8,0)
  1. ;;=admissions and choose an event type of admission for past admissions.
  1. ;;^DD(356,.18,21,9,0)
  1. ;;=If you are using the scheduled admissions portion of the MAS package
  1. ;;^DD(356,.18,21,10,0)
  1. ;;=then scheduled admissions will automatically be added to claims tracking
  1. ;;^DD(356,.18,21,11,0)
  1. ;;=7 days before the scheduled admission and automatically converted to