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

IBINI09V.m

Go to the documentation of this file.
  1. IBINI09V ; ; 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,.01,1,7,"%D",2,0)
  1. ;;=when the bill is created.
  1. ;;^DD(399,.01,1,7,"CREATE CONDITION")
  1. ;;=FORM TYPE=""
  1. ;;^DD(399,.01,1,7,"CREATE VALUE")
  1. ;;=S X=$P($G(^IBE(350.9,1,1)),U,26)
  1. ;;^DD(399,.01,1,7,"DELETE VALUE")
  1. ;;=NO EFFECT
  1. ;;^DD(399,.01,1,7,"DT")
  1. ;;=2930608
  1. ;;^DD(399,.01,1,7,"FIELD")
  1. ;;=FORM TYPE
  1. ;;^DD(399,.01,3)
  1. ;;=Enter the "unique" bill number for this billing episode [6 characters].
  1. ;;^DD(399,.01,4)
  1. ;;=
  1. ;;^DD(399,.01,21,0)
  1. ;;=^^8^8^2940317^^^^
  1. ;;^DD(399,.01,21,1,0)
  1. ;;=This is the "unique" bill number assigned to this billing episode.
  1. ;;^DD(399,.01,21,2,0)
  1. ;;=A bill numbers consist of 6 characters. Beginning with MAS
  1. ;;^DD(399,.01,21,3,0)
  1. ;;=version 4.7 bill numbers will be determined by the Accounts Receivable
  1. ;;^DD(399,.01,21,4,0)
  1. ;;=module of IFCAP and returned to MCCR. This is to provide consistency
  1. ;;^DD(399,.01,21,5,0)
  1. ;;=in bill numbering between the sites and CALM. The bill numbers
  1. ;;^DD(399,.01,21,6,0)
  1. ;;=will be determined from entries in the AR BILL NUMBER file. They
  1. ;;^DD(399,.01,21,7,0)
  1. ;;=will be in the format of PAT (Pending Account Transaction) numbers
  1. ;;^DD(399,.01,21,8,0)
  1. ;;=and may be used in Accounts Receivable for PAT numbers.
  1. ;;^DD(399,.01,"DT")
  1. ;;=2930608
  1. ;;^DD(399,.02,0)
  1. ;;=PATIENT NAME^RP2'I^DPT(^0;2^Q
  1. ;;^DD(399,.02,1,0)
  1. ;;=^.1
  1. ;;^DD(399,.02,1,1,0)
  1. ;;=399^C
  1. ;;^DD(399,.02,1,1,1)
  1. ;;=S ^DGCR(399,"C",$E(X,1,30),DA)=""
  1. ;;^DD(399,.02,1,1,2)
  1. ;;=K ^DGCR(399,"C",$E(X,1,30),DA)
  1. ;;^DD(399,.02,3)
  1. ;;=Enter the name of the patient for whom this bill is being generated.
  1. ;;^DD(399,.02,21,0)
  1. ;;=^^1^1^2880831^
  1. ;;^DD(399,.02,21,1,0)
  1. ;;=This is the name of the patient for whom this bill is being generated.
  1. ;;^DD(399,.02,"DT")
  1. ;;=2880526
  1. ;;^DD(399,.03,0)
  1. ;;=EVENT DATE^RDX^^0;3^S %DT="ETP",%DT(0)="-0" D ^%DT S X=Y K:Y<1 X I $D(X),'$D(IBNWBL) W !?4,"Event date can no longer be edited...cancel and submit a new bill if necessary." K X
  1. ;;^DD(399,.03,1,0)
  1. ;;=^.1
  1. ;;^DD(399,.03,1,1,0)
  1. ;;=399^D
  1. ;;^DD(399,.03,1,1,1)
  1. ;;=S ^DGCR(399,"D",$E(X,1,30),DA)=""
  1. ;;^DD(399,.03,1,1,2)
  1. ;;=K ^DGCR(399,"D",$E(X,1,30),DA)
  1. ;;^DD(399,.03,1,2,0)
  1. ;;=399^APDT^MUMPS
  1. ;;^DD(399,.03,1,2,1)
  1. ;;=S IBN=$P(^DGCR(399,DA,0),"^",2) S:$D(IBN) ^DGCR(399,"APDT",IBN,DA,9999999-X)="" K IBN
  1. ;;^DD(399,.03,1,2,2)
  1. ;;=S IBN=$P(^DGCR(399,DA,0),"^",2) I $D(IBN) K ^DGCR(399,"APDT",IBN,DA,9999999-X),IBN
  1. ;;^DD(399,.03,1,2,"%D",0)
  1. ;;=^^1^1^2940214^^
  1. ;;^DD(399,.03,1,2,"%D",1,0)
  1. ;;=Cross-reference of bills by patient and event date.
  1. ;;^DD(399,.03,1,3,0)
  1. ;;=399^ABNDT^MUMPS
  1. ;;^DD(399,.03,1,3,1)
  1. ;;=S ^DGCR(399,"ABNDT",DA,9999999-X)=""
  1. ;;^DD(399,.03,1,3,2)
  1. ;;=K ^DGCR(399,"ABNDT",DA,9999999-X)
  1. ;;^DD(399,.03,1,3,"%D",0)
  1. ;;=^^1^1^2940214^
  1. ;;^DD(399,.03,1,3,"%D",1,0)
  1. ;;=Cross-reference of bills by inverse event date.
  1. ;;^DD(399,.03,3)
  1. ;;=Enter the date of admission for inpatient episodes of care. For outpatient visits, enter the date of the initial outpatient visit.
  1. ;;^DD(399,.03,21,0)
  1. ;;=^^3^3^2940214^^
  1. ;;^DD(399,.03,21,1,0)
  1. ;;=This is the date on which care was originated. For inpatient episodes of
  1. ;;^DD(399,.03,21,2,0)
  1. ;;=care, this is the admission date. For outpatient visits, this is the date
  1. ;;^DD(399,.03,21,3,0)
  1. ;;=of the initial outpatient visit.
  1. ;;^DD(399,.03,"DT")
  1. ;;=2920220
  1. ;;^DD(399,.04,0)
  1. ;;=LOCATION OF CARE^RS^1:HOSPITAL (INCLUDES CLINIC) - INPT. OR OPT.;2:SKILLED NURSING (NHCU);7:CLINIC (WHEN INDEPENDENT OR SATELLITE);^0;4^Q
  1. ;;^DD(399,.04,.1)
  1. ;;=TYPE OF BILL (1ST DIGIT)
  1. ;;^DD(399,.04,3)
  1. ;;=Enter the code which identifies the type of facility at which care was administered.