IBINI00T ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQ(36) 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(36,.149,21,1,0)
;;=Enter the fax number of the appeals office of this insurance carrier.
;;^DD(36,.149,"DT")
;;=2931122
;;^DD(36,.15,0)
;;=PRESCRIPTION REFILL REV. CODE^*P399.2'^DGCR(399.2,^0;15^S DIC("S")="I $P(^(0),U,3)" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
;;^DD(36,.15,3)
;;=Enter revenue code to be used for Rx refills.
;;^DD(36,.15,12)
;;=This is the Revenue Code that will automatically be generated for this insurance company if a prescription refill is listed on this bill.
;;^DD(36,.15,12.1)
;;=S DIC("S")="I $P(^(0),U,3)"
;;^DD(36,.15,21,0)
;;=^^1^1^2940110^^
;;^DD(36,.15,21,1,0)
;;=This is the Revenue Code that will automatically be generated for this insurance company if a prescription refill is listed on this bill.
;;^DD(36,.15,"DT")
;;=2940110
;;^DD(36,.151,0)
;;=INQUIRY ADDRESS ST. [LINE 1]^F^^.15;1^K:$L(X)>30!($L(X)<3) X
;;^DD(36,.151,1,0)
;;=^.1
;;^DD(36,.151,1,1,0)
;;=^^TRIGGER^36^.152
;;^DD(36,.151,1,1,1)
;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DIC(36,D0,.15)):^(.15),1:"") S X=$P(Y(1),U,2),X=X S DIU=X K Y S X="" X ^DD(36,.151,1,1,1.4)
;;^DD(36,.151,1,1,1.4)
;;=S DIH=$S($D(^DIC(36,DIV(0),.15)):^(.15),1:""),DIV=X S $P(^(.15),U,2)=DIV,DIH=36,DIG=.152 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
;;^DD(36,.151,1,1,2)
;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DIC(36,D0,.15)):^(.15),1:"") S X=$P(Y(1),U,2),X=X S DIU=X K Y S X="" X ^DD(36,.151,1,1,2.4)
;;^DD(36,.151,1,1,2.4)
;;=S DIH=$S($D(^DIC(36,DIV(0),.15)):^(.15),1:""),DIV=X S $P(^(.15),U,2)=DIV,DIH=36,DIG=.152 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
;;^DD(36,.151,1,1,"%D",0)
;;=^^2^2^2930402^
;;^DD(36,.151,1,1,"%D",1,0)
;;=When changing or deleting INQUIRY ADDRESS ST. [LINE 1]
;;^DD(36,.151,1,1,"%D",2,0)
;;=delete INQUIRY ADDRESS ST. [LINE 2].
;;^DD(36,.151,1,1,"CREATE VALUE")
;;=@
;;^DD(36,.151,1,1,"DELETE VALUE")
;;=@
;;^DD(36,.151,1,1,"DT")
;;=2930401
;;^DD(36,.151,1,1,"FIELD")
;;=INQUIRY ADDRESS ST. [LINE 2]
;;^DD(36,.151,1,2,0)
;;=^^TRIGGER^36^.153
;;^DD(36,.151,1,2,1)
;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DIC(36,D0,.15)):^(.15),1:"") S X=$P(Y(1),U,3),X=X S DIU=X K Y S X="" X ^DD(36,.151,1,2,1.4)
;;^DD(36,.151,1,2,1.4)
;;=S DIH=$S($D(^DIC(36,DIV(0),.15)):^(.15),1:""),DIV=X S $P(^(.15),U,3)=DIV,DIH=36,DIG=.153 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
;;^DD(36,.151,1,2,2)
;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DIC(36,D0,.15)):^(.15),1:"") S X=$P(Y(1),U,3),X=X S DIU=X K Y S X="" X ^DD(36,.151,1,2,2.4)
;;^DD(36,.151,1,2,2.4)
;;=S DIH=$S($D(^DIC(36,DIV(0),.15)):^(.15),1:""),DIV=X S $P(^(.15),U,3)=DIV,DIH=36,DIG=.153 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
;;^DD(36,.151,1,2,"%D",0)
;;=^^2^2^2930402^
;;^DD(36,.151,1,2,"%D",1,0)
;;=When changing or deleting INQUIRY ADDRESS ST. [LINE 1] delete
;;^DD(36,.151,1,2,"%D",2,0)
;;=INQUIRY ADDRESS ST. [LINE 3].
;;^DD(36,.151,1,2,"CREATE VALUE")
;;=@
;;^DD(36,.151,1,2,"DELETE VALUE")
;;=@
;;^DD(36,.151,1,2,"DT")
;;=2930401
;;^DD(36,.151,1,2,"FIELD")
;;=INQUIRY ADDRESS ST. [LINE 3]
;;^DD(36,.151,3)
;;=If the inquiry address of this company is different from its main address, enter Line 1 of the inquiry street address. Answer must be 3-30 characters in length.
;;^DD(36,.151,21,0)
;;=^^2^2^2930607^
;;^DD(36,.151,21,1,0)
;;=Enter the first line of the street address of the inquiry office of
;;^DD(36,.151,21,2,0)
;;=this insurance carrier.
;;^DD(36,.151,"DT")
;;=2930401
;;^DD(36,.152,0)
;;=INQUIRY ADDRESS ST. [LINE 2]^F^^.15;2^K:$L(X)>30!($L(X)<3) X
;;^DD(36,.152,1,0)
;;=^.1
;;^DD(36,.152,1,1,0)
;;=^^TRIGGER^36^.153
IBINI00T ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQ(36)
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(36,.149,21,1,0)
+2 ;;=Enter the fax number of the appeals office of this insurance carrier.
+3 ;;^DD(36,.149,"DT")
+4 ;;=2931122
+5 ;;^DD(36,.15,0)
+6 ;;=PRESCRIPTION REFILL REV. CODE^*P399.2'^DGCR(399.2,^0;15^S DIC("S")="I $P(^(0),U,3)" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
+7 ;;^DD(36,.15,3)
+8 ;;=Enter revenue code to be used for Rx refills.
+9 ;;^DD(36,.15,12)
+10 ;;=This is the Revenue Code that will automatically be generated for this insurance company if a prescription refill is listed on this bill.
+11 ;;^DD(36,.15,12.1)
+12 ;;=S DIC("S")="I $P(^(0),U,3)"
+13 ;;^DD(36,.15,21,0)
+14 ;;=^^1^1^2940110^^
+15 ;;^DD(36,.15,21,1,0)
+16 ;;=This is the Revenue Code that will automatically be generated for this insurance company if a prescription refill is listed on this bill.
+17 ;;^DD(36,.15,"DT")
+18 ;;=2940110
+19 ;;^DD(36,.151,0)
+20 ;;=INQUIRY ADDRESS ST. [LINE 1]^F^^.15;1^K:$L(X)>30!($L(X)<3) X
+21 ;;^DD(36,.151,1,0)
+22 ;;=^.1
+23 ;;^DD(36,.151,1,1,0)
+24 ;;=^^TRIGGER^36^.152
+25 ;;^DD(36,.151,1,1,1)
+26 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DIC(36,D0,.15)):^(.15),1:"") S X=$P(Y(1),U,2),X=X S DIU=X K Y S X="" X ^DD(36,.151,1,1,1.4)
+27 ;;^DD(36,.151,1,1,1.4)
+28 ;;=S DIH=$S($D(^DIC(36,DIV(0),.15)):^(.15),1:""),DIV=X S $P(^(.15),U,2)=DIV,DIH=36,DIG=.152 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
+29 ;;^DD(36,.151,1,1,2)
+30 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DIC(36,D0,.15)):^(.15),1:"") S X=$P(Y(1),U,2),X=X S DIU=X K Y S X="" X ^DD(36,.151,1,1,2.4)
+31 ;;^DD(36,.151,1,1,2.4)
+32 ;;=S DIH=$S($D(^DIC(36,DIV(0),.15)):^(.15),1:""),DIV=X S $P(^(.15),U,2)=DIV,DIH=36,DIG=.152 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
+33 ;;^DD(36,.151,1,1,"%D",0)
+34 ;;=^^2^2^2930402^
+35 ;;^DD(36,.151,1,1,"%D",1,0)
+36 ;;=When changing or deleting INQUIRY ADDRESS ST. [LINE 1]
+37 ;;^DD(36,.151,1,1,"%D",2,0)
+38 ;;=delete INQUIRY ADDRESS ST. [LINE 2].
+39 ;;^DD(36,.151,1,1,"CREATE VALUE")
+40 ;;=@
+41 ;;^DD(36,.151,1,1,"DELETE VALUE")
+42 ;;=@
+43 ;;^DD(36,.151,1,1,"DT")
+44 ;;=2930401
+45 ;;^DD(36,.151,1,1,"FIELD")
+46 ;;=INQUIRY ADDRESS ST. [LINE 2]
+47 ;;^DD(36,.151,1,2,0)
+48 ;;=^^TRIGGER^36^.153
+49 ;;^DD(36,.151,1,2,1)
+50 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DIC(36,D0,.15)):^(.15),1:"") S X=$P(Y(1),U,3),X=X S DIU=X K Y S X="" X ^DD(36,.151,1,2,1.4)
+51 ;;^DD(36,.151,1,2,1.4)
+52 ;;=S DIH=$S($D(^DIC(36,DIV(0),.15)):^(.15),1:""),DIV=X S $P(^(.15),U,3)=DIV,DIH=36,DIG=.153 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
+53 ;;^DD(36,.151,1,2,2)
+54 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DIC(36,D0,.15)):^(.15),1:"") S X=$P(Y(1),U,3),X=X S DIU=X K Y S X="" X ^DD(36,.151,1,2,2.4)
+55 ;;^DD(36,.151,1,2,2.4)
+56 ;;=S DIH=$S($D(^DIC(36,DIV(0),.15)):^(.15),1:""),DIV=X S $P(^(.15),U,3)=DIV,DIH=36,DIG=.153 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
+57 ;;^DD(36,.151,1,2,"%D",0)
+58 ;;=^^2^2^2930402^
+59 ;;^DD(36,.151,1,2,"%D",1,0)
+60 ;;=When changing or deleting INQUIRY ADDRESS ST. [LINE 1] delete
+61 ;;^DD(36,.151,1,2,"%D",2,0)
+62 ;;=INQUIRY ADDRESS ST. [LINE 3].
+63 ;;^DD(36,.151,1,2,"CREATE VALUE")
+64 ;;=@
+65 ;;^DD(36,.151,1,2,"DELETE VALUE")
+66 ;;=@
+67 ;;^DD(36,.151,1,2,"DT")
+68 ;;=2930401
+69 ;;^DD(36,.151,1,2,"FIELD")
+70 ;;=INQUIRY ADDRESS ST. [LINE 3]
+71 ;;^DD(36,.151,3)
+72 ;;=If the inquiry address of this company is different from its main address, enter Line 1 of the inquiry street address. Answer must be 3-30 characters in length.
+73 ;;^DD(36,.151,21,0)
+74 ;;=^^2^2^2930607^
+75 ;;^DD(36,.151,21,1,0)
+76 ;;=Enter the first line of the street address of the inquiry office of
+77 ;;^DD(36,.151,21,2,0)
+78 ;;=this insurance carrier.
+79 ;;^DD(36,.151,"DT")
+80 ;;=2930401
+81 ;;^DD(36,.152,0)
+82 ;;=INQUIRY ADDRESS ST. [LINE 2]^F^^.15;2^K:$L(X)>30!($L(X)<3) X
+83 ;;^DD(36,.152,1,0)
+84 ;;=^.1
+85 ;;^DD(36,.152,1,1,0)
+86 ;;=^^TRIGGER^36^.153