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

IBINI017.m

Go to the documentation of this file.
  1. IBINI017 ; ; 21-MAR-1994
  1. ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
  1. Q:'DIFQ(350) 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(350,.05,21,14,0)
  1. ;;=added more easily, and permit various characteristics to be assigned
  1. ;;^DD(350,.05,21,15,0)
  1. ;;=to the statuses to facilitate system processing. IT IS IMPERATIVE
  1. ;;^DD(350,.05,21,16,0)
  1. ;;=THAT THESE NEW POINTED-TO ENTRIES HAVE AN INTERNAL ENTRY NUMBER IN
  1. ;;^DD(350,.05,21,17,0)
  1. ;;=FILE #350.21 WHICH IS EQUAL TO THEIR PREVIOUS CODE VALUE. PLEASE
  1. ;;^DD(350,.05,21,18,0)
  1. ;;=CAREFULLY READ THE IB ACTION STATUS FILE DESCRIPTION FOR MORE
  1. ;;^DD(350,.05,21,19,0)
  1. ;;=INFORMATION.
  1. ;;^DD(350,.05,"DT")
  1. ;;=2930823
  1. ;;^DD(350,.06,0)
  1. ;;=UNITS^NJ4,0I^^0;6^K:+X'=X!(X>9999)!(X<1)!(X?.E1"."1N.N) X
  1. ;;^DD(350,.06,3)
  1. ;;=Type a Number between 1 and 9999, 0 Decimal Digits
  1. ;;^DD(350,.06,21,0)
  1. ;;=^^3^3^2910301^^
  1. ;;^DD(350,.06,21,1,0)
  1. ;;=This is the number of units that will be multiplied times a specific
  1. ;;^DD(350,.06,21,2,0)
  1. ;;=charge that will be calculated to create the total charge. This is
  1. ;;^DD(350,.06,21,3,0)
  1. ;;=passed to IB from the application.
  1. ;;^DD(350,.06,"DT")
  1. ;;=2910304
  1. ;;^DD(350,.07,0)
  1. ;;=TOTAL CHARGE^NJ10,2I^^0;7^S:X["$" X=$P(X,"$",2) K:X'?.N.1".".2N!(X>9999999)!(X<0) X
  1. ;;^DD(350,.07,3)
  1. ;;=Type a Dollar Amount between 0 and 9999999, 2 Decimal Digits
  1. ;;^DD(350,.07,21,0)
  1. ;;=^^10^10^2940209^^^
  1. ;;^DD(350,.07,21,1,0)
  1. ;;=This is the total charge for this entry, that will be passed to
  1. ;;^DD(350,.07,21,2,0)
  1. ;;=AR. It is calculated and stored by IB routines. NOTE: Several IB
  1. ;;^DD(350,.07,21,3,0)
  1. ;;=ACTION entries may be combined into one pass to AR so that there may
  1. ;;^DD(350,.07,21,4,0)
  1. ;;=not be a one to one relationship between this entry and one in AR.
  1. ;;^DD(350,.07,21,5,0)
  1. ;;=
  1. ;;^DD(350,.07,21,6,0)
  1. ;;=The TOTAL CHARGE for all entries will always be positive. It is
  1. ;;^DD(350,.07,21,7,0)
  1. ;;=necessary to refer to the IB ACTION TYPE file to determine if this
  1. ;;^DD(350,.07,21,8,0)
  1. ;;=is a NEW, CANCEL or UPDATE. Cancel action types will cause a decrease
  1. ;;^DD(350,.07,21,9,0)
  1. ;;=adjustment to a bill for this amount. New and Update action types
  1. ;;^DD(350,.07,21,10,0)
  1. ;;=will cause an increase adjustment to a bill for this amount.
  1. ;;^DD(350,.07,"DT")
  1. ;;=2910304
  1. ;;^DD(350,.08,0)
  1. ;;=BRIEF DESCRIPTION^FI^^0;8^K:$L(X)>20!($L(X)<3) X
  1. ;;^DD(350,.08,3)
  1. ;;=Answer must be 3-20 characters in length.
  1. ;;^DD(350,.08,21,0)
  1. ;;=^^8^8^2910403^^
  1. ;;^DD(350,.08,21,1,0)
  1. ;;=This is a brief description of the application entry that caused this
  1. ;;^DD(350,.08,21,2,0)
  1. ;;=IB ACTION entry to be created. For example, for Pharmacy co-payments
  1. ;;^DD(350,.08,21,3,0)
  1. ;;=it might indicate '100999-ENDURAL-2' which would indicate that this was
  1. ;;^DD(350,.08,21,4,0)
  1. ;;=prescription number 100999, the drug name started with ENDURAL and
  1. ;;^DD(350,.08,21,5,0)
  1. ;;=2 units (30-60 days supply) were given.
  1. ;;^DD(350,.08,21,6,0)
  1. ;;=
  1. ;;^DD(350,.08,21,7,0)
  1. ;;=The logic to calculate this will be supplied by the application and
  1. ;;^DD(350,.08,21,8,0)
  1. ;;=stored with the IB ACTION TYPE entry for this action.
  1. ;;^DD(350,.08,"DT")
  1. ;;=2910304
  1. ;;^DD(350,.09,0)
  1. ;;=PARENT CHARGE^P350'I^IB(^0;9^Q
  1. ;;^DD(350,.09,1,0)
  1. ;;=^.1
  1. ;;^DD(350,.09,1,1,0)
  1. ;;=350^AD
  1. ;;^DD(350,.09,1,1,1)
  1. ;;=S ^IB("AD",$E(X,1,30),DA)=""
  1. ;;^DD(350,.09,1,1,2)
  1. ;;=K ^IB("AD",$E(X,1,30),DA)
  1. ;;^DD(350,.09,1,2,0)
  1. ;;=350^APDT^MUMPS
  1. ;;^DD(350,.09,1,2,1)
  1. ;;=I $D(^IB(DA,1)),$P(^(1),"^",2) S ^IB("APDT",$E(X,1,30),-$P(^(1),"^",2),DA)=""
  1. ;;^DD(350,.09,1,2,2)
  1. ;;=I $D(^IB(DA,1)),$P(^(1),"^",2) K ^IB("APDT",$E(X,1,30),-$P(^(1),"^",2),DA)
  1. ;;^DD(350,.09,1,2,"%D",0)
  1. ;;=^^5^5^2910417^^