FHINI0GZ ; ; 11-OCT-1995
;;5.0;Dietetics;;Oct 11, 1995
Q:'DIFQ(112.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(112.2,0,"GL")
;;=^FH(112.2,
;;^DIC("B","RDA VALUES",112.2)
;;=
;;^DIC(112.2,"%D",0)
;;=^^4^4^2871125^
;;^DIC(112.2,"%D",1,0)
;;=This file contains the values of the Recommended Dietary Allowances,
;;^DIC(112.2,"%D",2,0)
;;=1989. Where ranges were originally specified, the file contains
;;^DIC(112.2,"%D",3,0)
;;=the mid-point. 'Estimated safe and adequate' values are used where
;;^DIC(112.2,"%D",4,0)
;;=no formal RDA exists.
;;^DD(112.2,0)
;;=FIELD^^22^24
;;^DD(112.2,0,"DT")
;;=2920704
;;^DD(112.2,0,"IX","B",112.2,.01)
;;=
;;^DD(112.2,0,"IX","C",112.2,.5)
;;=
;;^DD(112.2,0,"NM","RDA VALUES")
;;=
;;^DD(112.2,.01,0)
;;=NAME^RF^^0;1^K:$L(X)>30!(X?.N)!($L(X)<3)!'(X'?1P.E)!(X'?.ANP) X
;;^DD(112.2,.01,1,0)
;;=^.1
;;^DD(112.2,.01,1,1,0)
;;=112.2^B
;;^DD(112.2,.01,1,1,1)
;;=S ^FH(112.2,"B",$E(X,1,30),DA)=""
;;^DD(112.2,.01,1,1,2)
;;=K ^FH(112.2,"B",$E(X,1,30),DA)
;;^DD(112.2,.01,1,1,"%D",0)
;;=^^1^1^2911118^
;;^DD(112.2,.01,1,1,"%D",1,0)
;;=This is the normal B cross-reference of the NAME field.
;;^DD(112.2,.01,3)
;;=NAME MUST BE 3-30 CHARACTERS, NOT NUMERIC OR STARTING WITH PUNCTUATION
;;^DD(112.2,.01,21,0)
;;=^^2^2^2880717^
;;^DD(112.2,.01,21,1,0)
;;=This field contains the name of a category of people for whom
;;^DD(112.2,.01,21,2,0)
;;=Recommended Dietary Allowance values have been published.
;;^DD(112.2,.01,"DEL",1,0)
;;=I DUZ(0)'["@",'$D(^XUSEC("FHMGR",DUZ))
;;^DD(112.2,.5,0)
;;=MNEMONIC^F^^0;2^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>8!($L(X)<1) X
;;^DD(112.2,.5,1,0)
;;=^.1
;;^DD(112.2,.5,1,1,0)
;;=112.2^C
;;^DD(112.2,.5,1,1,1)
;;=S ^FH(112.2,"C",$E(X,1,30),DA)=""
;;^DD(112.2,.5,1,1,2)
;;=K ^FH(112.2,"C",$E(X,1,30),DA)
;;^DD(112.2,.5,3)
;;=ANSWER MUST BE 1-8 CHARACTERS IN LENGTH
;;^DD(112.2,.5,21,0)
;;=^^2^2^2950221^^^
;;^DD(112.2,.5,21,1,0)
;;=This is a short name, or mnemonic, for the RDA category of
;;^DD(112.2,.5,21,2,0)
;;=persons.
;;^DD(112.2,.5,"DT")
;;=2950221
;;^DD(112.2,1,0)
;;=PROTEIN GM.^NJ5,1^^1;1^K:+X'=X!(X>100)!(X<0)!(X?.E1"."2N.N) X
;;^DD(112.2,1,3)
;;=TYPE A NUMBER BETWEEN 0 AND 100
;;^DD(112.2,1,21,0)
;;=^^2^2^2880717^^^
;;^DD(112.2,1,21,1,0)
;;=This field represents the recommended amount of Protein per
;;^DD(112.2,1,21,2,0)
;;=day for this RDA group.
;;^DD(112.2,2,0)
;;=VITAMIN A RE^NJ4,0^^1;2^K:+X'=X!(X>3000)!(X<0)!(X?.E1"."1N.N) X
;;^DD(112.2,2,3)
;;=Type a Number between 0 and 3000, 0 Decimal Digits
;;^DD(112.2,2,21,0)
;;=^^2^2^2891211^^^^
;;^DD(112.2,2,21,1,0)
;;=This field represents the recommended amount of Vitamin A in
;;^DD(112.2,2,21,2,0)
;;=Retinol Equivalents per day for this RDA group.
;;^DD(112.2,2,"DT")
;;=2891211
;;^DD(112.2,3,0)
;;=VITAMIN E MG^NJ3,0^^1;3^K:+X'=X!(X>100)!(X<0)!(X?.E1"."1N.N) X
;;^DD(112.2,3,3)
;;=TYPE A WHOLE NUMBER BETWEEN 0 AND 100
;;^DD(112.2,3,21,0)
;;=^^2^2^2880717^^^
;;^DD(112.2,3,21,1,0)
;;=This field represents the recommended amount of Vitamin E per
;;^DD(112.2,3,21,2,0)
;;=day for this RDA group.
;;^DD(112.2,4,0)
;;=VITAMIN C MG^NJ3,0^^1;4^K:+X'=X!(X>100)!(X<0)!(X?.E1"."1N.N) X
;;^DD(112.2,4,3)
;;=TYPE A WHOLE NUMBER BETWEEN 0 AND 100
;;^DD(112.2,4,21,0)
;;=^^2^2^2880717^^
;;^DD(112.2,4,21,1,0)
;;=This field represents the recommended amount of Vitamin C per
;;^DD(112.2,4,21,2,0)
;;=day for this RDA group.
;;^DD(112.2,5,0)
;;=THIAMIN MG^NJ3,1^^1;5^K:+X'=X!(X>3)!(X<0)!(X?.E1"."2N.N) X
;;^DD(112.2,5,3)
;;=TYPE A NUMBER BETWEEN 0 AND 3
;;^DD(112.2,5,21,0)
;;=^^2^2^2880717^^
;;^DD(112.2,5,21,1,0)
;;=This field represents the recommended amount of Thiamin per
;;^DD(112.2,5,21,2,0)
;;=day for this RDA group.
;;^DD(112.2,6,0)
;;=RIBOFLAVIN MG^NJ3,1^^1;6^K:+X'=X!(X>3)!(X<0)!(X?.E1"."2N.N) X
;;^DD(112.2,6,3)
;;=TYPE A NUMBER BETWEEN 0 AND 3
;;^DD(112.2,6,21,0)
;;=^^2^2^2880717^^
;;^DD(112.2,6,21,1,0)
;;=This field represents the recommended amount of Riboflavin per
;;^DD(112.2,6,21,2,0)
;;=day for this RDA group.
;;^DD(112.2,7,0)
;;=NIACIN MG^NJ2,0^^1;7^K:+X'=X!(X>50)!(X<0)!(X?.E1"."1N.N) X
;;^DD(112.2,7,3)
;;=TYPE A WHOLE NUMBER BETWEEN 0 AND 50
;;^DD(112.2,7,21,0)
;;=^^2^2^2880717^^
;;^DD(112.2,7,21,1,0)
;;=This field represents the recommended amount of Niacin per
;;^DD(112.2,7,21,2,0)
;;=day for this RDA group.
;;^DD(112.2,8,0)
;;=VITAMIN B6 MG^NJ3,1^^1;8^K:+X'=X!(X>5)!(X<0)!(X?.E1"."2N.N) X
;;^DD(112.2,8,3)
;;=TYPE A NUMBER BETWEEN 0 AND 5
;;^DD(112.2,8,21,0)
;;=^^2^2^2880717^^
;;^DD(112.2,8,21,1,0)
;;=This field represents the recommended amount of Vitamin B6 per
;;^DD(112.2,8,21,2,0)
;;=day for this RDA group.
FHINI0GZ ; ; 11-OCT-1995
+1 ;;5.0;Dietetics;;Oct 11, 1995
+2 IF 'DIFQ(112.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(112.2,0,"GL")
+2 ;;=^FH(112.2,
+3 ;;^DIC("B","RDA VALUES",112.2)
+4 ;;=
+5 ;;^DIC(112.2,"%D",0)
+6 ;;=^^4^4^2871125^
+7 ;;^DIC(112.2,"%D",1,0)
+8 ;;=This file contains the values of the Recommended Dietary Allowances,
+9 ;;^DIC(112.2,"%D",2,0)
+10 ;;=1989. Where ranges were originally specified, the file contains
+11 ;;^DIC(112.2,"%D",3,0)
+12 ;;=the mid-point. 'Estimated safe and adequate' values are used where
+13 ;;^DIC(112.2,"%D",4,0)
+14 ;;=no formal RDA exists.
+15 ;;^DD(112.2,0)
+16 ;;=FIELD^^22^24
+17 ;;^DD(112.2,0,"DT")
+18 ;;=2920704
+19 ;;^DD(112.2,0,"IX","B",112.2,.01)
+20 ;;=
+21 ;;^DD(112.2,0,"IX","C",112.2,.5)
+22 ;;=
+23 ;;^DD(112.2,0,"NM","RDA VALUES")
+24 ;;=
+25 ;;^DD(112.2,.01,0)
+26 ;;=NAME^RF^^0;1^K:$L(X)>30!(X?.N)!($L(X)<3)!'(X'?1P.E)!(X'?.ANP) X
+27 ;;^DD(112.2,.01,1,0)
+28 ;;=^.1
+29 ;;^DD(112.2,.01,1,1,0)
+30 ;;=112.2^B
+31 ;;^DD(112.2,.01,1,1,1)
+32 ;;=S ^FH(112.2,"B",$E(X,1,30),DA)=""
+33 ;;^DD(112.2,.01,1,1,2)
+34 ;;=K ^FH(112.2,"B",$E(X,1,30),DA)
+35 ;;^DD(112.2,.01,1,1,"%D",0)
+36 ;;=^^1^1^2911118^
+37 ;;^DD(112.2,.01,1,1,"%D",1,0)
+38 ;;=This is the normal B cross-reference of the NAME field.
+39 ;;^DD(112.2,.01,3)
+40 ;;=NAME MUST BE 3-30 CHARACTERS, NOT NUMERIC OR STARTING WITH PUNCTUATION
+41 ;;^DD(112.2,.01,21,0)
+42 ;;=^^2^2^2880717^
+43 ;;^DD(112.2,.01,21,1,0)
+44 ;;=This field contains the name of a category of people for whom
+45 ;;^DD(112.2,.01,21,2,0)
+46 ;;=Recommended Dietary Allowance values have been published.
+47 ;;^DD(112.2,.01,"DEL",1,0)
+48 ;;=I DUZ(0)'["@",'$D(^XUSEC("FHMGR",DUZ))
+49 ;;^DD(112.2,.5,0)
+50 ;;=MNEMONIC^F^^0;2^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>8!($L(X)<1) X
+51 ;;^DD(112.2,.5,1,0)
+52 ;;=^.1
+53 ;;^DD(112.2,.5,1,1,0)
+54 ;;=112.2^C
+55 ;;^DD(112.2,.5,1,1,1)
+56 ;;=S ^FH(112.2,"C",$E(X,1,30),DA)=""
+57 ;;^DD(112.2,.5,1,1,2)
+58 ;;=K ^FH(112.2,"C",$E(X,1,30),DA)
+59 ;;^DD(112.2,.5,3)
+60 ;;=ANSWER MUST BE 1-8 CHARACTERS IN LENGTH
+61 ;;^DD(112.2,.5,21,0)
+62 ;;=^^2^2^2950221^^^
+63 ;;^DD(112.2,.5,21,1,0)
+64 ;;=This is a short name, or mnemonic, for the RDA category of
+65 ;;^DD(112.2,.5,21,2,0)
+66 ;;=persons.
+67 ;;^DD(112.2,.5,"DT")
+68 ;;=2950221
+69 ;;^DD(112.2,1,0)
+70 ;;=PROTEIN GM.^NJ5,1^^1;1^K:+X'=X!(X>100)!(X<0)!(X?.E1"."2N.N) X
+71 ;;^DD(112.2,1,3)
+72 ;;=TYPE A NUMBER BETWEEN 0 AND 100
+73 ;;^DD(112.2,1,21,0)
+74 ;;=^^2^2^2880717^^^
+75 ;;^DD(112.2,1,21,1,0)
+76 ;;=This field represents the recommended amount of Protein per
+77 ;;^DD(112.2,1,21,2,0)
+78 ;;=day for this RDA group.
+79 ;;^DD(112.2,2,0)
+80 ;;=VITAMIN A RE^NJ4,0^^1;2^K:+X'=X!(X>3000)!(X<0)!(X?.E1"."1N.N) X
+81 ;;^DD(112.2,2,3)
+82 ;;=Type a Number between 0 and 3000, 0 Decimal Digits
+83 ;;^DD(112.2,2,21,0)
+84 ;;=^^2^2^2891211^^^^
+85 ;;^DD(112.2,2,21,1,0)
+86 ;;=This field represents the recommended amount of Vitamin A in
+87 ;;^DD(112.2,2,21,2,0)
+88 ;;=Retinol Equivalents per day for this RDA group.
+89 ;;^DD(112.2,2,"DT")
+90 ;;=2891211
+91 ;;^DD(112.2,3,0)
+92 ;;=VITAMIN E MG^NJ3,0^^1;3^K:+X'=X!(X>100)!(X<0)!(X?.E1"."1N.N) X
+93 ;;^DD(112.2,3,3)
+94 ;;=TYPE A WHOLE NUMBER BETWEEN 0 AND 100
+95 ;;^DD(112.2,3,21,0)
+96 ;;=^^2^2^2880717^^^
+97 ;;^DD(112.2,3,21,1,0)
+98 ;;=This field represents the recommended amount of Vitamin E per
+99 ;;^DD(112.2,3,21,2,0)
+100 ;;=day for this RDA group.
+101 ;;^DD(112.2,4,0)
+102 ;;=VITAMIN C MG^NJ3,0^^1;4^K:+X'=X!(X>100)!(X<0)!(X?.E1"."1N.N) X
+103 ;;^DD(112.2,4,3)
+104 ;;=TYPE A WHOLE NUMBER BETWEEN 0 AND 100
+105 ;;^DD(112.2,4,21,0)
+106 ;;=^^2^2^2880717^^
+107 ;;^DD(112.2,4,21,1,0)
+108 ;;=This field represents the recommended amount of Vitamin C per
+109 ;;^DD(112.2,4,21,2,0)
+110 ;;=day for this RDA group.
+111 ;;^DD(112.2,5,0)
+112 ;;=THIAMIN MG^NJ3,1^^1;5^K:+X'=X!(X>3)!(X<0)!(X?.E1"."2N.N) X
+113 ;;^DD(112.2,5,3)
+114 ;;=TYPE A NUMBER BETWEEN 0 AND 3
+115 ;;^DD(112.2,5,21,0)
+116 ;;=^^2^2^2880717^^
+117 ;;^DD(112.2,5,21,1,0)
+118 ;;=This field represents the recommended amount of Thiamin per
+119 ;;^DD(112.2,5,21,2,0)
+120 ;;=day for this RDA group.
+121 ;;^DD(112.2,6,0)
+122 ;;=RIBOFLAVIN MG^NJ3,1^^1;6^K:+X'=X!(X>3)!(X<0)!(X?.E1"."2N.N) X
+123 ;;^DD(112.2,6,3)
+124 ;;=TYPE A NUMBER BETWEEN 0 AND 3
+125 ;;^DD(112.2,6,21,0)
+126 ;;=^^2^2^2880717^^
+127 ;;^DD(112.2,6,21,1,0)
+128 ;;=This field represents the recommended amount of Riboflavin per
+129 ;;^DD(112.2,6,21,2,0)
+130 ;;=day for this RDA group.
+131 ;;^DD(112.2,7,0)
+132 ;;=NIACIN MG^NJ2,0^^1;7^K:+X'=X!(X>50)!(X<0)!(X?.E1"."1N.N) X
+133 ;;^DD(112.2,7,3)
+134 ;;=TYPE A WHOLE NUMBER BETWEEN 0 AND 50
+135 ;;^DD(112.2,7,21,0)
+136 ;;=^^2^2^2880717^^
+137 ;;^DD(112.2,7,21,1,0)
+138 ;;=This field represents the recommended amount of Niacin per
+139 ;;^DD(112.2,7,21,2,0)
+140 ;;=day for this RDA group.
+141 ;;^DD(112.2,8,0)
+142 ;;=VITAMIN B6 MG^NJ3,1^^1;8^K:+X'=X!(X>5)!(X<0)!(X?.E1"."2N.N) X
+143 ;;^DD(112.2,8,3)
+144 ;;=TYPE A NUMBER BETWEEN 0 AND 5
+145 ;;^DD(112.2,8,21,0)
+146 ;;=^^2^2^2880717^^
+147 ;;^DD(112.2,8,21,1,0)
+148 ;;=This field represents the recommended amount of Vitamin B6 per
+149 ;;^DD(112.2,8,21,2,0)
+150 ;;=day for this RDA group.