FHINI004 ; ; 11-OCT-1995
;;5.0;Dietetics;;Oct 11, 1995
Q:'DIFQ(111.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(111.1,0,"GL")
;;=^FH(111.1,
;;^DIC("B","DIET PATTERNS",111.1)
;;=
;;^DIC(111.1,"%D",0)
;;=^^2^2^2940121^
;;^DIC(111.1,"%D",1,0)
;;=This file contains diet patterns. The entries for a specific pattern
;;^DIC(111.1,"%D",2,0)
;;=represent changes from the production diet for this particular pattern.
;;^DD(111.1,0)
;;=FIELD^^19^15
;;^DD(111.1,0,"DDA")
;;=N
;;^DD(111.1,0,"DT")
;;=2950418
;;^DD(111.1,0,"IX","B",111.1,.01)
;;=
;;^DD(111.1,0,"NM","DIET PATTERNS")
;;=
;;^DD(111.1,.01,0)
;;=NAME^RF^^0;1^K:$L(X)>70!($L(X)<3)!'(X'?1P.E) X
;;^DD(111.1,.01,1,0)
;;=^.1
;;^DD(111.1,.01,1,1,0)
;;=111.1^B
;;^DD(111.1,.01,1,1,1)
;;=S ^FH(111.1,"B",$E(X,1,30),DA)=""
;;^DD(111.1,.01,1,1,2)
;;=K ^FH(111.1,"B",$E(X,1,30),DA)
;;^DD(111.1,.01,3)
;;=Answer must be 3-70 characters in length.
;;^DD(111.1,.01,21,0)
;;=^^1^1^2940721^^^^
;;^DD(111.1,.01,21,1,0)
;;=This field contains the names of the diet or the diet modification ordered.
;;^DD(111.1,.01,"DT")
;;=2940103
;;^DD(111.1,1,0)
;;=DIET1^P111'^FH(111,^0;2^Q
;;^DD(111.1,1,21,0)
;;=^^2^2^2940526^^^^
;;^DD(111.1,1,21,1,0)
;;=This is the first diet modification selected from the Diets (111)
;;^DD(111.1,1,21,2,0)
;;=file.
;;^DD(111.1,1,"DT")
;;=2931130
;;^DD(111.1,2,0)
;;=DIET2^P111'^FH(111,^0;3^Q
;;^DD(111.1,2,21,0)
;;=^^2^2^2940526^^
;;^DD(111.1,2,21,1,0)
;;=This is the second diet modification selected from the Diets (111)
;;^DD(111.1,2,21,2,0)
;;=file.
;;^DD(111.1,2,"DT")
;;=2931130
;;^DD(111.1,3,0)
;;=DIET3^P111'^FH(111,^0;4^Q
;;^DD(111.1,3,21,0)
;;=^^2^2^2940526^
;;^DD(111.1,3,21,1,0)
;;=This is the third diet modification selected from the Diets (111)
;;^DD(111.1,3,21,2,0)
;;=file.
;;^DD(111.1,3,"DT")
;;=2931130
;;^DD(111.1,4,0)
;;=DIET4^P111'^FH(111,^0;5^Q
;;^DD(111.1,4,21,0)
;;=^^2^2^2940526^
;;^DD(111.1,4,21,1,0)
;;=This is the fourth diet modification selected from the Diets (111)
;;^DD(111.1,4,21,2,0)
;;=file.
;;^DD(111.1,4,"DT")
;;=2931130
;;^DD(111.1,5,0)
;;=DIET5^P111'^FH(111,^0;6^Q
;;^DD(111.1,5,21,0)
;;=^^2^2^2940526^
;;^DD(111.1,5,21,1,0)
;;=This is the fifth diet modification selected from the Diets (111)
;;^DD(111.1,5,21,2,0)
;;=file.
;;^DD(111.1,5,"DT")
;;=2931130
;;^DD(111.1,10,0)
;;=PRODUCTION DIET^P116.2'^FH(116.2,^0;7^Q
;;^DD(111.1,10,21,0)
;;=^^4^4^2950707^^
;;^DD(111.1,10,21,1,0)
;;=This is a pointer to the Production Diet (116.2) file and is the
;;^DD(111.1,10,21,2,0)
;;=outcome of the 'diet recoding' algorithm which is based upon the
;;^DD(111.1,10,21,3,0)
;;=diet modifications selected. It is not present for NPO types of
;;^DD(111.1,10,21,4,0)
;;=orders.
;;^DD(111.1,10,"DT")
;;=2931130
;;^DD(111.1,15,0)
;;=BREAKFAST MODIFICATIONS^111.115P^^B;0
;;^DD(111.1,15,21,0)
;;=^^2^2^2950403^^^^
;;^DD(111.1,15,21,1,0)
;;=This multiple contains all the breakfast Recipe Categories selected
;;^DD(111.1,15,21,2,0)
;;=and their quantities.
;;^DD(111.1,15.5,0)
;;=ASSOCIATED STANDING ORDERS (B)^111.11P^^BS;0
;;^DD(111.1,15.5,21,0)
;;=^^2^2^2950717^^^^
;;^DD(111.1,15.5,21,1,0)
;;=This multiple contains all the Standing Orders selected from file
;;^DD(111.1,15.5,21,2,0)
;;=118.3 for breakfast.
;;^DD(111.1,15.5,"DT")
;;=2940721
;;^DD(111.1,16,0)
;;=NOON MODIFICATIONS^111.116P^^N;0
;;^DD(111.1,16,21,0)
;;=^^2^2^2940526^
;;^DD(111.1,16,21,1,0)
;;=This multiple contains all the noon Recipe Categories selected
;;^DD(111.1,16,21,2,0)
;;=and their quantities.
;;^DD(111.1,16.5,0)
;;=ASSOCIATED STANDING ORDERS (N)^111.12P^^NS;0
;;^DD(111.1,16.5,21,0)
;;=^^2^2^2940721^
;;^DD(111.1,16.5,21,1,0)
;;=This multiple contains all the Standing Orders selected from file 118.3
;;^DD(111.1,16.5,21,2,0)
;;=for noon.
;;^DD(111.1,16.5,"DT")
;;=2940721
;;^DD(111.1,17,0)
;;=EVENING MODIFICATIONS^111.117P^^E;0
;;^DD(111.1,17,21,0)
;;=^^2^2^2940526^^
;;^DD(111.1,17,21,1,0)
;;=This multiple contains all the evening Recipe Categories selected
;;^DD(111.1,17,21,2,0)
;;=and their quantities.
;;^DD(111.1,17.5,0)
;;=ASSOCIATED STANDING ORDERS (E)^111.13P^^ES;0
;;^DD(111.1,17.5,21,0)
;;=^^2^2^2950717^^
;;^DD(111.1,17.5,21,1,0)
;;=This multiple contains all the Standing Orders selected from file
;;^DD(111.1,17.5,21,2,0)
;;=118.3 for evening.
;;^DD(111.1,17.5,"DT")
;;=2940721
;;^DD(111.1,18,0)
;;=ASSOCIATED SF MENU^*P118.1'^FH(118.1,^0;8^S DIC("S")="I Y'=1" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
;;^DD(111.1,18,12)
;;=Cannot enter INDIVIDUALIZED Supplemental Menu
;;^DD(111.1,18,12.1)
;;=S DIC("S")="I Y'=1"
;;^DD(111.1,18,21,0)
;;=^^3^3^2950717^^^^
;;^DD(111.1,18,21,1,0)
;;=This field will contain the Supplemental Feeding Menu, from file 118.1,
FHINI004 ; ; 11-OCT-1995
+1 ;;5.0;Dietetics;;Oct 11, 1995
+2 IF 'DIFQ(111.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(111.1,0,"GL")
+2 ;;=^FH(111.1,
+3 ;;^DIC("B","DIET PATTERNS",111.1)
+4 ;;=
+5 ;;^DIC(111.1,"%D",0)
+6 ;;=^^2^2^2940121^
+7 ;;^DIC(111.1,"%D",1,0)
+8 ;;=This file contains diet patterns. The entries for a specific pattern
+9 ;;^DIC(111.1,"%D",2,0)
+10 ;;=represent changes from the production diet for this particular pattern.
+11 ;;^DD(111.1,0)
+12 ;;=FIELD^^19^15
+13 ;;^DD(111.1,0,"DDA")
+14 ;;=N
+15 ;;^DD(111.1,0,"DT")
+16 ;;=2950418
+17 ;;^DD(111.1,0,"IX","B",111.1,.01)
+18 ;;=
+19 ;;^DD(111.1,0,"NM","DIET PATTERNS")
+20 ;;=
+21 ;;^DD(111.1,.01,0)
+22 ;;=NAME^RF^^0;1^K:$L(X)>70!($L(X)<3)!'(X'?1P.E) X
+23 ;;^DD(111.1,.01,1,0)
+24 ;;=^.1
+25 ;;^DD(111.1,.01,1,1,0)
+26 ;;=111.1^B
+27 ;;^DD(111.1,.01,1,1,1)
+28 ;;=S ^FH(111.1,"B",$E(X,1,30),DA)=""
+29 ;;^DD(111.1,.01,1,1,2)
+30 ;;=K ^FH(111.1,"B",$E(X,1,30),DA)
+31 ;;^DD(111.1,.01,3)
+32 ;;=Answer must be 3-70 characters in length.
+33 ;;^DD(111.1,.01,21,0)
+34 ;;=^^1^1^2940721^^^^
+35 ;;^DD(111.1,.01,21,1,0)
+36 ;;=This field contains the names of the diet or the diet modification ordered.
+37 ;;^DD(111.1,.01,"DT")
+38 ;;=2940103
+39 ;;^DD(111.1,1,0)
+40 ;;=DIET1^P111'^FH(111,^0;2^Q
+41 ;;^DD(111.1,1,21,0)
+42 ;;=^^2^2^2940526^^^^
+43 ;;^DD(111.1,1,21,1,0)
+44 ;;=This is the first diet modification selected from the Diets (111)
+45 ;;^DD(111.1,1,21,2,0)
+46 ;;=file.
+47 ;;^DD(111.1,1,"DT")
+48 ;;=2931130
+49 ;;^DD(111.1,2,0)
+50 ;;=DIET2^P111'^FH(111,^0;3^Q
+51 ;;^DD(111.1,2,21,0)
+52 ;;=^^2^2^2940526^^
+53 ;;^DD(111.1,2,21,1,0)
+54 ;;=This is the second diet modification selected from the Diets (111)
+55 ;;^DD(111.1,2,21,2,0)
+56 ;;=file.
+57 ;;^DD(111.1,2,"DT")
+58 ;;=2931130
+59 ;;^DD(111.1,3,0)
+60 ;;=DIET3^P111'^FH(111,^0;4^Q
+61 ;;^DD(111.1,3,21,0)
+62 ;;=^^2^2^2940526^
+63 ;;^DD(111.1,3,21,1,0)
+64 ;;=This is the third diet modification selected from the Diets (111)
+65 ;;^DD(111.1,3,21,2,0)
+66 ;;=file.
+67 ;;^DD(111.1,3,"DT")
+68 ;;=2931130
+69 ;;^DD(111.1,4,0)
+70 ;;=DIET4^P111'^FH(111,^0;5^Q
+71 ;;^DD(111.1,4,21,0)
+72 ;;=^^2^2^2940526^
+73 ;;^DD(111.1,4,21,1,0)
+74 ;;=This is the fourth diet modification selected from the Diets (111)
+75 ;;^DD(111.1,4,21,2,0)
+76 ;;=file.
+77 ;;^DD(111.1,4,"DT")
+78 ;;=2931130
+79 ;;^DD(111.1,5,0)
+80 ;;=DIET5^P111'^FH(111,^0;6^Q
+81 ;;^DD(111.1,5,21,0)
+82 ;;=^^2^2^2940526^
+83 ;;^DD(111.1,5,21,1,0)
+84 ;;=This is the fifth diet modification selected from the Diets (111)
+85 ;;^DD(111.1,5,21,2,0)
+86 ;;=file.
+87 ;;^DD(111.1,5,"DT")
+88 ;;=2931130
+89 ;;^DD(111.1,10,0)
+90 ;;=PRODUCTION DIET^P116.2'^FH(116.2,^0;7^Q
+91 ;;^DD(111.1,10,21,0)
+92 ;;=^^4^4^2950707^^
+93 ;;^DD(111.1,10,21,1,0)
+94 ;;=This is a pointer to the Production Diet (116.2) file and is the
+95 ;;^DD(111.1,10,21,2,0)
+96 ;;=outcome of the 'diet recoding' algorithm which is based upon the
+97 ;;^DD(111.1,10,21,3,0)
+98 ;;=diet modifications selected. It is not present for NPO types of
+99 ;;^DD(111.1,10,21,4,0)
+100 ;;=orders.
+101 ;;^DD(111.1,10,"DT")
+102 ;;=2931130
+103 ;;^DD(111.1,15,0)
+104 ;;=BREAKFAST MODIFICATIONS^111.115P^^B;0
+105 ;;^DD(111.1,15,21,0)
+106 ;;=^^2^2^2950403^^^^
+107 ;;^DD(111.1,15,21,1,0)
+108 ;;=This multiple contains all the breakfast Recipe Categories selected
+109 ;;^DD(111.1,15,21,2,0)
+110 ;;=and their quantities.
+111 ;;^DD(111.1,15.5,0)
+112 ;;=ASSOCIATED STANDING ORDERS (B)^111.11P^^BS;0
+113 ;;^DD(111.1,15.5,21,0)
+114 ;;=^^2^2^2950717^^^^
+115 ;;^DD(111.1,15.5,21,1,0)
+116 ;;=This multiple contains all the Standing Orders selected from file
+117 ;;^DD(111.1,15.5,21,2,0)
+118 ;;=118.3 for breakfast.
+119 ;;^DD(111.1,15.5,"DT")
+120 ;;=2940721
+121 ;;^DD(111.1,16,0)
+122 ;;=NOON MODIFICATIONS^111.116P^^N;0
+123 ;;^DD(111.1,16,21,0)
+124 ;;=^^2^2^2940526^
+125 ;;^DD(111.1,16,21,1,0)
+126 ;;=This multiple contains all the noon Recipe Categories selected
+127 ;;^DD(111.1,16,21,2,0)
+128 ;;=and their quantities.
+129 ;;^DD(111.1,16.5,0)
+130 ;;=ASSOCIATED STANDING ORDERS (N)^111.12P^^NS;0
+131 ;;^DD(111.1,16.5,21,0)
+132 ;;=^^2^2^2940721^
+133 ;;^DD(111.1,16.5,21,1,0)
+134 ;;=This multiple contains all the Standing Orders selected from file 118.3
+135 ;;^DD(111.1,16.5,21,2,0)
+136 ;;=for noon.
+137 ;;^DD(111.1,16.5,"DT")
+138 ;;=2940721
+139 ;;^DD(111.1,17,0)
+140 ;;=EVENING MODIFICATIONS^111.117P^^E;0
+141 ;;^DD(111.1,17,21,0)
+142 ;;=^^2^2^2940526^^
+143 ;;^DD(111.1,17,21,1,0)
+144 ;;=This multiple contains all the evening Recipe Categories selected
+145 ;;^DD(111.1,17,21,2,0)
+146 ;;=and their quantities.
+147 ;;^DD(111.1,17.5,0)
+148 ;;=ASSOCIATED STANDING ORDERS (E)^111.13P^^ES;0
+149 ;;^DD(111.1,17.5,21,0)
+150 ;;=^^2^2^2950717^^
+151 ;;^DD(111.1,17.5,21,1,0)
+152 ;;=This multiple contains all the Standing Orders selected from file
+153 ;;^DD(111.1,17.5,21,2,0)
+154 ;;=118.3 for evening.
+155 ;;^DD(111.1,17.5,"DT")
+156 ;;=2940721
+157 ;;^DD(111.1,18,0)
+158 ;;=ASSOCIATED SF MENU^*P118.1'^FH(118.1,^0;8^S DIC("S")="I Y'=1" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
+159 ;;^DD(111.1,18,12)
+160 ;;=Cannot enter INDIVIDUALIZED Supplemental Menu
+161 ;;^DD(111.1,18,12.1)
+162 ;;=S DIC("S")="I Y'=1"
+163 ;;^DD(111.1,18,21,0)
+164 ;;=^^3^3^2950717^^^^
+165 ;;^DD(111.1,18,21,1,0)
+166 ;;=This field will contain the Supplemental Feeding Menu, from file 118.1,