FHINI0MT ; ; 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.7211,10,21,2,0)
;;=production diet is to be forecast.
;;^DD(119.7211,10,"DT")
;;=2870716
;;^DD(119.7211,11,0)
;;=MONDAY CENSUS PERCENTAGE^NJ5,1^^0;3^K:+X'=X!(X>110)!(X<0)!(X?.E1"."2N.N) X
;;^DD(119.7211,11,3)
;;=TYPE A NUMBER BETWEEN 0 AND 110
;;^DD(119.7211,11,21,0)
;;=^^2^2^2880716^
;;^DD(119.7211,11,21,1,0)
;;=This field contains the % of total census on Mondays for which this
;;^DD(119.7211,11,21,2,0)
;;=production diet is to be forecast.
;;^DD(119.7211,11,"DT")
;;=2870716
;;^DD(119.7211,12,0)
;;=TUESDAY CENSUS PERCENTAGE^NJ5,1^^0;4^K:+X'=X!(X>110)!(X<0)!(X?.E1"."2N.N) X
;;^DD(119.7211,12,3)
;;=TYPE A NUMBER BETWEEN 0 AND 110
;;^DD(119.7211,12,21,0)
;;=^^2^2^2880716^
;;^DD(119.7211,12,21,1,0)
;;=This field contains the % of total census on Tuesdays for which this
;;^DD(119.7211,12,21,2,0)
;;=production diet is to be forecast.
;;^DD(119.7211,12,"DT")
;;=2870716
;;^DD(119.7211,13,0)
;;=WEDNESDAY CENSUS PERCENTAGE^NJ5,1^^0;5^K:+X'=X!(X>110)!(X<0)!(X?.E1"."2N.N) X
;;^DD(119.7211,13,3)
;;=TYPE A NUMBER BETWEEN 0 AND 110
;;^DD(119.7211,13,21,0)
;;=^^2^2^2880716^
;;^DD(119.7211,13,21,1,0)
;;=This field contains the % of total census on Wednesdays for which this
;;^DD(119.7211,13,21,2,0)
;;=production diet is to be forecast.
;;^DD(119.7211,13,"DT")
;;=2870716
;;^DD(119.7211,14,0)
;;=THURSDAY CENSUS PERCENTAGE^NJ5,1^^0;6^K:+X'=X!(X>110)!(X<0)!(X?.E1"."2N.N) X
;;^DD(119.7211,14,3)
;;=TYPE A NUMBER BETWEEN 0 AND 110
;;^DD(119.7211,14,21,0)
;;=^^2^2^2880716^
;;^DD(119.7211,14,21,1,0)
;;=This field contains the % of total census on Thursdays for which this
;;^DD(119.7211,14,21,2,0)
;;=production diet is to be forecast.
;;^DD(119.7211,14,"DT")
;;=2870716
;;^DD(119.7211,15,0)
;;=FRIDAY CENSUS PERCENTAGE^NJ5,1^^0;7^K:+X'=X!(X>110)!(X<0)!(X?.E1"."2N.N) X
;;^DD(119.7211,15,3)
;;=TYPE A NUMBER BETWEEN 0 AND 110
;;^DD(119.7211,15,21,0)
;;=^^2^2^2880716^
;;^DD(119.7211,15,21,1,0)
;;=This field contains the % of total census on Fridays for which this
;;^DD(119.7211,15,21,2,0)
;;=production diet is to be forecast.
;;^DD(119.7211,15,"DT")
;;=2870716
;;^DD(119.7211,16,0)
;;=SATURDAY CENSUS PERCENTAGE^NJ5,1^^0;8^K:+X'=X!(X>110)!(X<0)!(X?.E1"."2N.N) X
;;^DD(119.7211,16,3)
;;=TYPE A NUMBER BETWEEN 0 AND 110
;;^DD(119.7211,16,21,0)
;;=^^2^2^2880716^
;;^DD(119.7211,16,21,1,0)
;;=This field contains the % of total census on Saturdays for which this
;;^DD(119.7211,16,21,2,0)
;;=production diet is to be forecast.
;;^DD(119.7211,16,"DT")
;;=2870716
;;^DD(119.722,0)
;;=CENSUS DATE SUB-FIELD^^5^5
;;^DD(119.722,0,"DT")
;;=2920108
;;^DD(119.722,0,"NM","CENSUS DATE")
;;=
;;^DD(119.722,0,"UP")
;;=119.72
;;^DD(119.722,.01,0)
;;=CENSUS DATE^DX^^0;1^S %DT="EX" D ^%DT S X=Y K:Y<1 X I $D(X) S DINUM=X
;;^DD(119.722,.01,1,0)
;;=^.1^^0
;;^DD(119.722,.01,21,0)
;;=^^2^2^2920220^
;;^DD(119.722,.01,21,1,0)
;;=This is the date for which the forecast census and actual census
;;^DD(119.722,.01,21,2,0)
;;=are tabulated.
;;^DD(119.722,.01,"DT")
;;=2920108
;;^DD(119.722,1,0)
;;=FORECAST CENSUS^NJ4,0^^0;2^K:+X'=X!(X>5000)!(X<0)!(X?.E1"."1N.N) X
;;^DD(119.722,1,3)
;;=Type a Number between 0 and 5000, 0 Decimal Digits
;;^DD(119.722,1,21,0)
;;=^^4^4^2920108^
;;^DD(119.722,1,21,1,0)
;;=This is the calculated forecast census for wards served by this
;;^DD(119.722,1,21,2,0)
;;=Service Point. It should be noted that some of these wards may
;;^DD(119.722,1,21,3,0)
;;=have only a small percentage of their patients served by the
;;^DD(119.722,1,21,4,0)
;;=Service Point.
;;^DD(119.722,1,"DT")
;;=2920108
;;^DD(119.722,2,0)
;;=ACTUAL CENSUS^NJ4,0^^0;3^K:+X'=X!(X>5000)!(X<0)!(X?.E1"."1N.N) X
;;^DD(119.722,2,3)
;;=Type a Number between 0 and 5000, 0 Decimal Digits
;;^DD(119.722,2,21,0)
;;=^^2^2^2920108^
;;^DD(119.722,2,21,1,0)
;;=This field contains the actual census of the wards served by this
;;^DD(119.722,2,21,2,0)
;;=Service Point based upon the MAS ward census values.
;;^DD(119.722,2,"DT")
;;=2920108
;;^DD(119.722,3,0)
;;=CORRECTED FORECAST^NJ4,0^^0;4^K:+X'=X!(X>5000)!(X<0)!(X?.E1"."1N.N) X
;;^DD(119.722,3,3)
;;=Type a Number between 0 and 5000, 0 Decimal Digits
;;^DD(119.722,3,21,0)
;;=^^3^3^2920108^
;;^DD(119.722,3,21,1,0)
;;=This field contains the corrected forecast which is the forecast
;;^DD(119.722,3,21,2,0)
;;=census corrected by applying the various percentages for tray,
;;^DD(119.722,3,21,3,0)
;;=cafeteria, and dining room utilization.
;;^DD(119.722,3,"DT")
;;=2920108
;;^DD(119.722,5,0)
;;=DATE OF LAST FORECAST^D^^0;5^S %DT="EX" D ^%DT S X=Y K:Y<1 X
FHINI0MT ; ; 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.7211,10,21,2,0)
+2 ;;=production diet is to be forecast.
+3 ;;^DD(119.7211,10,"DT")
+4 ;;=2870716
+5 ;;^DD(119.7211,11,0)
+6 ;;=MONDAY CENSUS PERCENTAGE^NJ5,1^^0;3^K:+X'=X!(X>110)!(X<0)!(X?.E1"."2N.N) X
+7 ;;^DD(119.7211,11,3)
+8 ;;=TYPE A NUMBER BETWEEN 0 AND 110
+9 ;;^DD(119.7211,11,21,0)
+10 ;;=^^2^2^2880716^
+11 ;;^DD(119.7211,11,21,1,0)
+12 ;;=This field contains the % of total census on Mondays for which this
+13 ;;^DD(119.7211,11,21,2,0)
+14 ;;=production diet is to be forecast.
+15 ;;^DD(119.7211,11,"DT")
+16 ;;=2870716
+17 ;;^DD(119.7211,12,0)
+18 ;;=TUESDAY CENSUS PERCENTAGE^NJ5,1^^0;4^K:+X'=X!(X>110)!(X<0)!(X?.E1"."2N.N) X
+19 ;;^DD(119.7211,12,3)
+20 ;;=TYPE A NUMBER BETWEEN 0 AND 110
+21 ;;^DD(119.7211,12,21,0)
+22 ;;=^^2^2^2880716^
+23 ;;^DD(119.7211,12,21,1,0)
+24 ;;=This field contains the % of total census on Tuesdays for which this
+25 ;;^DD(119.7211,12,21,2,0)
+26 ;;=production diet is to be forecast.
+27 ;;^DD(119.7211,12,"DT")
+28 ;;=2870716
+29 ;;^DD(119.7211,13,0)
+30 ;;=WEDNESDAY CENSUS PERCENTAGE^NJ5,1^^0;5^K:+X'=X!(X>110)!(X<0)!(X?.E1"."2N.N) X
+31 ;;^DD(119.7211,13,3)
+32 ;;=TYPE A NUMBER BETWEEN 0 AND 110
+33 ;;^DD(119.7211,13,21,0)
+34 ;;=^^2^2^2880716^
+35 ;;^DD(119.7211,13,21,1,0)
+36 ;;=This field contains the % of total census on Wednesdays for which this
+37 ;;^DD(119.7211,13,21,2,0)
+38 ;;=production diet is to be forecast.
+39 ;;^DD(119.7211,13,"DT")
+40 ;;=2870716
+41 ;;^DD(119.7211,14,0)
+42 ;;=THURSDAY CENSUS PERCENTAGE^NJ5,1^^0;6^K:+X'=X!(X>110)!(X<0)!(X?.E1"."2N.N) X
+43 ;;^DD(119.7211,14,3)
+44 ;;=TYPE A NUMBER BETWEEN 0 AND 110
+45 ;;^DD(119.7211,14,21,0)
+46 ;;=^^2^2^2880716^
+47 ;;^DD(119.7211,14,21,1,0)
+48 ;;=This field contains the % of total census on Thursdays for which this
+49 ;;^DD(119.7211,14,21,2,0)
+50 ;;=production diet is to be forecast.
+51 ;;^DD(119.7211,14,"DT")
+52 ;;=2870716
+53 ;;^DD(119.7211,15,0)
+54 ;;=FRIDAY CENSUS PERCENTAGE^NJ5,1^^0;7^K:+X'=X!(X>110)!(X<0)!(X?.E1"."2N.N) X
+55 ;;^DD(119.7211,15,3)
+56 ;;=TYPE A NUMBER BETWEEN 0 AND 110
+57 ;;^DD(119.7211,15,21,0)
+58 ;;=^^2^2^2880716^
+59 ;;^DD(119.7211,15,21,1,0)
+60 ;;=This field contains the % of total census on Fridays for which this
+61 ;;^DD(119.7211,15,21,2,0)
+62 ;;=production diet is to be forecast.
+63 ;;^DD(119.7211,15,"DT")
+64 ;;=2870716
+65 ;;^DD(119.7211,16,0)
+66 ;;=SATURDAY CENSUS PERCENTAGE^NJ5,1^^0;8^K:+X'=X!(X>110)!(X<0)!(X?.E1"."2N.N) X
+67 ;;^DD(119.7211,16,3)
+68 ;;=TYPE A NUMBER BETWEEN 0 AND 110
+69 ;;^DD(119.7211,16,21,0)
+70 ;;=^^2^2^2880716^
+71 ;;^DD(119.7211,16,21,1,0)
+72 ;;=This field contains the % of total census on Saturdays for which this
+73 ;;^DD(119.7211,16,21,2,0)
+74 ;;=production diet is to be forecast.
+75 ;;^DD(119.7211,16,"DT")
+76 ;;=2870716
+77 ;;^DD(119.722,0)
+78 ;;=CENSUS DATE SUB-FIELD^^5^5
+79 ;;^DD(119.722,0,"DT")
+80 ;;=2920108
+81 ;;^DD(119.722,0,"NM","CENSUS DATE")
+82 ;;=
+83 ;;^DD(119.722,0,"UP")
+84 ;;=119.72
+85 ;;^DD(119.722,.01,0)
+86 ;;=CENSUS DATE^DX^^0;1^S %DT="EX" D ^%DT S X=Y K:Y<1 X I $D(X) S DINUM=X
+87 ;;^DD(119.722,.01,1,0)
+88 ;;=^.1^^0
+89 ;;^DD(119.722,.01,21,0)
+90 ;;=^^2^2^2920220^
+91 ;;^DD(119.722,.01,21,1,0)
+92 ;;=This is the date for which the forecast census and actual census
+93 ;;^DD(119.722,.01,21,2,0)
+94 ;;=are tabulated.
+95 ;;^DD(119.722,.01,"DT")
+96 ;;=2920108
+97 ;;^DD(119.722,1,0)
+98 ;;=FORECAST CENSUS^NJ4,0^^0;2^K:+X'=X!(X>5000)!(X<0)!(X?.E1"."1N.N) X
+99 ;;^DD(119.722,1,3)
+100 ;;=Type a Number between 0 and 5000, 0 Decimal Digits
+101 ;;^DD(119.722,1,21,0)
+102 ;;=^^4^4^2920108^
+103 ;;^DD(119.722,1,21,1,0)
+104 ;;=This is the calculated forecast census for wards served by this
+105 ;;^DD(119.722,1,21,2,0)
+106 ;;=Service Point. It should be noted that some of these wards may
+107 ;;^DD(119.722,1,21,3,0)
+108 ;;=have only a small percentage of their patients served by the
+109 ;;^DD(119.722,1,21,4,0)
+110 ;;=Service Point.
+111 ;;^DD(119.722,1,"DT")
+112 ;;=2920108
+113 ;;^DD(119.722,2,0)
+114 ;;=ACTUAL CENSUS^NJ4,0^^0;3^K:+X'=X!(X>5000)!(X<0)!(X?.E1"."1N.N) X
+115 ;;^DD(119.722,2,3)
+116 ;;=Type a Number between 0 and 5000, 0 Decimal Digits
+117 ;;^DD(119.722,2,21,0)
+118 ;;=^^2^2^2920108^
+119 ;;^DD(119.722,2,21,1,0)
+120 ;;=This field contains the actual census of the wards served by this
+121 ;;^DD(119.722,2,21,2,0)
+122 ;;=Service Point based upon the MAS ward census values.
+123 ;;^DD(119.722,2,"DT")
+124 ;;=2920108
+125 ;;^DD(119.722,3,0)
+126 ;;=CORRECTED FORECAST^NJ4,0^^0;4^K:+X'=X!(X>5000)!(X<0)!(X?.E1"."1N.N) X
+127 ;;^DD(119.722,3,3)
+128 ;;=Type a Number between 0 and 5000, 0 Decimal Digits
+129 ;;^DD(119.722,3,21,0)
+130 ;;=^^3^3^2920108^
+131 ;;^DD(119.722,3,21,1,0)
+132 ;;=This field contains the corrected forecast which is the forecast
+133 ;;^DD(119.722,3,21,2,0)
+134 ;;=census corrected by applying the various percentages for tray,
+135 ;;^DD(119.722,3,21,3,0)
+136 ;;=cafeteria, and dining room utilization.
+137 ;;^DD(119.722,3,"DT")
+138 ;;=2920108
+139 ;;^DD(119.722,5,0)
+140 ;;=DATE OF LAST FORECAST^D^^0;5^S %DT="EX" D ^%DT S X=Y K:Y<1 X