IBINI0AK ; ; 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,165,23,2,0)
;;=Excludes pass, AA, UA days but includes days in non-billable bedsections.
;;^DD(399,165,23,3,0)
;;=Notice that the number of units of service under revenue code only
;;^DD(399,165,23,4,0)
;;=includes billable bedsections so the number of units may not add
;;^DD(399,165,23,5,0)
;;=up to the length of stay if the patient was in a non-billable bedsection
;;^DD(399,165,23,6,0)
;;=for awhile.
;;^DD(399,165,23,7,0)
;;=LOS of a stay where admit day=discharge day is 1. LOS of a stay where
;;^DD(399,165,23,8,0)
;;=admit date+1=discharge date also has an LOS of 1.
;;^DD(399,165,23,9,0)
;;=The discharge date is not charged. Therefore, on continuous first
;;^DD(399,165,23,10,0)
;;=and interum bills the LOS is the date range inclusive of the last day
;;^DD(399,165,23,11,0)
;;=on the bill, all other bills exclude the last day (with exception of
;;^DD(399,165,23,12,0)
;;=admit=discharge day).
;;^DD(399,165,"DT")
;;=2880602
;;^DD(399,166,0)
;;=UNABLE TO WORK FROM^D^^U;16^S %DT="EX" D ^%DT S X=Y K:Y<1 X
;;^DD(399,166,3)
;;=Enter the beginning date the patient became unable to work due to current condition.
;;^DD(399,166,21,0)
;;=^^3^3^2920427^^^^
;;^DD(399,166,21,1,0)
;;=Enter the beginning date for the period of time that the patient could not
;;^DD(399,166,21,2,0)
;;=work due to the condition for which this claim is being submitted. Printed
;;^DD(399,166,21,3,0)
;;=on the HCFA 1500.
;;^DD(399,166,"DT")
;;=2920427
;;^DD(399,167,0)
;;=UNABLE TO WORK TO^D^^U;17^S %DT="EX" D ^%DT S X=Y K:Y<1 X
;;^DD(399,167,3)
;;=Enter the ending date of the time that the patient was unable to work due to current condition.
;;^DD(399,167,21,0)
;;=^^3^3^2920427^^
;;^DD(399,167,21,1,0)
;;=This is the ending date of the period of time during which the patient
;;^DD(399,167,21,2,0)
;;=was unable to work due to the condition for which this claim is being
;;^DD(399,167,21,3,0)
;;=submitted. Used on the HCFA 1500.
;;^DD(399,167,"DT")
;;=2920427
;;^DD(399,168,0)
;;=*PLACE OF SERVICE^P353.1'^IBE(353.1,^U;18^Q
;;^DD(399,168,3)
;;=Enter the code corresponding to the Place of Service of patient care.
;;^DD(399,168,21,0)
;;=^^3^3^2930611^^^^
;;^DD(399,168,21,1,0)
;;=This indicates the Place of Service, used on the HCFA 1500.
;;^DD(399,168,21,2,0)
;;=Not used after IB v1.5, replaced by PLACE OF SERVICE (304,8) associated
;;^DD(399,168,21,3,0)
;;=with a specific procedure. Marked for deletion 6/11/93.
;;^DD(399,168,"DT")
;;=2930611
;;^DD(399,169,0)
;;=*TYPE OF SERVICE^P353.2'^IBE(353.2,^U;19^Q
;;^DD(399,169,3)
;;=Enter the appropriate Type of Service code for this visit.
;;^DD(399,169,21,0)
;;=^^3^3^2930611^^
;;^DD(399,169,21,1,0)
;;=Code indicating the Type of Service preformed. Used on the HCFA 1500.
;;^DD(399,169,21,2,0)
;;=Not used after IB v1.5, replaced by TYPE OF SERVICE (304,9) associated
;;^DD(399,169,21,3,0)
;;=with a specific procedure. Marked for deletion 6/11/93.
;;^DD(399,169,"DT")
;;=2930611
;;^DD(399,201,0)
;;=TOTAL CHARGES^NJ8,2XI^^U1;1^Q
;;^DD(399,201,1,0)
;;=^.1
;;^DD(399,201,1,1,0)
;;=^^TRIGGER^399^210
;;^DD(399,201,1,1,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,10),X=X S DIU=X K Y S X=DIV S X=DIV X ^DD(399,201,1,1,1.4)
;;^DD(399,201,1,1,1.4)
;;=S DIH=$S($D(^DGCR(399,DIV(0),"U1")):^("U1"),1:""),DIV=X S $P(^("U1"),U,10)=DIV,DIH=399,DIG=210 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
;;^DD(399,201,1,1,2)
;;=Q
;;^DD(399,201,1,1,"CREATE VALUE")
;;=TOTAL CHARGES
IBINI0AK ; ; 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,165,23,2,0)
+2 ;;=Excludes pass, AA, UA days but includes days in non-billable bedsections.
+3 ;;^DD(399,165,23,3,0)
+4 ;;=Notice that the number of units of service under revenue code only
+5 ;;^DD(399,165,23,4,0)
+6 ;;=includes billable bedsections so the number of units may not add
+7 ;;^DD(399,165,23,5,0)
+8 ;;=up to the length of stay if the patient was in a non-billable bedsection
+9 ;;^DD(399,165,23,6,0)
+10 ;;=for awhile.
+11 ;;^DD(399,165,23,7,0)
+12 ;;=LOS of a stay where admit day=discharge day is 1. LOS of a stay where
+13 ;;^DD(399,165,23,8,0)
+14 ;;=admit date+1=discharge date also has an LOS of 1.
+15 ;;^DD(399,165,23,9,0)
+16 ;;=The discharge date is not charged. Therefore, on continuous first
+17 ;;^DD(399,165,23,10,0)
+18 ;;=and interum bills the LOS is the date range inclusive of the last day
+19 ;;^DD(399,165,23,11,0)
+20 ;;=on the bill, all other bills exclude the last day (with exception of
+21 ;;^DD(399,165,23,12,0)
+22 ;;=admit=discharge day).
+23 ;;^DD(399,165,"DT")
+24 ;;=2880602
+25 ;;^DD(399,166,0)
+26 ;;=UNABLE TO WORK FROM^D^^U;16^S %DT="EX" D ^%DT S X=Y K:Y<1 X
+27 ;;^DD(399,166,3)
+28 ;;=Enter the beginning date the patient became unable to work due to current condition.
+29 ;;^DD(399,166,21,0)
+30 ;;=^^3^3^2920427^^^^
+31 ;;^DD(399,166,21,1,0)
+32 ;;=Enter the beginning date for the period of time that the patient could not
+33 ;;^DD(399,166,21,2,0)
+34 ;;=work due to the condition for which this claim is being submitted. Printed
+35 ;;^DD(399,166,21,3,0)
+36 ;;=on the HCFA 1500.
+37 ;;^DD(399,166,"DT")
+38 ;;=2920427
+39 ;;^DD(399,167,0)
+40 ;;=UNABLE TO WORK TO^D^^U;17^S %DT="EX" D ^%DT S X=Y K:Y<1 X
+41 ;;^DD(399,167,3)
+42 ;;=Enter the ending date of the time that the patient was unable to work due to current condition.
+43 ;;^DD(399,167,21,0)
+44 ;;=^^3^3^2920427^^
+45 ;;^DD(399,167,21,1,0)
+46 ;;=This is the ending date of the period of time during which the patient
+47 ;;^DD(399,167,21,2,0)
+48 ;;=was unable to work due to the condition for which this claim is being
+49 ;;^DD(399,167,21,3,0)
+50 ;;=submitted. Used on the HCFA 1500.
+51 ;;^DD(399,167,"DT")
+52 ;;=2920427
+53 ;;^DD(399,168,0)
+54 ;;=*PLACE OF SERVICE^P353.1'^IBE(353.1,^U;18^Q
+55 ;;^DD(399,168,3)
+56 ;;=Enter the code corresponding to the Place of Service of patient care.
+57 ;;^DD(399,168,21,0)
+58 ;;=^^3^3^2930611^^^^
+59 ;;^DD(399,168,21,1,0)
+60 ;;=This indicates the Place of Service, used on the HCFA 1500.
+61 ;;^DD(399,168,21,2,0)
+62 ;;=Not used after IB v1.5, replaced by PLACE OF SERVICE (304,8) associated
+63 ;;^DD(399,168,21,3,0)
+64 ;;=with a specific procedure. Marked for deletion 6/11/93.
+65 ;;^DD(399,168,"DT")
+66 ;;=2930611
+67 ;;^DD(399,169,0)
+68 ;;=*TYPE OF SERVICE^P353.2'^IBE(353.2,^U;19^Q
+69 ;;^DD(399,169,3)
+70 ;;=Enter the appropriate Type of Service code for this visit.
+71 ;;^DD(399,169,21,0)
+72 ;;=^^3^3^2930611^^
+73 ;;^DD(399,169,21,1,0)
+74 ;;=Code indicating the Type of Service preformed. Used on the HCFA 1500.
+75 ;;^DD(399,169,21,2,0)
+76 ;;=Not used after IB v1.5, replaced by TYPE OF SERVICE (304,9) associated
+77 ;;^DD(399,169,21,3,0)
+78 ;;=with a specific procedure. Marked for deletion 6/11/93.
+79 ;;^DD(399,169,"DT")
+80 ;;=2930611
+81 ;;^DD(399,201,0)
+82 ;;=TOTAL CHARGES^NJ8,2XI^^U1;1^Q
+83 ;;^DD(399,201,1,0)
+84 ;;=^.1
+85 ;;^DD(399,201,1,1,0)
+86 ;;=^^TRIGGER^399^210
+87 ;;^DD(399,201,1,1,1)
+88 ;;=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,10),X=X S DIU=X K Y S X=DIV S X=DIV X ^DD(399,201,1,1,1.4)
+89 ;;^DD(399,201,1,1,1.4)
+90 ;;=S DIH=$S($D(^DGCR(399,DIV(0),"U1")):^("U1"),1:""),DIV=X S $P(^("U1"),U,10)=DIV,DIH=399,DIG=210 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
+91 ;;^DD(399,201,1,1,2)
+92 ;;=Q
+93 ;;^DD(399,201,1,1,"CREATE VALUE")
+94 ;;=TOTAL CHARGES