IBINI096 ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQ(358.5) 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(358.5,.13,.1)
;;=HOW SHOULD THE TEXT LINES BE SPACED?
;;^DD(358.5,.13,3)
;;=How do you want the text lines to be spaced?
;;^DD(358.5,.13,21,0)
;;=^^2^2^2930527^
;;^DD(358.5,.13,21,1,0)
;;=
;;^DD(358.5,.13,21,2,0)
;;=Determines the spacing between lines of text.
;;^DD(358.5,.13,"DT")
;;=2930414
;;^DD(358.5,.14,0)
;;=WIDTH OF TEXT LINES^NJ3,0^^0;14^K:+X'=X!(X>200)!(X<0)!(X?.E1"."1N.N) X
;;^DD(358.5,.14,.1)
;;=HOW MANY CHARACTERS ACROSS SHOULD THE TEXT LINES BE?
;;^DD(358.5,.14,3)
;;=How many columns wide do you want the text?
;;^DD(358.5,.14,21,0)
;;=^^2^2^2930527^
;;^DD(358.5,.14,21,1,0)
;;=
;;^DD(358.5,.14,21,2,0)
;;=Determines how many characters across should be allocated to the text.
;;^DD(358.5,.14,"DT")
;;=2930414
;;^DD(358.5,2,0)
;;=SUBFIELD^358.52I^^2;0
;;^DD(358.5,2,21,0)
;;=^^2^2^2930730^^^^
;;^DD(358.5,2,21,1,0)
;;=A data field can be composed of multiple subfields. Each subfield can have
;;^DD(358.5,2,21,2,0)
;;=a label and data.
;;^DD(358.5,2,"DT")
;;=2930323
;;^DD(358.52,0)
;;=SUBFIELD SUB-FIELD^^.09^8
;;^DD(358.52,0,"IX","B",358.52,.01)
;;=
;;^DD(358.52,0,"NM","SUBFIELD")
;;=
;;^DD(358.52,0,"UP")
;;=358.5
;;^DD(358.52,.01,0)
;;=SUBFIELD LABEL^MF^^0;1^K:$L(X)>150!($L(X)<1) X
;;^DD(358.52,.01,1,0)
;;=^.1
;;^DD(358.52,.01,1,1,0)
;;=358.52^B
;;^DD(358.52,.01,1,1,1)
;;=S ^IBE(358.5,DA(1),2,"B",$E(X,1,30),DA)=""
;;^DD(358.52,.01,1,1,2)
;;=K ^IBE(358.5,DA(1),2,"B",$E(X,1,30),DA)
;;^DD(358.52,.01,3)
;;=What should the subfield be named? The label will print unless it is made invisible.
;;^DD(358.52,.01,4)
;;=
;;^DD(358.52,.01,21,0)
;;=^^3^3^2930730^^
;;^DD(358.52,.01,21,1,0)
;;=
;;^DD(358.52,.01,21,2,0)
;;=The name of the subfield. The label prints to the form unless it is made
;;^DD(358.52,.01,21,3,0)
;;=invisible.
;;^DD(358.52,.01,"DT")
;;=2930730
;;^DD(358.52,.03,0)
;;=SUBCOLUMN LABEL APPEARANCE^FX^^0;3^S X=$$UPPER^VALM1(X) K:$L(X)>3!("UBI"'[$E(X,1))!("UBI"'[$E(X,2))!("UBI"'[$E(X,3)) X
;;^DD(358.52,.03,.1)
;;=HOW SHOULD THE LABEL APPEAR? CHOOSE FROM {U,B,I}
;;^DD(358.52,.03,3)
;;=B=bold,U=underline,I=invisible You can enter any combination of {B,U,I}. The label will not print if it is made invisible.
;;^DD(358.52,.03,4)
;;=
;;^DD(358.52,.03,21,0)
;;=^^2^2^2930527^
;;^DD(358.52,.03,21,1,0)
;;=
;;^DD(358.52,.03,21,2,0)
;;=The label can have characterisics, such as being underlined.
;;^DD(358.52,.03,"DT")
;;=2930616
;;^DD(358.52,.04,0)
;;=STARTING COLUMN FOR LABEL^NJ3,0XO^^0;4^S:+X=X X=X-1 K:+X'=X!(X>200)!(X<0)!(X?.E1"."1N.N) X
;;^DD(358.52,.04,2)
;;=S Y(0)=Y S:Y=+Y Y=Y+1
;;^DD(358.52,.04,2.1)
;;=S:Y=+Y Y=Y+1
;;^DD(358.52,.04,3)
;;=What block column should the label start in?
;;^DD(358.52,.04,21,0)
;;=^^2^2^2930715^^
;;^DD(358.52,.04,21,1,0)
;;=
;;^DD(358.52,.04,21,2,0)
;;=The column, relative to the block, that the label should start at.
;;^DD(358.52,.04,23,0)
;;=^^4^4^2930715^
;;^DD(358.52,.04,23,1,0)
;;=The internal representation starts at 0, the external representation
;;^DD(358.52,.04,23,2,0)
;;=starts at 1. The difference is because for computing the form image
;;^DD(358.52,.04,23,3,0)
;;=it is convenient to work with displacements from the top left-hand
;;^DD(358.52,.04,23,4,0)
;;=corner. However, users do not want to work with row=0 or column=0.
;;^DD(358.52,.04,"DT")
;;=2930617
;;^DD(358.52,.05,0)
;;=STARTING ROW FOR LABEL^NJ3,0XO^^0;5^S:+X=X X=X-1 K:+X'=X!(X>200)!(X<0)!(X?.E1"."1N.N) X
;;^DD(358.52,.05,2)
;;=S Y(0)=Y S:Y=+Y Y=Y+1
;;^DD(358.52,.05,2.1)
;;=S:Y=+Y Y=Y+1
IBINI096 ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQ(358.5)
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(358.5,.13,.1)
+2 ;;=HOW SHOULD THE TEXT LINES BE SPACED?
+3 ;;^DD(358.5,.13,3)
+4 ;;=How do you want the text lines to be spaced?
+5 ;;^DD(358.5,.13,21,0)
+6 ;;=^^2^2^2930527^
+7 ;;^DD(358.5,.13,21,1,0)
+8 ;;=
+9 ;;^DD(358.5,.13,21,2,0)
+10 ;;=Determines the spacing between lines of text.
+11 ;;^DD(358.5,.13,"DT")
+12 ;;=2930414
+13 ;;^DD(358.5,.14,0)
+14 ;;=WIDTH OF TEXT LINES^NJ3,0^^0;14^K:+X'=X!(X>200)!(X<0)!(X?.E1"."1N.N) X
+15 ;;^DD(358.5,.14,.1)
+16 ;;=HOW MANY CHARACTERS ACROSS SHOULD THE TEXT LINES BE?
+17 ;;^DD(358.5,.14,3)
+18 ;;=How many columns wide do you want the text?
+19 ;;^DD(358.5,.14,21,0)
+20 ;;=^^2^2^2930527^
+21 ;;^DD(358.5,.14,21,1,0)
+22 ;;=
+23 ;;^DD(358.5,.14,21,2,0)
+24 ;;=Determines how many characters across should be allocated to the text.
+25 ;;^DD(358.5,.14,"DT")
+26 ;;=2930414
+27 ;;^DD(358.5,2,0)
+28 ;;=SUBFIELD^358.52I^^2;0
+29 ;;^DD(358.5,2,21,0)
+30 ;;=^^2^2^2930730^^^^
+31 ;;^DD(358.5,2,21,1,0)
+32 ;;=A data field can be composed of multiple subfields. Each subfield can have
+33 ;;^DD(358.5,2,21,2,0)
+34 ;;=a label and data.
+35 ;;^DD(358.5,2,"DT")
+36 ;;=2930323
+37 ;;^DD(358.52,0)
+38 ;;=SUBFIELD SUB-FIELD^^.09^8
+39 ;;^DD(358.52,0,"IX","B",358.52,.01)
+40 ;;=
+41 ;;^DD(358.52,0,"NM","SUBFIELD")
+42 ;;=
+43 ;;^DD(358.52,0,"UP")
+44 ;;=358.5
+45 ;;^DD(358.52,.01,0)
+46 ;;=SUBFIELD LABEL^MF^^0;1^K:$L(X)>150!($L(X)<1) X
+47 ;;^DD(358.52,.01,1,0)
+48 ;;=^.1
+49 ;;^DD(358.52,.01,1,1,0)
+50 ;;=358.52^B
+51 ;;^DD(358.52,.01,1,1,1)
+52 ;;=S ^IBE(358.5,DA(1),2,"B",$E(X,1,30),DA)=""
+53 ;;^DD(358.52,.01,1,1,2)
+54 ;;=K ^IBE(358.5,DA(1),2,"B",$E(X,1,30),DA)
+55 ;;^DD(358.52,.01,3)
+56 ;;=What should the subfield be named? The label will print unless it is made invisible.
+57 ;;^DD(358.52,.01,4)
+58 ;;=
+59 ;;^DD(358.52,.01,21,0)
+60 ;;=^^3^3^2930730^^
+61 ;;^DD(358.52,.01,21,1,0)
+62 ;;=
+63 ;;^DD(358.52,.01,21,2,0)
+64 ;;=The name of the subfield. The label prints to the form unless it is made
+65 ;;^DD(358.52,.01,21,3,0)
+66 ;;=invisible.
+67 ;;^DD(358.52,.01,"DT")
+68 ;;=2930730
+69 ;;^DD(358.52,.03,0)
+70 ;;=SUBCOLUMN LABEL APPEARANCE^FX^^0;3^S X=$$UPPER^VALM1(X) K:$L(X)>3!("UBI"'[$E(X,1))!("UBI"'[$E(X,2))!("UBI"'[$E(X,3)) X
+71 ;;^DD(358.52,.03,.1)
+72 ;;=HOW SHOULD THE LABEL APPEAR? CHOOSE FROM {U,B,I}
+73 ;;^DD(358.52,.03,3)
+74 ;;=B=bold,U=underline,I=invisible You can enter any combination of {B,U,I}. The label will not print if it is made invisible.
+75 ;;^DD(358.52,.03,4)
+76 ;;=
+77 ;;^DD(358.52,.03,21,0)
+78 ;;=^^2^2^2930527^
+79 ;;^DD(358.52,.03,21,1,0)
+80 ;;=
+81 ;;^DD(358.52,.03,21,2,0)
+82 ;;=The label can have characterisics, such as being underlined.
+83 ;;^DD(358.52,.03,"DT")
+84 ;;=2930616
+85 ;;^DD(358.52,.04,0)
+86 ;;=STARTING COLUMN FOR LABEL^NJ3,0XO^^0;4^S:+X=X X=X-1 K:+X'=X!(X>200)!(X<0)!(X?.E1"."1N.N) X
+87 ;;^DD(358.52,.04,2)
+88 ;;=S Y(0)=Y S:Y=+Y Y=Y+1
+89 ;;^DD(358.52,.04,2.1)
+90 ;;=S:Y=+Y Y=Y+1
+91 ;;^DD(358.52,.04,3)
+92 ;;=What block column should the label start in?
+93 ;;^DD(358.52,.04,21,0)
+94 ;;=^^2^2^2930715^^
+95 ;;^DD(358.52,.04,21,1,0)
+96 ;;=
+97 ;;^DD(358.52,.04,21,2,0)
+98 ;;=The column, relative to the block, that the label should start at.
+99 ;;^DD(358.52,.04,23,0)
+100 ;;=^^4^4^2930715^
+101 ;;^DD(358.52,.04,23,1,0)
+102 ;;=The internal representation starts at 0, the external representation
+103 ;;^DD(358.52,.04,23,2,0)
+104 ;;=starts at 1. The difference is because for computing the form image
+105 ;;^DD(358.52,.04,23,3,0)
+106 ;;=it is convenient to work with displacements from the top left-hand
+107 ;;^DD(358.52,.04,23,4,0)
+108 ;;=corner. However, users do not want to work with row=0 or column=0.
+109 ;;^DD(358.52,.04,"DT")
+110 ;;=2930617
+111 ;;^DD(358.52,.05,0)
+112 ;;=STARTING ROW FOR LABEL^NJ3,0XO^^0;5^S:+X=X X=X-1 K:+X'=X!(X>200)!(X<0)!(X?.E1"."1N.N) X
+113 ;;^DD(358.52,.05,2)
+114 ;;=S Y(0)=Y S:Y=+Y Y=Y+1
+115 ;;^DD(358.52,.05,2.1)
+116 ;;=S:Y=+Y Y=Y+1