FHINI0L8 ; ; 11-OCT-1995
;;5.0;Dietetics;;Oct 11, 1995
Q:'DIFQ(116.1) 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(116.1,0,"GL")
;;=^FH(116.1,
;;^DIC("B","MEAL",116.1)
;;=
;;^DIC(116.1,"%D",0)
;;=^^6^6^2880515^
;;^DIC(116.1,"%D",1,0)
;;=This file contains the various meals served by the institution. A
;;^DIC(116.1,"%D",2,0)
;;=meal consists of all recipes prepared for a breakfast, noon, or
;;^DIC(116.1,"%D",3,0)
;;=evening meal as well as the production diets associated with
;;^DIC(116.1,"%D",4,0)
;;=each recipe. In turn, the production diet entry may indicate the
;;^DIC(116.1,"%D",5,0)
;;=percentage of that recipe that is to be served in a cafeteria
;;^DIC(116.1,"%D",6,0)
;;=or by tray.
;;^DD(116.1,0)
;;=FIELD^^1^2
;;^DD(116.1,0,"DT")
;;=2950329
;;^DD(116.1,0,"IX","B",116.1,.01)
;;=
;;^DD(116.1,0,"NM","MEAL")
;;=
;;^DD(116.1,0,"PT",112.62,2)
;;=
;;^DD(116.1,0,"PT",116.01,1)
;;=
;;^DD(116.1,0,"PT",116.01,2)
;;=
;;^DD(116.1,0,"PT",116.01,3)
;;=
;;^DD(116.1,0,"PT",116.3,2)
;;=
;;^DD(116.1,0,"PT",116.3,3)
;;=
;;^DD(116.1,0,"PT",116.3,4)
;;=
;;^DD(116.1,.01,0)
;;=NAME^RF^^0;1^K:$L(X)>30!(X?.N)!($L(X)<3)!'(X'?1P.E)!(X'?.ANP) X
;;^DD(116.1,.01,1,0)
;;=^.1
;;^DD(116.1,.01,1,1,0)
;;=116.1^B
;;^DD(116.1,.01,1,1,1)
;;=S ^FH(116.1,"B",$E(X,1,30),DA)=""
;;^DD(116.1,.01,1,1,2)
;;=K ^FH(116.1,"B",$E(X,1,30),DA)
;;^DD(116.1,.01,1,1,"%D",0)
;;=^^1^1^2911118^
;;^DD(116.1,.01,1,1,"%D",1,0)
;;=This is the normal B cross-reference of the NAME field.
;;^DD(116.1,.01,3)
;;=NAME MUST BE 3-30 CHARACTERS, NOT NUMERIC OR STARTING WITH PUNCTUATION
;;^DD(116.1,.01,21,0)
;;=^^3^3^2880710^
;;^DD(116.1,.01,21,1,0)
;;=This is the name of a meal which is a collection of all
;;^DD(116.1,.01,21,2,0)
;;=recipes which will be served at a given breakfast, noon
;;^DD(116.1,.01,21,3,0)
;;=or evening meal.
;;^DD(116.1,.01,"DEL",1,0)
;;=I DUZ(0)'["@",'$D(^XUSEC("FHMGR",DUZ))
;;^DD(116.1,.01,"DT")
;;=2930224
;;^DD(116.1,1,0)
;;=RECIPE^116.11P^^RE;0
;;^DD(116.1,1,21,0)
;;=^^2^2^2931220^^^^
;;^DD(116.1,1,21,1,0)
;;=This multiple contains the various recipes which will be
;;^DD(116.1,1,21,2,0)
;;=served for the meal.
;;^DD(116.11,0)
;;=RECIPE SUB-FIELD^NL^10^5
;;^DD(116.11,0,"DT")
;;=2950329
;;^DD(116.11,0,"IX","B",116.11,.01)
;;=
;;^DD(116.11,0,"NM","RECIPE")
;;=
;;^DD(116.11,0,"UP")
;;=116.1
;;^DD(116.11,.01,0)
;;=RECIPE^MP114'^FH(114,^0;1^Q
;;^DD(116.11,.01,1,0)
;;=^.1
;;^DD(116.11,.01,1,1,0)
;;=116.11^B
;;^DD(116.11,.01,1,1,1)
;;=S ^FH(116.1,DA(1),"RE","B",$E(X,1,30),DA)=""
;;^DD(116.11,.01,1,1,2)
;;=K ^FH(116.1,DA(1),"RE","B",$E(X,1,30),DA)
;;^DD(116.11,.01,1,1,"%D",0)
;;=^^1^1^2911118^
;;^DD(116.11,.01,1,1,"%D",1,0)
;;=This is the normal B cross-reference of the RECIPE field.
;;^DD(116.11,.01,21,0)
;;=^^1^1^2880710^
;;^DD(116.11,.01,21,1,0)
;;=This is the recipe (File 114) which will be served.
;;^DD(116.11,.01,"DT")
;;=2880919
;;^DD(116.11,1,0)
;;=PRODUCTION DIETS^RFX^^0;2^K:$L(X)>200!($L(X)<2) X I $D(X) D EN2^FHPRC1
;;^DD(116.11,1,3)
;;=
;;^DD(116.11,1,4)
;;=D EN3^FHPRC1
;;^DD(116.11,1,21,0)
;;=^^4^4^2931222^^^^
;;^DD(116.11,1,21,1,0)
;;=This is a list of the production diets which will receive the
;;^DD(116.11,1,21,2,0)
;;=recipe. It is a syntactically complex field containing the
;;^DD(116.11,1,21,3,0)
;;=production diet code and any specialized tray and cafeteria %'s
;;^DD(116.11,1,21,4,0)
;;=associated with that production diet.
;;^DD(116.11,1,"DT")
;;=2851217
;;^DD(116.11,2,0)
;;=POPULARITY^116.112P^^D;0
;;^DD(116.11,2,21,0)
;;=^^2^2^2911212^^^
;;^DD(116.11,2,21,1,0)
;;=This mutiple contains popularity (or selection percentages) for
;;^DD(116.11,2,21,2,0)
;;=tray and cafeteria for each Service Point.
;;^DD(116.11,3,0)
;;=CATEGORY^RP114.1'^FH(114.1,^0;3^Q
;;^DD(116.11,3,21,0)
;;=^^1^1^2940412^^
;;^DD(116.11,3,21,1,0)
;;=This is the Recipe Category (File 114.1) for this recipe in this meal.
;;^DD(116.11,3,"DT")
;;=2940120
;;^DD(116.11,10,0)
;;=RECIPE CATEGORY^116.12PA^^R;0
;;^DD(116.11,10,21,0)
;;=^^3^3^2950605^^
;;^DD(116.11,10,21,1,0)
;;=This is a list of different recipe categories which may
;;^DD(116.11,10,21,2,0)
;;=characterize this recipe. The multiple also contains the
;;^DD(116.11,10,21,3,0)
;;=production diets to which this category applies.
;;^DD(116.112,0)
;;=POPULARITY SUB-FIELD^^1^2
;;^DD(116.112,0,"DT")
;;=2911203
;;^DD(116.112,0,"IX","B",116.112,.01)
;;=
;;^DD(116.112,0,"NM","POPULARITY")
;;=
;;^DD(116.112,0,"UP")
;;=116.11
;;^DD(116.112,.01,0)
;;=SERVICE POINT^MP119.72'X^FH(119.72,^0;1^I $D(X) S DINUM=X
;;^DD(116.112,.01,1,0)
;;=^.1
;;^DD(116.112,.01,1,1,0)
;;=116.112^B
;;^DD(116.112,.01,1,1,1)
;;=S ^FH(116.1,DA(2),"RE",DA(1),"D","B",$E(X,1,30),DA)=""
FHINI0L8 ; ; 11-OCT-1995
+1 ;;5.0;Dietetics;;Oct 11, 1995
+2 IF 'DIFQ(116.1)
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(116.1,0,"GL")
+2 ;;=^FH(116.1,
+3 ;;^DIC("B","MEAL",116.1)
+4 ;;=
+5 ;;^DIC(116.1,"%D",0)
+6 ;;=^^6^6^2880515^
+7 ;;^DIC(116.1,"%D",1,0)
+8 ;;=This file contains the various meals served by the institution. A
+9 ;;^DIC(116.1,"%D",2,0)
+10 ;;=meal consists of all recipes prepared for a breakfast, noon, or
+11 ;;^DIC(116.1,"%D",3,0)
+12 ;;=evening meal as well as the production diets associated with
+13 ;;^DIC(116.1,"%D",4,0)
+14 ;;=each recipe. In turn, the production diet entry may indicate the
+15 ;;^DIC(116.1,"%D",5,0)
+16 ;;=percentage of that recipe that is to be served in a cafeteria
+17 ;;^DIC(116.1,"%D",6,0)
+18 ;;=or by tray.
+19 ;;^DD(116.1,0)
+20 ;;=FIELD^^1^2
+21 ;;^DD(116.1,0,"DT")
+22 ;;=2950329
+23 ;;^DD(116.1,0,"IX","B",116.1,.01)
+24 ;;=
+25 ;;^DD(116.1,0,"NM","MEAL")
+26 ;;=
+27 ;;^DD(116.1,0,"PT",112.62,2)
+28 ;;=
+29 ;;^DD(116.1,0,"PT",116.01,1)
+30 ;;=
+31 ;;^DD(116.1,0,"PT",116.01,2)
+32 ;;=
+33 ;;^DD(116.1,0,"PT",116.01,3)
+34 ;;=
+35 ;;^DD(116.1,0,"PT",116.3,2)
+36 ;;=
+37 ;;^DD(116.1,0,"PT",116.3,3)
+38 ;;=
+39 ;;^DD(116.1,0,"PT",116.3,4)
+40 ;;=
+41 ;;^DD(116.1,.01,0)
+42 ;;=NAME^RF^^0;1^K:$L(X)>30!(X?.N)!($L(X)<3)!'(X'?1P.E)!(X'?.ANP) X
+43 ;;^DD(116.1,.01,1,0)
+44 ;;=^.1
+45 ;;^DD(116.1,.01,1,1,0)
+46 ;;=116.1^B
+47 ;;^DD(116.1,.01,1,1,1)
+48 ;;=S ^FH(116.1,"B",$E(X,1,30),DA)=""
+49 ;;^DD(116.1,.01,1,1,2)
+50 ;;=K ^FH(116.1,"B",$E(X,1,30),DA)
+51 ;;^DD(116.1,.01,1,1,"%D",0)
+52 ;;=^^1^1^2911118^
+53 ;;^DD(116.1,.01,1,1,"%D",1,0)
+54 ;;=This is the normal B cross-reference of the NAME field.
+55 ;;^DD(116.1,.01,3)
+56 ;;=NAME MUST BE 3-30 CHARACTERS, NOT NUMERIC OR STARTING WITH PUNCTUATION
+57 ;;^DD(116.1,.01,21,0)
+58 ;;=^^3^3^2880710^
+59 ;;^DD(116.1,.01,21,1,0)
+60 ;;=This is the name of a meal which is a collection of all
+61 ;;^DD(116.1,.01,21,2,0)
+62 ;;=recipes which will be served at a given breakfast, noon
+63 ;;^DD(116.1,.01,21,3,0)
+64 ;;=or evening meal.
+65 ;;^DD(116.1,.01,"DEL",1,0)
+66 ;;=I DUZ(0)'["@",'$D(^XUSEC("FHMGR",DUZ))
+67 ;;^DD(116.1,.01,"DT")
+68 ;;=2930224
+69 ;;^DD(116.1,1,0)
+70 ;;=RECIPE^116.11P^^RE;0
+71 ;;^DD(116.1,1,21,0)
+72 ;;=^^2^2^2931220^^^^
+73 ;;^DD(116.1,1,21,1,0)
+74 ;;=This multiple contains the various recipes which will be
+75 ;;^DD(116.1,1,21,2,0)
+76 ;;=served for the meal.
+77 ;;^DD(116.11,0)
+78 ;;=RECIPE SUB-FIELD^NL^10^5
+79 ;;^DD(116.11,0,"DT")
+80 ;;=2950329
+81 ;;^DD(116.11,0,"IX","B",116.11,.01)
+82 ;;=
+83 ;;^DD(116.11,0,"NM","RECIPE")
+84 ;;=
+85 ;;^DD(116.11,0,"UP")
+86 ;;=116.1
+87 ;;^DD(116.11,.01,0)
+88 ;;=RECIPE^MP114'^FH(114,^0;1^Q
+89 ;;^DD(116.11,.01,1,0)
+90 ;;=^.1
+91 ;;^DD(116.11,.01,1,1,0)
+92 ;;=116.11^B
+93 ;;^DD(116.11,.01,1,1,1)
+94 ;;=S ^FH(116.1,DA(1),"RE","B",$E(X,1,30),DA)=""
+95 ;;^DD(116.11,.01,1,1,2)
+96 ;;=K ^FH(116.1,DA(1),"RE","B",$E(X,1,30),DA)
+97 ;;^DD(116.11,.01,1,1,"%D",0)
+98 ;;=^^1^1^2911118^
+99 ;;^DD(116.11,.01,1,1,"%D",1,0)
+100 ;;=This is the normal B cross-reference of the RECIPE field.
+101 ;;^DD(116.11,.01,21,0)
+102 ;;=^^1^1^2880710^
+103 ;;^DD(116.11,.01,21,1,0)
+104 ;;=This is the recipe (File 114) which will be served.
+105 ;;^DD(116.11,.01,"DT")
+106 ;;=2880919
+107 ;;^DD(116.11,1,0)
+108 ;;=PRODUCTION DIETS^RFX^^0;2^K:$L(X)>200!($L(X)<2) X I $D(X) D EN2^FHPRC1
+109 ;;^DD(116.11,1,3)
+110 ;;=
+111 ;;^DD(116.11,1,4)
+112 ;;=D EN3^FHPRC1
+113 ;;^DD(116.11,1,21,0)
+114 ;;=^^4^4^2931222^^^^
+115 ;;^DD(116.11,1,21,1,0)
+116 ;;=This is a list of the production diets which will receive the
+117 ;;^DD(116.11,1,21,2,0)
+118 ;;=recipe. It is a syntactically complex field containing the
+119 ;;^DD(116.11,1,21,3,0)
+120 ;;=production diet code and any specialized tray and cafeteria %'s
+121 ;;^DD(116.11,1,21,4,0)
+122 ;;=associated with that production diet.
+123 ;;^DD(116.11,1,"DT")
+124 ;;=2851217
+125 ;;^DD(116.11,2,0)
+126 ;;=POPULARITY^116.112P^^D;0
+127 ;;^DD(116.11,2,21,0)
+128 ;;=^^2^2^2911212^^^
+129 ;;^DD(116.11,2,21,1,0)
+130 ;;=This mutiple contains popularity (or selection percentages) for
+131 ;;^DD(116.11,2,21,2,0)
+132 ;;=tray and cafeteria for each Service Point.
+133 ;;^DD(116.11,3,0)
+134 ;;=CATEGORY^RP114.1'^FH(114.1,^0;3^Q
+135 ;;^DD(116.11,3,21,0)
+136 ;;=^^1^1^2940412^^
+137 ;;^DD(116.11,3,21,1,0)
+138 ;;=This is the Recipe Category (File 114.1) for this recipe in this meal.
+139 ;;^DD(116.11,3,"DT")
+140 ;;=2940120
+141 ;;^DD(116.11,10,0)
+142 ;;=RECIPE CATEGORY^116.12PA^^R;0
+143 ;;^DD(116.11,10,21,0)
+144 ;;=^^3^3^2950605^^
+145 ;;^DD(116.11,10,21,1,0)
+146 ;;=This is a list of different recipe categories which may
+147 ;;^DD(116.11,10,21,2,0)
+148 ;;=characterize this recipe. The multiple also contains the
+149 ;;^DD(116.11,10,21,3,0)
+150 ;;=production diets to which this category applies.
+151 ;;^DD(116.112,0)
+152 ;;=POPULARITY SUB-FIELD^^1^2
+153 ;;^DD(116.112,0,"DT")
+154 ;;=2911203
+155 ;;^DD(116.112,0,"IX","B",116.112,.01)
+156 ;;=
+157 ;;^DD(116.112,0,"NM","POPULARITY")
+158 ;;=
+159 ;;^DD(116.112,0,"UP")
+160 ;;=116.11
+161 ;;^DD(116.112,.01,0)
+162 ;;=SERVICE POINT^MP119.72'X^FH(119.72,^0;1^I $D(X) S DINUM=X
+163 ;;^DD(116.112,.01,1,0)
+164 ;;=^.1
+165 ;;^DD(116.112,.01,1,1,0)
+166 ;;=116.112^B
+167 ;;^DD(116.112,.01,1,1,1)
+168 ;;=S ^FH(116.1,DA(2),"RE",DA(1),"D","B",$E(X,1,30),DA)=""