FHINI0I5 ; ; 11-OCT-1995
;;5.0;Dietetics;;Oct 11, 1995
Q:'DIFQ(114) 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(114.01,1,21,1,0)
;;=This field contains the quantity of the ingredient required. The
;;^DD(114.01,1,21,2,0)
;;=units are the 'Recipe Unit' as contained in the Ingredient file
;;^DD(114.01,1,21,3,0)
;;=for this ingredient.
;;^DD(114.01,1,"DT")
;;=2860812
;;^DD(114.01,2,0)
;;=ASSOCIATED NUTRIENT^P112'^FHNU(^0;3^Q
;;^DD(114.01,2,21,0)
;;=^^3^3^2930423^
;;^DD(114.01,2,21,1,0)
;;=This field is a pointer to the Nutrient file (112) and indicates
;;^DD(114.01,2,21,2,0)
;;=the nutrient most closely associated with this ingredient after
;;^DD(114.01,2,21,3,0)
;;=preparation.
;;^DD(114.01,2,"DT")
;;=2921111
;;^DD(114.01,3,0)
;;=NUTRIENT AMOUNT IN LBS.^NJ10,5^^0;4^K:+X'=X!(X>9999)!(X<0)!(X?.E1"."6N.N) X
;;^DD(114.01,3,3)
;;=Type a Number between 0 and 9999, 5 Decimal Digits
;;^DD(114.01,3,21,0)
;;=^^4^4^2930423^
;;^DD(114.01,3,21,1,0)
;;=This value is the amount of the ingredient, in pounds, for
;;^DD(114.01,3,21,2,0)
;;=Nutrient Analysis purposes after taking into account removal
;;^DD(114.01,3,21,3,0)
;;=of non-edible amounts of the ingredient and any expansion or
;;^DD(114.01,3,21,4,0)
;;=shrinkage due to preparation.
;;^DD(114.01,3,"DT")
;;=2921111
;;^DD(114.0103,0)
;;=DIABETIC EXCHANGE SUB-FIELD^^1^2
;;^DD(114.0103,0,"DT")
;;=2950428
;;^DD(114.0103,0,"IX","B",114.0103,.01)
;;=
;;^DD(114.0103,0,"NM","DIABETIC EXCHANGE")
;;=
;;^DD(114.0103,0,"UP")
;;=114
;;^DD(114.0103,.01,0)
;;=DIABETIC EXCHANGE^MP114.1'^FH(114.1,^0;1^Q
;;^DD(114.0103,.01,1,0)
;;=^.1
;;^DD(114.0103,.01,1,1,0)
;;=114.0103^B
;;^DD(114.0103,.01,1,1,1)
;;=S ^FH(114,DA(1),"DBX","B",$E(X,1,30),DA)=""
;;^DD(114.0103,.01,1,1,2)
;;=K ^FH(114,DA(1),"DBX","B",$E(X,1,30),DA)
;;^DD(114.0103,.01,21,0)
;;=^^2^2^2950428^^^^
;;^DD(114.0103,.01,21,1,0)
;;=This multiple contains the Diabetic exchanges associated with
;;^DD(114.0103,.01,21,2,0)
;;=this recipe.
;;^DD(114.0103,.01,"DT")
;;=2950428
;;^DD(114.0103,1,0)
;;=QUANTITY^RNJ1,0^^0;2^K:+X'=X!(X>5)!(X<1)!(X?.E1"."1N.N) X
;;^DD(114.0103,1,3)
;;=Type a Number between 1 and 5, 0 Decimal Digits
;;^DD(114.0103,1,21,0)
;;=^^3^3^2950501^^^^
;;^DD(114.0103,1,21,1,0)
;;=This is the quantity of the Diabetic exchange that needs to be
;;^DD(114.0103,1,21,2,0)
;;=omitted when the recipe is used in a meal for the Diabetic
;;^DD(114.0103,1,21,3,0)
;;=calculated diets.
;;^DD(114.0103,1,"DT")
;;=2950428
;;^DD(114.02,0)
;;=DIRECTIONS SUB-FIELD^NL^.01^1
;;^DD(114.02,0,"NM","DIRECTIONS")
;;=
;;^DD(114.02,0,"UP")
;;=114
;;^DD(114.02,.01,0)
;;=DIRECTIONS^W^^0;1^Q
;;^DD(114.02,.01,21,0)
;;=^^2^2^2880717^
;;^DD(114.02,.01,21,1,0)
;;=This field contains the text of the recipe preparation
;;^DD(114.02,.01,21,2,0)
;;=instructions.
;;^DD(114.02,.01,"DT")
;;=2840822
;;^DD(114.03,0)
;;=EMBEDDED RECIPE SUB-FIELD^NL^1^2
;;^DD(114.03,0,"NM","EMBEDDED RECIPE")
;;=
;;^DD(114.03,0,"UP")
;;=114
;;^DD(114.03,.01,0)
;;=EMBEDDED RECIPE^M*P114'X^FH(114,^0;1^S DIC("S")="I +Y'=D0" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
;;^DD(114.03,.01,12)
;;=Don't allow selection of current recipe
;;^DD(114.03,.01,12.1)
;;=S DIC("S")="I +Y'=D0"
;;^DD(114.03,.01,21,0)
;;=^^3^3^2880914^^
;;^DD(114.03,.01,21,1,0)
;;=This field contains the name of a recipe which is to be
;;^DD(114.03,.01,21,2,0)
;;=embedded in the present one. The embedded recipe cannot be
;;^DD(114.03,.01,21,3,0)
;;=the same as the present recipe.
;;^DD(114.03,.01,"DT")
;;=2860918
;;^DD(114.03,1,0)
;;=NO. OF PORTIONS^RNJ7,2^^0;2^K:+X'=X!(X>9999)!(X<0)!(X?.E1"."3N.N) X
;;^DD(114.03,1,3)
;;=TYPE A NUMBER BETWEEN 0 AND 9999
;;^DD(114.03,1,21,0)
;;=^^2^2^2881117^^
;;^DD(114.03,1,21,1,0)
;;=This is the number of portions of the embedded recipe required
;;^DD(114.03,1,21,2,0)
;;=in the present recipe.
;;^DD(114.03,1,"DT")
;;=2851222
;;^DD(114.05,0)
;;=EQUIPMENT SUB-FIELD^^.01^1
;;^DD(114.05,0,"IX","B",114.05,.01)
;;=
;;^DD(114.05,0,"NM","EQUIPMENT")
;;=
;;^DD(114.05,0,"UP")
;;=114
;;^DD(114.05,.01,0)
;;=EQUIPMENT^MP114.4^FH(114.4,^0;1^Q
;;^DD(114.05,.01,1,0)
;;=^.1
;;^DD(114.05,.01,1,1,0)
;;=114.05^B
;;^DD(114.05,.01,1,1,1)
;;=S ^FH(114,DA(1),"E","B",$E(X,1,30),DA)=""
;;^DD(114.05,.01,1,1,2)
;;=K ^FH(114,DA(1),"E","B",$E(X,1,30),DA)
;;^DD(114.05,.01,1,1,"%D",0)
;;=^^1^1^2911118^
;;^DD(114.05,.01,1,1,"%D",1,0)
;;=This is the normal B cross-reference of the EQUIPMENT field.
;;^DD(114.05,.01,21,0)
;;=^^3^3^2880919^
;;^DD(114.05,.01,21,1,0)
;;=This field contains a pointer to the Equipment file (114.4) and
;;^DD(114.05,.01,21,2,0)
;;=indicates an item of equipment used in the production of this
FHINI0I5 ; ; 11-OCT-1995
+1 ;;5.0;Dietetics;;Oct 11, 1995
+2 IF 'DIFQ(114)
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(114.01,1,21,1,0)
+2 ;;=This field contains the quantity of the ingredient required. The
+3 ;;^DD(114.01,1,21,2,0)
+4 ;;=units are the 'Recipe Unit' as contained in the Ingredient file
+5 ;;^DD(114.01,1,21,3,0)
+6 ;;=for this ingredient.
+7 ;;^DD(114.01,1,"DT")
+8 ;;=2860812
+9 ;;^DD(114.01,2,0)
+10 ;;=ASSOCIATED NUTRIENT^P112'^FHNU(^0;3^Q
+11 ;;^DD(114.01,2,21,0)
+12 ;;=^^3^3^2930423^
+13 ;;^DD(114.01,2,21,1,0)
+14 ;;=This field is a pointer to the Nutrient file (112) and indicates
+15 ;;^DD(114.01,2,21,2,0)
+16 ;;=the nutrient most closely associated with this ingredient after
+17 ;;^DD(114.01,2,21,3,0)
+18 ;;=preparation.
+19 ;;^DD(114.01,2,"DT")
+20 ;;=2921111
+21 ;;^DD(114.01,3,0)
+22 ;;=NUTRIENT AMOUNT IN LBS.^NJ10,5^^0;4^K:+X'=X!(X>9999)!(X<0)!(X?.E1"."6N.N) X
+23 ;;^DD(114.01,3,3)
+24 ;;=Type a Number between 0 and 9999, 5 Decimal Digits
+25 ;;^DD(114.01,3,21,0)
+26 ;;=^^4^4^2930423^
+27 ;;^DD(114.01,3,21,1,0)
+28 ;;=This value is the amount of the ingredient, in pounds, for
+29 ;;^DD(114.01,3,21,2,0)
+30 ;;=Nutrient Analysis purposes after taking into account removal
+31 ;;^DD(114.01,3,21,3,0)
+32 ;;=of non-edible amounts of the ingredient and any expansion or
+33 ;;^DD(114.01,3,21,4,0)
+34 ;;=shrinkage due to preparation.
+35 ;;^DD(114.01,3,"DT")
+36 ;;=2921111
+37 ;;^DD(114.0103,0)
+38 ;;=DIABETIC EXCHANGE SUB-FIELD^^1^2
+39 ;;^DD(114.0103,0,"DT")
+40 ;;=2950428
+41 ;;^DD(114.0103,0,"IX","B",114.0103,.01)
+42 ;;=
+43 ;;^DD(114.0103,0,"NM","DIABETIC EXCHANGE")
+44 ;;=
+45 ;;^DD(114.0103,0,"UP")
+46 ;;=114
+47 ;;^DD(114.0103,.01,0)
+48 ;;=DIABETIC EXCHANGE^MP114.1'^FH(114.1,^0;1^Q
+49 ;;^DD(114.0103,.01,1,0)
+50 ;;=^.1
+51 ;;^DD(114.0103,.01,1,1,0)
+52 ;;=114.0103^B
+53 ;;^DD(114.0103,.01,1,1,1)
+54 ;;=S ^FH(114,DA(1),"DBX","B",$E(X,1,30),DA)=""
+55 ;;^DD(114.0103,.01,1,1,2)
+56 ;;=K ^FH(114,DA(1),"DBX","B",$E(X,1,30),DA)
+57 ;;^DD(114.0103,.01,21,0)
+58 ;;=^^2^2^2950428^^^^
+59 ;;^DD(114.0103,.01,21,1,0)
+60 ;;=This multiple contains the Diabetic exchanges associated with
+61 ;;^DD(114.0103,.01,21,2,0)
+62 ;;=this recipe.
+63 ;;^DD(114.0103,.01,"DT")
+64 ;;=2950428
+65 ;;^DD(114.0103,1,0)
+66 ;;=QUANTITY^RNJ1,0^^0;2^K:+X'=X!(X>5)!(X<1)!(X?.E1"."1N.N) X
+67 ;;^DD(114.0103,1,3)
+68 ;;=Type a Number between 1 and 5, 0 Decimal Digits
+69 ;;^DD(114.0103,1,21,0)
+70 ;;=^^3^3^2950501^^^^
+71 ;;^DD(114.0103,1,21,1,0)
+72 ;;=This is the quantity of the Diabetic exchange that needs to be
+73 ;;^DD(114.0103,1,21,2,0)
+74 ;;=omitted when the recipe is used in a meal for the Diabetic
+75 ;;^DD(114.0103,1,21,3,0)
+76 ;;=calculated diets.
+77 ;;^DD(114.0103,1,"DT")
+78 ;;=2950428
+79 ;;^DD(114.02,0)
+80 ;;=DIRECTIONS SUB-FIELD^NL^.01^1
+81 ;;^DD(114.02,0,"NM","DIRECTIONS")
+82 ;;=
+83 ;;^DD(114.02,0,"UP")
+84 ;;=114
+85 ;;^DD(114.02,.01,0)
+86 ;;=DIRECTIONS^W^^0;1^Q
+87 ;;^DD(114.02,.01,21,0)
+88 ;;=^^2^2^2880717^
+89 ;;^DD(114.02,.01,21,1,0)
+90 ;;=This field contains the text of the recipe preparation
+91 ;;^DD(114.02,.01,21,2,0)
+92 ;;=instructions.
+93 ;;^DD(114.02,.01,"DT")
+94 ;;=2840822
+95 ;;^DD(114.03,0)
+96 ;;=EMBEDDED RECIPE SUB-FIELD^NL^1^2
+97 ;;^DD(114.03,0,"NM","EMBEDDED RECIPE")
+98 ;;=
+99 ;;^DD(114.03,0,"UP")
+100 ;;=114
+101 ;;^DD(114.03,.01,0)
+102 ;;=EMBEDDED RECIPE^M*P114'X^FH(114,^0;1^S DIC("S")="I +Y'=D0" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
+103 ;;^DD(114.03,.01,12)
+104 ;;=Don't allow selection of current recipe
+105 ;;^DD(114.03,.01,12.1)
+106 ;;=S DIC("S")="I +Y'=D0"
+107 ;;^DD(114.03,.01,21,0)
+108 ;;=^^3^3^2880914^^
+109 ;;^DD(114.03,.01,21,1,0)
+110 ;;=This field contains the name of a recipe which is to be
+111 ;;^DD(114.03,.01,21,2,0)
+112 ;;=embedded in the present one. The embedded recipe cannot be
+113 ;;^DD(114.03,.01,21,3,0)
+114 ;;=the same as the present recipe.
+115 ;;^DD(114.03,.01,"DT")
+116 ;;=2860918
+117 ;;^DD(114.03,1,0)
+118 ;;=NO. OF PORTIONS^RNJ7,2^^0;2^K:+X'=X!(X>9999)!(X<0)!(X?.E1"."3N.N) X
+119 ;;^DD(114.03,1,3)
+120 ;;=TYPE A NUMBER BETWEEN 0 AND 9999
+121 ;;^DD(114.03,1,21,0)
+122 ;;=^^2^2^2881117^^
+123 ;;^DD(114.03,1,21,1,0)
+124 ;;=This is the number of portions of the embedded recipe required
+125 ;;^DD(114.03,1,21,2,0)
+126 ;;=in the present recipe.
+127 ;;^DD(114.03,1,"DT")
+128 ;;=2851222
+129 ;;^DD(114.05,0)
+130 ;;=EQUIPMENT SUB-FIELD^^.01^1
+131 ;;^DD(114.05,0,"IX","B",114.05,.01)
+132 ;;=
+133 ;;^DD(114.05,0,"NM","EQUIPMENT")
+134 ;;=
+135 ;;^DD(114.05,0,"UP")
+136 ;;=114
+137 ;;^DD(114.05,.01,0)
+138 ;;=EQUIPMENT^MP114.4^FH(114.4,^0;1^Q
+139 ;;^DD(114.05,.01,1,0)
+140 ;;=^.1
+141 ;;^DD(114.05,.01,1,1,0)
+142 ;;=114.05^B
+143 ;;^DD(114.05,.01,1,1,1)
+144 ;;=S ^FH(114,DA(1),"E","B",$E(X,1,30),DA)=""
+145 ;;^DD(114.05,.01,1,1,2)
+146 ;;=K ^FH(114,DA(1),"E","B",$E(X,1,30),DA)
+147 ;;^DD(114.05,.01,1,1,"%D",0)
+148 ;;=^^1^1^2911118^
+149 ;;^DD(114.05,.01,1,1,"%D",1,0)
+150 ;;=This is the normal B cross-reference of the EQUIPMENT field.
+151 ;;^DD(114.05,.01,21,0)
+152 ;;=^^3^3^2880919^
+153 ;;^DD(114.05,.01,21,1,0)
+154 ;;=This field contains a pointer to the Equipment file (114.4) and
+155 ;;^DD(114.05,.01,21,2,0)
+156 ;;=indicates an item of equipment used in the production of this