FHINI0LD ; ; 11-OCT-1995
;;5.0;Dietetics;;Oct 11, 1995
Q:'DIFQ(116.3) 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.3,0,"GL")
;;=^FH(116.3,
;;^DIC("B","HOLIDAY MEALS",116.3)
;;=
;;^DIC(116.3,"%D",0)
;;=^^5^5^2880515^
;;^DIC(116.3,"%D",1,0)
;;=This file consists of a list of holiday dates for which special
;;^DIC(116.3,"%D",2,0)
;;=meals are prepared. It consists of the holiday date, name, and
;;^DIC(116.3,"%D",3,0)
;;=allows for entry of a breakfast, noon, and/or evening meal
;;^DIC(116.3,"%D",4,0)
;;=which, if present, will override the normal menu cycle meals
;;^DIC(116.3,"%D",5,0)
;;=on that date.
;;^DD(116.3,0)
;;=FIELD^^4^5
;;^DD(116.3,0,"IX","B",116.3,.01)
;;=
;;^DD(116.3,0,"NM","HOLIDAY MEALS")
;;=
;;^DD(116.3,.01,0)
;;=DATE^RD^^0;1^S %DT="EX" D ^%DT S X=Y,DINUM=X K:Y<1 X,DINUM
;;^DD(116.3,.01,1,0)
;;=^.1
;;^DD(116.3,.01,1,1,0)
;;=116.3^B
;;^DD(116.3,.01,1,1,1)
;;=S ^FH(116.3,"B",$E(X,1,30),DA)=""
;;^DD(116.3,.01,1,1,2)
;;=K ^FH(116.3,"B",$E(X,1,30),DA)
;;^DD(116.3,.01,1,1,"%D",0)
;;=^^1^1^2911118^
;;^DD(116.3,.01,1,1,"%D",1,0)
;;=This is the normal B cross-reference of the DATE field.
;;^DD(116.3,.01,3)
;;=NAME MUST BE 3-30 CHARACTERS, NOT NUMERIC OR STARTING WITH PUNCTUATION
;;^DD(116.3,.01,21,0)
;;=^^3^3^2880717^
;;^DD(116.3,.01,21,1,0)
;;=This is the date of a holiday. A holiday, for purposes of this
;;^DD(116.3,.01,21,2,0)
;;=program, is a date upon which one or more of the normal cycle
;;^DD(116.3,.01,21,3,0)
;;=meals are suspended and other special meals substituted.
;;^DD(116.3,1,0)
;;=HOLIDAY NAME^RF^^0;5^K:$L(X)>30!($L(X)<1) X
;;^DD(116.3,1,3)
;;=ANSWER MUST BE 1-30 CHARACTERS IN LENGTH
;;^DD(116.3,1,21,0)
;;=^^1^1^2880717^
;;^DD(116.3,1,21,1,0)
;;=This field represents the name of the holiday.
;;^DD(116.3,1,"DT")
;;=2861206
;;^DD(116.3,2,0)
;;=BREAKFAST MEAL^P116.1'^FH(116.1,^0;2^Q
;;^DD(116.3,2,21,0)
;;=^^2^2^2880717^
;;^DD(116.3,2,21,1,0)
;;=This field, if present, contains the meal which will override
;;^DD(116.3,2,21,2,0)
;;=the normal cycle breakfast meal.
;;^DD(116.3,2,"DT")
;;=2861206
;;^DD(116.3,3,0)
;;=NOON MEAL^P116.1'^FH(116.1,^0;3^Q
;;^DD(116.3,3,21,0)
;;=^^2^2^2880717^
;;^DD(116.3,3,21,1,0)
;;=This field, if present, contains the meal which will override
;;^DD(116.3,3,21,2,0)
;;=the normal cycle noon meal.
;;^DD(116.3,3,"DT")
;;=2861206
;;^DD(116.3,4,0)
;;=EVENING MEAL^P116.1'^FH(116.1,^0;4^Q
;;^DD(116.3,4,21,0)
;;=^^2^2^2880717^
;;^DD(116.3,4,21,1,0)
;;=This field, if present, contains the meal which will override
;;^DD(116.3,4,21,2,0)
;;=the normal cycle evening meal.
;;^DD(116.3,4,"DT")
;;=2861206
FHINI0LD ; ; 11-OCT-1995
+1 ;;5.0;Dietetics;;Oct 11, 1995
+2 IF 'DIFQ(116.3)
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.3,0,"GL")
+2 ;;=^FH(116.3,
+3 ;;^DIC("B","HOLIDAY MEALS",116.3)
+4 ;;=
+5 ;;^DIC(116.3,"%D",0)
+6 ;;=^^5^5^2880515^
+7 ;;^DIC(116.3,"%D",1,0)
+8 ;;=This file consists of a list of holiday dates for which special
+9 ;;^DIC(116.3,"%D",2,0)
+10 ;;=meals are prepared. It consists of the holiday date, name, and
+11 ;;^DIC(116.3,"%D",3,0)
+12 ;;=allows for entry of a breakfast, noon, and/or evening meal
+13 ;;^DIC(116.3,"%D",4,0)
+14 ;;=which, if present, will override the normal menu cycle meals
+15 ;;^DIC(116.3,"%D",5,0)
+16 ;;=on that date.
+17 ;;^DD(116.3,0)
+18 ;;=FIELD^^4^5
+19 ;;^DD(116.3,0,"IX","B",116.3,.01)
+20 ;;=
+21 ;;^DD(116.3,0,"NM","HOLIDAY MEALS")
+22 ;;=
+23 ;;^DD(116.3,.01,0)
+24 ;;=DATE^RD^^0;1^S %DT="EX" D ^%DT S X=Y,DINUM=X K:Y<1 X,DINUM
+25 ;;^DD(116.3,.01,1,0)
+26 ;;=^.1
+27 ;;^DD(116.3,.01,1,1,0)
+28 ;;=116.3^B
+29 ;;^DD(116.3,.01,1,1,1)
+30 ;;=S ^FH(116.3,"B",$E(X,1,30),DA)=""
+31 ;;^DD(116.3,.01,1,1,2)
+32 ;;=K ^FH(116.3,"B",$E(X,1,30),DA)
+33 ;;^DD(116.3,.01,1,1,"%D",0)
+34 ;;=^^1^1^2911118^
+35 ;;^DD(116.3,.01,1,1,"%D",1,0)
+36 ;;=This is the normal B cross-reference of the DATE field.
+37 ;;^DD(116.3,.01,3)
+38 ;;=NAME MUST BE 3-30 CHARACTERS, NOT NUMERIC OR STARTING WITH PUNCTUATION
+39 ;;^DD(116.3,.01,21,0)
+40 ;;=^^3^3^2880717^
+41 ;;^DD(116.3,.01,21,1,0)
+42 ;;=This is the date of a holiday. A holiday, for purposes of this
+43 ;;^DD(116.3,.01,21,2,0)
+44 ;;=program, is a date upon which one or more of the normal cycle
+45 ;;^DD(116.3,.01,21,3,0)
+46 ;;=meals are suspended and other special meals substituted.
+47 ;;^DD(116.3,1,0)
+48 ;;=HOLIDAY NAME^RF^^0;5^K:$L(X)>30!($L(X)<1) X
+49 ;;^DD(116.3,1,3)
+50 ;;=ANSWER MUST BE 1-30 CHARACTERS IN LENGTH
+51 ;;^DD(116.3,1,21,0)
+52 ;;=^^1^1^2880717^
+53 ;;^DD(116.3,1,21,1,0)
+54 ;;=This field represents the name of the holiday.
+55 ;;^DD(116.3,1,"DT")
+56 ;;=2861206
+57 ;;^DD(116.3,2,0)
+58 ;;=BREAKFAST MEAL^P116.1'^FH(116.1,^0;2^Q
+59 ;;^DD(116.3,2,21,0)
+60 ;;=^^2^2^2880717^
+61 ;;^DD(116.3,2,21,1,0)
+62 ;;=This field, if present, contains the meal which will override
+63 ;;^DD(116.3,2,21,2,0)
+64 ;;=the normal cycle breakfast meal.
+65 ;;^DD(116.3,2,"DT")
+66 ;;=2861206
+67 ;;^DD(116.3,3,0)
+68 ;;=NOON MEAL^P116.1'^FH(116.1,^0;3^Q
+69 ;;^DD(116.3,3,21,0)
+70 ;;=^^2^2^2880717^
+71 ;;^DD(116.3,3,21,1,0)
+72 ;;=This field, if present, contains the meal which will override
+73 ;;^DD(116.3,3,21,2,0)
+74 ;;=the normal cycle noon meal.
+75 ;;^DD(116.3,3,"DT")
+76 ;;=2861206
+77 ;;^DD(116.3,4,0)
+78 ;;=EVENING MEAL^P116.1'^FH(116.1,^0;4^Q
+79 ;;^DD(116.3,4,21,0)
+80 ;;=^^2^2^2880717^
+81 ;;^DD(116.3,4,21,1,0)
+82 ;;=This field, if present, contains the meal which will override
+83 ;;^DD(116.3,4,21,2,0)
+84 ;;=the normal cycle evening meal.
+85 ;;^DD(116.3,4,"DT")
+86 ;;=2861206