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

IBINI0AM.m

Go to the documentation of this file.
  1. IBINI0AM ; ; 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,207,0)
  1. ;;=FORM LOCATOR 45^F^^U1;7^K:$L(X)>17!($L(X)<2) X
  1. ;;^DD(399,207,3)
  1. ;;=Enter the information (2-17 characters) which will appear in form locator 45 on the UB-82 form.
  1. ;;^DD(399,207,21,0)
  1. ;;=^^2^2^2940120^^
  1. ;;^DD(399,207,21,1,0)
  1. ;;=This allows the user to enter information which will appear in form locator
  1. ;;^DD(399,207,21,2,0)
  1. ;;=45 on the UB-82 form.
  1. ;;^DD(399,207,"DT")
  1. ;;=2880523
  1. ;;^DD(399,208,0)
  1. ;;=BILL COMMENT^F^^U1;8^K:$L(X)>35!($L(X)<2) X
  1. ;;^DD(399,208,3)
  1. ;;=Enter a comment associated with this bill, if desired, which you want to print on the UB claim forms [2-35 CHARACTERS].
  1. ;;^DD(399,208,21,0)
  1. ;;=^^1^1^2940120^^^
  1. ;;^DD(399,208,21,1,0)
  1. ;;=This allows the user to enter an optional comment associated with this bill.
  1. ;;^DD(399,208,"DT")
  1. ;;=2880523
  1. ;;^DD(399,209,0)
  1. ;;=FISCAL YEAR 1^RNJ2,0X^^U1;9^K:+X'=X!(X>99)!(X<0)!(X?.E1"."1N.N) X
  1. ;;^DD(399,209,3)
  1. ;;=Enter the 2 digit fiscal year associated with this bill.
  1. ;;^DD(399,209,5,1,0)
  1. ;;=399^151^3
  1. ;;^DD(399,209,21,0)
  1. ;;=^^1^1^2931018^^
  1. ;;^DD(399,209,21,1,0)
  1. ;;=This defines the first fiscal year with which this bill is associated.
  1. ;;^DD(399,209,"DT")
  1. ;;=2880711
  1. ;;^DD(399,210,0)
  1. ;;=FY 1 CHARGES^RNJ10,2^^U1;10^S:X["$" X=$P(X,"$",2) K:X'?.N.1".".2N!(X>9999999)!(X<0) X
  1. ;;^DD(399,210,1,0)
  1. ;;=^.1
  1. ;;^DD(399,210,1,1,0)
  1. ;;=^^TRIGGER^399^212
  1. ;;^DD(399,210,1,1,1)
  1. ;;=X ^DD(399,210,1,1,1.3) I X S X=DIV S Y(1)=$S($D(^DGCR(399,D0,"U1")):^("U1"),1:"") S X=$P(Y(1),U,12),X=X S DIU=X K Y X ^DD(399,210,1,1,1.1) X ^DD(399,210,1,1,1.4)
  1. ;;^DD(399,210,1,1,1.1)
  1. ;;=S X=DIV S Y(1)=$S($D(^DGCR(399,D0,"U1")):^("U1"),1:"") S X=$P(Y(1),U,1),Y(2)=X S X=DIV,Y=X,X=Y(2),X=X-Y
  1. ;;^DD(399,210,1,1,1.3)
  1. ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y(1)=$S($D(^DGCR(399,D0,"U1")):^("U1"),1:"") S X=$P(Y(1),U,11)]""
  1. ;;^DD(399,210,1,1,1.4)
  1. ;;=S DIH=$S($D(^DGCR(399,DIV(0),"U1")):^("U1"),1:""),DIV=X S $P(^("U1"),U,12)=DIV,DIH=399,DIG=212 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
  1. ;;^DD(399,210,1,1,2)
  1. ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DGCR(399,D0,"U1")):^("U1"),1:"") S X=$P(Y(1),U,12),X=X S DIU=X K Y S X="" X ^DD(399,210,1,1,2.4)
  1. ;;^DD(399,210,1,1,2.4)
  1. ;;=S DIH=$S($D(^DGCR(399,DIV(0),"U1")):^("U1"),1:""),DIV=X S $P(^("U1"),U,12)=DIV,DIH=399,DIG=212 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
  1. ;;^DD(399,210,1,1,"CREATE CONDITION")
  1. ;;=(#211)]""
  1. ;;^DD(399,210,1,1,"CREATE VALUE")
  1. ;;=(#201)-(#210)
  1. ;;^DD(399,210,1,1,"DELETE VALUE")
  1. ;;=@
  1. ;;^DD(399,210,1,1,"FIELD")
  1. ;;=#212
  1. ;;^DD(399,210,3)
  1. ;;=Enter the charges incurred during the first fiscal year associated with this bill.
  1. ;;^DD(399,210,5,1,0)
  1. ;;=399^201^1
  1. ;;^DD(399,210,21,0)
  1. ;;=^^2^2^2880901^
  1. ;;^DD(399,210,21,1,0)
  1. ;;=These are the charges incurred during the first fiscal year associated
  1. ;;^DD(399,210,21,2,0)
  1. ;;=with this bill.
  1. ;;^DD(399,210,"DT")
  1. ;;=2880901
  1. ;;^DD(399,211,0)
  1. ;;=FISCAL YEAR 2^NJ2,0^^U1;11^K:+X'=X!(X>99)!(X<0)!(X?.E1"."1N.N) X
  1. ;;^DD(399,211,3)
  1. ;;=Enter the 2 digit second fiscal year associated with this bill.
  1. ;;^DD(399,211,21,0)
  1. ;;=^^1^1^2931018^^
  1. ;;^DD(399,211,21,1,0)
  1. ;;=This is the second fiscal year with which this bill is associated.
  1. ;;^DD(399,211,23,0)
  1. ;;=^^2^2^2931018^
  1. ;;^DD(399,211,23,1,0)
  1. ;;=Beginning with 1.5 bills can no longer span fical years, so this is
  1. ;;^DD(399,211,23,2,0)
  1. ;;=no longer needed.
  1. ;;^DD(399,211,"DT")
  1. ;;=2880708
  1. ;;^DD(399,212,0)
  1. ;;=FY 2 CHARGES^NJ10,2^^U1;12^S:X["$" X=$P(X,"$",2) K:X'?.N.1".".2N!(X>9999999)!(X<0) X
  1. ;;^DD(399,212,3)
  1. ;;=Enter the charges incurred during the second fiscal year associated with this bill.