IBINI05J ; ; 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,.18,21,12,0)
;;=an event type of admission after the patient has been admitted.
;;^DD(356,.18,21,13,0)
;;=
;;^DD(356,.18,21,14,0)
;;=For admissions you will be able to specify the type of admission in
;;^DD(356,.18,21,15,0)
;;=another field.
;;^DD(356,.18,"DT")
;;=2931008
;;^DD(356,.19,0)
;;=REASON NOT BILLABLE^P356.8'^IBE(356.8,^0;19^Q
;;^DD(356,.19,.1)
;;=NOT BILLABLE REASON
;;^DD(356,.19,1,0)
;;=^.1
;;^DD(356,.19,1,1,0)
;;=356^AR
;;^DD(356,.19,1,1,1)
;;=S ^IBT(356,"AR",$E(X,1,30),DA)=""
;;^DD(356,.19,1,1,2)
;;=K ^IBT(356,"AR",$E(X,1,30),DA)
;;^DD(356,.19,1,1,"%D",0)
;;=^^1^1^2930709^
;;^DD(356,.19,1,1,"%D",1,0)
;;=Regular cross reference of reason not billable
;;^DD(356,.19,1,1,"DT")
;;=2930709
;;^DD(356,.19,1,2,0)
;;=356^ANABD1^MUMPS
;;^DD(356,.19,1,2,1)
;;=K:X ^IBT(356,"ANABD",+$P(^IBT(356,DA,0),U,18),+$P(^(0),U,17),DA)
;;^DD(356,.19,1,2,2)
;;=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)=""
;;^DD(356,.19,1,2,"%D",0)
;;=^^2^2^2930709^
;;^DD(356,.19,1,2,"%D",1,0)
;;=Cross reference of all active, billable events by event type and next
;;^DD(356,.19,1,2,"%D",2,0)
;;=auto bill date.
;;^DD(356,.19,1,2,"DT")
;;=2930709
;;^DD(356,.19,1,3,0)
;;=^^TRIGGER^356^.17
;;^DD(356,.19,1,3,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
;;^DD(356,.19,1,3,2)
;;=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)
;;^DD(356,.19,1,3,2.4)
;;=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
;;^DD(356,.19,1,3,"%D",0)
;;=^^2^2^2930824^
;;^DD(356,.19,1,3,"%D",1,0)
;;=Deletes the Earliest Auto Bill Date (.17) when Reason Not Billable is set,
;;^DD(356,.19,1,3,"%D",2,0)
;;=event is no longer billable. Re-sets EABD if Reason Not Billable is deleted.
;;^DD(356,.19,1,3,"CREATE VALUE")
;;=@
;;^DD(356,.19,1,3,"DELETE VALUE")
;;=S X=$$BILL^IBTUTL(DA)
;;^DD(356,.19,1,3,"DT")
;;=2930824
;;^DD(356,.19,1,3,"FIELD")
;;=EARLIEST AUTO BILL DATE
;;^DD(356,.19,21,0)
;;=^^6^6^2930712^^^
;;^DD(356,.19,21,1,0)
;;=Enter the primary reason this episode of care should not be billed to
;;^DD(356,.19,21,2,0)
;;=an insurance company.
;;^DD(356,.19,21,3,0)
;;=
;;^DD(356,.19,21,4,0)
;;=If a reason not billable is entered, then this episode will no longer
;;^DD(356,.19,21,5,0)
;;=appear on reports as billable and will not be used by the automated
;;^DD(356,.19,21,6,0)
;;=biller as a billable event.
;;^DD(356,.19,"DT")
;;=2930824
;;^DD(356,.2,0)
;;=INACTIVE^S^0:INACTIVE;1:ACTIVE;^0;20^Q
;;^DD(356,.2,1,0)
;;=^.1
;;^DD(356,.2,1,1,0)
;;=356^ANABD2^MUMPS
;;^DD(356,.2,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)=""
;;^DD(356,.2,1,1,2)
;;=K ^IBT(356,"ANABD",+$P(^IBT(356,DA,0),U,18),+$P(^(0),U,17),DA)
;;^DD(356,.2,1,1,"%D",0)
;;=^^2^2^2930709^^^^
;;^DD(356,.2,1,1,"%D",1,0)
;;=Cross reference of all active, billable events by event type and next
;;^DD(356,.2,1,1,"%D",2,0)
;;=auto bill date.
;;^DD(356,.2,1,1,"DT")
;;=2930709
;;^DD(356,.2,1,2,0)
;;=^^TRIGGER^356^.17
;;^DD(356,.2,1,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,.2,1,2,1.4)
IBINI05J ; ; 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,.18,21,12,0)
+2 ;;=an event type of admission after the patient has been admitted.
+3 ;;^DD(356,.18,21,13,0)
+4 ;;=
+5 ;;^DD(356,.18,21,14,0)
+6 ;;=For admissions you will be able to specify the type of admission in
+7 ;;^DD(356,.18,21,15,0)
+8 ;;=another field.
+9 ;;^DD(356,.18,"DT")
+10 ;;=2931008
+11 ;;^DD(356,.19,0)
+12 ;;=REASON NOT BILLABLE^P356.8'^IBE(356.8,^0;19^Q
+13 ;;^DD(356,.19,.1)
+14 ;;=NOT BILLABLE REASON
+15 ;;^DD(356,.19,1,0)
+16 ;;=^.1
+17 ;;^DD(356,.19,1,1,0)
+18 ;;=356^AR
+19 ;;^DD(356,.19,1,1,1)
+20 ;;=S ^IBT(356,"AR",$E(X,1,30),DA)=""
+21 ;;^DD(356,.19,1,1,2)
+22 ;;=K ^IBT(356,"AR",$E(X,1,30),DA)
+23 ;;^DD(356,.19,1,1,"%D",0)
+24 ;;=^^1^1^2930709^
+25 ;;^DD(356,.19,1,1,"%D",1,0)
+26 ;;=Regular cross reference of reason not billable
+27 ;;^DD(356,.19,1,1,"DT")
+28 ;;=2930709
+29 ;;^DD(356,.19,1,2,0)
+30 ;;=356^ANABD1^MUMPS
+31 ;;^DD(356,.19,1,2,1)
+32 ;;=K:X ^IBT(356,"ANABD",+$P(^IBT(356,DA,0),U,18),+$P(^(0),U,17),DA)
+33 ;;^DD(356,.19,1,2,2)
+34 ;;=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)=""
+35 ;;^DD(356,.19,1,2,"%D",0)
+36 ;;=^^2^2^2930709^
+37 ;;^DD(356,.19,1,2,"%D",1,0)
+38 ;;=Cross reference of all active, billable events by event type and next
+39 ;;^DD(356,.19,1,2,"%D",2,0)
+40 ;;=auto bill date.
+41 ;;^DD(356,.19,1,2,"DT")
+42 ;;=2930709
+43 ;;^DD(356,.19,1,3,0)
+44 ;;=^^TRIGGER^356^.17
+45 ;;^DD(356,.19,1,3,1)
+46 ;;=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
+47 ;;^DD(356,.19,1,3,2)
+48 ;;=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)
+49 ;;^DD(356,.19,1,3,2.4)
+50 ;;=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
+51 ;;^DD(356,.19,1,3,"%D",0)
+52 ;;=^^2^2^2930824^
+53 ;;^DD(356,.19,1,3,"%D",1,0)
+54 ;;=Deletes the Earliest Auto Bill Date (.17) when Reason Not Billable is set,
+55 ;;^DD(356,.19,1,3,"%D",2,0)
+56 ;;=event is no longer billable. Re-sets EABD if Reason Not Billable is deleted.
+57 ;;^DD(356,.19,1,3,"CREATE VALUE")
+58 ;;=@
+59 ;;^DD(356,.19,1,3,"DELETE VALUE")
+60 ;;=S X=$$BILL^IBTUTL(DA)
+61 ;;^DD(356,.19,1,3,"DT")
+62 ;;=2930824
+63 ;;^DD(356,.19,1,3,"FIELD")
+64 ;;=EARLIEST AUTO BILL DATE
+65 ;;^DD(356,.19,21,0)
+66 ;;=^^6^6^2930712^^^
+67 ;;^DD(356,.19,21,1,0)
+68 ;;=Enter the primary reason this episode of care should not be billed to
+69 ;;^DD(356,.19,21,2,0)
+70 ;;=an insurance company.
+71 ;;^DD(356,.19,21,3,0)
+72 ;;=
+73 ;;^DD(356,.19,21,4,0)
+74 ;;=If a reason not billable is entered, then this episode will no longer
+75 ;;^DD(356,.19,21,5,0)
+76 ;;=appear on reports as billable and will not be used by the automated
+77 ;;^DD(356,.19,21,6,0)
+78 ;;=biller as a billable event.
+79 ;;^DD(356,.19,"DT")
+80 ;;=2930824
+81 ;;^DD(356,.2,0)
+82 ;;=INACTIVE^S^0:INACTIVE;1:ACTIVE;^0;20^Q
+83 ;;^DD(356,.2,1,0)
+84 ;;=^.1
+85 ;;^DD(356,.2,1,1,0)
+86 ;;=356^ANABD2^MUMPS
+87 ;;^DD(356,.2,1,1,1)
+88 ;;=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)=""
+89 ;;^DD(356,.2,1,1,2)
+90 ;;=K ^IBT(356,"ANABD",+$P(^IBT(356,DA,0),U,18),+$P(^(0),U,17),DA)
+91 ;;^DD(356,.2,1,1,"%D",0)
+92 ;;=^^2^2^2930709^^^^
+93 ;;^DD(356,.2,1,1,"%D",1,0)
+94 ;;=Cross reference of all active, billable events by event type and next
+95 ;;^DD(356,.2,1,1,"%D",2,0)
+96 ;;=auto bill date.
+97 ;;^DD(356,.2,1,1,"DT")
+98 ;;=2930709
+99 ;;^DD(356,.2,1,2,0)
+100 ;;=^^TRIGGER^356^.17
+101 ;;^DD(356,.2,1,2,1)
+102 ;;=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)