FHINI0KW ; ; 11-OCT-1995
;;5.0;Dietetics;;Oct 11, 1995
Q:'DIFQ(115.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(115.2,0,"GL")
;;=^FH(115.2,
;;^DIC("B","FOOD PREFERENCES",115.2)
;;=
;;^DIC(115.2,"%D",0)
;;=^^5^5^2950221^^^^
;;^DIC(115.2,"%D",1,0)
;;=This file contains the items which can be selected as patient
;;^DIC(115.2,"%D",2,0)
;;=preference items. It contains both items which can be selected,
;;^DIC(115.2,"%D",3,0)
;;=such as coffee or tea, as well as food preferences (such as
;;^DIC(115.2,"%D",4,0)
;;=no liver) which will result in certain recipes being excluded
;;^DIC(115.2,"%D",5,0)
;;=for the patient.
;;^DD(115.2,0)
;;=FIELD^^99^7
;;^DD(115.2,0,"DT")
;;=2940225
;;^DD(115.2,0,"ID",99)
;;=W:$D(^("I")) " (** INACTIVE **)"
;;^DD(115.2,0,"IX","AC",115.2,99)
;;=
;;^DD(115.2,0,"IX","B",115.2,.01)
;;=
;;^DD(115.2,0,"NM","FOOD PREFERENCES")
;;=
;;^DD(115.2,0,"PT",111.119,.01)
;;=
;;^DD(115.2,0,"PT",115.09,.01)
;;=
;;^DD(115.2,0,"SCR")
;;=I '$D(^FH(115.2,+Y,"I"))!$D(^XUSEC("FHMGR",DUZ))!(DUZ(0)["@")
;;^DD(115.2,.01,0)
;;=NAME^RF^^0;1^K:$L(X)>30!(X?.N)!($L(X)<3)!'(X'?1P.E) X
;;^DD(115.2,.01,1,0)
;;=^.1
;;^DD(115.2,.01,1,1,0)
;;=115.2^B
;;^DD(115.2,.01,1,1,1)
;;=S ^FH(115.2,"B",$E(X,1,30),DA)=""
;;^DD(115.2,.01,1,1,2)
;;=K ^FH(115.2,"B",$E(X,1,30),DA)
;;^DD(115.2,.01,1,1,"%D",0)
;;=^^1^1^2911118^
;;^DD(115.2,.01,1,1,"%D",1,0)
;;=This is the normal B cross-reference of the NAME field.
;;^DD(115.2,.01,3)
;;=NAME MUST BE 3-30 CHARACTERS, NOT NUMERIC OR STARTING WITH PUNCTUATION
;;^DD(115.2,.01,21,0)
;;=^^2^2^2880901^
;;^DD(115.2,.01,21,1,0)
;;=This field contains the name of a selectable food preference, such
;;^DD(115.2,.01,21,2,0)
;;=as coffee or tea, or a generic preference, such as 'no liver'.
;;^DD(115.2,.01,"DEL",1,0)
;;=I DUZ(0)'["@",'$D(^XUSEC("FHMGR",DUZ))
;;^DD(115.2,1,0)
;;=LIKE OR DISLIKE^RS^L:LIKE;D:DISLIKE;^0;2^Q
;;^DD(115.2,1,21,0)
;;=^^2^2^2880913^^
;;^DD(115.2,1,21,1,0)
;;=This field indicates whether the item is a selectable item or
;;^DD(115.2,1,21,2,0)
;;=a food preference.
;;^DD(115.2,1,"DT")
;;=2880913
;;^DD(115.2,3,0)
;;=RECIPE^P114'^FH(114,^0;4^Q
;;^DD(115.2,3,21,0)
;;=^^2^2^2910506^^
;;^DD(115.2,3,21,1,0)
;;=In the case of a selectable item, this field points to the selection
;;^DD(115.2,3,21,2,0)
;;=in the Recipe file (114).
;;^DD(115.2,10,0)
;;=EXCLUDED RECIPES^115.21P^^X;0
;;^DD(115.2,10,21,0)
;;=^^3^3^2910506^^
;;^DD(115.2,10,21,1,0)
;;=In the case of a food preference, this multiple is the list of
;;^DD(115.2,10,21,2,0)
;;=excluded recipes contained in the Recipe file (114) which should
;;^DD(115.2,10,21,3,0)
;;=NOT be served to the patient.
;;^DD(115.2,20,0)
;;=BREAD/BEVERAGE DEFAULT?^S^1:YES;0:NO;^0;5^Q
;;^DD(115.2,20,21,0)
;;=^^3^3^2940419^^^^
;;^DD(115.2,20,21,1,0)
;;=This field, if answered Yes, means this food preference is the standard
;;^DD(115.2,20,21,2,0)
;;=default bread/beverage for the patients on the tray tickets else if
;;^DD(115.2,20,21,3,0)
;;=answered No, means it is not.
;;^DD(115.2,20,"DT")
;;=2940419
;;^DD(115.2,21,0)
;;=MEALS^FX^^0;6^S:$P("ALL",X,1)="" X="BNE" S %=X,X="" S:%["B" X="B" S:%["N" X=X_"N" S:%["E" X=X_"E" K:$L(%)'=$L(X) X K %
;;^DD(115.2,21,3)
;;=Answer should be a string of meals (e.g., B or BN or BNE) or A for all meals.
;;^DD(115.2,21,21,0)
;;=^^2^2^2940225^
;;^DD(115.2,21,21,1,0)
;;=This field contains the meals (B N and E) for which this standard
;;^DD(115.2,21,21,2,0)
;;=default food preference is applicable.
;;^DD(115.2,21,"DT")
;;=2940225
;;^DD(115.2,99,0)
;;=INACTIVE?^S^Y:YES;N:NO;^I;1^Q
;;^DD(115.2,99,1,0)
;;=^.1
;;^DD(115.2,99,1,1,0)
;;=115.2^AC^MUMPS
;;^DD(115.2,99,1,1,1)
;;=K:X'="Y" ^FH(115.2,DA,"I")
;;^DD(115.2,99,1,1,2)
;;=K ^FH(115.2,DA,"I")
;;^DD(115.2,99,1,1,"%D",0)
;;=^^2^2^2940818^
;;^DD(115.2,99,1,1,"%D",1,0)
;;=This cross-reference is used to create an 'I' node for
;;^DD(115.2,99,1,1,"%D",2,0)
;;=inactive entries.
;;^DD(115.2,99,21,0)
;;=^^2^2^2940225^^
;;^DD(115.2,99,21,1,0)
;;=This field, if answered YES, will prohibit further selection
;;^DD(115.2,99,21,2,0)
;;=of this preference unless the FHMGR key is held.
;;^DD(115.2,99,"DT")
;;=2900918
;;^DD(115.21,0)
;;=EXCLUDED RECIPES SUB-FIELD^^.01^1
;;^DD(115.21,0,"IX","B",115.21,.01)
;;=
;;^DD(115.21,0,"NM","EXCLUDED RECIPES")
;;=
;;^DD(115.21,0,"UP")
;;=115.2
;;^DD(115.21,.01,0)
;;=EXCLUDED RECIPES^MP114'^FH(114,^0;1^Q
;;^DD(115.21,.01,1,0)
;;=^.1
;;^DD(115.21,.01,1,1,0)
;;=115.21^B
;;^DD(115.21,.01,1,1,1)
;;=S ^FH(115.2,DA(1),"X","B",$E(X,1,30),DA)=""
;;^DD(115.21,.01,1,1,2)
;;=K ^FH(115.2,DA(1),"X","B",$E(X,1,30),DA)
;;^DD(115.21,.01,1,1,"%D",0)
;;=^^1^1^2911118^
FHINI0KW ; ; 11-OCT-1995
+1 ;;5.0;Dietetics;;Oct 11, 1995
+2 IF 'DIFQ(115.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(115.2,0,"GL")
+2 ;;=^FH(115.2,
+3 ;;^DIC("B","FOOD PREFERENCES",115.2)
+4 ;;=
+5 ;;^DIC(115.2,"%D",0)
+6 ;;=^^5^5^2950221^^^^
+7 ;;^DIC(115.2,"%D",1,0)
+8 ;;=This file contains the items which can be selected as patient
+9 ;;^DIC(115.2,"%D",2,0)
+10 ;;=preference items. It contains both items which can be selected,
+11 ;;^DIC(115.2,"%D",3,0)
+12 ;;=such as coffee or tea, as well as food preferences (such as
+13 ;;^DIC(115.2,"%D",4,0)
+14 ;;=no liver) which will result in certain recipes being excluded
+15 ;;^DIC(115.2,"%D",5,0)
+16 ;;=for the patient.
+17 ;;^DD(115.2,0)
+18 ;;=FIELD^^99^7
+19 ;;^DD(115.2,0,"DT")
+20 ;;=2940225
+21 ;;^DD(115.2,0,"ID",99)
+22 ;;=W:$D(^("I")) " (** INACTIVE **)"
+23 ;;^DD(115.2,0,"IX","AC",115.2,99)
+24 ;;=
+25 ;;^DD(115.2,0,"IX","B",115.2,.01)
+26 ;;=
+27 ;;^DD(115.2,0,"NM","FOOD PREFERENCES")
+28 ;;=
+29 ;;^DD(115.2,0,"PT",111.119,.01)
+30 ;;=
+31 ;;^DD(115.2,0,"PT",115.09,.01)
+32 ;;=
+33 ;;^DD(115.2,0,"SCR")
+34 ;;=I '$D(^FH(115.2,+Y,"I"))!$D(^XUSEC("FHMGR",DUZ))!(DUZ(0)["@")
+35 ;;^DD(115.2,.01,0)
+36 ;;=NAME^RF^^0;1^K:$L(X)>30!(X?.N)!($L(X)<3)!'(X'?1P.E) X
+37 ;;^DD(115.2,.01,1,0)
+38 ;;=^.1
+39 ;;^DD(115.2,.01,1,1,0)
+40 ;;=115.2^B
+41 ;;^DD(115.2,.01,1,1,1)
+42 ;;=S ^FH(115.2,"B",$E(X,1,30),DA)=""
+43 ;;^DD(115.2,.01,1,1,2)
+44 ;;=K ^FH(115.2,"B",$E(X,1,30),DA)
+45 ;;^DD(115.2,.01,1,1,"%D",0)
+46 ;;=^^1^1^2911118^
+47 ;;^DD(115.2,.01,1,1,"%D",1,0)
+48 ;;=This is the normal B cross-reference of the NAME field.
+49 ;;^DD(115.2,.01,3)
+50 ;;=NAME MUST BE 3-30 CHARACTERS, NOT NUMERIC OR STARTING WITH PUNCTUATION
+51 ;;^DD(115.2,.01,21,0)
+52 ;;=^^2^2^2880901^
+53 ;;^DD(115.2,.01,21,1,0)
+54 ;;=This field contains the name of a selectable food preference, such
+55 ;;^DD(115.2,.01,21,2,0)
+56 ;;=as coffee or tea, or a generic preference, such as 'no liver'.
+57 ;;^DD(115.2,.01,"DEL",1,0)
+58 ;;=I DUZ(0)'["@",'$D(^XUSEC("FHMGR",DUZ))
+59 ;;^DD(115.2,1,0)
+60 ;;=LIKE OR DISLIKE^RS^L:LIKE;D:DISLIKE;^0;2^Q
+61 ;;^DD(115.2,1,21,0)
+62 ;;=^^2^2^2880913^^
+63 ;;^DD(115.2,1,21,1,0)
+64 ;;=This field indicates whether the item is a selectable item or
+65 ;;^DD(115.2,1,21,2,0)
+66 ;;=a food preference.
+67 ;;^DD(115.2,1,"DT")
+68 ;;=2880913
+69 ;;^DD(115.2,3,0)
+70 ;;=RECIPE^P114'^FH(114,^0;4^Q
+71 ;;^DD(115.2,3,21,0)
+72 ;;=^^2^2^2910506^^
+73 ;;^DD(115.2,3,21,1,0)
+74 ;;=In the case of a selectable item, this field points to the selection
+75 ;;^DD(115.2,3,21,2,0)
+76 ;;=in the Recipe file (114).
+77 ;;^DD(115.2,10,0)
+78 ;;=EXCLUDED RECIPES^115.21P^^X;0
+79 ;;^DD(115.2,10,21,0)
+80 ;;=^^3^3^2910506^^
+81 ;;^DD(115.2,10,21,1,0)
+82 ;;=In the case of a food preference, this multiple is the list of
+83 ;;^DD(115.2,10,21,2,0)
+84 ;;=excluded recipes contained in the Recipe file (114) which should
+85 ;;^DD(115.2,10,21,3,0)
+86 ;;=NOT be served to the patient.
+87 ;;^DD(115.2,20,0)
+88 ;;=BREAD/BEVERAGE DEFAULT?^S^1:YES;0:NO;^0;5^Q
+89 ;;^DD(115.2,20,21,0)
+90 ;;=^^3^3^2940419^^^^
+91 ;;^DD(115.2,20,21,1,0)
+92 ;;=This field, if answered Yes, means this food preference is the standard
+93 ;;^DD(115.2,20,21,2,0)
+94 ;;=default bread/beverage for the patients on the tray tickets else if
+95 ;;^DD(115.2,20,21,3,0)
+96 ;;=answered No, means it is not.
+97 ;;^DD(115.2,20,"DT")
+98 ;;=2940419
+99 ;;^DD(115.2,21,0)
+100 ;;=MEALS^FX^^0;6^S:$P("ALL",X,1)="" X="BNE" S %=X,X="" S:%["B" X="B" S:%["N" X=X_"N" S:%["E" X=X_"E" K:$L(%)'=$L(X) X K %
+101 ;;^DD(115.2,21,3)
+102 ;;=Answer should be a string of meals (e.g., B or BN or BNE) or A for all meals.
+103 ;;^DD(115.2,21,21,0)
+104 ;;=^^2^2^2940225^
+105 ;;^DD(115.2,21,21,1,0)
+106 ;;=This field contains the meals (B N and E) for which this standard
+107 ;;^DD(115.2,21,21,2,0)
+108 ;;=default food preference is applicable.
+109 ;;^DD(115.2,21,"DT")
+110 ;;=2940225
+111 ;;^DD(115.2,99,0)
+112 ;;=INACTIVE?^S^Y:YES;N:NO;^I;1^Q
+113 ;;^DD(115.2,99,1,0)
+114 ;;=^.1
+115 ;;^DD(115.2,99,1,1,0)
+116 ;;=115.2^AC^MUMPS
+117 ;;^DD(115.2,99,1,1,1)
+118 ;;=K:X'="Y" ^FH(115.2,DA,"I")
+119 ;;^DD(115.2,99,1,1,2)
+120 ;;=K ^FH(115.2,DA,"I")
+121 ;;^DD(115.2,99,1,1,"%D",0)
+122 ;;=^^2^2^2940818^
+123 ;;^DD(115.2,99,1,1,"%D",1,0)
+124 ;;=This cross-reference is used to create an 'I' node for
+125 ;;^DD(115.2,99,1,1,"%D",2,0)
+126 ;;=inactive entries.
+127 ;;^DD(115.2,99,21,0)
+128 ;;=^^2^2^2940225^^
+129 ;;^DD(115.2,99,21,1,0)
+130 ;;=This field, if answered YES, will prohibit further selection
+131 ;;^DD(115.2,99,21,2,0)
+132 ;;=of this preference unless the FHMGR key is held.
+133 ;;^DD(115.2,99,"DT")
+134 ;;=2900918
+135 ;;^DD(115.21,0)
+136 ;;=EXCLUDED RECIPES SUB-FIELD^^.01^1
+137 ;;^DD(115.21,0,"IX","B",115.21,.01)
+138 ;;=
+139 ;;^DD(115.21,0,"NM","EXCLUDED RECIPES")
+140 ;;=
+141 ;;^DD(115.21,0,"UP")
+142 ;;=115.2
+143 ;;^DD(115.21,.01,0)
+144 ;;=EXCLUDED RECIPES^MP114'^FH(114,^0;1^Q
+145 ;;^DD(115.21,.01,1,0)
+146 ;;=^.1
+147 ;;^DD(115.21,.01,1,1,0)
+148 ;;=115.21^B
+149 ;;^DD(115.21,.01,1,1,1)
+150 ;;=S ^FH(115.2,DA(1),"X","B",$E(X,1,30),DA)=""
+151 ;;^DD(115.21,.01,1,1,2)
+152 ;;=K ^FH(115.2,DA(1),"X","B",$E(X,1,30),DA)
+153 ;;^DD(115.21,.01,1,1,"%D",0)
+154 ;;=^^1^1^2911118^