FHINI0I1 ; ; 11-OCT-1995
;;5.0;Dietetics;;Oct 11, 1995
Q:'DIFQ(113.2) 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
;;^DIC(113.2,0,"GL")
;;=^FH(113.2,
;;^DIC("B","VENDOR",113.2)
;;=
;;^DIC(113.2,"%D",0)
;;=^^3^3^2880717^^
;;^DIC(113.2,"%D",1,0)
;;=This file contains basic data on the various vendors supplying
;;^DIC(113.2,"%D",2,0)
;;=ingredients to the Dietetic Service. It contains address, telephone
;;^DIC(113.2,"%D",3,0)
;;=numbers and name of contacts.
;;^DD(113.2,0)
;;=FIELD^^7^7
;;^DD(113.2,0,"DT")
;;=2930312
;;^DD(113.2,0,"IX","B",113.2,.01)
;;=
;;^DD(113.2,0,"NM","VENDOR")
;;=
;;^DD(113.2,0,"PT",113,3)
;;=
;;^DD(113.2,.01,0)
;;=NAME^RF^^0;1^K:$L(X)>30!(X?.N)!($L(X)<3)!'(X'?1P.E)!(X'?.ANP) X
;;^DD(113.2,.01,1,0)
;;=^.1
;;^DD(113.2,.01,1,1,0)
;;=113.2^B
;;^DD(113.2,.01,1,1,1)
;;=S ^FH(113.2,"B",$E(X,1,30),DA)=""
;;^DD(113.2,.01,1,1,2)
;;=K ^FH(113.2,"B",$E(X,1,30),DA)
;;^DD(113.2,.01,1,1,"%D",0)
;;=^^1^1^2911118^
;;^DD(113.2,.01,1,1,"%D",1,0)
;;=This is the normal B cross-reference of the NAME field.
;;^DD(113.2,.01,3)
;;=NAME MUST BE 3-30 CHARACTERS, NOT NUMERIC OR STARTING WITH PUNCTUATION
;;^DD(113.2,.01,21,0)
;;=^^1^1^2880710^
;;^DD(113.2,.01,21,1,0)
;;=This is the name of a vendor from whom ingredients are ordered.
;;^DD(113.2,.01,"DEL",1,0)
;;=I DUZ(0)'["@",'$D(^XUSEC("FHMGR",DUZ))
;;^DD(113.2,.01,"DT")
;;=2930312
;;^DD(113.2,1,0)
;;=1ST ADDRESS LINE^F^^0;2^K:$L(X)>30!($L(X)<1) X
;;^DD(113.2,1,3)
;;=ANSWER MUST BE 1-30 CHARACTERS IN LENGTH
;;^DD(113.2,1,21,0)
;;=^^2^2^2880710^
;;^DD(113.2,1,21,1,0)
;;=This field contains the first address line following the
;;^DD(113.2,1,21,2,0)
;;=vendor's name.
;;^DD(113.2,1,"DT")
;;=2850606
;;^DD(113.2,2,0)
;;=2ND ADDRESS LINE^F^^0;3^K:$L(X)>30!($L(X)<1) X
;;^DD(113.2,2,3)
;;=ANSWER MUST BE 1-30 CHARACTERS IN LENGTH
;;^DD(113.2,2,21,0)
;;=^^1^1^2880710^
;;^DD(113.2,2,21,1,0)
;;=This field may contain a second address line if necessary.
;;^DD(113.2,2,"DT")
;;=2850606
;;^DD(113.2,3,0)
;;=3RD ADDRESS LINE^F^^0;4^K:$L(X)>30!($L(X)<1) X
;;^DD(113.2,3,3)
;;=ANSWER MUST BE 1-30 CHARACTERS IN LENGTH
;;^DD(113.2,3,21,0)
;;=^^1^1^2880710^
;;^DD(113.2,3,21,1,0)
;;=This field may contain a third address line if necessary.
;;^DD(113.2,3,"DT")
;;=2850606
;;^DD(113.2,4,0)
;;=CITY, STATE ZIP^F^^0;5^K:$L(X)>30!($L(X)<1) X
;;^DD(113.2,4,3)
;;=ANSWER MUST BE 1-30 CHARACTERS IN LENGTH
;;^DD(113.2,4,21,0)
;;=^^2^2^2880710^
;;^DD(113.2,4,21,1,0)
;;=This field contains the last address line showing city, state
;;^DD(113.2,4,21,2,0)
;;=and zip code.
;;^DD(113.2,4,"DT")
;;=2850606
;;^DD(113.2,6,0)
;;=CONTACT^F^^0;6^K:$L(X)>30!($L(X)<1) X
;;^DD(113.2,6,3)
;;=ANSWER MUST BE 1-30 CHARACTERS IN LENGTH
;;^DD(113.2,6,21,0)
;;=^^2^2^2880710^
;;^DD(113.2,6,21,1,0)
;;=This is the name of person who is the usual contact person
;;^DD(113.2,6,21,2,0)
;;=with the vendor.
;;^DD(113.2,6,"DT")
;;=2850606
;;^DD(113.2,7,0)
;;=TELEPHONE^F^^0;7^K:$L(X)>20!($L(X)<1) X
;;^DD(113.2,7,3)
;;=ANSWER MUST BE 1-20 CHARACTERS IN LENGTH
;;^DD(113.2,7,21,0)
;;=^^2^2^2880710^
;;^DD(113.2,7,21,1,0)
;;=This field contains the telephone number of the vendor contact
;;^DD(113.2,7,21,2,0)
;;=person.
;;^DD(113.2,7,"DT")
;;=2850606
FHINI0I1 ; ; 11-OCT-1995
+1 ;;5.0;Dietetics;;Oct 11, 1995
+2 IF 'DIFQ(113.2)
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 ;;^DIC(113.2,0,"GL")
+2 ;;=^FH(113.2,
+3 ;;^DIC("B","VENDOR",113.2)
+4 ;;=
+5 ;;^DIC(113.2,"%D",0)
+6 ;;=^^3^3^2880717^^
+7 ;;^DIC(113.2,"%D",1,0)
+8 ;;=This file contains basic data on the various vendors supplying
+9 ;;^DIC(113.2,"%D",2,0)
+10 ;;=ingredients to the Dietetic Service. It contains address, telephone
+11 ;;^DIC(113.2,"%D",3,0)
+12 ;;=numbers and name of contacts.
+13 ;;^DD(113.2,0)
+14 ;;=FIELD^^7^7
+15 ;;^DD(113.2,0,"DT")
+16 ;;=2930312
+17 ;;^DD(113.2,0,"IX","B",113.2,.01)
+18 ;;=
+19 ;;^DD(113.2,0,"NM","VENDOR")
+20 ;;=
+21 ;;^DD(113.2,0,"PT",113,3)
+22 ;;=
+23 ;;^DD(113.2,.01,0)
+24 ;;=NAME^RF^^0;1^K:$L(X)>30!(X?.N)!($L(X)<3)!'(X'?1P.E)!(X'?.ANP) X
+25 ;;^DD(113.2,.01,1,0)
+26 ;;=^.1
+27 ;;^DD(113.2,.01,1,1,0)
+28 ;;=113.2^B
+29 ;;^DD(113.2,.01,1,1,1)
+30 ;;=S ^FH(113.2,"B",$E(X,1,30),DA)=""
+31 ;;^DD(113.2,.01,1,1,2)
+32 ;;=K ^FH(113.2,"B",$E(X,1,30),DA)
+33 ;;^DD(113.2,.01,1,1,"%D",0)
+34 ;;=^^1^1^2911118^
+35 ;;^DD(113.2,.01,1,1,"%D",1,0)
+36 ;;=This is the normal B cross-reference of the NAME field.
+37 ;;^DD(113.2,.01,3)
+38 ;;=NAME MUST BE 3-30 CHARACTERS, NOT NUMERIC OR STARTING WITH PUNCTUATION
+39 ;;^DD(113.2,.01,21,0)
+40 ;;=^^1^1^2880710^
+41 ;;^DD(113.2,.01,21,1,0)
+42 ;;=This is the name of a vendor from whom ingredients are ordered.
+43 ;;^DD(113.2,.01,"DEL",1,0)
+44 ;;=I DUZ(0)'["@",'$D(^XUSEC("FHMGR",DUZ))
+45 ;;^DD(113.2,.01,"DT")
+46 ;;=2930312
+47 ;;^DD(113.2,1,0)
+48 ;;=1ST ADDRESS LINE^F^^0;2^K:$L(X)>30!($L(X)<1) X
+49 ;;^DD(113.2,1,3)
+50 ;;=ANSWER MUST BE 1-30 CHARACTERS IN LENGTH
+51 ;;^DD(113.2,1,21,0)
+52 ;;=^^2^2^2880710^
+53 ;;^DD(113.2,1,21,1,0)
+54 ;;=This field contains the first address line following the
+55 ;;^DD(113.2,1,21,2,0)
+56 ;;=vendor's name.
+57 ;;^DD(113.2,1,"DT")
+58 ;;=2850606
+59 ;;^DD(113.2,2,0)
+60 ;;=2ND ADDRESS LINE^F^^0;3^K:$L(X)>30!($L(X)<1) X
+61 ;;^DD(113.2,2,3)
+62 ;;=ANSWER MUST BE 1-30 CHARACTERS IN LENGTH
+63 ;;^DD(113.2,2,21,0)
+64 ;;=^^1^1^2880710^
+65 ;;^DD(113.2,2,21,1,0)
+66 ;;=This field may contain a second address line if necessary.
+67 ;;^DD(113.2,2,"DT")
+68 ;;=2850606
+69 ;;^DD(113.2,3,0)
+70 ;;=3RD ADDRESS LINE^F^^0;4^K:$L(X)>30!($L(X)<1) X
+71 ;;^DD(113.2,3,3)
+72 ;;=ANSWER MUST BE 1-30 CHARACTERS IN LENGTH
+73 ;;^DD(113.2,3,21,0)
+74 ;;=^^1^1^2880710^
+75 ;;^DD(113.2,3,21,1,0)
+76 ;;=This field may contain a third address line if necessary.
+77 ;;^DD(113.2,3,"DT")
+78 ;;=2850606
+79 ;;^DD(113.2,4,0)
+80 ;;=CITY, STATE ZIP^F^^0;5^K:$L(X)>30!($L(X)<1) X
+81 ;;^DD(113.2,4,3)
+82 ;;=ANSWER MUST BE 1-30 CHARACTERS IN LENGTH
+83 ;;^DD(113.2,4,21,0)
+84 ;;=^^2^2^2880710^
+85 ;;^DD(113.2,4,21,1,0)
+86 ;;=This field contains the last address line showing city, state
+87 ;;^DD(113.2,4,21,2,0)
+88 ;;=and zip code.
+89 ;;^DD(113.2,4,"DT")
+90 ;;=2850606
+91 ;;^DD(113.2,6,0)
+92 ;;=CONTACT^F^^0;6^K:$L(X)>30!($L(X)<1) X
+93 ;;^DD(113.2,6,3)
+94 ;;=ANSWER MUST BE 1-30 CHARACTERS IN LENGTH
+95 ;;^DD(113.2,6,21,0)
+96 ;;=^^2^2^2880710^
+97 ;;^DD(113.2,6,21,1,0)
+98 ;;=This is the name of person who is the usual contact person
+99 ;;^DD(113.2,6,21,2,0)
+100 ;;=with the vendor.
+101 ;;^DD(113.2,6,"DT")
+102 ;;=2850606
+103 ;;^DD(113.2,7,0)
+104 ;;=TELEPHONE^F^^0;7^K:$L(X)>20!($L(X)<1) X
+105 ;;^DD(113.2,7,3)
+106 ;;=ANSWER MUST BE 1-20 CHARACTERS IN LENGTH
+107 ;;^DD(113.2,7,21,0)
+108 ;;=^^2^2^2880710^
+109 ;;^DD(113.2,7,21,1,0)
+110 ;;=This field contains the telephone number of the vendor contact
+111 ;;^DD(113.2,7,21,2,0)
+112 ;;=person.
+113 ;;^DD(113.2,7,"DT")
+114 ;;=2850606