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

IBINI05J.m

Go to the documentation of this file.
  1. IBINI05J ; ; 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,21,12,0)
  1. ;;=an event type of admission after the patient has been admitted.
  1. ;;^DD(356,.18,21,13,0)
  1. ;;=
  1. ;;^DD(356,.18,21,14,0)
  1. ;;=For admissions you will be able to specify the type of admission in
  1. ;;^DD(356,.18,21,15,0)
  1. ;;=another field.
  1. ;;^DD(356,.18,"DT")
  1. ;;=2931008
  1. ;;^DD(356,.19,0)
  1. ;;=REASON NOT BILLABLE^P356.8'^IBE(356.8,^0;19^Q
  1. ;;^DD(356,.19,.1)
  1. ;;=NOT BILLABLE REASON
  1. ;;^DD(356,.19,1,0)
  1. ;;=^.1
  1. ;;^DD(356,.19,1,1,0)
  1. ;;=356^AR
  1. ;;^DD(356,.19,1,1,1)
  1. ;;=S ^IBT(356,"AR",$E(X,1,30),DA)=""
  1. ;;^DD(356,.19,1,1,2)
  1. ;;=K ^IBT(356,"AR",$E(X,1,30),DA)
  1. ;;^DD(356,.19,1,1,"%D",0)
  1. ;;=^^1^1^2930709^
  1. ;;^DD(356,.19,1,1,"%D",1,0)
  1. ;;=Regular cross reference of reason not billable
  1. ;;^DD(356,.19,1,1,"DT")
  1. ;;=2930709
  1. ;;^DD(356,.19,1,2,0)
  1. ;;=356^ANABD1^MUMPS
  1. ;;^DD(356,.19,1,2,1)
  1. ;;=K:X ^IBT(356,"ANABD",+$P(^IBT(356,DA,0),U,18),+$P(^(0),U,17),DA)
  1. ;;^DD(356,.19,1,2,2)
  1. ;;=S:$P(^IBT(356,DA,0),U,20)&($P(^(0),U,17))&($P(^(0),U,18)) ^IBT(356,"ANABD",$P(^(0),U,18),$P(^(0),U,17),DA)=""
  1. ;;^DD(356,.19,1,2,"%D",0)
  1. ;;=^^2^2^2930709^
  1. ;;^DD(356,.19,1,2,"%D",1,0)
  1. ;;=Cross reference of all active, billable events by event type and next
  1. ;;^DD(356,.19,1,2,"%D",2,0)
  1. ;;=auto bill date.
  1. ;;^DD(356,.19,1,2,"DT")
  1. ;;=2930709
  1. ;;^DD(356,.19,1,3,0)
  1. ;;=^^TRIGGER^356^.17
  1. ;;^DD(356,.19,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 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,.19,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=DIV S X=$$BILL^IBTUTL(DA) X ^DD(356,.19,1,3,2.4)
  1. ;;^DD(356,.19,1,3,2.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,.19,1,3,"%D",0)
  1. ;;=^^2^2^2930824^
  1. ;;^DD(356,.19,1,3,"%D",1,0)
  1. ;;=Deletes the Earliest Auto Bill Date (.17) when Reason Not Billable is set,
  1. ;;^DD(356,.19,1,3,"%D",2,0)
  1. ;;=event is no longer billable. Re-sets EABD if Reason Not Billable is deleted.
  1. ;;^DD(356,.19,1,3,"CREATE VALUE")
  1. ;;=@
  1. ;;^DD(356,.19,1,3,"DELETE VALUE")
  1. ;;=S X=$$BILL^IBTUTL(DA)
  1. ;;^DD(356,.19,1,3,"DT")
  1. ;;=2930824
  1. ;;^DD(356,.19,1,3,"FIELD")
  1. ;;=EARLIEST AUTO BILL DATE
  1. ;;^DD(356,.19,21,0)
  1. ;;=^^6^6^2930712^^^
  1. ;;^DD(356,.19,21,1,0)
  1. ;;=Enter the primary reason this episode of care should not be billed to
  1. ;;^DD(356,.19,21,2,0)
  1. ;;=an insurance company.
  1. ;;^DD(356,.19,21,3,0)
  1. ;;=
  1. ;;^DD(356,.19,21,4,0)
  1. ;;=If a reason not billable is entered, then this episode will no longer
  1. ;;^DD(356,.19,21,5,0)
  1. ;;=appear on reports as billable and will not be used by the automated
  1. ;;^DD(356,.19,21,6,0)
  1. ;;=biller as a billable event.
  1. ;;^DD(356,.19,"DT")
  1. ;;=2930824
  1. ;;^DD(356,.2,0)
  1. ;;=INACTIVE^S^0:INACTIVE;1:ACTIVE;^0;20^Q
  1. ;;^DD(356,.2,1,0)
  1. ;;=^.1
  1. ;;^DD(356,.2,1,1,0)
  1. ;;=356^ANABD2^MUMPS
  1. ;;^DD(356,.2,1,1,1)
  1. ;;=S:X&($P(^IBT(356,DA,0),U,19)="")&($P(^(0),U,18))&($P(^(0),U,17)) ^IBT(356,"ANABD",$P(^(0),U,18),$P(^(0),U,17),DA)=""
  1. ;;^DD(356,.2,1,1,2)
  1. ;;=K ^IBT(356,"ANABD",+$P(^IBT(356,DA,0),U,18),+$P(^(0),U,17),DA)
  1. ;;^DD(356,.2,1,1,"%D",0)
  1. ;;=^^2^2^2930709^^^^
  1. ;;^DD(356,.2,1,1,"%D",1,0)
  1. ;;=Cross reference of all active, billable events by event type and next
  1. ;;^DD(356,.2,1,1,"%D",2,0)
  1. ;;=auto bill date.
  1. ;;^DD(356,.2,1,1,"DT")
  1. ;;=2930709
  1. ;;^DD(356,.2,1,2,0)
  1. ;;=^^TRIGGER^356^.17
  1. ;;^DD(356,.2,1,2,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 S X=DIV S X=$$BILL^IBTUTL(DA) X ^DD(356,.2,1,2,1.4)