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

IBINI0A0.m

Go to the documentation of this file.
  1. IBINI0A0 ; ; 21-MAR-1994
  1. ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
  1. Q:'DIFQ(399) 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(399,.15,3)
  1. ;;=Enter the bill that this bill was copied from.
  1. ;;^DD(399,.15,12)
  1. ;;=BILL MUST BE CANCELLED TO COPY
  1. ;;^DD(399,.15,12.1)
  1. ;;=S DIC("S")="I $P(^(0),U,13)=7"
  1. ;;^DD(399,.15,21,0)
  1. ;;=^^3^3^2920211^^
  1. ;;^DD(399,.15,21,1,0)
  1. ;;=If this bill was copied from another bill, then this will be the bill
  1. ;;^DD(399,.15,21,2,0)
  1. ;;=it was copied from. This field is automatically completed by the
  1. ;;^DD(399,.15,21,3,0)
  1. ;;=Copy and Cancel option.
  1. ;;^DD(399,.15,"DT")
  1. ;;=2900126
  1. ;;^DD(399,.16,0)
  1. ;;=NON-VA DISCHARGE DATE^D^^0;16^S %DT="EX" D ^%DT S X=Y K:Y<1 X
  1. ;;^DD(399,.16,3)
  1. ;;=Enter the discharge date for this admission. It must be since the admission date and not in the future.
  1. ;;^DD(399,.16,21,0)
  1. ;;=^^3^3^2900420^
  1. ;;^DD(399,.16,21,1,0)
  1. ;;=This is the discharge date for NON-VA Admissions when no associated PTF
  1. ;;^DD(399,.16,21,2,0)
  1. ;;=record exists. The date entered must be after the admission date and
  1. ;;^DD(399,.16,21,3,0)
  1. ;;=not into the future.
  1. ;;^DD(399,.16,"DT")
  1. ;;=2900420
  1. ;;^DD(399,.17,0)
  1. ;;=PRIMARY BILL^P399'^DGCR(399,^0;17^Q
  1. ;;^DD(399,.17,1,0)
  1. ;;=^.1
  1. ;;^DD(399,.17,1,1,0)
  1. ;;=399^AC
  1. ;;^DD(399,.17,1,1,1)
  1. ;;=S ^DGCR(399,"AC",$E(X,1,30),DA)=""
  1. ;;^DD(399,.17,1,1,2)
  1. ;;=K ^DGCR(399,"AC",$E(X,1,30),DA)
  1. ;;^DD(399,.17,21,0)
  1. ;;=^^3^3^2920211^^
  1. ;;^DD(399,.17,21,1,0)
  1. ;;=This is the initial bill that this episode is associated with.
  1. ;;^DD(399,.17,21,2,0)
  1. ;;=If an episode of care has more than one bill but multiple event dates, then
  1. ;;^DD(399,.17,21,3,0)
  1. ;;=this field can be used.
  1. ;;^DD(399,.17,"DT")
  1. ;;=2900524
  1. ;;^DD(399,.18,0)
  1. ;;=SC AT TIME OF CARE^FXO^^0;18^I $D(X) D YN^IBCU
  1. ;;^DD(399,.18,2)
  1. ;;=S Y(0)=Y S Y=$S(Y:"YES",Y=0:"NO",1:"")
  1. ;;^DD(399,.18,2.1)
  1. ;;=S Y=$S(Y:"YES",Y=0:"NO",1:"")
  1. ;;^DD(399,.18,3)
  1. ;;=Was this patient Service Connected for any condition during the timeframe of this bill? Answer 'Yes' or 'No'.
  1. ;;^DD(399,.18,21,0)
  1. ;;=^^8^8^2920610^^^^
  1. ;;^DD(399,.18,21,1,0)
  1. ;;=Was this patient Service Connected for any condition at the time the
  1. ;;^DD(399,.18,21,2,0)
  1. ;;=care in the bill was rendered. This field is used to correctly assign
  1. ;;^DD(399,.18,21,3,0)
  1. ;;=Accounts Receivable AMIS segments to this bill if it is a Reimbursable
  1. ;;^DD(399,.18,21,4,0)
  1. ;;=Insurance bill. Answer 'Yes' or 'No'.
  1. ;;^DD(399,.18,21,5,0)
  1. ;;=
  1. ;;^DD(399,.18,21,6,0)
  1. ;;=The default for this field is the current value in the SC PATIENT field
  1. ;;^DD(399,.18,21,7,0)
  1. ;;=of the patient file. If this field is left blank, the default value
  1. ;;^DD(399,.18,21,8,0)
  1. ;;=will be used to determine the AMIS segment.
  1. ;;^DD(399,.18,"DT")
  1. ;;=2910913
  1. ;;^DD(399,.19,0)
  1. ;;=FORM TYPE^RP353'^IBE(353,^0;19^Q
  1. ;;^DD(399,.19,1,0)
  1. ;;=^.1
  1. ;;^DD(399,.19,1,1,0)
  1. ;;=^^TRIGGER^399^.09
  1. ;;^DD(399,.19,1,1,1)
  1. ;;=X ^DD(399,.19,1,1,1.3) I X S X=DIV S Y(1)=$S($D(^DGCR(399,D0,0)):^(0),1:"") S X=$P(Y(1),U,9),X=X S DIU=X K Y S X=DIV S X=4 X ^DD(399,.19,1,1,1.4)
  1. ;;^DD(399,.19,1,1,1.3)
  1. ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X X ^DD(399,.19,1,1,69.2) S Y(1)=X S X=$P($P(Y(3),$C(59)_$P(Y(2),U,9)_":",2),$C(59),1)="",Y=X,X=Y(1),X=X&Y
  1. ;;^DD(399,.19,1,1,1.4)
  1. ;;=S DIH=$S($D(^DGCR(399,DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,9)=DIV,DIH=399,DIG=.09 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
  1. ;;^DD(399,.19,1,1,2)
  1. ;;=Q
  1. ;;^DD(399,.19,1,1,69.2)
  1. ;;=S Y(3)=$C(59)_$S($D(^DD(399,.09,0)):$P(^(0),U,3),1:""),Y(2)=$S($D(^DGCR(399,D0,0)):^(0),1:"") S X=$S('$D(^IBE(353,+Y(0),0)):"",1:$P(^(0),U,1))="HCFA 1500"
  1. ;;^DD(399,.19,1,1,"%D",0)
  1. ;;=^^2^2^2920430^
  1. ;;^DD(399,.19,1,1,"%D",1,0)
  1. ;;=If the HCFA 1500 claim form is used and no coding method defined, then