FHINI009 ; ; 11-OCT-1995
;;5.0;Dietetics;;Oct 11, 1995
Q:'DIFQ(112) 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(112,4.2,1,2,"%D",0)
;;=^^2^2^2940824^
;;^DD(112,4.2,1,2,"%D",1,0)
;;=If Field 4.4 is Yes, then this Alternate Name is set under the "AQ"
;;^DD(112,4.2,1,2,"%D",2,0)
;;=Quick List for rapid selection.
;;^DD(112,4.2,3)
;;=ANSWER MUST BE 3-40 CHARACTERS IN LENGTH
;;^DD(112,4.2,21,0)
;;=^^1^1^2880717^
;;^DD(112,4.2,21,1,0)
;;=This field may contain an alternate name for the nutrient item.
;;^DD(112,4.2,"DT")
;;=2900510
;;^DD(112,4.4,0)
;;=ALT NAME QUICK LIST?^S^Y:YES;N:NO;^.6;3^Q
;;^DD(112,4.4,1,0)
;;=^.1
;;^DD(112,4.4,1,1,0)
;;=112^AE^MUMPS
;;^DD(112,4.4,1,1,1)
;;=I X="Y" S X1=$P(^FHNU(DA,.6),U,2) S:X1'="" ^FHNU("AQ",$E(X1,1,30),DA)=""
;;^DD(112,4.4,1,1,2)
;;=S X1=$P(^FHNU(DA,.6),U,2) K:X1'="" ^FHNU("AQ",$E(X1,1,30),DA)
;;^DD(112,4.4,1,1,"%D",0)
;;=^^2^2^2940824^
;;^DD(112,4.4,1,1,"%D",1,0)
;;=This field, when answered Yes, will result in the Alternate Name (Field
;;^DD(112,4.4,1,1,"%D",2,0)
;;=4.2) being placed under the "AQ" Quick List for rapid selection.
;;^DD(112,4.4,21,0)
;;=^^2^2^2880717^
;;^DD(112,4.4,21,1,0)
;;=This field, when answered YES, means that the alternate name
;;^DD(112,4.4,21,2,0)
;;=of this nutrient is also on the Quick List for rapid look-up.
;;^DD(112,4.4,"DT")
;;=2850615
;;^DD(112,5,0)
;;=% AS PURCHASED^NJ3,0^^0;5^K:+X'=X!(X>600)!(X<0)!(X?.E1"."1N.N) X
;;^DD(112,5,3)
;;=Type a Number between 0 and 600, 0 Decimal Digits
;;^DD(112,5,21,0)
;;=^^2^2^2930520^^^^
;;^DD(112,5,21,1,0)
;;=This field contains the percentage of the as purchased weight
;;^DD(112,5,21,2,0)
;;=that is present after preparation.
;;^DD(112,5,"DT")
;;=2930520
;;^DD(112,6,0)
;;=EDITABLE?^SI^Y:YES;N:NO;^0;6^Q
;;^DD(112,6,3)
;;=N means that entry cannot be edited (USDA data)
;;^DD(112,6,21,0)
;;=^^3^3^2880717^
;;^DD(112,6,21,1,0)
;;=This field, when answered NO, means that the item is an USDA
;;^DD(112,6,21,2,0)
;;=item and that the Handbook values for the various nutrients
;;^DD(112,6,21,3,0)
;;=cannot be edited by dietetic personnel.
;;^DD(112,6,"DT")
;;=2850322
;;^DD(112,7,0)
;;=TYPE^S^E:EDIBLE;R:RAW/RARE;X:RECIPE;^0;7^Q
;;^DD(112,7,21,0)
;;=^^3^3^2921111^^^^
;;^DD(112,7,21,1,0)
;;=This field, if E, will allow selection of edible foods for energy
;;^DD(112,7,21,2,0)
;;=analyses; if R, can be selected for recipe analyses.
;;^DD(112,7,21,3,0)
;;=If X, analysis is of a recipe in File 114 and cannot be selected.
;;^DD(112,7,"DT")
;;=2921111
;;^DD(112,11,0)
;;=PROTEIN; GM/100G^NJ9,3^^1;1^K:+X'=X!(X>99999)!(X<0)!(X?.E1"."4N.N) X
;;^DD(112,11,3)
;;=Type a Number between 0 and 99999, 3 Decimal Digits
;;^DD(112,11,21,0)
;;=^^1^1^2880710^
;;^DD(112,11,21,1,0)
;;=This is the value per 100 grams for this nutrient.
;;^DD(112,12,0)
;;=LIPIDS; GM/100G^NJ9,3^^1;2^K:+X'=X!(X>99999)!(X<0)!(X?.E1"."4N.N) X
;;^DD(112,12,3)
;;=Type a Number between 0 and 99999, 3 Decimal Digits
;;^DD(112,12,21,0)
;;=^^1^1^2930510^^
;;^DD(112,12,21,1,0)
;;=This is the value per 100 grams for this nutrient.
;;^DD(112,13,0)
;;=CARBOHYDRATE; GM/100G^NJ9,3^^1;3^K:+X'=X!(X>99999)!(X<0)!(X?.E1"."4N.N) X
;;^DD(112,13,3)
;;=Type a Number between 0 and 99999, 3 Decimal Digits
;;^DD(112,13,21,0)
;;=^^1^1^2880710^
;;^DD(112,13,21,1,0)
;;=This is the value per 100 grams for this nutrient.
;;^DD(112,14,0)
;;=FOOD ENERGY; KCAL/100G^NJ9,3^^1;4^K:+X'=X!(X>99999)!(X<0)!(X?.E1"."4N.N) X
;;^DD(112,14,3)
;;=Type a Number between 0 and 99999, 3 Decimal Digits
;;^DD(112,14,21,0)
;;=^^1^1^2880710^
;;^DD(112,14,21,1,0)
;;=This is the value per 100 grams for this nutrient.
;;^DD(112,15,0)
;;=WATER; GM/100G^NJ9,3^^1;5^K:+X'=X!(X>99999)!(X<0)!(X?.E1"."4N.N) X
;;^DD(112,15,3)
;;=Type a Number between 0 and 99999, 3 Decimal Digits
;;^DD(112,15,21,0)
;;=^^1^1^2880710^
;;^DD(112,15,21,1,0)
;;=This is the value per 100 grams for this nutrient.
;;^DD(112,18,0)
;;=CALCIUM; MG/100G^NJ9,3^^1;8^K:+X'=X!(X>99999)!(X<0)!(X?.E1"."4N.N) X
;;^DD(112,18,3)
;;=Type a Number between 0 and 99999, 3 Decimal Digits
;;^DD(112,18,21,0)
;;=^^1^1^2880710^
;;^DD(112,18,21,1,0)
;;=This is the value per 100 grams for this nutrient.
;;^DD(112,19,0)
;;=IRON; MG/100G^NJ9,3^^1;9^K:+X'=X!(X>99999)!(X<0)!(X?.E1"."4N.N) X
;;^DD(112,19,3)
;;=Type a Number between 0 and 99999, 3 Decimal Digits
;;^DD(112,19,21,0)
;;=^^1^1^2880710^
;;^DD(112,19,21,1,0)
;;=This is the value per 100 grams for this nutrient.
;;^DD(112,20,0)
;;=MAGNESIUM; MG/100G^NJ9,3^^1;10^K:+X'=X!(X>99999)!(X<0)!(X?.E1"."4N.N) X
;;^DD(112,20,3)
;;=Type a Number between 0 and 99999, 3 Decimal Digits
;;^DD(112,20,21,0)
;;=^^1^1^2880710^
FHINI009 ; ; 11-OCT-1995
+1 ;;5.0;Dietetics;;Oct 11, 1995
+2 IF 'DIFQ(112)
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(112,4.2,1,2,"%D",0)
+2 ;;=^^2^2^2940824^
+3 ;;^DD(112,4.2,1,2,"%D",1,0)
+4 ;;=If Field 4.4 is Yes, then this Alternate Name is set under the "AQ"
+5 ;;^DD(112,4.2,1,2,"%D",2,0)
+6 ;;=Quick List for rapid selection.
+7 ;;^DD(112,4.2,3)
+8 ;;=ANSWER MUST BE 3-40 CHARACTERS IN LENGTH
+9 ;;^DD(112,4.2,21,0)
+10 ;;=^^1^1^2880717^
+11 ;;^DD(112,4.2,21,1,0)
+12 ;;=This field may contain an alternate name for the nutrient item.
+13 ;;^DD(112,4.2,"DT")
+14 ;;=2900510
+15 ;;^DD(112,4.4,0)
+16 ;;=ALT NAME QUICK LIST?^S^Y:YES;N:NO;^.6;3^Q
+17 ;;^DD(112,4.4,1,0)
+18 ;;=^.1
+19 ;;^DD(112,4.4,1,1,0)
+20 ;;=112^AE^MUMPS
+21 ;;^DD(112,4.4,1,1,1)
+22 ;;=I X="Y" S X1=$P(^FHNU(DA,.6),U,2) S:X1'="" ^FHNU("AQ",$E(X1,1,30),DA)=""
+23 ;;^DD(112,4.4,1,1,2)
+24 ;;=S X1=$P(^FHNU(DA,.6),U,2) K:X1'="" ^FHNU("AQ",$E(X1,1,30),DA)
+25 ;;^DD(112,4.4,1,1,"%D",0)
+26 ;;=^^2^2^2940824^
+27 ;;^DD(112,4.4,1,1,"%D",1,0)
+28 ;;=This field, when answered Yes, will result in the Alternate Name (Field
+29 ;;^DD(112,4.4,1,1,"%D",2,0)
+30 ;;=4.2) being placed under the "AQ" Quick List for rapid selection.
+31 ;;^DD(112,4.4,21,0)
+32 ;;=^^2^2^2880717^
+33 ;;^DD(112,4.4,21,1,0)
+34 ;;=This field, when answered YES, means that the alternate name
+35 ;;^DD(112,4.4,21,2,0)
+36 ;;=of this nutrient is also on the Quick List for rapid look-up.
+37 ;;^DD(112,4.4,"DT")
+38 ;;=2850615
+39 ;;^DD(112,5,0)
+40 ;;=% AS PURCHASED^NJ3,0^^0;5^K:+X'=X!(X>600)!(X<0)!(X?.E1"."1N.N) X
+41 ;;^DD(112,5,3)
+42 ;;=Type a Number between 0 and 600, 0 Decimal Digits
+43 ;;^DD(112,5,21,0)
+44 ;;=^^2^2^2930520^^^^
+45 ;;^DD(112,5,21,1,0)
+46 ;;=This field contains the percentage of the as purchased weight
+47 ;;^DD(112,5,21,2,0)
+48 ;;=that is present after preparation.
+49 ;;^DD(112,5,"DT")
+50 ;;=2930520
+51 ;;^DD(112,6,0)
+52 ;;=EDITABLE?^SI^Y:YES;N:NO;^0;6^Q
+53 ;;^DD(112,6,3)
+54 ;;=N means that entry cannot be edited (USDA data)
+55 ;;^DD(112,6,21,0)
+56 ;;=^^3^3^2880717^
+57 ;;^DD(112,6,21,1,0)
+58 ;;=This field, when answered NO, means that the item is an USDA
+59 ;;^DD(112,6,21,2,0)
+60 ;;=item and that the Handbook values for the various nutrients
+61 ;;^DD(112,6,21,3,0)
+62 ;;=cannot be edited by dietetic personnel.
+63 ;;^DD(112,6,"DT")
+64 ;;=2850322
+65 ;;^DD(112,7,0)
+66 ;;=TYPE^S^E:EDIBLE;R:RAW/RARE;X:RECIPE;^0;7^Q
+67 ;;^DD(112,7,21,0)
+68 ;;=^^3^3^2921111^^^^
+69 ;;^DD(112,7,21,1,0)
+70 ;;=This field, if E, will allow selection of edible foods for energy
+71 ;;^DD(112,7,21,2,0)
+72 ;;=analyses; if R, can be selected for recipe analyses.
+73 ;;^DD(112,7,21,3,0)
+74 ;;=If X, analysis is of a recipe in File 114 and cannot be selected.
+75 ;;^DD(112,7,"DT")
+76 ;;=2921111
+77 ;;^DD(112,11,0)
+78 ;;=PROTEIN; GM/100G^NJ9,3^^1;1^K:+X'=X!(X>99999)!(X<0)!(X?.E1"."4N.N) X
+79 ;;^DD(112,11,3)
+80 ;;=Type a Number between 0 and 99999, 3 Decimal Digits
+81 ;;^DD(112,11,21,0)
+82 ;;=^^1^1^2880710^
+83 ;;^DD(112,11,21,1,0)
+84 ;;=This is the value per 100 grams for this nutrient.
+85 ;;^DD(112,12,0)
+86 ;;=LIPIDS; GM/100G^NJ9,3^^1;2^K:+X'=X!(X>99999)!(X<0)!(X?.E1"."4N.N) X
+87 ;;^DD(112,12,3)
+88 ;;=Type a Number between 0 and 99999, 3 Decimal Digits
+89 ;;^DD(112,12,21,0)
+90 ;;=^^1^1^2930510^^
+91 ;;^DD(112,12,21,1,0)
+92 ;;=This is the value per 100 grams for this nutrient.
+93 ;;^DD(112,13,0)
+94 ;;=CARBOHYDRATE; GM/100G^NJ9,3^^1;3^K:+X'=X!(X>99999)!(X<0)!(X?.E1"."4N.N) X
+95 ;;^DD(112,13,3)
+96 ;;=Type a Number between 0 and 99999, 3 Decimal Digits
+97 ;;^DD(112,13,21,0)
+98 ;;=^^1^1^2880710^
+99 ;;^DD(112,13,21,1,0)
+100 ;;=This is the value per 100 grams for this nutrient.
+101 ;;^DD(112,14,0)
+102 ;;=FOOD ENERGY; KCAL/100G^NJ9,3^^1;4^K:+X'=X!(X>99999)!(X<0)!(X?.E1"."4N.N) X
+103 ;;^DD(112,14,3)
+104 ;;=Type a Number between 0 and 99999, 3 Decimal Digits
+105 ;;^DD(112,14,21,0)
+106 ;;=^^1^1^2880710^
+107 ;;^DD(112,14,21,1,0)
+108 ;;=This is the value per 100 grams for this nutrient.
+109 ;;^DD(112,15,0)
+110 ;;=WATER; GM/100G^NJ9,3^^1;5^K:+X'=X!(X>99999)!(X<0)!(X?.E1"."4N.N) X
+111 ;;^DD(112,15,3)
+112 ;;=Type a Number between 0 and 99999, 3 Decimal Digits
+113 ;;^DD(112,15,21,0)
+114 ;;=^^1^1^2880710^
+115 ;;^DD(112,15,21,1,0)
+116 ;;=This is the value per 100 grams for this nutrient.
+117 ;;^DD(112,18,0)
+118 ;;=CALCIUM; MG/100G^NJ9,3^^1;8^K:+X'=X!(X>99999)!(X<0)!(X?.E1"."4N.N) X
+119 ;;^DD(112,18,3)
+120 ;;=Type a Number between 0 and 99999, 3 Decimal Digits
+121 ;;^DD(112,18,21,0)
+122 ;;=^^1^1^2880710^
+123 ;;^DD(112,18,21,1,0)
+124 ;;=This is the value per 100 grams for this nutrient.
+125 ;;^DD(112,19,0)
+126 ;;=IRON; MG/100G^NJ9,3^^1;9^K:+X'=X!(X>99999)!(X<0)!(X?.E1"."4N.N) X
+127 ;;^DD(112,19,3)
+128 ;;=Type a Number between 0 and 99999, 3 Decimal Digits
+129 ;;^DD(112,19,21,0)
+130 ;;=^^1^1^2880710^
+131 ;;^DD(112,19,21,1,0)
+132 ;;=This is the value per 100 grams for this nutrient.
+133 ;;^DD(112,20,0)
+134 ;;=MAGNESIUM; MG/100G^NJ9,3^^1;10^K:+X'=X!(X>99999)!(X<0)!(X?.E1"."4N.N) X
+135 ;;^DD(112,20,3)
+136 ;;=Type a Number between 0 and 99999, 3 Decimal Digits
+137 ;;^DD(112,20,21,0)
+138 ;;=^^1^1^2880710^