FHINI0NB ; ; 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,"DIPT",335,0)
;;=FHPROD^2881202^^116.2^^^2950703^
;;^UTILITY(U,$J,"DIPT",335,"%D",0)
;;=^^3^3^2880709^
;;^UTILITY(U,$J,"DIPT",335,"%D",1,0)
;;=This template lists the production diets contained in the
;;^UTILITY(U,$J,"DIPT",335,"%D",2,0)
;;=Production Diet file (116.2) along with the associated
;;^UTILITY(U,$J,"DIPT",335,"%D",3,0)
;;=data elements.
;;^UTILITY(U,$J,"DIPT",335,"F",1)
;;=8;"TALLY ORDER";R4~1;"CODE";R3;C8~.01;"DIET";L30;C14~99;"INACT";C47~3;"REV";R3;C55~7;R4;C61~7.5;"DAILY MENU";R4;C68~10;"COMBO";R4;C75~
;;^UTILITY(U,$J,"DIPT",335,"F",2)
;;=11,.01;"TALLIED PROD. DIETS";L30;C82~
;;^UTILITY(U,$J,"DIPT",335,"H")
;;=PRODUCTION DIET LIST
;;^UTILITY(U,$J,"DIPT",336,0)
;;=FHPSTO^2861208^^113.1^^^2950626^
;;^UTILITY(U,$J,"DIPT",336,"%D",0)
;;=^^3^3^2880709^
;;^UTILITY(U,$J,"DIPT",336,"%D",1,0)
;;=This template lists all of the storage locations contained
;;^UTILITY(U,$J,"DIPT",336,"%D",2,0)
;;=in the Storage Location file (113.1) along with the
;;^UTILITY(U,$J,"DIPT",336,"%D",3,0)
;;=associated data elements.
;;^UTILITY(U,$J,"DIPT",336,"F",2)
;;=.01~1;C20~2;C30~
;;^UTILITY(U,$J,"DIPT",336,"H")
;;=STORAGE LOCATION LIST
;;^UTILITY(U,$J,"DIPT",337,0)
;;=FHRECC^2950428.1057^^114.1^479^^2950705
;;^UTILITY(U,$J,"DIPT",337,"%D",0)
;;=^^3^3^2930119^^
;;^UTILITY(U,$J,"DIPT",337,"%D",1,0)
;;=This template lists the recipe categories contained in the
;;^UTILITY(U,$J,"DIPT",337,"%D",2,0)
;;=Recipe Category file (114.1) along with the associated
;;^UTILITY(U,$J,"DIPT",337,"%D",3,0)
;;=data elements.
;;^UTILITY(U,$J,"DIPT",337,"F",2)
;;=.01~1;C20~2;"PRINT ORDER";C30~99;C45~
;;^UTILITY(U,$J,"DIPT",337,"H")
;;=RECIPE CATEGORY LIST
;;^UTILITY(U,$J,"DIPT",338,0)
;;=FHPROP^2880407^^114.2^^^2950706^
;;^UTILITY(U,$J,"DIPT",338,"%D",0)
;;=^^3^3^2880709^
;;^UTILITY(U,$J,"DIPT",338,"%D",1,0)
;;=This template lists the preparation areas contained in the
;;^UTILITY(U,$J,"DIPT",338,"%D",2,0)
;;=Preparation Area file (114.2) along with the associated
;;^UTILITY(U,$J,"DIPT",338,"%D",3,0)
;;=data elements.
;;^UTILITY(U,$J,"DIPT",338,"F",2)
;;=.01~1;C20~2;C30~
;;^UTILITY(U,$J,"DIPT",338,"H")
;;=PREPARATION AREA LIST
;;^UTILITY(U,$J,"DIPT",339,0)
;;=FHSYP1^2900123.1544^^119.9^^^2950717^
;;^UTILITY(U,$J,"DIPT",339,"%D",0)
;;=^^2^2^2900317^
;;^UTILITY(U,$J,"DIPT",339,"%D",1,0)
;;=This template is used to list the laboratory tests selected as
;;^UTILITY(U,$J,"DIPT",339,"%D",2,0)
;;=those of interest to dietetics.
;;^UTILITY(U,$J,"DIPT",339,"F",2)
;;=80,.01~80,1;L15~80,4;C52~80,2;C60;"PRINT ON ASSESS"~80,3;C70;"PRINT ON SCREEN"~
;;^UTILITY(U,$J,"DIPT",339,"H")
;;=FH SITE PARAMETERS LIST
;;^UTILITY(U,$J,"DIPT",340,0)
;;=FHSYP2^2900123.1558^^119.9^^^2950717^
;;^UTILITY(U,$J,"DIPT",340,"%D",0)
;;=^^2^2^2900317^
;;^UTILITY(U,$J,"DIPT",340,"%D",1,0)
;;=This template is used to list the drugs contained in a set of
;;^UTILITY(U,$J,"DIPT",340,"%D",2,0)
;;=drug classifications selected as those of interest to dietetics.
;;^UTILITY(U,$J,"DIPT",340,"DXS",1,9.2)
;;=S I(1,0)=$S($D(D1):D1,1:""),I(0,0)=$S($D(D0):D0,1:""),DIP(1)=$S($D(^FH(119.9,D0,"P",D1,0)):^(0),1:""),D0=$P(DIP(1),U,1) S:'$D(^PS(50.605,+D0,0)) D0=-1
;;^UTILITY(U,$J,"DIPT",340,"F",1)
;;=85,.01;"DRUG CLASS"~
;;^UTILITY(U,$J,"DIPT",340,"F",2)
;;=85,X DXS(1,9.2) S DIP(101)=$S($D(^PS(50.605,D0,0)):^(0),1:"") S X=$P(DIP(101),U,2) S D0=I(0,0) S D1=I(1,0) W X K DIP;C12;"TITLE";Z;"DRUG CLASSIFICATIONS:CLASSIFICATION"~
;;^UTILITY(U,$J,"DIPT",340,"H")
;;=FH SITE PARAMETERS LIST
;;^UTILITY(U,$J,"DIPT",341,0)
;;=FHSELIST^2940726.1218^@^115.2^479^@^2950703
;;^UTILITY(U,$J,"DIPT",341,"%D",0)
;;=^^2^2^2880901^
;;^UTILITY(U,$J,"DIPT",341,"%D",1,0)
;;=This template is used to list the patient preference items
;;^UTILITY(U,$J,"DIPT",341,"%D",2,0)
;;=contained in the Patient Preferences file (115.2).
;;^UTILITY(U,$J,"DIPT",341,"F",2)
;;=.01;S1~1;"TYPE";L3;C32~99;"INA";C38~20;"DEF";L3;C43~21;"MEAL";L3;C48~3;"RECIPE";C54~10,.01;"EXCLUDED RECIPES";C54~
;;^UTILITY(U,$J,"DIPT",341,"H")
;;=PATIENT PREFERENCES LIST
;;^UTILITY(U,$J,"KEY",42,0)
;;=FHMGR
;;^UTILITY(U,$J,"KEY",42,1,0)
;;=^^3^3^2890623^^^
;;^UTILITY(U,$J,"KEY",42,1,1,0)
;;=This key allows deletion of Dietetics file entries as well as the
;;^UTILITY(U,$J,"KEY",42,1,2,0)
;;=ability to select inactivated entries for re-activation or
;;^UTILITY(U,$J,"KEY",42,1,3,0)
;;=deletion.
;;^UTILITY(U,$J,"OPT",1408,0)
;;=FHDMP^Patient Data Log^^R^^^^^^^^
;;^UTILITY(U,$J,"OPT",1408,1,0)
;;=^^4^4^2880908^^
;;^UTILITY(U,$J,"OPT",1408,1,1,0)
;;=This option will dump all of the dietetic data for a particular
FHINI0NB ; ; 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,"DIPT",335,0)
+2 ;;=FHPROD^2881202^^116.2^^^2950703^
+3 ;;^UTILITY(U,$J,"DIPT",335,"%D",0)
+4 ;;=^^3^3^2880709^
+5 ;;^UTILITY(U,$J,"DIPT",335,"%D",1,0)
+6 ;;=This template lists the production diets contained in the
+7 ;;^UTILITY(U,$J,"DIPT",335,"%D",2,0)
+8 ;;=Production Diet file (116.2) along with the associated
+9 ;;^UTILITY(U,$J,"DIPT",335,"%D",3,0)
+10 ;;=data elements.
+11 ;;^UTILITY(U,$J,"DIPT",335,"F",1)
+12 ;;=8;"TALLY ORDER";R4~1;"CODE";R3;C8~.01;"DIET";L30;C14~99;"INACT";C47~3;"REV";R3;C55~7;R4;C61~7.5;"DAILY MENU";R4;C68~10;"COMBO";R4;C75~
+13 ;;^UTILITY(U,$J,"DIPT",335,"F",2)
+14 ;;=11,.01;"TALLIED PROD. DIETS";L30;C82~
+15 ;;^UTILITY(U,$J,"DIPT",335,"H")
+16 ;;=PRODUCTION DIET LIST
+17 ;;^UTILITY(U,$J,"DIPT",336,0)
+18 ;;=FHPSTO^2861208^^113.1^^^2950626^
+19 ;;^UTILITY(U,$J,"DIPT",336,"%D",0)
+20 ;;=^^3^3^2880709^
+21 ;;^UTILITY(U,$J,"DIPT",336,"%D",1,0)
+22 ;;=This template lists all of the storage locations contained
+23 ;;^UTILITY(U,$J,"DIPT",336,"%D",2,0)
+24 ;;=in the Storage Location file (113.1) along with the
+25 ;;^UTILITY(U,$J,"DIPT",336,"%D",3,0)
+26 ;;=associated data elements.
+27 ;;^UTILITY(U,$J,"DIPT",336,"F",2)
+28 ;;=.01~1;C20~2;C30~
+29 ;;^UTILITY(U,$J,"DIPT",336,"H")
+30 ;;=STORAGE LOCATION LIST
+31 ;;^UTILITY(U,$J,"DIPT",337,0)
+32 ;;=FHRECC^2950428.1057^^114.1^479^^2950705
+33 ;;^UTILITY(U,$J,"DIPT",337,"%D",0)
+34 ;;=^^3^3^2930119^^
+35 ;;^UTILITY(U,$J,"DIPT",337,"%D",1,0)
+36 ;;=This template lists the recipe categories contained in the
+37 ;;^UTILITY(U,$J,"DIPT",337,"%D",2,0)
+38 ;;=Recipe Category file (114.1) along with the associated
+39 ;;^UTILITY(U,$J,"DIPT",337,"%D",3,0)
+40 ;;=data elements.
+41 ;;^UTILITY(U,$J,"DIPT",337,"F",2)
+42 ;;=.01~1;C20~2;"PRINT ORDER";C30~99;C45~
+43 ;;^UTILITY(U,$J,"DIPT",337,"H")
+44 ;;=RECIPE CATEGORY LIST
+45 ;;^UTILITY(U,$J,"DIPT",338,0)
+46 ;;=FHPROP^2880407^^114.2^^^2950706^
+47 ;;^UTILITY(U,$J,"DIPT",338,"%D",0)
+48 ;;=^^3^3^2880709^
+49 ;;^UTILITY(U,$J,"DIPT",338,"%D",1,0)
+50 ;;=This template lists the preparation areas contained in the
+51 ;;^UTILITY(U,$J,"DIPT",338,"%D",2,0)
+52 ;;=Preparation Area file (114.2) along with the associated
+53 ;;^UTILITY(U,$J,"DIPT",338,"%D",3,0)
+54 ;;=data elements.
+55 ;;^UTILITY(U,$J,"DIPT",338,"F",2)
+56 ;;=.01~1;C20~2;C30~
+57 ;;^UTILITY(U,$J,"DIPT",338,"H")
+58 ;;=PREPARATION AREA LIST
+59 ;;^UTILITY(U,$J,"DIPT",339,0)
+60 ;;=FHSYP1^2900123.1544^^119.9^^^2950717^
+61 ;;^UTILITY(U,$J,"DIPT",339,"%D",0)
+62 ;;=^^2^2^2900317^
+63 ;;^UTILITY(U,$J,"DIPT",339,"%D",1,0)
+64 ;;=This template is used to list the laboratory tests selected as
+65 ;;^UTILITY(U,$J,"DIPT",339,"%D",2,0)
+66 ;;=those of interest to dietetics.
+67 ;;^UTILITY(U,$J,"DIPT",339,"F",2)
+68 ;;=80,.01~80,1;L15~80,4;C52~80,2;C60;"PRINT ON ASSESS"~80,3;C70;"PRINT ON SCREEN"~
+69 ;;^UTILITY(U,$J,"DIPT",339,"H")
+70 ;;=FH SITE PARAMETERS LIST
+71 ;;^UTILITY(U,$J,"DIPT",340,0)
+72 ;;=FHSYP2^2900123.1558^^119.9^^^2950717^
+73 ;;^UTILITY(U,$J,"DIPT",340,"%D",0)
+74 ;;=^^2^2^2900317^
+75 ;;^UTILITY(U,$J,"DIPT",340,"%D",1,0)
+76 ;;=This template is used to list the drugs contained in a set of
+77 ;;^UTILITY(U,$J,"DIPT",340,"%D",2,0)
+78 ;;=drug classifications selected as those of interest to dietetics.
+79 ;;^UTILITY(U,$J,"DIPT",340,"DXS",1,9.2)
+80 ;;=S I(1,0)=$S($D(D1):D1,1:""),I(0,0)=$S($D(D0):D0,1:""),DIP(1)=$S($D(^FH(119.9,D0,"P",D1,0)):^(0),1:""),D0=$P(DIP(1),U,1) S:'$D(^PS(50.605,+D0,0)) D0=-1
+81 ;;^UTILITY(U,$J,"DIPT",340,"F",1)
+82 ;;=85,.01;"DRUG CLASS"~
+83 ;;^UTILITY(U,$J,"DIPT",340,"F",2)
+84 ;;=85,X DXS(1,9.2) S DIP(101)=$S($D(^PS(50.605,D0,0)):^(0),1:"") S X=$P(DIP(101),U,2) S D0=I(0,0) S D1=I(1,0) W X K DIP;C12;"TITLE";Z;"DRUG CLASSIFICATIONS:CLASSIFICATION"~
+85 ;;^UTILITY(U,$J,"DIPT",340,"H")
+86 ;;=FH SITE PARAMETERS LIST
+87 ;;^UTILITY(U,$J,"DIPT",341,0)
+88 ;;=FHSELIST^2940726.1218^@^115.2^479^@^2950703
+89 ;;^UTILITY(U,$J,"DIPT",341,"%D",0)
+90 ;;=^^2^2^2880901^
+91 ;;^UTILITY(U,$J,"DIPT",341,"%D",1,0)
+92 ;;=This template is used to list the patient preference items
+93 ;;^UTILITY(U,$J,"DIPT",341,"%D",2,0)
+94 ;;=contained in the Patient Preferences file (115.2).
+95 ;;^UTILITY(U,$J,"DIPT",341,"F",2)
+96 ;;=.01;S1~1;"TYPE";L3;C32~99;"INA";C38~20;"DEF";L3;C43~21;"MEAL";L3;C48~3;"RECIPE";C54~10,.01;"EXCLUDED RECIPES";C54~
+97 ;;^UTILITY(U,$J,"DIPT",341,"H")
+98 ;;=PATIENT PREFERENCES LIST
+99 ;;^UTILITY(U,$J,"KEY",42,0)
+100 ;;=FHMGR
+101 ;;^UTILITY(U,$J,"KEY",42,1,0)
+102 ;;=^^3^3^2890623^^^
+103 ;;^UTILITY(U,$J,"KEY",42,1,1,0)
+104 ;;=This key allows deletion of Dietetics file entries as well as the
+105 ;;^UTILITY(U,$J,"KEY",42,1,2,0)
+106 ;;=ability to select inactivated entries for re-activation or
+107 ;;^UTILITY(U,$J,"KEY",42,1,3,0)
+108 ;;=deletion.
+109 ;;^UTILITY(U,$J,"OPT",1408,0)
+110 ;;=FHDMP^Patient Data Log^^R^^^^^^^^
+111 ;;^UTILITY(U,$J,"OPT",1408,1,0)
+112 ;;=^^4^4^2880908^^
+113 ;;^UTILITY(U,$J,"OPT",1408,1,1,0)
+114 ;;=This option will dump all of the dietetic data for a particular