IBINI025 ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQ(350.71) 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.71,.05,1,3,"DT")
;;=2920128
;;^DD(350.71,.05,1,4,0)
;;=350.71^AP1^MUMPS
;;^DD(350.71,.05,1,4,1)
;;=I $P(^IBE(350.71,DA,0),"^",6) S ^IBE(350.71,"AP",X,$P(^(0),"^",6),DA)=""
;;^DD(350.71,.05,1,4,2)
;;=I $P(^IBE(350.71,DA,0),"^",6) K ^IBE(350.71,"AP",X,$P(^(0),"^",6),DA)
;;^DD(350.71,.05,1,4,3)
;;=DO NOT DELETE
;;^DD(350.71,.05,1,4,"%D",0)
;;=^^1^1^2920128^^^
;;^DD(350.71,.05,1,4,"%D",1,0)
;;=Quick cross-reference between procedures and sub-headers.
;;^DD(350.71,.05,1,4,"DT")
;;=2911122
;;^DD(350.71,.05,3)
;;=Enter the sub-header that this procedure should be printed under on the check-off sheet.
;;^DD(350.71,.05,12)
;;=Procedures cannot be sub-headers.
;;^DD(350.71,.05,12.1)
;;=S DIC("S")="I $P(^(0),U,3)=""S"""
;;^DD(350.71,.05,21,0)
;;=^^1^1^2940209^^^^
;;^DD(350.71,.05,21,1,0)
;;=The sub-header that this entry is a member of.
;;^DD(350.71,.05,23,0)
;;=^^2^2^2940209^^
;;^DD(350.71,.05,23,1,0)
;;=Under the current hierarchical scheme this field should have data only if
;;^DD(350.71,.05,23,2,0)
;;=TYPE=PROCEDURE.
;;^DD(350.71,.05,"DT")
;;=2920128
;;^DD(350.71,.06,0)
;;=PROCEDURE^R*P409.71'^SD(409.71,^0;6^S DIC("S")="I $D(DA),$P($G(^IBE(350.71,+DA,0)),U,3)=""P""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
;;^DD(350.71,.06,1,0)
;;=^.1
;;^DD(350.71,.06,1,1,0)
;;=350.71^P
;;^DD(350.71,.06,1,1,1)
;;=S ^IBE(350.71,"P",$E(X,1,30),DA)=""
;;^DD(350.71,.06,1,1,2)
;;=K ^IBE(350.71,"P",$E(X,1,30),DA)
;;^DD(350.71,.06,1,1,3)
;;=DO NOT DELETE
;;^DD(350.71,.06,1,1,"DT")
;;=2911122
;;^DD(350.71,.06,1,2,0)
;;=350.71^AP^MUMPS
;;^DD(350.71,.06,1,2,1)
;;=I $P(^IBE(350.71,DA,0),"^",5) S ^IBE(350.71,"AP",$P(^(0),"^",5),X,DA)=""
;;^DD(350.71,.06,1,2,2)
;;=I $P(^IBE(350.71,DA,0),"^",5) K ^IBE(350.71,"AP",$P(^(0),"^",5),X,DA)
;;^DD(350.71,.06,1,2,3)
;;=DO NOT DELETE
;;^DD(350.71,.06,1,2,"%D",0)
;;=^^1^1^2920128^^^
;;^DD(350.71,.06,1,2,"%D",1,0)
;;=Quick cross-reference between procedures and sub-headers.
;;^DD(350.71,.06,1,2,"DT")
;;=2911122
;;^DD(350.71,.06,3)
;;=Enter the CPT code for this Procedure.
;;^DD(350.71,.06,12)
;;=Only TYPE "P" entries may have procedures.
;;^DD(350.71,.06,12.1)
;;=S DIC("S")="I $D(DA),$P($G(^IBE(350.71,+DA,0)),U,3)=""P"""
;;^DD(350.71,.06,21,0)
;;=^^1^1^2920331^^^
;;^DD(350.71,.06,21,1,0)
;;=The CPT code for this PROCEDURE. Should only be defined for TYPE="P".
;;^DD(350.71,.06,"DT")
;;=2911202
;;^DD(350.71,.08,0)
;;=CHARGE^CJ8,2^^ ; ^X ^DD(350.71,.08,9.4) S X1=Y(350.71,.08,1) S IBCDX=X,IBDTX=X1 D FCC^IBEFUNC1 S X=IBCHGX K IBCDX,IBDTX,IBCHGX S X=X S D0=Y(350.71,.08,80) S X=$J(X,0,2)
;;^DD(350.71,.08,9)
;;=^
;;^DD(350.71,.08,9.01)
;;=409.71^.01;350.71^.06
;;^DD(350.71,.08,9.1)
;;=IB CPT BILLING CHARGE(TODAY,PROCEDURE)
;;^DD(350.71,.08,9.2)
;;=S Y(350.71,.08,80)=$S($D(D0):D0,1:""),Y(350.71,.08,2)=$S($D(^IBE(350.71,D0,0)):^(0),1:""),X=DT S X=X,Y(350.71,.08,1)=X
;;^DD(350.71,.08,9.3)
;;=X ^DD(350.71,.08,9.2) S D0=$P(Y(350.71,.08,2),U,6) S:'$D(^SD(409.71,+D0,0)) D0=-1 S Y(350.71,.08,101)=$S($D(^SD(409.71,D0,0)):^(0),1:"")
;;^DD(350.71,.08,9.4)
;;=X ^DD(350.71,.08,9.3) S X=$S('$D(^ICPT(+$P(Y(350.71,.08,101),U,1),0)):"",1:$P(^(0),U,1))
;;^DD(350.71,.08,21,0)
;;=^^1^1^2930616^^^^
;;^DD(350.71,.08,21,1,0)
;;=Displays the charge for a CPT code.
;;^DD(350.71,.08,"DT")
;;=2920205
IBINI025 ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQ(350.71)
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.71,.05,1,3,"DT")
+2 ;;=2920128
+3 ;;^DD(350.71,.05,1,4,0)
+4 ;;=350.71^AP1^MUMPS
+5 ;;^DD(350.71,.05,1,4,1)
+6 ;;=I $P(^IBE(350.71,DA,0),"^",6) S ^IBE(350.71,"AP",X,$P(^(0),"^",6),DA)=""
+7 ;;^DD(350.71,.05,1,4,2)
+8 ;;=I $P(^IBE(350.71,DA,0),"^",6) K ^IBE(350.71,"AP",X,$P(^(0),"^",6),DA)
+9 ;;^DD(350.71,.05,1,4,3)
+10 ;;=DO NOT DELETE
+11 ;;^DD(350.71,.05,1,4,"%D",0)
+12 ;;=^^1^1^2920128^^^
+13 ;;^DD(350.71,.05,1,4,"%D",1,0)
+14 ;;=Quick cross-reference between procedures and sub-headers.
+15 ;;^DD(350.71,.05,1,4,"DT")
+16 ;;=2911122
+17 ;;^DD(350.71,.05,3)
+18 ;;=Enter the sub-header that this procedure should be printed under on the check-off sheet.
+19 ;;^DD(350.71,.05,12)
+20 ;;=Procedures cannot be sub-headers.
+21 ;;^DD(350.71,.05,12.1)
+22 ;;=S DIC("S")="I $P(^(0),U,3)=""S"""
+23 ;;^DD(350.71,.05,21,0)
+24 ;;=^^1^1^2940209^^^^
+25 ;;^DD(350.71,.05,21,1,0)
+26 ;;=The sub-header that this entry is a member of.
+27 ;;^DD(350.71,.05,23,0)
+28 ;;=^^2^2^2940209^^
+29 ;;^DD(350.71,.05,23,1,0)
+30 ;;=Under the current hierarchical scheme this field should have data only if
+31 ;;^DD(350.71,.05,23,2,0)
+32 ;;=TYPE=PROCEDURE.
+33 ;;^DD(350.71,.05,"DT")
+34 ;;=2920128
+35 ;;^DD(350.71,.06,0)
+36 ;;=PROCEDURE^R*P409.71'^SD(409.71,^0;6^S DIC("S")="I $D(DA),$P($G(^IBE(350.71,+DA,0)),U,3)=""P""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
+37 ;;^DD(350.71,.06,1,0)
+38 ;;=^.1
+39 ;;^DD(350.71,.06,1,1,0)
+40 ;;=350.71^P
+41 ;;^DD(350.71,.06,1,1,1)
+42 ;;=S ^IBE(350.71,"P",$E(X,1,30),DA)=""
+43 ;;^DD(350.71,.06,1,1,2)
+44 ;;=K ^IBE(350.71,"P",$E(X,1,30),DA)
+45 ;;^DD(350.71,.06,1,1,3)
+46 ;;=DO NOT DELETE
+47 ;;^DD(350.71,.06,1,1,"DT")
+48 ;;=2911122
+49 ;;^DD(350.71,.06,1,2,0)
+50 ;;=350.71^AP^MUMPS
+51 ;;^DD(350.71,.06,1,2,1)
+52 ;;=I $P(^IBE(350.71,DA,0),"^",5) S ^IBE(350.71,"AP",$P(^(0),"^",5),X,DA)=""
+53 ;;^DD(350.71,.06,1,2,2)
+54 ;;=I $P(^IBE(350.71,DA,0),"^",5) K ^IBE(350.71,"AP",$P(^(0),"^",5),X,DA)
+55 ;;^DD(350.71,.06,1,2,3)
+56 ;;=DO NOT DELETE
+57 ;;^DD(350.71,.06,1,2,"%D",0)
+58 ;;=^^1^1^2920128^^^
+59 ;;^DD(350.71,.06,1,2,"%D",1,0)
+60 ;;=Quick cross-reference between procedures and sub-headers.
+61 ;;^DD(350.71,.06,1,2,"DT")
+62 ;;=2911122
+63 ;;^DD(350.71,.06,3)
+64 ;;=Enter the CPT code for this Procedure.
+65 ;;^DD(350.71,.06,12)
+66 ;;=Only TYPE "P" entries may have procedures.
+67 ;;^DD(350.71,.06,12.1)
+68 ;;=S DIC("S")="I $D(DA),$P($G(^IBE(350.71,+DA,0)),U,3)=""P"""
+69 ;;^DD(350.71,.06,21,0)
+70 ;;=^^1^1^2920331^^^
+71 ;;^DD(350.71,.06,21,1,0)
+72 ;;=The CPT code for this PROCEDURE. Should only be defined for TYPE="P".
+73 ;;^DD(350.71,.06,"DT")
+74 ;;=2911202
+75 ;;^DD(350.71,.08,0)
+76 ;;=CHARGE^CJ8,2^^ ; ^X ^DD(350.71,.08,9.4) S X1=Y(350.71,.08,1) S IBCDX=X,IBDTX=X1 D FCC^IBEFUNC1 S X=IBCHGX K IBCDX,IBDTX,IBCHGX S X=X S D0=Y(350.71,.08,80) S X=$J(X,0,2)
+77 ;;^DD(350.71,.08,9)
+78 ;;=^
+79 ;;^DD(350.71,.08,9.01)
+80 ;;=409.71^.01;350.71^.06
+81 ;;^DD(350.71,.08,9.1)
+82 ;;=IB CPT BILLING CHARGE(TODAY,PROCEDURE)
+83 ;;^DD(350.71,.08,9.2)
+84 ;;=S Y(350.71,.08,80)=$S($D(D0):D0,1:""),Y(350.71,.08,2)=$S($D(^IBE(350.71,D0,0)):^(0),1:""),X=DT S X=X,Y(350.71,.08,1)=X
+85 ;;^DD(350.71,.08,9.3)
+86 ;;=X ^DD(350.71,.08,9.2) S D0=$P(Y(350.71,.08,2),U,6) S:'$D(^SD(409.71,+D0,0)) D0=-1 S Y(350.71,.08,101)=$S($D(^SD(409.71,D0,0)):^(0),1:"")
+87 ;;^DD(350.71,.08,9.4)
+88 ;;=X ^DD(350.71,.08,9.3) S X=$S('$D(^ICPT(+$P(Y(350.71,.08,101),U,1),0)):"",1:$P(^(0),U,1))
+89 ;;^DD(350.71,.08,21,0)
+90 ;;=^^1^1^2930616^^^^
+91 ;;^DD(350.71,.08,21,1,0)
+92 ;;=Displays the charge for a CPT code.
+93 ;;^DD(350.71,.08,"DT")
+94 ;;=2920205