FHINI0H5 ; ; 11-OCT-1995
;;5.0;Dietetics;;Oct 11, 1995
Q:'DIFQ(113) 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,0,"GL")
;;=^FHING(
;;^DIC("B","INGREDIENT",113)
;;=
;;^DIC(113,"%D",0)
;;=^^6^6^2950221^^
;;^DIC(113,"%D",1,0)
;;=This file is the master list of ingredients used in preparing
;;^DIC(113,"%D",2,0)
;;=recipes. It contains purchasing information, such as stock number
;;^DIC(113,"%D",3,0)
;;=and vendor, issuance data such as the issuing unit, and various
;;^DIC(113,"%D",4,0)
;;=conversion factors. Nutritive data such as food group, poundage
;;^DIC(113,"%D",5,0)
;;=factors, and a pointer to the analogous food nutrient item in
;;^DIC(113,"%D",6,0)
;;=File 112 are also included.
;;^DD(113,0)
;;=FIELD^^31^22
;;^DD(113,0,"DT")
;;=2930211
;;^DD(113,0,"IX","B",113,.01)
;;=
;;^DD(113,0,"IX","C",113,2)
;;=
;;^DD(113,0,"NM","INGREDIENT")
;;=
;;^DD(113,0,"PT",114.01,.01)
;;=
;;^DD(113,.01,0)
;;=NAME^RF^^0;1^K:$L(X)>50!($L(X)<3)!'(X'?1P.E) X
;;^DD(113,.01,1,0)
;;=^.1
;;^DD(113,.01,1,1,0)
;;=113^B
;;^DD(113,.01,1,1,1)
;;=S ^FHING("B",$E(X,1,30),DA)=""
;;^DD(113,.01,1,1,2)
;;=K ^FHING("B",$E(X,1,30),DA)
;;^DD(113,.01,1,1,"%D",0)
;;=^^1^1^2911118^
;;^DD(113,.01,1,1,"%D",1,0)
;;=This is the normal B cross-reference of the NAME field.
;;^DD(113,.01,3)
;;=ANSWER MUST BE 3-50 CHARACTERS IN LENGTH
;;^DD(113,.01,21,0)
;;=^^2^2^2880710^
;;^DD(113,.01,21,1,0)
;;=This is the name of the ingredient which is an ordered item
;;^DD(113,.01,21,2,0)
;;=generally and which is used in the preparation of recipes.
;;^DD(113,.01,"DEL",1,0)
;;=I DUZ(0)'["@",'$D(^XUSEC("FHMGR",DUZ))
;;^DD(113,1,0)
;;=SUPPLY DESCRIPTION^RF^^0;2^K:$L(X)>21!($L(X)<3) X
;;^DD(113,1,3)
;;=ANSWER MUST BE 3-21 CHARACTERS IN LENGTH
;;^DD(113,1,21,0)
;;=^^2^2^2880710^
;;^DD(113,1,21,1,0)
;;=This is a short description which will be used on purchase
;;^DD(113,1,21,2,0)
;;=orders.
;;^DD(113,1,"DT")
;;=2880227
;;^DD(113,2,0)
;;=STOCK NUMBER^F^^0;3^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>16!($L(X)<1) X
;;^DD(113,2,1,0)
;;=^.1
;;^DD(113,2,1,1,0)
;;=113^C^MUMPS
;;^DD(113,2,1,1,1)
;;=S ^FHING("C",$E(X,$L(X)-3,$L(X)),DA)=""
;;^DD(113,2,1,1,2)
;;=K ^FHING("C",$E(X,$L(X)-3,$L(X)),DA)
;;^DD(113,2,1,1,"%D",0)
;;=^^2^2^2940824^
;;^DD(113,2,1,1,"%D",1,0)
;;=This cross-reference consists of the last 4 characters of the
;;^DD(113,2,1,1,"%D",2,0)
;;=Stock Number which has been entered.
;;^DD(113,2,3)
;;=ANSWER MUST BE 1-16 CHARACTERS IN LENGTH
;;^DD(113,2,21,0)
;;=^^3^3^2880710^
;;^DD(113,2,21,1,0)
;;=This is the Federal Stock Number (with hyphens) for items
;;^DD(113,2,21,2,0)
;;=obtained from VA Depots or DLA. It may be the local vendor's
;;^DD(113,2,21,3,0)
;;=number for other items.
;;^DD(113,2,"DT")
;;=2880227
;;^DD(113,3,0)
;;=VENDOR^P113.2^FH(113.2,^0;4^Q
;;^DD(113,3,21,0)
;;=^^2^2^2880710^
;;^DD(113,3,21,1,0)
;;=This field indicates the current vendor from whom the item
;;^DD(113,3,21,2,0)
;;=is procured.
;;^DD(113,3,"DT")
;;=2861023
;;^DD(113,4,0)
;;=UNIT OF PURCHASE (U/P)^RF^^0;5^K:$L(X)>2!($L(X)<2) X
;;^DD(113,4,3)
;;=ANSWER MUST BE 2 CHARACTERS IN LENGTH
;;^DD(113,4,21,0)
;;=^^3^3^2890208^^
;;^DD(113,4,21,1,0)
;;=This is a two-character abbreviation indicating the unit
;;^DD(113,4,21,2,0)
;;=of purchase and is such things as CN for can, PK for
;;^DD(113,4,21,3,0)
;;=package, CS for case, etc.
;;^DD(113,4,"DT")
;;=2890208
;;^DD(113,5,0)
;;=DIETETIC UNIT OF ISSUE^RP119.1X^FH(119.1,^0;6^I $D(X) S X=$P(^FH(119.1,+X,0),"^",1)
;;^DD(113,5,21,0)
;;=^^3^3^2920522^^^
;;^DD(113,5,21,1,0)
;;=This is the unit of issue that dietetic personnel or supply
;;^DD(113,5,21,2,0)
;;=personnel use for dispensing the item to ingredient control.
;;^DD(113,5,21,3,0)
;;=It is generally a #10-can or similar description.
;;^DD(113,6,0)
;;=ORDERING MULTIPLE (OF U/P)^NJ4,0^^0;7^K:+X'=X!(X>9999)!(X<1)!(X?.E1"."1N.N) X
;;^DD(113,6,3)
;;=Type a Number between 1 and 9999, 0 Decimal Digits
;;^DD(113,6,21,0)
;;=^^4^4^2880710^
;;^DD(113,6,21,1,0)
;;=If the vendor requires that the unit of purchase be bought
;;^DD(113,6,21,2,0)
;;=in some multiple, like 6 or 12 or 24, then that multiple
;;^DD(113,6,21,3,0)
;;=is indicated here. VA Depot is the most common vendor
;;^DD(113,6,21,4,0)
;;=requiring such multiples.
;;^DD(113,6,"DT")
;;=2880227
;;^DD(113,7,0)
;;=NO. OF ISSUE UNITS IN A U/P^RNJ9,4^^0;8^K:+X'=X!(X>9999)!(X<.0001)!(X?.E1"."5N.N) X
;;^DD(113,7,3)
;;=TYPE A NUMBER BETWEEN .0001 AND 9999
;;^DD(113,7,21,0)
;;=^^4^4^2880710^
;;^DD(113,7,21,1,0)
;;=This is the number of Dietetic issue units in a unit of
;;^DD(113,7,21,2,0)
;;=purchase. If the U/P (unit of Purchase) is a CS that
FHINI0H5 ; ; 11-OCT-1995
+1 ;;5.0;Dietetics;;Oct 11, 1995
+2 IF 'DIFQ(113)
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,0,"GL")
+2 ;;=^FHING(
+3 ;;^DIC("B","INGREDIENT",113)
+4 ;;=
+5 ;;^DIC(113,"%D",0)
+6 ;;=^^6^6^2950221^^
+7 ;;^DIC(113,"%D",1,0)
+8 ;;=This file is the master list of ingredients used in preparing
+9 ;;^DIC(113,"%D",2,0)
+10 ;;=recipes. It contains purchasing information, such as stock number
+11 ;;^DIC(113,"%D",3,0)
+12 ;;=and vendor, issuance data such as the issuing unit, and various
+13 ;;^DIC(113,"%D",4,0)
+14 ;;=conversion factors. Nutritive data such as food group, poundage
+15 ;;^DIC(113,"%D",5,0)
+16 ;;=factors, and a pointer to the analogous food nutrient item in
+17 ;;^DIC(113,"%D",6,0)
+18 ;;=File 112 are also included.
+19 ;;^DD(113,0)
+20 ;;=FIELD^^31^22
+21 ;;^DD(113,0,"DT")
+22 ;;=2930211
+23 ;;^DD(113,0,"IX","B",113,.01)
+24 ;;=
+25 ;;^DD(113,0,"IX","C",113,2)
+26 ;;=
+27 ;;^DD(113,0,"NM","INGREDIENT")
+28 ;;=
+29 ;;^DD(113,0,"PT",114.01,.01)
+30 ;;=
+31 ;;^DD(113,.01,0)
+32 ;;=NAME^RF^^0;1^K:$L(X)>50!($L(X)<3)!'(X'?1P.E) X
+33 ;;^DD(113,.01,1,0)
+34 ;;=^.1
+35 ;;^DD(113,.01,1,1,0)
+36 ;;=113^B
+37 ;;^DD(113,.01,1,1,1)
+38 ;;=S ^FHING("B",$E(X,1,30),DA)=""
+39 ;;^DD(113,.01,1,1,2)
+40 ;;=K ^FHING("B",$E(X,1,30),DA)
+41 ;;^DD(113,.01,1,1,"%D",0)
+42 ;;=^^1^1^2911118^
+43 ;;^DD(113,.01,1,1,"%D",1,0)
+44 ;;=This is the normal B cross-reference of the NAME field.
+45 ;;^DD(113,.01,3)
+46 ;;=ANSWER MUST BE 3-50 CHARACTERS IN LENGTH
+47 ;;^DD(113,.01,21,0)
+48 ;;=^^2^2^2880710^
+49 ;;^DD(113,.01,21,1,0)
+50 ;;=This is the name of the ingredient which is an ordered item
+51 ;;^DD(113,.01,21,2,0)
+52 ;;=generally and which is used in the preparation of recipes.
+53 ;;^DD(113,.01,"DEL",1,0)
+54 ;;=I DUZ(0)'["@",'$D(^XUSEC("FHMGR",DUZ))
+55 ;;^DD(113,1,0)
+56 ;;=SUPPLY DESCRIPTION^RF^^0;2^K:$L(X)>21!($L(X)<3) X
+57 ;;^DD(113,1,3)
+58 ;;=ANSWER MUST BE 3-21 CHARACTERS IN LENGTH
+59 ;;^DD(113,1,21,0)
+60 ;;=^^2^2^2880710^
+61 ;;^DD(113,1,21,1,0)
+62 ;;=This is a short description which will be used on purchase
+63 ;;^DD(113,1,21,2,0)
+64 ;;=orders.
+65 ;;^DD(113,1,"DT")
+66 ;;=2880227
+67 ;;^DD(113,2,0)
+68 ;;=STOCK NUMBER^F^^0;3^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>16!($L(X)<1) X
+69 ;;^DD(113,2,1,0)
+70 ;;=^.1
+71 ;;^DD(113,2,1,1,0)
+72 ;;=113^C^MUMPS
+73 ;;^DD(113,2,1,1,1)
+74 ;;=S ^FHING("C",$E(X,$L(X)-3,$L(X)),DA)=""
+75 ;;^DD(113,2,1,1,2)
+76 ;;=K ^FHING("C",$E(X,$L(X)-3,$L(X)),DA)
+77 ;;^DD(113,2,1,1,"%D",0)
+78 ;;=^^2^2^2940824^
+79 ;;^DD(113,2,1,1,"%D",1,0)
+80 ;;=This cross-reference consists of the last 4 characters of the
+81 ;;^DD(113,2,1,1,"%D",2,0)
+82 ;;=Stock Number which has been entered.
+83 ;;^DD(113,2,3)
+84 ;;=ANSWER MUST BE 1-16 CHARACTERS IN LENGTH
+85 ;;^DD(113,2,21,0)
+86 ;;=^^3^3^2880710^
+87 ;;^DD(113,2,21,1,0)
+88 ;;=This is the Federal Stock Number (with hyphens) for items
+89 ;;^DD(113,2,21,2,0)
+90 ;;=obtained from VA Depots or DLA. It may be the local vendor's
+91 ;;^DD(113,2,21,3,0)
+92 ;;=number for other items.
+93 ;;^DD(113,2,"DT")
+94 ;;=2880227
+95 ;;^DD(113,3,0)
+96 ;;=VENDOR^P113.2^FH(113.2,^0;4^Q
+97 ;;^DD(113,3,21,0)
+98 ;;=^^2^2^2880710^
+99 ;;^DD(113,3,21,1,0)
+100 ;;=This field indicates the current vendor from whom the item
+101 ;;^DD(113,3,21,2,0)
+102 ;;=is procured.
+103 ;;^DD(113,3,"DT")
+104 ;;=2861023
+105 ;;^DD(113,4,0)
+106 ;;=UNIT OF PURCHASE (U/P)^RF^^0;5^K:$L(X)>2!($L(X)<2) X
+107 ;;^DD(113,4,3)
+108 ;;=ANSWER MUST BE 2 CHARACTERS IN LENGTH
+109 ;;^DD(113,4,21,0)
+110 ;;=^^3^3^2890208^^
+111 ;;^DD(113,4,21,1,0)
+112 ;;=This is a two-character abbreviation indicating the unit
+113 ;;^DD(113,4,21,2,0)
+114 ;;=of purchase and is such things as CN for can, PK for
+115 ;;^DD(113,4,21,3,0)
+116 ;;=package, CS for case, etc.
+117 ;;^DD(113,4,"DT")
+118 ;;=2890208
+119 ;;^DD(113,5,0)
+120 ;;=DIETETIC UNIT OF ISSUE^RP119.1X^FH(119.1,^0;6^I $D(X) S X=$P(^FH(119.1,+X,0),"^",1)
+121 ;;^DD(113,5,21,0)
+122 ;;=^^3^3^2920522^^^
+123 ;;^DD(113,5,21,1,0)
+124 ;;=This is the unit of issue that dietetic personnel or supply
+125 ;;^DD(113,5,21,2,0)
+126 ;;=personnel use for dispensing the item to ingredient control.
+127 ;;^DD(113,5,21,3,0)
+128 ;;=It is generally a #10-can or similar description.
+129 ;;^DD(113,6,0)
+130 ;;=ORDERING MULTIPLE (OF U/P)^NJ4,0^^0;7^K:+X'=X!(X>9999)!(X<1)!(X?.E1"."1N.N) X
+131 ;;^DD(113,6,3)
+132 ;;=Type a Number between 1 and 9999, 0 Decimal Digits
+133 ;;^DD(113,6,21,0)
+134 ;;=^^4^4^2880710^
+135 ;;^DD(113,6,21,1,0)
+136 ;;=If the vendor requires that the unit of purchase be bought
+137 ;;^DD(113,6,21,2,0)
+138 ;;=in some multiple, like 6 or 12 or 24, then that multiple
+139 ;;^DD(113,6,21,3,0)
+140 ;;=is indicated here. VA Depot is the most common vendor
+141 ;;^DD(113,6,21,4,0)
+142 ;;=requiring such multiples.
+143 ;;^DD(113,6,"DT")
+144 ;;=2880227
+145 ;;^DD(113,7,0)
+146 ;;=NO. OF ISSUE UNITS IN A U/P^RNJ9,4^^0;8^K:+X'=X!(X>9999)!(X<.0001)!(X?.E1"."5N.N) X
+147 ;;^DD(113,7,3)
+148 ;;=TYPE A NUMBER BETWEEN .0001 AND 9999
+149 ;;^DD(113,7,21,0)
+150 ;;=^^4^4^2880710^
+151 ;;^DD(113,7,21,1,0)
+152 ;;=This is the number of Dietetic issue units in a unit of
+153 ;;^DD(113,7,21,2,0)
+154 ;;=purchase. If the U/P (unit of Purchase) is a CS that