IBINI0AH ; ; 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,151,1,3,"CREATE VALUE")
;;=S X=+^DGCR(399,DA,"U"),X=$E(X,2,3)+$S($E(X,4,5)<10:0,1:1)
;;^DD(399,151,1,3,"DELETE VALUE")
;;=NO EFFECT
;;^DD(399,151,1,3,"DT")
;;=2931018
;;^DD(399,151,1,3,"FIELD")
;;=FISCAL YEAR 1
;;^DD(399,151,3)
;;=Enter the beginning service date of the period included on this bill.
;;^DD(399,151,21,0)
;;=^^3^3^2940208^^^^
;;^DD(399,151,21,1,0)
;;=This is the beginning service date of the period covered by this bill.
;;^DD(399,151,21,2,0)
;;=A bills date range may not cross either the fiscal or calendar years.
;;^DD(399,151,21,3,0)
;;=The date range for inpatient interim bills should not be overlapped.
;;^DD(399,151,"DT")
;;=2931018
;;^DD(399,152,0)
;;=STATEMENT COVERS TO^RDX^^U;2^S %DT="ETP" D ^%DT S X=Y K:Y<1 X I $D(X) D DDAT1^IBCU4 K IB00
;;^DD(399,152,1,0)
;;=^.1
;;^DD(399,152,1,1,0)
;;=^^TRIGGER^399^165
;;^DD(399,152,1,1,1)
;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X I $P(^DGCR(399,DA,0),U,5)<3 I X S X=DIV S Y(1)=$S($D(^DGCR(399,D0,"U")):^("U"),1:"") S X=$P(Y(1),U,15),X=X S DIU=X K Y S X=DIV S X=$$LOS1^IBCU64(DA) X ^DD(399,152,1,1,1.4)
;;^DD(399,152,1,1,1.4)
;;=S DIH=$S($D(^DGCR(399,DIV(0),"U")):^("U"),1:""),DIV=X S $P(^("U"),U,15)=DIV,DIH=399,DIG=165 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
;;^DD(399,152,1,1,2)
;;=Q
;;^DD(399,152,1,1,"%D",0)
;;=^^1^1^2931018^
;;^DD(399,152,1,1,"%D",1,0)
;;=Sets Length of Stay based on PTF record and date range of bill. (Inpatient only.)
;;^DD(399,152,1,1,"CREATE CONDITION")
;;=I $P(^DGCR(399,DA,0),U,5)<3
;;^DD(399,152,1,1,"CREATE VALUE")
;;=S X=$$LOS1^IBCU64(DA)
;;^DD(399,152,1,1,"DELETE VALUE")
;;=NO EFFECT
;;^DD(399,152,1,1,"DT")
;;=2931018
;;^DD(399,152,1,1,"FIELD")
;;=LENGTH OF STAY
;;^DD(399,152,1,2,0)
;;=399^AREV3^MUMPS
;;^DD(399,152,1,2,1)
;;=S DGRVRCAL=1
;;^DD(399,152,1,2,2)
;;=S DGRVRCAL=2
;;^DD(399,152,1,2,"%D",0)
;;=^^2^2^2940214^
;;^DD(399,152,1,2,"%D",1,0)
;;=Variable causes revenue codes and chrges to be re-calculated on return
;;^DD(399,152,1,2,"%D",2,0)
;;=to the enter/edit billing screens.
;;^DD(399,152,3)
;;=Enter the ending service date of period covered by this bill.
;;^DD(399,152,21,0)
;;=^^3^3^2940208^^^
;;^DD(399,152,21,1,0)
;;=This is the ending service date of the period covered by this bill.
;;^DD(399,152,21,2,0)
;;=A bills date range may not cross either the fiscal or calendar years.
;;^DD(399,152,21,3,0)
;;=The date range for inpatient interim bills should not be overlapped.
;;^DD(399,152,"DT")
;;=2931018
;;^DD(399,153,0)
;;=POWER OF ATTORNEY COMPLETED?^RFOX^^U;3^I $D(X) D YN^IBCU
;;^DD(399,153,2)
;;=S Y(0)=Y S Y=$S(Y:"YES",Y=0:"NO",1:"")
;;^DD(399,153,2.1)
;;=S Y=$S(Y:"YES",Y=0:"NO",1:"")
;;^DD(399,153,3)
;;=Enter 'Yes' or '1' if Power of Attorney has been completed, 'No' or '0' if Power of Attorney has not been completed.
;;^DD(399,153,21,0)
;;=^^2^2^2880901^
;;^DD(399,153,21,1,0)
;;=This identifies whether or not the power of attorney forms (if necessary)
;;^DD(399,153,21,2,0)
;;=have been signed.
;;^DD(399,153,"DT")
;;=2880607
;;^DD(399,154,0)
;;=WHOSE EMPLOYMENT INFO.?^RS^p:PATIENT;s:SPOUSE;^U;4^Q
;;^DD(399,154,3)
;;=Enter the code which indicates whether the employment information given applies to the patient or to the patient's spouse.
;;^DD(399,154,21,0)
;;=^^2^2^2880901^
;;^DD(399,154,21,1,0)
;;=This indicates whether the employment information give applies to the
;;^DD(399,154,21,2,0)
;;=patient or to the patient's spouse.
;;^DD(399,154,"DT")
;;=2880523
;;^DD(399,155,0)
;;=IS THIS A SENSITIVE RECORD?^RFOX^^U;5^I $D(X) D YN^IBCU
IBINI0AH ; ; 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,151,1,3,"CREATE VALUE")
+2 ;;=S X=+^DGCR(399,DA,"U"),X=$E(X,2,3)+$S($E(X,4,5)<10:0,1:1)
+3 ;;^DD(399,151,1,3,"DELETE VALUE")
+4 ;;=NO EFFECT
+5 ;;^DD(399,151,1,3,"DT")
+6 ;;=2931018
+7 ;;^DD(399,151,1,3,"FIELD")
+8 ;;=FISCAL YEAR 1
+9 ;;^DD(399,151,3)
+10 ;;=Enter the beginning service date of the period included on this bill.
+11 ;;^DD(399,151,21,0)
+12 ;;=^^3^3^2940208^^^^
+13 ;;^DD(399,151,21,1,0)
+14 ;;=This is the beginning service date of the period covered by this bill.
+15 ;;^DD(399,151,21,2,0)
+16 ;;=A bills date range may not cross either the fiscal or calendar years.
+17 ;;^DD(399,151,21,3,0)
+18 ;;=The date range for inpatient interim bills should not be overlapped.
+19 ;;^DD(399,151,"DT")
+20 ;;=2931018
+21 ;;^DD(399,152,0)
+22 ;;=STATEMENT COVERS TO^RDX^^U;2^S %DT="ETP" D ^%DT S X=Y K:Y<1 X I $D(X) D DDAT1^IBCU4 K IB00
+23 ;;^DD(399,152,1,0)
+24 ;;=^.1
+25 ;;^DD(399,152,1,1,0)
+26 ;;=^^TRIGGER^399^165
+27 ;;^DD(399,152,1,1,1)
+28 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X I $P(^DGCR(399,DA,0),U,5)<3 I X S X=DIV S Y(1)=$S($D(^DGCR(399,D0,"U")):^("U"),1:"") S X=$P(Y(1),U,15),X=X S DIU=X K Y S X=DIV S X=$$LOS1^IBCU64(DA) X ^DD(399,152,1,1,1.4)
+29 ;;^DD(399,152,1,1,1.4)
+30 ;;=S DIH=$S($D(^DGCR(399,DIV(0),"U")):^("U"),1:""),DIV=X S $P(^("U"),U,15)=DIV,DIH=399,DIG=165 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
+31 ;;^DD(399,152,1,1,2)
+32 ;;=Q
+33 ;;^DD(399,152,1,1,"%D",0)
+34 ;;=^^1^1^2931018^
+35 ;;^DD(399,152,1,1,"%D",1,0)
+36 ;;=Sets Length of Stay based on PTF record and date range of bill. (Inpatient only.)
+37 ;;^DD(399,152,1,1,"CREATE CONDITION")
+38 ;;=I $P(^DGCR(399,DA,0),U,5)<3
+39 ;;^DD(399,152,1,1,"CREATE VALUE")
+40 ;;=S X=$$LOS1^IBCU64(DA)
+41 ;;^DD(399,152,1,1,"DELETE VALUE")
+42 ;;=NO EFFECT
+43 ;;^DD(399,152,1,1,"DT")
+44 ;;=2931018
+45 ;;^DD(399,152,1,1,"FIELD")
+46 ;;=LENGTH OF STAY
+47 ;;^DD(399,152,1,2,0)
+48 ;;=399^AREV3^MUMPS
+49 ;;^DD(399,152,1,2,1)
+50 ;;=S DGRVRCAL=1
+51 ;;^DD(399,152,1,2,2)
+52 ;;=S DGRVRCAL=2
+53 ;;^DD(399,152,1,2,"%D",0)
+54 ;;=^^2^2^2940214^
+55 ;;^DD(399,152,1,2,"%D",1,0)
+56 ;;=Variable causes revenue codes and chrges to be re-calculated on return
+57 ;;^DD(399,152,1,2,"%D",2,0)
+58 ;;=to the enter/edit billing screens.
+59 ;;^DD(399,152,3)
+60 ;;=Enter the ending service date of period covered by this bill.
+61 ;;^DD(399,152,21,0)
+62 ;;=^^3^3^2940208^^^
+63 ;;^DD(399,152,21,1,0)
+64 ;;=This is the ending service date of the period covered by this bill.
+65 ;;^DD(399,152,21,2,0)
+66 ;;=A bills date range may not cross either the fiscal or calendar years.
+67 ;;^DD(399,152,21,3,0)
+68 ;;=The date range for inpatient interim bills should not be overlapped.
+69 ;;^DD(399,152,"DT")
+70 ;;=2931018
+71 ;;^DD(399,153,0)
+72 ;;=POWER OF ATTORNEY COMPLETED?^RFOX^^U;3^I $D(X) D YN^IBCU
+73 ;;^DD(399,153,2)
+74 ;;=S Y(0)=Y S Y=$S(Y:"YES",Y=0:"NO",1:"")
+75 ;;^DD(399,153,2.1)
+76 ;;=S Y=$S(Y:"YES",Y=0:"NO",1:"")
+77 ;;^DD(399,153,3)
+78 ;;=Enter 'Yes' or '1' if Power of Attorney has been completed, 'No' or '0' if Power of Attorney has not been completed.
+79 ;;^DD(399,153,21,0)
+80 ;;=^^2^2^2880901^
+81 ;;^DD(399,153,21,1,0)
+82 ;;=This identifies whether or not the power of attorney forms (if necessary)
+83 ;;^DD(399,153,21,2,0)
+84 ;;=have been signed.
+85 ;;^DD(399,153,"DT")
+86 ;;=2880607
+87 ;;^DD(399,154,0)
+88 ;;=WHOSE EMPLOYMENT INFO.?^RS^p:PATIENT;s:SPOUSE;^U;4^Q
+89 ;;^DD(399,154,3)
+90 ;;=Enter the code which indicates whether the employment information given applies to the patient or to the patient's spouse.
+91 ;;^DD(399,154,21,0)
+92 ;;=^^2^2^2880901^
+93 ;;^DD(399,154,21,1,0)
+94 ;;=This indicates whether the employment information give applies to the
+95 ;;^DD(399,154,21,2,0)
+96 ;;=patient or to the patient's spouse.
+97 ;;^DD(399,154,"DT")
+98 ;;=2880523
+99 ;;^DD(399,155,0)
+100 ;;=IS THIS A SENSITIVE RECORD?^RFOX^^U;5^I $D(X) D YN^IBCU