IBINI0AM ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
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
Q Q
;;^DD(399,207,0)
;;=FORM LOCATOR 45^F^^U1;7^K:$L(X)>17!($L(X)<2) X
;;^DD(399,207,3)
;;=Enter the information (2-17 characters) which will appear in form locator 45 on the UB-82 form.
;;^DD(399,207,21,0)
;;=^^2^2^2940120^^
;;^DD(399,207,21,1,0)
;;=This allows the user to enter information which will appear in form locator
;;^DD(399,207,21,2,0)
;;=45 on the UB-82 form.
;;^DD(399,207,"DT")
;;=2880523
;;^DD(399,208,0)
;;=BILL COMMENT^F^^U1;8^K:$L(X)>35!($L(X)<2) X
;;^DD(399,208,3)
;;=Enter a comment associated with this bill, if desired, which you want to print on the UB claim forms [2-35 CHARACTERS].
;;^DD(399,208,21,0)
;;=^^1^1^2940120^^^
;;^DD(399,208,21,1,0)
;;=This allows the user to enter an optional comment associated with this bill.
;;^DD(399,208,"DT")
;;=2880523
;;^DD(399,209,0)
;;=FISCAL YEAR 1^RNJ2,0X^^U1;9^K:+X'=X!(X>99)!(X<0)!(X?.E1"."1N.N) X
;;^DD(399,209,3)
;;=Enter the 2 digit fiscal year associated with this bill.
;;^DD(399,209,5,1,0)
;;=399^151^3
;;^DD(399,209,21,0)
;;=^^1^1^2931018^^
;;^DD(399,209,21,1,0)
;;=This defines the first fiscal year with which this bill is associated.
;;^DD(399,209,"DT")
;;=2880711
;;^DD(399,210,0)
;;=FY 1 CHARGES^RNJ10,2^^U1;10^S:X["$" X=$P(X,"$",2) K:X'?.N.1".".2N!(X>9999999)!(X<0) X
;;^DD(399,210,1,0)
;;=^.1
;;^DD(399,210,1,1,0)
;;=^^TRIGGER^399^212
;;^DD(399,210,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)
;;^DD(399,210,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
;;^DD(399,210,1,1,1.3)
;;=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)]""
;;^DD(399,210,1,1,1.4)
;;=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
;;^DD(399,210,1,1,2)
;;=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)
;;^DD(399,210,1,1,2.4)
;;=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
;;^DD(399,210,1,1,"CREATE CONDITION")
;;=(#211)]""
;;^DD(399,210,1,1,"CREATE VALUE")
;;=(#201)-(#210)
;;^DD(399,210,1,1,"DELETE VALUE")
;;=@
;;^DD(399,210,1,1,"FIELD")
;;=#212
;;^DD(399,210,3)
;;=Enter the charges incurred during the first fiscal year associated with this bill.
;;^DD(399,210,5,1,0)
;;=399^201^1
;;^DD(399,210,21,0)
;;=^^2^2^2880901^
;;^DD(399,210,21,1,0)
;;=These are the charges incurred during the first fiscal year associated
;;^DD(399,210,21,2,0)
;;=with this bill.
;;^DD(399,210,"DT")
;;=2880901
;;^DD(399,211,0)
;;=FISCAL YEAR 2^NJ2,0^^U1;11^K:+X'=X!(X>99)!(X<0)!(X?.E1"."1N.N) X
;;^DD(399,211,3)
;;=Enter the 2 digit second fiscal year associated with this bill.
;;^DD(399,211,21,0)
;;=^^1^1^2931018^^
;;^DD(399,211,21,1,0)
;;=This is the second fiscal year with which this bill is associated.
;;^DD(399,211,23,0)
;;=^^2^2^2931018^
;;^DD(399,211,23,1,0)
;;=Beginning with 1.5 bills can no longer span fical years, so this is
;;^DD(399,211,23,2,0)
;;=no longer needed.
;;^DD(399,211,"DT")
;;=2880708
;;^DD(399,212,0)
;;=FY 2 CHARGES^NJ10,2^^U1;12^S:X["$" X=$P(X,"$",2) K:X'?.N.1".".2N!(X>9999999)!(X<0) X
;;^DD(399,212,3)
;;=Enter the charges incurred during the second fiscal year associated with this bill.
IBINI0AM ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQ(399)
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(399,207,0)
+2 ;;=FORM LOCATOR 45^F^^U1;7^K:$L(X)>17!($L(X)<2) X
+3 ;;^DD(399,207,3)
+4 ;;=Enter the information (2-17 characters) which will appear in form locator 45 on the UB-82 form.
+5 ;;^DD(399,207,21,0)
+6 ;;=^^2^2^2940120^^
+7 ;;^DD(399,207,21,1,0)
+8 ;;=This allows the user to enter information which will appear in form locator
+9 ;;^DD(399,207,21,2,0)
+10 ;;=45 on the UB-82 form.
+11 ;;^DD(399,207,"DT")
+12 ;;=2880523
+13 ;;^DD(399,208,0)
+14 ;;=BILL COMMENT^F^^U1;8^K:$L(X)>35!($L(X)<2) X
+15 ;;^DD(399,208,3)
+16 ;;=Enter a comment associated with this bill, if desired, which you want to print on the UB claim forms [2-35 CHARACTERS].
+17 ;;^DD(399,208,21,0)
+18 ;;=^^1^1^2940120^^^
+19 ;;^DD(399,208,21,1,0)
+20 ;;=This allows the user to enter an optional comment associated with this bill.
+21 ;;^DD(399,208,"DT")
+22 ;;=2880523
+23 ;;^DD(399,209,0)
+24 ;;=FISCAL YEAR 1^RNJ2,0X^^U1;9^K:+X'=X!(X>99)!(X<0)!(X?.E1"."1N.N) X
+25 ;;^DD(399,209,3)
+26 ;;=Enter the 2 digit fiscal year associated with this bill.
+27 ;;^DD(399,209,5,1,0)
+28 ;;=399^151^3
+29 ;;^DD(399,209,21,0)
+30 ;;=^^1^1^2931018^^
+31 ;;^DD(399,209,21,1,0)
+32 ;;=This defines the first fiscal year with which this bill is associated.
+33 ;;^DD(399,209,"DT")
+34 ;;=2880711
+35 ;;^DD(399,210,0)
+36 ;;=FY 1 CHARGES^RNJ10,2^^U1;10^S:X["$" X=$P(X,"$",2) K:X'?.N.1".".2N!(X>9999999)!(X<0) X
+37 ;;^DD(399,210,1,0)
+38 ;;=^.1
+39 ;;^DD(399,210,1,1,0)
+40 ;;=^^TRIGGER^399^212
+41 ;;^DD(399,210,1,1,1)
+42 ;;=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)
+43 ;;^DD(399,210,1,1,1.1)
+44 ;;=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
+45 ;;^DD(399,210,1,1,1.3)
+46 ;;=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)]""
+47 ;;^DD(399,210,1,1,1.4)
+48 ;;=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
+49 ;;^DD(399,210,1,1,2)
+50 ;;=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)
+51 ;;^DD(399,210,1,1,2.4)
+52 ;;=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
+53 ;;^DD(399,210,1,1,"CREATE CONDITION")
+54 ;;=(#211)]""
+55 ;;^DD(399,210,1,1,"CREATE VALUE")
+56 ;;=(#201)-(#210)
+57 ;;^DD(399,210,1,1,"DELETE VALUE")
+58 ;;=@
+59 ;;^DD(399,210,1,1,"FIELD")
+60 ;;=#212
+61 ;;^DD(399,210,3)
+62 ;;=Enter the charges incurred during the first fiscal year associated with this bill.
+63 ;;^DD(399,210,5,1,0)
+64 ;;=399^201^1
+65 ;;^DD(399,210,21,0)
+66 ;;=^^2^2^2880901^
+67 ;;^DD(399,210,21,1,0)
+68 ;;=These are the charges incurred during the first fiscal year associated
+69 ;;^DD(399,210,21,2,0)
+70 ;;=with this bill.
+71 ;;^DD(399,210,"DT")
+72 ;;=2880901
+73 ;;^DD(399,211,0)
+74 ;;=FISCAL YEAR 2^NJ2,0^^U1;11^K:+X'=X!(X>99)!(X<0)!(X?.E1"."1N.N) X
+75 ;;^DD(399,211,3)
+76 ;;=Enter the 2 digit second fiscal year associated with this bill.
+77 ;;^DD(399,211,21,0)
+78 ;;=^^1^1^2931018^^
+79 ;;^DD(399,211,21,1,0)
+80 ;;=This is the second fiscal year with which this bill is associated.
+81 ;;^DD(399,211,23,0)
+82 ;;=^^2^2^2931018^
+83 ;;^DD(399,211,23,1,0)
+84 ;;=Beginning with 1.5 bills can no longer span fical years, so this is
+85 ;;^DD(399,211,23,2,0)
+86 ;;=no longer needed.
+87 ;;^DD(399,211,"DT")
+88 ;;=2880708
+89 ;;^DD(399,212,0)
+90 ;;=FY 2 CHARGES^NJ10,2^^U1;12^S:X["$" X=$P(X,"$",2) K:X'?.N.1".".2N!(X>9999999)!(X<0) X
+91 ;;^DD(399,212,3)
+92 ;;=Enter the charges incurred during the second fiscal year associated with this bill.