Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: FHINI0KA

FHINI0KA.m

Go to the documentation of this file.
  1. FHINI0KA ; ; 11-OCT-1995
  1. ;;5.0;Dietetics;;Oct 11, 1995
  1. Q:'DIFQ(114.2) 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
  1. Q Q
  1. ;;^DIC(114.2,0,"GL")
  1. ;;=^FH(114.2,
  1. ;;^DIC("B","PREPARATION AREA",114.2)
  1. ;;=
  1. ;;^DIC(114.2,"%D",0)
  1. ;;=^^5^5^2880515^
  1. ;;^DIC(114.2,"%D",1,0)
  1. ;;=This file contains a list of areas in which food is prepared.
  1. ;;^DIC(114.2,"%D",2,0)
  1. ;;=Recipes may be classified by preparation area and this file
  1. ;;^DIC(114.2,"%D",3,0)
  1. ;;=is used to sort recipes into the various preparation areas
  1. ;;^DIC(114.2,"%D",4,0)
  1. ;;=as well as determine the order in which various lists will
  1. ;;^DIC(114.2,"%D",5,0)
  1. ;;=print.
  1. ;;^DD(114.2,0)
  1. ;;=FIELD^^2^3
  1. ;;^DD(114.2,0,"IX","B",114.2,.01)
  1. ;;=
  1. ;;^DD(114.2,0,"NM","PREPARATION AREA")
  1. ;;=
  1. ;;^DD(114.2,0,"PT",114,12)
  1. ;;=
  1. ;;^DD(114.2,.01,0)
  1. ;;=NAME^RF^^0;1^K:$L(X)>15!($L(X)<3)!'(X'?1P.E) X
  1. ;;^DD(114.2,.01,1,0)
  1. ;;=^.1
  1. ;;^DD(114.2,.01,1,1,0)
  1. ;;=114.2^B
  1. ;;^DD(114.2,.01,1,1,1)
  1. ;;=S ^FH(114.2,"B",$E(X,1,30),DA)=""
  1. ;;^DD(114.2,.01,1,1,2)
  1. ;;=K ^FH(114.2,"B",$E(X,1,30),DA)
  1. ;;^DD(114.2,.01,1,1,"%D",0)
  1. ;;=^^1^1^2911118^
  1. ;;^DD(114.2,.01,1,1,"%D",1,0)
  1. ;;=This is the normal B cross-reference of the NAME field.
  1. ;;^DD(114.2,.01,3)
  1. ;;=ANSWER MUST BE 3-15 CHARACTERS IN LENGTH
  1. ;;^DD(114.2,.01,21,0)
  1. ;;=^^2^2^2880709^
  1. ;;^DD(114.2,.01,21,1,0)
  1. ;;=This is the name of an area where recipes are prepared (e.g.,
  1. ;;^DD(114.2,.01,21,2,0)
  1. ;;=salad area, bakery, etc.).
  1. ;;^DD(114.2,.01,"DEL",1,0)
  1. ;;=I DUZ(0)'["@",'$D(^XUSEC("FHMGR",DUZ))
  1. ;;^DD(114.2,1,0)
  1. ;;=CODE^RF^^0;2^K:$L(X)>5!($L(X)<2) X
  1. ;;^DD(114.2,1,3)
  1. ;;=ANSWER MUST BE 2-5 CHARACTERS IN LENGTH
  1. ;;^DD(114.2,1,21,0)
  1. ;;=^^3^3^2880709^
  1. ;;^DD(114.2,1,21,1,0)
  1. ;;=This is a short abbreviation for the preparation area. It is used
  1. ;;^DD(114.2,1,21,2,0)
  1. ;;=on various lists where it is not practical to print the longer
  1. ;;^DD(114.2,1,21,3,0)
  1. ;;=full name. It should be unique.
  1. ;;^DD(114.2,2,0)
  1. ;;=PRINT ORDER^RNJ2,0^^0;3^K:+X'=X!(X>49)!(X<1)!(X?.E1"."1N.N) X
  1. ;;^DD(114.2,2,3)
  1. ;;=Type a Number between 1 and 49, 0 Decimal Digits
  1. ;;^DD(114.2,2,21,0)
  1. ;;=^^3^3^2880709^
  1. ;;^DD(114.2,2,21,1,0)
  1. ;;=This is a numeric value indicating the print order (from low to
  1. ;;^DD(114.2,2,21,2,0)
  1. ;;=high) of various preparation areas when the list is sorted by
  1. ;;^DD(114.2,2,21,3,0)
  1. ;;=preparation area.
  1. ;;^DD(114.2,2,"DT")
  1. ;;=2880328