- IBINI01V ; ; 21-MAR-1994
- ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
- Q:'DIFQ(350.5) 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(350.5,.04,"DT")
- ;;=2920121
- ;;^DD(350.5,.05,0)
- ;;=WAGE PERCENTAGE^RNJ10,8^^0;5^K:+X'=X!(X>1)!(X<0)!(X?.E1"."9N.N) X
- ;;^DD(350.5,.05,1,0)
- ;;=^.1
- ;;^DD(350.5,.05,1,1,0)
- ;;=^^TRIGGER^350.5^.06
- ;;^DD(350.5,.05,1,1,1)
- ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^IBE(350.5,D0,0)):^(0),1:"") S X=$P(Y(1),U,6),X=X S DIU=X K Y S X=DIV S X=1-DIV X ^DD(350.5,.05,1,1,1.4)
- ;;^DD(350.5,.05,1,1,1.4)
- ;;=S DIH=$S($D(^IBE(350.5,DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,6)=DIV,DIH=350.5,DIG=.06 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
- ;;^DD(350.5,.05,1,1,2)
- ;;=Q
- ;;^DD(350.5,.05,1,1,"CREATE VALUE")
- ;;=1-WAGE PERCENTAGE
- ;;^DD(350.5,.05,1,1,"DELETE VALUE")
- ;;=NO EFFECT
- ;;^DD(350.5,.05,1,1,"FIELD")
- ;;=NON-WAGE PERCENTAGE
- ;;^DD(350.5,.05,3)
- ;;=Type a number between 0 and 1, with up to 8 decimal digits. This is the wage component fraction of the Ambulatory Surgery charge.
- ;;^DD(350.5,.05,21,0)
- ;;=^^2^2^2920723^^^^
- ;;^DD(350.5,.05,21,1,0)
- ;;=This is the percentage of the rate group unit charge that is the wage
- ;;^DD(350.5,.05,21,2,0)
- ;;=component to be used in calculating the ambulatory surgery charge.
- ;;^DD(350.5,.05,"DT")
- ;;=2920122
- ;;^DD(350.5,.06,0)
- ;;=NON-WAGE PERCENTAGE^RNJ10,8X^^0;6^K:+X'=X!(X>1)!(X<0)!(X?.E1"."9N.N)!(X'=(1-$P(^IBE(350.5,DA,0),U,5))) X
- ;;^DD(350.5,.06,3)
- ;;=Type a Number between 0 and 1, 8 Decimal Digits. Wage and non-wage percentage must total 1.
- ;;^DD(350.5,.06,5,1,0)
- ;;=350.5^.05^1
- ;;^DD(350.5,.06,21,0)
- ;;=^^2^2^2920415^^^^
- ;;^DD(350.5,.06,21,1,0)
- ;;=This is the percentage of the rate group unit charge that is the non-wage
- ;;^DD(350.5,.06,21,2,0)
- ;;=component to be used in calculating the ambulatory surgery charge.
- ;;^DD(350.5,.06,"DT")
- ;;=2920122
- ;;^DD(350.5,.07,0)
- ;;=LOCALITY RATE MODIFIER^RNJ11,8^^0;7^K:+X'=X!(X>99)!(X<0)!(X?.E1"."9N.N) X
- ;;^DD(350.5,.07,3)
- ;;=Type a Number between 0 and 99, 8 Decimal Digits
- ;;^DD(350.5,.07,21,0)
- ;;=^^4^4^2920415^^^
- ;;^DD(350.5,.07,21,1,0)
- ;;=This is the Geographic Wage Index that is used to account for wage differences
- ;;^DD(350.5,.07,21,2,0)
- ;;=in different localities when calculating the ambulatory surgery charge. It is
- ;;^DD(350.5,.07,21,3,0)
- ;;=multiplied by the wage component to get the final geographic wage component
- ;;^DD(350.5,.07,21,4,0)
- ;;=of the charge.
- ;;^DD(350.5,.07,"DT")
- ;;=2920121
- IBINI01V ; ; 21-MAR-1994
- +1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
- +2 IF 'DIFQ(350.5)
- 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(350.5,.04,"DT")
- +2 ;;=2920121
- +3 ;;^DD(350.5,.05,0)
- +4 ;;=WAGE PERCENTAGE^RNJ10,8^^0;5^K:+X'=X!(X>1)!(X<0)!(X?.E1"."9N.N) X
- +5 ;;^DD(350.5,.05,1,0)
- +6 ;;=^.1
- +7 ;;^DD(350.5,.05,1,1,0)
- +8 ;;=^^TRIGGER^350.5^.06
- +9 ;;^DD(350.5,.05,1,1,1)
- +10 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^IBE(350.5,D0,0)):^(0),1:"") S X=$P(Y(1),U,6),X=X S DIU=X K Y S X=DIV S X=1-DIV X ^DD(350.5,.05,1,1,1.4)
- +11 ;;^DD(350.5,.05,1,1,1.4)
- +12 ;;=S DIH=$S($D(^IBE(350.5,DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,6)=DIV,DIH=350.5,DIG=.06 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
- +13 ;;^DD(350.5,.05,1,1,2)
- +14 ;;=Q
- +15 ;;^DD(350.5,.05,1,1,"CREATE VALUE")
- +16 ;;=1-WAGE PERCENTAGE
- +17 ;;^DD(350.5,.05,1,1,"DELETE VALUE")
- +18 ;;=NO EFFECT
- +19 ;;^DD(350.5,.05,1,1,"FIELD")
- +20 ;;=NON-WAGE PERCENTAGE
- +21 ;;^DD(350.5,.05,3)
- +22 ;;=Type a number between 0 and 1, with up to 8 decimal digits. This is the wage component fraction of the Ambulatory Surgery charge.
- +23 ;;^DD(350.5,.05,21,0)
- +24 ;;=^^2^2^2920723^^^^
- +25 ;;^DD(350.5,.05,21,1,0)
- +26 ;;=This is the percentage of the rate group unit charge that is the wage
- +27 ;;^DD(350.5,.05,21,2,0)
- +28 ;;=component to be used in calculating the ambulatory surgery charge.
- +29 ;;^DD(350.5,.05,"DT")
- +30 ;;=2920122
- +31 ;;^DD(350.5,.06,0)
- +32 ;;=NON-WAGE PERCENTAGE^RNJ10,8X^^0;6^K:+X'=X!(X>1)!(X<0)!(X?.E1"."9N.N)!(X'=(1-$P(^IBE(350.5,DA,0),U,5))) X
- +33 ;;^DD(350.5,.06,3)
- +34 ;;=Type a Number between 0 and 1, 8 Decimal Digits. Wage and non-wage percentage must total 1.
- +35 ;;^DD(350.5,.06,5,1,0)
- +36 ;;=350.5^.05^1
- +37 ;;^DD(350.5,.06,21,0)
- +38 ;;=^^2^2^2920415^^^^
- +39 ;;^DD(350.5,.06,21,1,0)
- +40 ;;=This is the percentage of the rate group unit charge that is the non-wage
- +41 ;;^DD(350.5,.06,21,2,0)
- +42 ;;=component to be used in calculating the ambulatory surgery charge.
- +43 ;;^DD(350.5,.06,"DT")
- +44 ;;=2920122
- +45 ;;^DD(350.5,.07,0)
- +46 ;;=LOCALITY RATE MODIFIER^RNJ11,8^^0;7^K:+X'=X!(X>99)!(X<0)!(X?.E1"."9N.N) X
- +47 ;;^DD(350.5,.07,3)
- +48 ;;=Type a Number between 0 and 99, 8 Decimal Digits
- +49 ;;^DD(350.5,.07,21,0)
- +50 ;;=^^4^4^2920415^^^
- +51 ;;^DD(350.5,.07,21,1,0)
- +52 ;;=This is the Geographic Wage Index that is used to account for wage differences
- +53 ;;^DD(350.5,.07,21,2,0)
- +54 ;;=in different localities when calculating the ambulatory surgery charge. It is
- +55 ;;^DD(350.5,.07,21,3,0)
- +56 ;;=multiplied by the wage component to get the final geographic wage component
- +57 ;;^DD(350.5,.07,21,4,0)
- +58 ;;=of the charge.
- +59 ;;^DD(350.5,.07,"DT")
- +60 ;;=2920121