FHINI0NX ; ; 11-OCT-1995
;;5.0;Dietetics;;Oct 11, 1995
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
;;^UTILITY(U,$J,"OPT",1554,"U")
;;=CHECK INTEGRITY OF ROUTINES
;;^UTILITY(U,$J,"OPT",1555,0)
;;=FHX2^Recode Diets for all Inpatients^^R^^^^^^^^
;;^UTILITY(U,$J,"OPT",1555,1,0)
;;=^^5^5^2880717^
;;^UTILITY(U,$J,"OPT",1555,1,1,0)
;;=This option will automatically recode the production diet based
;;^UTILITY(U,$J,"OPT",1555,1,2,0)
;;=upon the clinical diet order for all inpatients using the current
;;^UTILITY(U,$J,"OPT",1555,1,3,0)
;;=data in the production diet file. It is used whenever significant
;;^UTILITY(U,$J,"OPT",1555,1,4,0)
;;=alterations have been made to the production diet file which
;;^UTILITY(U,$J,"OPT",1555,1,5,0)
;;=will affect the recoding of diets.
;;^UTILITY(U,$J,"OPT",1555,25)
;;=INP^FHORDR
;;^UTILITY(U,$J,"OPT",1555,"U")
;;=RECODE DIETS FOR ALL INPATIENT
;;^UTILITY(U,$J,"OPT",1556,0)
;;=FHX3^Check File Pointers^^R^^^^^^^^
;;^UTILITY(U,$J,"OPT",1556,1,0)
;;=^^5^5^2920605^^
;;^UTILITY(U,$J,"OPT",1556,1,1,0)
;;=This option will check all of the file relationships to ensure
;;^UTILITY(U,$J,"OPT",1556,1,2,0)
;;=that no entry has been deleted which is used by another file.
;;^UTILITY(U,$J,"OPT",1556,1,3,0)
;;=Since the patient file 'points' to many of these files it is
;;^UTILITY(U,$J,"OPT",1556,1,4,0)
;;=also checked if requested but may require a considerable
;;^UTILITY(U,$J,"OPT",1556,1,5,0)
;;=period of time.
;;^UTILITY(U,$J,"OPT",1556,25)
;;=FHXDB
;;^UTILITY(U,$J,"OPT",1556,"U")
;;=CHECK FILE POINTERS
;;^UTILITY(U,$J,"OPT",1557,0)
;;=FHX4^Create Dietetic File entry for all Inpatients^^R^^^^^^^^
;;^UTILITY(U,$J,"OPT",1557,1,0)
;;=^^4^4^2950121^^^^
;;^UTILITY(U,$J,"OPT",1557,1,1,0)
;;=This option will verify that all inpatients have a Dietetic
;;^UTILITY(U,$J,"OPT",1557,1,2,0)
;;=Patient file entry for the current admission. It is primarily
;;^UTILITY(U,$J,"OPT",1557,1,3,0)
;;=used when link failures have resulted in new admissions not
;;^UTILITY(U,$J,"OPT",1557,1,4,0)
;;=having a file entry created.
;;^UTILITY(U,$J,"OPT",1557,25)
;;=EN1^FHXIN
;;^UTILITY(U,$J,"OPT",1557,"U")
;;=CREATE DIETETIC FILE ENTRY FOR
;;^UTILITY(U,$J,"OPT",1559,0)
;;=FHPRC10^List Recipe Usage in Meals/Cycles^^R^^^^^^^^
;;^UTILITY(U,$J,"OPT",1559,1,0)
;;=^^2^2^2920107^^
;;^UTILITY(U,$J,"OPT",1559,1,1,0)
;;=This option will find all occurrences of a recipe in the
;;^UTILITY(U,$J,"OPT",1559,1,2,0)
;;=Meal file and the meal in the Menu Cycle file.
;;^UTILITY(U,$J,"OPT",1559,25)
;;=FHPRC7
;;^UTILITY(U,$J,"OPT",1559,"U")
;;=LIST RECIPE USAGE IN MEALS/CYC
;;^UTILITY(U,$J,"OPT",1560,0)
;;=FHSELM^Food Preferences^^M^^^^^^^^
;;^UTILITY(U,$J,"OPT",1560,1,0)
;;=^^2^2^2881103^^
;;^UTILITY(U,$J,"OPT",1560,1,1,0)
;;=This menu allows entry to all the food preference options
;;^UTILITY(U,$J,"OPT",1560,1,2,0)
;;=except for the file management options.
;;^UTILITY(U,$J,"OPT",1560,10,0)
;;=^19.01PI^3^3
;;^UTILITY(U,$J,"OPT",1560,10,1,0)
;;=1563^EP
;;^UTILITY(U,$J,"OPT",1560,10,1,"^")
;;=FHSEL3
;;^UTILITY(U,$J,"OPT",1560,10,2,0)
;;=1564^DP
;;^UTILITY(U,$J,"OPT",1560,10,2,"^")
;;=FHSEL4
;;^UTILITY(U,$J,"OPT",1560,10,3,0)
;;=1566^TP
;;^UTILITY(U,$J,"OPT",1560,10,3,"^")
;;=FHSEL5
;;^UTILITY(U,$J,"OPT",1560,99)
;;=56496,40780
;;^UTILITY(U,$J,"OPT",1560,"U")
;;=FOOD PREFERENCES
;;^UTILITY(U,$J,"OPT",1561,0)
;;=FHSEL1^Enter/Edit Food Preferences^^R^^^^^^^^
;;^UTILITY(U,$J,"OPT",1561,1,0)
;;=^^2^2^2890606^^
;;^UTILITY(U,$J,"OPT",1561,1,1,0)
;;=This option allows for the entry and editing of items into
;;^UTILITY(U,$J,"OPT",1561,1,2,0)
;;=the Food Preferences file (115.2).
;;^UTILITY(U,$J,"OPT",1561,25)
;;=EN1^FHSEL1
;;^UTILITY(U,$J,"OPT",1561,"U")
;;=ENTER/EDIT FOOD PREFERENCES
;;^UTILITY(U,$J,"OPT",1562,0)
;;=FHSEL2^List Food Preferences^^R^^^^^^^^
;;^UTILITY(U,$J,"OPT",1562,1,0)
;;=^^2^2^2901101^^^^
;;^UTILITY(U,$J,"OPT",1562,1,1,0)
;;=This option will list all of the entries in the Food
;;^UTILITY(U,$J,"OPT",1562,1,2,0)
;;=Preferences file (115.2).
;;^UTILITY(U,$J,"OPT",1562,25)
;;=EN2^FHSEL1
;;^UTILITY(U,$J,"OPT",1562,"U")
;;=LIST FOOD PREFERENCES
;;^UTILITY(U,$J,"OPT",1563,0)
;;=FHSEL3^Enter/Edit Patient Preferences^^R^^^^^^^^
;;^UTILITY(U,$J,"OPT",1563,1,0)
;;=^^2^2^2930208^^
;;^UTILITY(U,$J,"OPT",1563,1,1,0)
;;=This options allows for the entry and editing of food preferences
;;^UTILITY(U,$J,"OPT",1563,1,2,0)
;;=for a particular patient.
;;^UTILITY(U,$J,"OPT",1563,25)
;;=EN3^FHSEL1
;;^UTILITY(U,$J,"OPT",1563,"U")
;;=ENTER/EDIT PATIENT PREFERENCES
;;^UTILITY(U,$J,"OPT",1564,0)
;;=FHSEL4^Display Patient Preferences^^R^^^^^^^^
FHINI0NX ; ; 11-OCT-1995
+1 ;;5.0;Dietetics;;Oct 11, 1995
+2 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 ;;^UTILITY(U,$J,"OPT",1554,"U")
+2 ;;=CHECK INTEGRITY OF ROUTINES
+3 ;;^UTILITY(U,$J,"OPT",1555,0)
+4 ;;=FHX2^Recode Diets for all Inpatients^^R^^^^^^^^
+5 ;;^UTILITY(U,$J,"OPT",1555,1,0)
+6 ;;=^^5^5^2880717^
+7 ;;^UTILITY(U,$J,"OPT",1555,1,1,0)
+8 ;;=This option will automatically recode the production diet based
+9 ;;^UTILITY(U,$J,"OPT",1555,1,2,0)
+10 ;;=upon the clinical diet order for all inpatients using the current
+11 ;;^UTILITY(U,$J,"OPT",1555,1,3,0)
+12 ;;=data in the production diet file. It is used whenever significant
+13 ;;^UTILITY(U,$J,"OPT",1555,1,4,0)
+14 ;;=alterations have been made to the production diet file which
+15 ;;^UTILITY(U,$J,"OPT",1555,1,5,0)
+16 ;;=will affect the recoding of diets.
+17 ;;^UTILITY(U,$J,"OPT",1555,25)
+18 ;;=INP^FHORDR
+19 ;;^UTILITY(U,$J,"OPT",1555,"U")
+20 ;;=RECODE DIETS FOR ALL INPATIENT
+21 ;;^UTILITY(U,$J,"OPT",1556,0)
+22 ;;=FHX3^Check File Pointers^^R^^^^^^^^
+23 ;;^UTILITY(U,$J,"OPT",1556,1,0)
+24 ;;=^^5^5^2920605^^
+25 ;;^UTILITY(U,$J,"OPT",1556,1,1,0)
+26 ;;=This option will check all of the file relationships to ensure
+27 ;;^UTILITY(U,$J,"OPT",1556,1,2,0)
+28 ;;=that no entry has been deleted which is used by another file.
+29 ;;^UTILITY(U,$J,"OPT",1556,1,3,0)
+30 ;;=Since the patient file 'points' to many of these files it is
+31 ;;^UTILITY(U,$J,"OPT",1556,1,4,0)
+32 ;;=also checked if requested but may require a considerable
+33 ;;^UTILITY(U,$J,"OPT",1556,1,5,0)
+34 ;;=period of time.
+35 ;;^UTILITY(U,$J,"OPT",1556,25)
+36 ;;=FHXDB
+37 ;;^UTILITY(U,$J,"OPT",1556,"U")
+38 ;;=CHECK FILE POINTERS
+39 ;;^UTILITY(U,$J,"OPT",1557,0)
+40 ;;=FHX4^Create Dietetic File entry for all Inpatients^^R^^^^^^^^
+41 ;;^UTILITY(U,$J,"OPT",1557,1,0)
+42 ;;=^^4^4^2950121^^^^
+43 ;;^UTILITY(U,$J,"OPT",1557,1,1,0)
+44 ;;=This option will verify that all inpatients have a Dietetic
+45 ;;^UTILITY(U,$J,"OPT",1557,1,2,0)
+46 ;;=Patient file entry for the current admission. It is primarily
+47 ;;^UTILITY(U,$J,"OPT",1557,1,3,0)
+48 ;;=used when link failures have resulted in new admissions not
+49 ;;^UTILITY(U,$J,"OPT",1557,1,4,0)
+50 ;;=having a file entry created.
+51 ;;^UTILITY(U,$J,"OPT",1557,25)
+52 ;;=EN1^FHXIN
+53 ;;^UTILITY(U,$J,"OPT",1557,"U")
+54 ;;=CREATE DIETETIC FILE ENTRY FOR
+55 ;;^UTILITY(U,$J,"OPT",1559,0)
+56 ;;=FHPRC10^List Recipe Usage in Meals/Cycles^^R^^^^^^^^
+57 ;;^UTILITY(U,$J,"OPT",1559,1,0)
+58 ;;=^^2^2^2920107^^
+59 ;;^UTILITY(U,$J,"OPT",1559,1,1,0)
+60 ;;=This option will find all occurrences of a recipe in the
+61 ;;^UTILITY(U,$J,"OPT",1559,1,2,0)
+62 ;;=Meal file and the meal in the Menu Cycle file.
+63 ;;^UTILITY(U,$J,"OPT",1559,25)
+64 ;;=FHPRC7
+65 ;;^UTILITY(U,$J,"OPT",1559,"U")
+66 ;;=LIST RECIPE USAGE IN MEALS/CYC
+67 ;;^UTILITY(U,$J,"OPT",1560,0)
+68 ;;=FHSELM^Food Preferences^^M^^^^^^^^
+69 ;;^UTILITY(U,$J,"OPT",1560,1,0)
+70 ;;=^^2^2^2881103^^
+71 ;;^UTILITY(U,$J,"OPT",1560,1,1,0)
+72 ;;=This menu allows entry to all the food preference options
+73 ;;^UTILITY(U,$J,"OPT",1560,1,2,0)
+74 ;;=except for the file management options.
+75 ;;^UTILITY(U,$J,"OPT",1560,10,0)
+76 ;;=^19.01PI^3^3
+77 ;;^UTILITY(U,$J,"OPT",1560,10,1,0)
+78 ;;=1563^EP
+79 ;;^UTILITY(U,$J,"OPT",1560,10,1,"^")
+80 ;;=FHSEL3
+81 ;;^UTILITY(U,$J,"OPT",1560,10,2,0)
+82 ;;=1564^DP
+83 ;;^UTILITY(U,$J,"OPT",1560,10,2,"^")
+84 ;;=FHSEL4
+85 ;;^UTILITY(U,$J,"OPT",1560,10,3,0)
+86 ;;=1566^TP
+87 ;;^UTILITY(U,$J,"OPT",1560,10,3,"^")
+88 ;;=FHSEL5
+89 ;;^UTILITY(U,$J,"OPT",1560,99)
+90 ;;=56496,40780
+91 ;;^UTILITY(U,$J,"OPT",1560,"U")
+92 ;;=FOOD PREFERENCES
+93 ;;^UTILITY(U,$J,"OPT",1561,0)
+94 ;;=FHSEL1^Enter/Edit Food Preferences^^R^^^^^^^^
+95 ;;^UTILITY(U,$J,"OPT",1561,1,0)
+96 ;;=^^2^2^2890606^^
+97 ;;^UTILITY(U,$J,"OPT",1561,1,1,0)
+98 ;;=This option allows for the entry and editing of items into
+99 ;;^UTILITY(U,$J,"OPT",1561,1,2,0)
+100 ;;=the Food Preferences file (115.2).
+101 ;;^UTILITY(U,$J,"OPT",1561,25)
+102 ;;=EN1^FHSEL1
+103 ;;^UTILITY(U,$J,"OPT",1561,"U")
+104 ;;=ENTER/EDIT FOOD PREFERENCES
+105 ;;^UTILITY(U,$J,"OPT",1562,0)
+106 ;;=FHSEL2^List Food Preferences^^R^^^^^^^^
+107 ;;^UTILITY(U,$J,"OPT",1562,1,0)
+108 ;;=^^2^2^2901101^^^^
+109 ;;^UTILITY(U,$J,"OPT",1562,1,1,0)
+110 ;;=This option will list all of the entries in the Food
+111 ;;^UTILITY(U,$J,"OPT",1562,1,2,0)
+112 ;;=Preferences file (115.2).
+113 ;;^UTILITY(U,$J,"OPT",1562,25)
+114 ;;=EN2^FHSEL1
+115 ;;^UTILITY(U,$J,"OPT",1562,"U")
+116 ;;=LIST FOOD PREFERENCES
+117 ;;^UTILITY(U,$J,"OPT",1563,0)
+118 ;;=FHSEL3^Enter/Edit Patient Preferences^^R^^^^^^^^
+119 ;;^UTILITY(U,$J,"OPT",1563,1,0)
+120 ;;=^^2^2^2930208^^
+121 ;;^UTILITY(U,$J,"OPT",1563,1,1,0)
+122 ;;=This options allows for the entry and editing of food preferences
+123 ;;^UTILITY(U,$J,"OPT",1563,1,2,0)
+124 ;;=for a particular patient.
+125 ;;^UTILITY(U,$J,"OPT",1563,25)
+126 ;;=EN3^FHSEL1
+127 ;;^UTILITY(U,$J,"OPT",1563,"U")
+128 ;;=ENTER/EDIT PATIENT PREFERENCES
+129 ;;^UTILITY(U,$J,"OPT",1564,0)
+130 ;;=FHSEL4^Display Patient Preferences^^R^^^^^^^^