FHINI0MS ; ; 11-OCT-1995
;;5.0;Dietetics;;Oct 11, 1995
Q:'DIFQ(119.72) 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(119.721,22,0)
;;=ADD. THURSDAY BREAKFAST^NJ4,0^^0;14^K:+X'=X!(X>1000)!(X<0)!(X?.E1"."1N.N) X
;;^DD(119.721,22,3)
;;=TYPE A WHOLE NUMBER BETWEEN 0 AND 1000
;;^DD(119.721,22,21,0)
;;=^^2^2^2880716^^
;;^DD(119.721,22,21,1,0)
;;=This is the number of additional Thursday breakfast meals which are
;;^DD(119.721,22,21,2,0)
;;=to be added to the inpatient forecast.
;;^DD(119.721,23,0)
;;=ADD. THURSDAY NOON^NJ4,0^^0;15^K:+X'=X!(X>1000)!(X<0)!(X?.E1"."1N.N) X
;;^DD(119.721,23,3)
;;=TYPE A WHOLE NUMBER BETWEEN 0 AND 1000
;;^DD(119.721,23,21,0)
;;=^^2^2^2880716^^
;;^DD(119.721,23,21,1,0)
;;=This is the number of additional Thursday noon meals which are
;;^DD(119.721,23,21,2,0)
;;=to be added to the inpatient forecast.
;;^DD(119.721,24,0)
;;=ADD. THURSDAY EVENING^NJ4,0^^0;16^K:+X'=X!(X>1000)!(X<0)!(X?.E1"."1N.N) X
;;^DD(119.721,24,3)
;;=TYPE A WHOLE NUMBER BETWEEN 0 AND 1000
;;^DD(119.721,24,21,0)
;;=^^2^2^2880716^^
;;^DD(119.721,24,21,1,0)
;;=This is the number of additional Thursday evening meals which are
;;^DD(119.721,24,21,2,0)
;;=to be added to the inpatient forecast.
;;^DD(119.721,25,0)
;;=ADD. FRIDAY BREAKFAST^NJ4,0^^0;17^K:+X'=X!(X>1000)!(X<0)!(X?.E1"."1N.N) X
;;^DD(119.721,25,3)
;;=TYPE A WHOLE NUMBER BETWEEN 0 AND 1000
;;^DD(119.721,25,21,0)
;;=^^2^2^2880716^^
;;^DD(119.721,25,21,1,0)
;;=This is the number of additional Friday breakfast meals which are
;;^DD(119.721,25,21,2,0)
;;=to be added to the inpatient forecast.
;;^DD(119.721,26,0)
;;=ADD. FRIDAY NOON^NJ4,0^^0;18^K:+X'=X!(X>1000)!(X<0)!(X?.E1"."1N.N) X
;;^DD(119.721,26,3)
;;=TYPE A WHOLE NUMBER BETWEEN 0 AND 1000
;;^DD(119.721,26,21,0)
;;=^^2^2^2880716^^
;;^DD(119.721,26,21,1,0)
;;=This is the number of additional Friday noon meals which are
;;^DD(119.721,26,21,2,0)
;;=to be added to the inpatient forecast.
;;^DD(119.721,27,0)
;;=ADD. FRIDAY EVENING^NJ4,0^^0;19^K:+X'=X!(X>1000)!(X<0)!(X?.E1"."1N.N) X
;;^DD(119.721,27,3)
;;=TYPE A WHOLE NUMBER BETWEEN 0 AND 1000
;;^DD(119.721,27,21,0)
;;=^^2^2^2880716^^
;;^DD(119.721,27,21,1,0)
;;=This is the number of additional Friday evening meals which are
;;^DD(119.721,27,21,2,0)
;;=to be added to the inpatient forecast.
;;^DD(119.721,28,0)
;;=ADD. SATURDAY BREAKFAST^NJ4,0^^0;20^K:+X'=X!(X>1000)!(X<0)!(X?.E1"."1N.N) X
;;^DD(119.721,28,3)
;;=TYPE A WHOLE NUMBER BETWEEN 0 AND 1000
;;^DD(119.721,28,21,0)
;;=^^2^2^2880716^^
;;^DD(119.721,28,21,1,0)
;;=This is the number of additional Saturday breakfast meals which are
;;^DD(119.721,28,21,2,0)
;;=to be added to the inpatient forecast.
;;^DD(119.721,29,0)
;;=ADD. SATURDAY NOON^NJ4,0^^0;21^K:+X'=X!(X>1000)!(X<0)!(X?.E1"."1N.N) X
;;^DD(119.721,29,3)
;;=TYPE A WHOLE NUMBER BETWEEN 0 AND 1000
;;^DD(119.721,29,21,0)
;;=^^2^2^2880716^^
;;^DD(119.721,29,21,1,0)
;;=This is the number of additional Saturday noon meals which are
;;^DD(119.721,29,21,2,0)
;;=to be added to the inpatient forecast.
;;^DD(119.721,30,0)
;;=ADD. SATURDAY EVENING^NJ4,0^^0;22^K:+X'=X!(X>1000)!(X<0)!(X?.E1"."1N.N) X
;;^DD(119.721,30,3)
;;=TYPE A WHOLE NUMBER BETWEEN 0 AND 1000
;;^DD(119.721,30,21,0)
;;=^^2^2^2880716^^
;;^DD(119.721,30,21,1,0)
;;=This is the number of additional Saturday evening meals which are
;;^DD(119.721,30,21,2,0)
;;=to be added to the inpatient forecast.
;;^DD(119.7211,0)
;;=PRODUCTION DIET PERCENTAGE SUB-FIELD^^16^8
;;^DD(119.7211,0,"DT")
;;=2911112
;;^DD(119.7211,0,"IX","B",119.7211,.01)
;;=
;;^DD(119.7211,0,"NM","PRODUCTION DIET PERCENTAGE")
;;=
;;^DD(119.7211,0,"UP")
;;=119.72
;;^DD(119.7211,.01,0)
;;=FORECAST % PRODUCTION DIET^MP116.2'X^FH(116.2,^0;1^I $D(X) S DINUM=X
;;^DD(119.7211,.01,1,0)
;;=^.1
;;^DD(119.7211,.01,1,1,0)
;;=119.7211^B
;;^DD(119.7211,.01,1,1,1)
;;=S ^FH(119.72,DA(1),"A","B",$E(X,1,30),DA)=""
;;^DD(119.7211,.01,1,1,2)
;;=K ^FH(119.72,DA(1),"A","B",$E(X,1,30),DA)
;;^DD(119.7211,.01,1,1,"%D",0)
;;=^^1^1^2911118^
;;^DD(119.7211,.01,1,1,"%D",1,0)
;;=This is the normal B cross-reference of the PRODUCTION DIET field.
;;^DD(119.7211,.01,21,0)
;;=^^2^2^2911211^^
;;^DD(119.7211,.01,21,1,0)
;;=This field is the production diet for which daily forecast percentages
;;^DD(119.7211,.01,21,2,0)
;;=are to be entered.
;;^DD(119.7211,.01,"DT")
;;=2911211
;;^DD(119.7211,10,0)
;;=SUNDAY CENSUS PERCENTAGE^NJ5,1^^0;2^K:+X'=X!(X>110)!(X<0)!(X?.E1"."2N.N) X
;;^DD(119.7211,10,3)
;;=TYPE A NUMBER BETWEEN 0 AND 110
;;^DD(119.7211,10,21,0)
;;=^^2^2^2880716^
;;^DD(119.7211,10,21,1,0)
;;=This field contains the % of total census on Sundays for which this
FHINI0MS ; ; 11-OCT-1995
+1 ;;5.0;Dietetics;;Oct 11, 1995
+2 IF 'DIFQ(119.72)
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(119.721,22,0)
+2 ;;=ADD. THURSDAY BREAKFAST^NJ4,0^^0;14^K:+X'=X!(X>1000)!(X<0)!(X?.E1"."1N.N) X
+3 ;;^DD(119.721,22,3)
+4 ;;=TYPE A WHOLE NUMBER BETWEEN 0 AND 1000
+5 ;;^DD(119.721,22,21,0)
+6 ;;=^^2^2^2880716^^
+7 ;;^DD(119.721,22,21,1,0)
+8 ;;=This is the number of additional Thursday breakfast meals which are
+9 ;;^DD(119.721,22,21,2,0)
+10 ;;=to be added to the inpatient forecast.
+11 ;;^DD(119.721,23,0)
+12 ;;=ADD. THURSDAY NOON^NJ4,0^^0;15^K:+X'=X!(X>1000)!(X<0)!(X?.E1"."1N.N) X
+13 ;;^DD(119.721,23,3)
+14 ;;=TYPE A WHOLE NUMBER BETWEEN 0 AND 1000
+15 ;;^DD(119.721,23,21,0)
+16 ;;=^^2^2^2880716^^
+17 ;;^DD(119.721,23,21,1,0)
+18 ;;=This is the number of additional Thursday noon meals which are
+19 ;;^DD(119.721,23,21,2,0)
+20 ;;=to be added to the inpatient forecast.
+21 ;;^DD(119.721,24,0)
+22 ;;=ADD. THURSDAY EVENING^NJ4,0^^0;16^K:+X'=X!(X>1000)!(X<0)!(X?.E1"."1N.N) X
+23 ;;^DD(119.721,24,3)
+24 ;;=TYPE A WHOLE NUMBER BETWEEN 0 AND 1000
+25 ;;^DD(119.721,24,21,0)
+26 ;;=^^2^2^2880716^^
+27 ;;^DD(119.721,24,21,1,0)
+28 ;;=This is the number of additional Thursday evening meals which are
+29 ;;^DD(119.721,24,21,2,0)
+30 ;;=to be added to the inpatient forecast.
+31 ;;^DD(119.721,25,0)
+32 ;;=ADD. FRIDAY BREAKFAST^NJ4,0^^0;17^K:+X'=X!(X>1000)!(X<0)!(X?.E1"."1N.N) X
+33 ;;^DD(119.721,25,3)
+34 ;;=TYPE A WHOLE NUMBER BETWEEN 0 AND 1000
+35 ;;^DD(119.721,25,21,0)
+36 ;;=^^2^2^2880716^^
+37 ;;^DD(119.721,25,21,1,0)
+38 ;;=This is the number of additional Friday breakfast meals which are
+39 ;;^DD(119.721,25,21,2,0)
+40 ;;=to be added to the inpatient forecast.
+41 ;;^DD(119.721,26,0)
+42 ;;=ADD. FRIDAY NOON^NJ4,0^^0;18^K:+X'=X!(X>1000)!(X<0)!(X?.E1"."1N.N) X
+43 ;;^DD(119.721,26,3)
+44 ;;=TYPE A WHOLE NUMBER BETWEEN 0 AND 1000
+45 ;;^DD(119.721,26,21,0)
+46 ;;=^^2^2^2880716^^
+47 ;;^DD(119.721,26,21,1,0)
+48 ;;=This is the number of additional Friday noon meals which are
+49 ;;^DD(119.721,26,21,2,0)
+50 ;;=to be added to the inpatient forecast.
+51 ;;^DD(119.721,27,0)
+52 ;;=ADD. FRIDAY EVENING^NJ4,0^^0;19^K:+X'=X!(X>1000)!(X<0)!(X?.E1"."1N.N) X
+53 ;;^DD(119.721,27,3)
+54 ;;=TYPE A WHOLE NUMBER BETWEEN 0 AND 1000
+55 ;;^DD(119.721,27,21,0)
+56 ;;=^^2^2^2880716^^
+57 ;;^DD(119.721,27,21,1,0)
+58 ;;=This is the number of additional Friday evening meals which are
+59 ;;^DD(119.721,27,21,2,0)
+60 ;;=to be added to the inpatient forecast.
+61 ;;^DD(119.721,28,0)
+62 ;;=ADD. SATURDAY BREAKFAST^NJ4,0^^0;20^K:+X'=X!(X>1000)!(X<0)!(X?.E1"."1N.N) X
+63 ;;^DD(119.721,28,3)
+64 ;;=TYPE A WHOLE NUMBER BETWEEN 0 AND 1000
+65 ;;^DD(119.721,28,21,0)
+66 ;;=^^2^2^2880716^^
+67 ;;^DD(119.721,28,21,1,0)
+68 ;;=This is the number of additional Saturday breakfast meals which are
+69 ;;^DD(119.721,28,21,2,0)
+70 ;;=to be added to the inpatient forecast.
+71 ;;^DD(119.721,29,0)
+72 ;;=ADD. SATURDAY NOON^NJ4,0^^0;21^K:+X'=X!(X>1000)!(X<0)!(X?.E1"."1N.N) X
+73 ;;^DD(119.721,29,3)
+74 ;;=TYPE A WHOLE NUMBER BETWEEN 0 AND 1000
+75 ;;^DD(119.721,29,21,0)
+76 ;;=^^2^2^2880716^^
+77 ;;^DD(119.721,29,21,1,0)
+78 ;;=This is the number of additional Saturday noon meals which are
+79 ;;^DD(119.721,29,21,2,0)
+80 ;;=to be added to the inpatient forecast.
+81 ;;^DD(119.721,30,0)
+82 ;;=ADD. SATURDAY EVENING^NJ4,0^^0;22^K:+X'=X!(X>1000)!(X<0)!(X?.E1"."1N.N) X
+83 ;;^DD(119.721,30,3)
+84 ;;=TYPE A WHOLE NUMBER BETWEEN 0 AND 1000
+85 ;;^DD(119.721,30,21,0)
+86 ;;=^^2^2^2880716^^
+87 ;;^DD(119.721,30,21,1,0)
+88 ;;=This is the number of additional Saturday evening meals which are
+89 ;;^DD(119.721,30,21,2,0)
+90 ;;=to be added to the inpatient forecast.
+91 ;;^DD(119.7211,0)
+92 ;;=PRODUCTION DIET PERCENTAGE SUB-FIELD^^16^8
+93 ;;^DD(119.7211,0,"DT")
+94 ;;=2911112
+95 ;;^DD(119.7211,0,"IX","B",119.7211,.01)
+96 ;;=
+97 ;;^DD(119.7211,0,"NM","PRODUCTION DIET PERCENTAGE")
+98 ;;=
+99 ;;^DD(119.7211,0,"UP")
+100 ;;=119.72
+101 ;;^DD(119.7211,.01,0)
+102 ;;=FORECAST % PRODUCTION DIET^MP116.2'X^FH(116.2,^0;1^I $D(X) S DINUM=X
+103 ;;^DD(119.7211,.01,1,0)
+104 ;;=^.1
+105 ;;^DD(119.7211,.01,1,1,0)
+106 ;;=119.7211^B
+107 ;;^DD(119.7211,.01,1,1,1)
+108 ;;=S ^FH(119.72,DA(1),"A","B",$E(X,1,30),DA)=""
+109 ;;^DD(119.7211,.01,1,1,2)
+110 ;;=K ^FH(119.72,DA(1),"A","B",$E(X,1,30),DA)
+111 ;;^DD(119.7211,.01,1,1,"%D",0)
+112 ;;=^^1^1^2911118^
+113 ;;^DD(119.7211,.01,1,1,"%D",1,0)
+114 ;;=This is the normal B cross-reference of the PRODUCTION DIET field.
+115 ;;^DD(119.7211,.01,21,0)
+116 ;;=^^2^2^2911211^^
+117 ;;^DD(119.7211,.01,21,1,0)
+118 ;;=This field is the production diet for which daily forecast percentages
+119 ;;^DD(119.7211,.01,21,2,0)
+120 ;;=are to be entered.
+121 ;;^DD(119.7211,.01,"DT")
+122 ;;=2911211
+123 ;;^DD(119.7211,10,0)
+124 ;;=SUNDAY CENSUS PERCENTAGE^NJ5,1^^0;2^K:+X'=X!(X>110)!(X<0)!(X?.E1"."2N.N) X
+125 ;;^DD(119.7211,10,3)
+126 ;;=TYPE A NUMBER BETWEEN 0 AND 110
+127 ;;^DD(119.7211,10,21,0)
+128 ;;=^^2^2^2880716^
+129 ;;^DD(119.7211,10,21,1,0)
+130 ;;=This field contains the % of total census on Sundays for which this