IBINI0CO ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
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
;;^UTILITY(U,$J,"DIE",1228,"%D",1,0)
;;=Used to position a copied block onto a form.
;;^UTILITY(U,$J,"DIE",1228,"DIAB",5,0,357.1,0)
;;=.06;T;REQ
;;^UTILITY(U,$J,"DIE",1228,"DIAB",7,0,357.1,0)
;;=.07;T;REQ
;;^UTILITY(U,$J,"DIE",1228,"DR",1,357.1)
;;=.04;S IBY=X;.05;S IBX=X;.06R~T~;I (X+IBX)>$G(IBFORMW) W !,"WARNING!, The block extends past the right margin!";.07R~T~;I (X+IBY)>$G(IBFORMHT) W !,"WARNING!, The block extends past the bottom margin!";S IBDONE=1;
;;^UTILITY(U,$J,"DIE",1229,0)
;;=IBDF EDIT HEADER&OUTLINE^2930415.0801^^357.1^^^2940309^
;;^UTILITY(U,$J,"DIE",1229,"%D",0)
;;=^^1^1^2940308^
;;^UTILITY(U,$J,"DIE",1229,"%D",1,0)
;;=Used to edit a block's header and outline.
;;^UTILITY(U,$J,"DIE",1229,"DIAB",2,0,357.1,0)
;;=.13;T
;;^UTILITY(U,$J,"DIE",1229,"DIAB",3,0,357.1,0)
;;=.11;T
;;^UTILITY(U,$J,"DIE",1229,"DIAB",5,0,357.1,0)
;;=.12;T
;;^UTILITY(U,$J,"DIE",1229,"DIAB",7,0,357.1,0)
;;=.1;T
;;^UTILITY(U,$J,"DIE",1229,"DR",1,357.1)
;;=.01////^S X=IBNAME;.13T~;.11T~;I $P(^IBE(357.1,D0,0),U,11)="" S Y="@1";.12T~;@1;.1T~;
;;^UTILITY(U,$J,"DIE",1230,0)
;;=IBDF EDIT DATA FIELD^2930617.1514^^357.5^^^2940302^
;;^UTILITY(U,$J,"DIE",1230,"%D",0)
;;=^^1^1^2940308^
;;^UTILITY(U,$J,"DIE",1230,"%D",1,0)
;;=Used to edit a data field.
;;^UTILITY(U,$J,"DIE",1230,"DIAB",1,0,357.5,1)
;;=.1;T;REQ
;;^UTILITY(U,$J,"DIE",1230,"DIAB",1,1,357.52,1)
;;=.09;"Select Subfield's Data"
;;^UTILITY(U,$J,"DIE",1230,"DIAB",2,0,357.5,1)
;;=.12;T;REQ
;;^UTILITY(U,$J,"DIE",1230,"DIAB",3,0,357.5,1)
;;=.13;T;REQ
;;^UTILITY(U,$J,"DIE",1230,"DIAB",4,0,357.5,1)
;;=.14;T;REQ
;;^UTILITY(U,$J,"DIE",1230,"DIAB",4,1,357.52,0)
;;=.03;T
;;^UTILITY(U,$J,"DIE",1230,"DIAB",9,0,357.5,0)
;;=.05;T;REQ
;;^UTILITY(U,$J,"DIE",1230,"DIAB",10,0,357.5,0)
;;=.04;T
;;^UTILITY(U,$J,"DIE",1230,"DIAB",13,0,357.5,0)
;;=.06;T
;;^UTILITY(U,$J,"DIE",1230,"DIAB",15,0,357.5,0)
;;=.07;T
;;^UTILITY(U,$J,"DIE",1230,"DIAB",17,0,357.5,0)
;;=.11;T;REQ
;;^UTILITY(U,$J,"DIE",1230,"DR",1,357.5)
;;=.01;I IBOLD S Y="@1";.02////^S X=$G(IBBLK);.03////^S X=$G(IBRTN);D DATATYPE^IBDF9B(+$G(IBRTN));D RESET^VALM4:VALMCC,REFRESH^VALM;@1;I '$G(IBLIST) S Y="@2";.05R~T~;.04T~;@2;I '$G(IBWP) S Y="@5";.06T~;S:X="" Y="@4";.07T~;@4;.11R~T~;
;;^UTILITY(U,$J,"DIE",1230,"DR",1,357.5,1)
;;=.1R~T~;.12R~T~;.13R~T~;.14R~T~;S Y="@99";@5;D FULL^VALM1;D HELP3^IBDFU5;S (IBY,IBX)=1;2;@99;S IBDELETE=0;
;;^UTILITY(U,$J,"DIE",1230,"DR",2,357.52)
;;=.01;S:X="" Y="@99" S IBW=$L(X);D RESET^VALM4:VALMCC,REFRESH^VALM;.03T~;I X["I" S Y="@7",IBW=0;.05//^S X=+IBY;S IBY=X+1;.04//^S X=+IBX;S IBX=X+2+IBW;@7;I $G(IBMF) S Y="@8";.09////^S X=1;S IBP=1;S Y="@9";@8;D HELP1^IBDFU5;
;;^UTILITY(U,$J,"DIE",1230,"DR",2,357.52,1)
;;=.09Select Subfield's Data~;I 'X S Y="@10";S IBP=X;@9;.08//^S X=$G(IBLEN(IBP));S IBW=+X;.06//^S X=+IBY;S IBY=X+1;.07//^S X=+IBX;S IBX=X+2+IBW;@10;D FULL^VALM1;D HELP3^IBDFU5;
;;^UTILITY(U,$J,"DIE",1230,"ROU")
;;=^IBXFI5
;;^UTILITY(U,$J,"DIE",1230,"ROUOLD")
;;=IBXFI5
;;^UTILITY(U,$J,"DIE",1231,0)
;;=IBDF EDIT FORM HEADER^2930730.1158^^357.5^^^2940308^
;;^UTILITY(U,$J,"DIE",1231,"%D",0)
;;=^^1^1^2940308^
;;^UTILITY(U,$J,"DIE",1231,"%D",1,0)
;;=Used to edit the data field that is the form header.
;;^UTILITY(U,$J,"DIE",1231,"DIAB",1,1,357.52,0)
;;=.01;"HEADER LINE"
;;^UTILITY(U,$J,"DIE",1231,"DIAB",2,1,357.52,0)
;;=.03;"HOW SHOULD THE HEADER LINE APPEAR? CHOOSE FROM {B=bold,U=underline}"
;;^UTILITY(U,$J,"DIE",1231,"DIAB",3,0,357.5,0)
;;=2;"HEADER LINE"
;;^UTILITY(U,$J,"DIE",1231,"DR",1,357.5)
;;=W !!,"***** Each subfield entered here will be a header line *****",!;W "**** Lines will appear in the order entered ****",!;2HEADER LINE~;
IBINI0CO ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 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 ;;^UTILITY(U,$J,"DIE",1228,"%D",1,0)
+2 ;;=Used to position a copied block onto a form.
+3 ;;^UTILITY(U,$J,"DIE",1228,"DIAB",5,0,357.1,0)
+4 ;;=.06;T;REQ
+5 ;;^UTILITY(U,$J,"DIE",1228,"DIAB",7,0,357.1,0)
+6 ;;=.07;T;REQ
+7 ;;^UTILITY(U,$J,"DIE",1228,"DR",1,357.1)
+8 ;;=.04;S IBY=X;.05;S IBX=X;.06R~T~;I (X+IBX)>$G(IBFORMW) W !,"WARNING!, The block extends past the right margin!";.07R~T~;I (X+IBY)>$G(IBFORMHT) W !,"WARNING!, The block extends past the bottom margin!";S IBDONE=1;
+9 ;;^UTILITY(U,$J,"DIE",1229,0)
+10 ;;=IBDF EDIT HEADER&OUTLINE^2930415.0801^^357.1^^^2940309^
+11 ;;^UTILITY(U,$J,"DIE",1229,"%D",0)
+12 ;;=^^1^1^2940308^
+13 ;;^UTILITY(U,$J,"DIE",1229,"%D",1,0)
+14 ;;=Used to edit a block's header and outline.
+15 ;;^UTILITY(U,$J,"DIE",1229,"DIAB",2,0,357.1,0)
+16 ;;=.13;T
+17 ;;^UTILITY(U,$J,"DIE",1229,"DIAB",3,0,357.1,0)
+18 ;;=.11;T
+19 ;;^UTILITY(U,$J,"DIE",1229,"DIAB",5,0,357.1,0)
+20 ;;=.12;T
+21 ;;^UTILITY(U,$J,"DIE",1229,"DIAB",7,0,357.1,0)
+22 ;;=.1;T
+23 ;;^UTILITY(U,$J,"DIE",1229,"DR",1,357.1)
+24 ;;=.01////^S X=IBNAME;.13T~;.11T~;I $P(^IBE(357.1,D0,0),U,11)="" S Y="@1";.12T~;@1;.1T~;
+25 ;;^UTILITY(U,$J,"DIE",1230,0)
+26 ;;=IBDF EDIT DATA FIELD^2930617.1514^^357.5^^^2940302^
+27 ;;^UTILITY(U,$J,"DIE",1230,"%D",0)
+28 ;;=^^1^1^2940308^
+29 ;;^UTILITY(U,$J,"DIE",1230,"%D",1,0)
+30 ;;=Used to edit a data field.
+31 ;;^UTILITY(U,$J,"DIE",1230,"DIAB",1,0,357.5,1)
+32 ;;=.1;T;REQ
+33 ;;^UTILITY(U,$J,"DIE",1230,"DIAB",1,1,357.52,1)
+34 ;;=.09;"Select Subfield's Data"
+35 ;;^UTILITY(U,$J,"DIE",1230,"DIAB",2,0,357.5,1)
+36 ;;=.12;T;REQ
+37 ;;^UTILITY(U,$J,"DIE",1230,"DIAB",3,0,357.5,1)
+38 ;;=.13;T;REQ
+39 ;;^UTILITY(U,$J,"DIE",1230,"DIAB",4,0,357.5,1)
+40 ;;=.14;T;REQ
+41 ;;^UTILITY(U,$J,"DIE",1230,"DIAB",4,1,357.52,0)
+42 ;;=.03;T
+43 ;;^UTILITY(U,$J,"DIE",1230,"DIAB",9,0,357.5,0)
+44 ;;=.05;T;REQ
+45 ;;^UTILITY(U,$J,"DIE",1230,"DIAB",10,0,357.5,0)
+46 ;;=.04;T
+47 ;;^UTILITY(U,$J,"DIE",1230,"DIAB",13,0,357.5,0)
+48 ;;=.06;T
+49 ;;^UTILITY(U,$J,"DIE",1230,"DIAB",15,0,357.5,0)
+50 ;;=.07;T
+51 ;;^UTILITY(U,$J,"DIE",1230,"DIAB",17,0,357.5,0)
+52 ;;=.11;T;REQ
+53 ;;^UTILITY(U,$J,"DIE",1230,"DR",1,357.5)
+54 ;;=.01;I IBOLD S Y="@1";.02////^S X=$G(IBBLK);.03////^S X=$G(IBRTN);D DATATYPE^IBDF9B(+$G(IBRTN));D RESET^VALM4:VALMCC,REFRESH^VALM;@1;I '$G(IBLIST) S Y="@2";.05R~T~;.04T~;@2;I '$G(IBWP) S Y="@5";.06T~;S:X="" Y="@4";.07T~;@4;.11R~T~;
+55 ;;^UTILITY(U,$J,"DIE",1230,"DR",1,357.5,1)
+56 ;;=.1R~T~;.12R~T~;.13R~T~;.14R~T~;S Y="@99";@5;D FULL^VALM1;D HELP3^IBDFU5;S (IBY,IBX)=1;2;@99;S IBDELETE=0;
+57 ;;^UTILITY(U,$J,"DIE",1230,"DR",2,357.52)
+58 ;;=.01;S:X="" Y="@99" S IBW=$L(X);D RESET^VALM4:VALMCC,REFRESH^VALM;.03T~;I X["I" S Y="@7",IBW=0;.05//^S X=+IBY;S IBY=X+1;.04//^S X=+IBX;S IBX=X+2+IBW;@7;I $G(IBMF) S Y="@8";.09////^S X=1;S IBP=1;S Y="@9";@8;D HELP1^IBDFU5;
+59 ;;^UTILITY(U,$J,"DIE",1230,"DR",2,357.52,1)
+60 ;;=.09Select Subfield's Data~;I 'X S Y="@10";S IBP=X;@9;.08//^S X=$G(IBLEN(IBP));S IBW=+X;.06//^S X=+IBY;S IBY=X+1;.07//^S X=+IBX;S IBX=X+2+IBW;@10;D FULL^VALM1;D HELP3^IBDFU5;
+61 ;;^UTILITY(U,$J,"DIE",1230,"ROU")
+62 ;;=^IBXFI5
+63 ;;^UTILITY(U,$J,"DIE",1230,"ROUOLD")
+64 ;;=IBXFI5
+65 ;;^UTILITY(U,$J,"DIE",1231,0)
+66 ;;=IBDF EDIT FORM HEADER^2930730.1158^^357.5^^^2940308^
+67 ;;^UTILITY(U,$J,"DIE",1231,"%D",0)
+68 ;;=^^1^1^2940308^
+69 ;;^UTILITY(U,$J,"DIE",1231,"%D",1,0)
+70 ;;=Used to edit the data field that is the form header.
+71 ;;^UTILITY(U,$J,"DIE",1231,"DIAB",1,1,357.52,0)
+72 ;;=.01;"HEADER LINE"
+73 ;;^UTILITY(U,$J,"DIE",1231,"DIAB",2,1,357.52,0)
+74 ;;=.03;"HOW SHOULD THE HEADER LINE APPEAR? CHOOSE FROM {B=bold,U=underline}"
+75 ;;^UTILITY(U,$J,"DIE",1231,"DIAB",3,0,357.5,0)
+76 ;;=2;"HEADER LINE"
+77 ;;^UTILITY(U,$J,"DIE",1231,"DR",1,357.5)
+78 ;;=W !!,"***** Each subfield entered here will be a header line *****",!;W "**** Lines will appear in the order entered ****",!;2HEADER LINE~;