FHINI0KY ; ; 11-OCT-1995
;;5.0;Dietetics;;Oct 11, 1995
Q:'DIFQ(115.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(115.3,0,"GL")
;;=^FH(115.3,
;;^DIC("B","NUTRITION CLASSIFICATION",115.3)
;;=
;;^DIC(115.3,"%D",0)
;;=^^2^2^2890709^^^^
;;^DIC(115.3,"%D",1,0)
;;=This file contains site-specific nutrition classifications used in
;;^DIC(115.3,"%D",2,0)
;;=nutrition assessment and screening.
;;^DD(115.3,0)
;;=FIELD^^101^3
;;^DD(115.3,0,"DT")
;;=2920501
;;^DD(115.3,0,"ID",99)
;;=W:$D(^("I")) " (** INACTIVE **)"
;;^DD(115.3,0,"IX","AC",115.3,99)
;;=
;;^DD(115.3,0,"IX","B",115.3,.01)
;;=
;;^DD(115.3,0,"IX","C",115.3,101)
;;=
;;^DD(115.3,0,"NM","NUTRITION CLASSIFICATION")
;;=
;;^DD(115.3,0,"PT",115.011,19)
;;=
;;^DD(115.3,0,"SCR")
;;=I '$D(^FH(115.3,+Y,"I"))!$D(^XUSEC("FHMGR",DUZ))!(DUZ(0)["@")
;;^DD(115.3,.01,0)
;;=NAME^RF^^0;1^K:$L(X)>60!($L(X)<3)!'(X'?1P.E) X
;;^DD(115.3,.01,1,0)
;;=^.1
;;^DD(115.3,.01,1,1,0)
;;=115.3^B
;;^DD(115.3,.01,1,1,1)
;;=S ^FH(115.3,"B",$E(X,1,30),DA)=""
;;^DD(115.3,.01,1,1,2)
;;=K ^FH(115.3,"B",$E(X,1,30),DA)
;;^DD(115.3,.01,1,1,"%D",0)
;;=^^1^1^2911118^
;;^DD(115.3,.01,1,1,"%D",1,0)
;;=This is the normal B cross-reference of the NAME field.
;;^DD(115.3,.01,1,2,0)
;;=^^TRIGGER^115.3^101
;;^DD(115.3,.01,1,2,1)
;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^FH(115.3,D0,0)):^(0),1:"") S X=$P(Y(1),U,2),X=X S DIU=X K Y X ^DD(115.3,.01,1,2,1.1) X ^DD(115.3,.01,1,2,1.4)
;;^DD(115.3,.01,1,2,1.1)
;;=S X=DIV S X=DIV X "F %=1:1:$L(X) S:$E(X,%)?1L X=$E(X,0,%-1)_$C($A(X,%)-32)_$E(X,%+1,999)" S X=X,Y(1)=X S X=1,Y(2)=X S X=30,X=$E(Y(1),Y(2),X)
;;^DD(115.3,.01,1,2,1.4)
;;=S DIH=$S($D(^FH(115.3,DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,2)=DIV,DIH=115.3,DIG=101 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
;;^DD(115.3,.01,1,2,2)
;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^FH(115.3,D0,0)):^(0),1:"") S X=$P(Y(1),U,2),X=X S DIU=X K Y S X="" X ^DD(115.3,.01,1,2,2.4)
;;^DD(115.3,.01,1,2,2.4)
;;=S DIH=$S($D(^FH(115.3,DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,2)=DIV,DIH=115.3,DIG=101 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
;;^DD(115.3,.01,1,2,"CREATE VALUE")
;;=$E(UPPERCASE(NAME),1,30)
;;^DD(115.3,.01,1,2,"DELETE VALUE")
;;=@
;;^DD(115.3,.01,1,2,"FIELD")
;;=UPPERCASE NAME
;;^DD(115.3,.01,3)
;;=Answer must be 3-60 characters in length.
;;^DD(115.3,.01,21,0)
;;=^^1^1^2900713^^
;;^DD(115.3,.01,21,1,0)
;;=This field contains the name of a Dietetic Diagnosis.
;;^DD(115.3,.01,"DEL",1,0)
;;=I DUZ(0)'["@",'$D(^XUSEC("FHMGR",DUZ))
;;^DD(115.3,.01,"DT")
;;=2900713
;;^DD(115.3,99,0)
;;=INACTIVE?^S^Y:YES;N:NO;^I;1^Q
;;^DD(115.3,99,1,0)
;;=^.1
;;^DD(115.3,99,1,1,0)
;;=115.3^AC^MUMPS
;;^DD(115.3,99,1,1,1)
;;=K:X'="Y" ^FH(115.3,DA,"I")
;;^DD(115.3,99,1,1,2)
;;=K ^FH(115.3,DA,"I")
;;^DD(115.3,99,1,1,"%D",0)
;;=^^2^2^2940818^
;;^DD(115.3,99,1,1,"%D",1,0)
;;=This cross-reference is used to create an 'I' node for
;;^DD(115.3,99,1,1,"%D",2,0)
;;=inactive entries.
;;^DD(115.3,99,1,1,"DT")
;;=2920501
;;^DD(115.3,99,21,0)
;;=^^2^2^2920501^
;;^DD(115.3,99,21,1,0)
;;=This field, if answered YES, will prohibit further selection
;;^DD(115.3,99,21,2,0)
;;=of this classification unless the FHMGR key is held.
;;^DD(115.3,99,"DT")
;;=2920501
;;^DD(115.3,101,0)
;;=UPPERCASE NAME^F^^0;2^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>30!($L(X)<3) X
;;^DD(115.3,101,1,0)
;;=^.1
;;^DD(115.3,101,1,1,0)
;;=115.3^C
;;^DD(115.3,101,1,1,1)
;;=S ^FH(115.3,"C",$E(X,1,30),DA)=""
;;^DD(115.3,101,1,1,2)
;;=K ^FH(115.3,"C",$E(X,1,30),DA)
;;^DD(115.3,101,3)
;;=Answer must be 3-30 characters in length.
;;^DD(115.3,101,5,1,0)
;;=115.3^.01^2
;;^DD(115.3,101,9)
;;=^
;;^DD(115.3,101,21,0)
;;=^^1^1^2950613^^^
;;^DD(115.3,101,21,1,0)
;;=This is the name of the entry in uppercase text.
;;^DD(115.3,101,"DT")
;;=2891112
FHINI0KY ; ; 11-OCT-1995
+1 ;;5.0;Dietetics;;Oct 11, 1995
+2 IF 'DIFQ(115.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(115.3,0,"GL")
+2 ;;=^FH(115.3,
+3 ;;^DIC("B","NUTRITION CLASSIFICATION",115.3)
+4 ;;=
+5 ;;^DIC(115.3,"%D",0)
+6 ;;=^^2^2^2890709^^^^
+7 ;;^DIC(115.3,"%D",1,0)
+8 ;;=This file contains site-specific nutrition classifications used in
+9 ;;^DIC(115.3,"%D",2,0)
+10 ;;=nutrition assessment and screening.
+11 ;;^DD(115.3,0)
+12 ;;=FIELD^^101^3
+13 ;;^DD(115.3,0,"DT")
+14 ;;=2920501
+15 ;;^DD(115.3,0,"ID",99)
+16 ;;=W:$D(^("I")) " (** INACTIVE **)"
+17 ;;^DD(115.3,0,"IX","AC",115.3,99)
+18 ;;=
+19 ;;^DD(115.3,0,"IX","B",115.3,.01)
+20 ;;=
+21 ;;^DD(115.3,0,"IX","C",115.3,101)
+22 ;;=
+23 ;;^DD(115.3,0,"NM","NUTRITION CLASSIFICATION")
+24 ;;=
+25 ;;^DD(115.3,0,"PT",115.011,19)
+26 ;;=
+27 ;;^DD(115.3,0,"SCR")
+28 ;;=I '$D(^FH(115.3,+Y,"I"))!$D(^XUSEC("FHMGR",DUZ))!(DUZ(0)["@")
+29 ;;^DD(115.3,.01,0)
+30 ;;=NAME^RF^^0;1^K:$L(X)>60!($L(X)<3)!'(X'?1P.E) X
+31 ;;^DD(115.3,.01,1,0)
+32 ;;=^.1
+33 ;;^DD(115.3,.01,1,1,0)
+34 ;;=115.3^B
+35 ;;^DD(115.3,.01,1,1,1)
+36 ;;=S ^FH(115.3,"B",$E(X,1,30),DA)=""
+37 ;;^DD(115.3,.01,1,1,2)
+38 ;;=K ^FH(115.3,"B",$E(X,1,30),DA)
+39 ;;^DD(115.3,.01,1,1,"%D",0)
+40 ;;=^^1^1^2911118^
+41 ;;^DD(115.3,.01,1,1,"%D",1,0)
+42 ;;=This is the normal B cross-reference of the NAME field.
+43 ;;^DD(115.3,.01,1,2,0)
+44 ;;=^^TRIGGER^115.3^101
+45 ;;^DD(115.3,.01,1,2,1)
+46 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^FH(115.3,D0,0)):^(0),1:"") S X=$P(Y(1),U,2),X=X S DIU=X K Y X ^DD(115.3,.01,1,2,1.1) X ^DD(115.3,.01,1,2,1.4)
+47 ;;^DD(115.3,.01,1,2,1.1)
+48 ;;=S X=DIV S X=DIV X "F %=1:1:$L(X) S:$E(X,%)?1L X=$E(X,0,%-1)_$C($A(X,%)-32)_$E(X,%+1,999)" S X=X,Y(1)=X S X=1,Y(2)=X S X=30,X=$E(Y(1),Y(2),X)
+49 ;;^DD(115.3,.01,1,2,1.4)
+50 ;;=S DIH=$S($D(^FH(115.3,DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,2)=DIV,DIH=115.3,DIG=101 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
+51 ;;^DD(115.3,.01,1,2,2)
+52 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^FH(115.3,D0,0)):^(0),1:"") S X=$P(Y(1),U,2),X=X S DIU=X K Y S X="" X ^DD(115.3,.01,1,2,2.4)
+53 ;;^DD(115.3,.01,1,2,2.4)
+54 ;;=S DIH=$S($D(^FH(115.3,DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,2)=DIV,DIH=115.3,DIG=101 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
+55 ;;^DD(115.3,.01,1,2,"CREATE VALUE")
+56 ;;=$E(UPPERCASE(NAME),1,30)
+57 ;;^DD(115.3,.01,1,2,"DELETE VALUE")
+58 ;;=@
+59 ;;^DD(115.3,.01,1,2,"FIELD")
+60 ;;=UPPERCASE NAME
+61 ;;^DD(115.3,.01,3)
+62 ;;=Answer must be 3-60 characters in length.
+63 ;;^DD(115.3,.01,21,0)
+64 ;;=^^1^1^2900713^^
+65 ;;^DD(115.3,.01,21,1,0)
+66 ;;=This field contains the name of a Dietetic Diagnosis.
+67 ;;^DD(115.3,.01,"DEL",1,0)
+68 ;;=I DUZ(0)'["@",'$D(^XUSEC("FHMGR",DUZ))
+69 ;;^DD(115.3,.01,"DT")
+70 ;;=2900713
+71 ;;^DD(115.3,99,0)
+72 ;;=INACTIVE?^S^Y:YES;N:NO;^I;1^Q
+73 ;;^DD(115.3,99,1,0)
+74 ;;=^.1
+75 ;;^DD(115.3,99,1,1,0)
+76 ;;=115.3^AC^MUMPS
+77 ;;^DD(115.3,99,1,1,1)
+78 ;;=K:X'="Y" ^FH(115.3,DA,"I")
+79 ;;^DD(115.3,99,1,1,2)
+80 ;;=K ^FH(115.3,DA,"I")
+81 ;;^DD(115.3,99,1,1,"%D",0)
+82 ;;=^^2^2^2940818^
+83 ;;^DD(115.3,99,1,1,"%D",1,0)
+84 ;;=This cross-reference is used to create an 'I' node for
+85 ;;^DD(115.3,99,1,1,"%D",2,0)
+86 ;;=inactive entries.
+87 ;;^DD(115.3,99,1,1,"DT")
+88 ;;=2920501
+89 ;;^DD(115.3,99,21,0)
+90 ;;=^^2^2^2920501^
+91 ;;^DD(115.3,99,21,1,0)
+92 ;;=This field, if answered YES, will prohibit further selection
+93 ;;^DD(115.3,99,21,2,0)
+94 ;;=of this classification unless the FHMGR key is held.
+95 ;;^DD(115.3,99,"DT")
+96 ;;=2920501
+97 ;;^DD(115.3,101,0)
+98 ;;=UPPERCASE NAME^F^^0;2^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>30!($L(X)<3) X
+99 ;;^DD(115.3,101,1,0)
+100 ;;=^.1
+101 ;;^DD(115.3,101,1,1,0)
+102 ;;=115.3^C
+103 ;;^DD(115.3,101,1,1,1)
+104 ;;=S ^FH(115.3,"C",$E(X,1,30),DA)=""
+105 ;;^DD(115.3,101,1,1,2)
+106 ;;=K ^FH(115.3,"C",$E(X,1,30),DA)
+107 ;;^DD(115.3,101,3)
+108 ;;=Answer must be 3-30 characters in length.
+109 ;;^DD(115.3,101,5,1,0)
+110 ;;=115.3^.01^2
+111 ;;^DD(115.3,101,9)
+112 ;;=^
+113 ;;^DD(115.3,101,21,0)
+114 ;;=^^1^1^2950613^^^
+115 ;;^DD(115.3,101,21,1,0)
+116 ;;=This is the name of the entry in uppercase text.
+117 ;;^DD(115.3,101,"DT")
+118 ;;=2891112