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

DINIT123.m

Go to the documentation of this file.
  1. DINIT123 ;SFISC/MKO-SORT TEMPLATE FILE ;1:13 PM 13 Nov 1998
  1. ;;22.0;VA FileMan;;Mar 30, 1999
  1. ;Per VHA Directive 10-93-142, this routine should not be modified.
  1. 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) S @X=Y
  1. G ^DINIT124
  1. Q Q
  1. ;;^DD(.4014,4,23,0)
  1. ;;=^^2^2^2930125^^
  1. ;;^DD(.4014,4,23,1,0)
  1. ;;=This information is parsed from the user dialogue or from the BY
  1. ;;^DD(.4014,4,23,2,0)
  1. ;;=input variable, by the FileMan print routines DIP*.
  1. ;;^DD(.4014,4,"DT")
  1. ;;=2930125
  1. ;;^DD(.4014,4.1,0)
  1. ;;=SORT QUALIFIERS AFTER FIELD^F^^0;5^K:$L(X)>70!($L(X)<1) X
  1. ;;^DD(.4014,4.1,3)
  1. ;;=Answer must be 1-70 characters in length. Sort qualifiers that normally come after the field in the user dialogue (such as ;Cn, ;Ln, ;"Literal Subheader")
  1. ;;^DD(.4014,4.1,21,0)
  1. ;;=^^6^6^2930125^
  1. ;;^DD(.4014,4.1,21,1,0)
  1. ;;=This contains all of the sort qualifiers that normally come after the
  1. ;;^DD(.4014,4.1,21,2,0)
  1. ;;=field number in the user dialogue for the sort options. It includes
  1. ;;^DD(.4014,4.1,21,3,0)
  1. ;;=things like ;Cn (specify position of subheader) and ;"literal" to
  1. ;;^DD(.4014,4.1,21,4,0)
  1. ;;=replace the caption of the subheader. These qualifiers are listed with
  1. ;;^DD(.4014,4.1,21,5,0)
  1. ;;=no delimiters, as they are found in the user dialogue. (So you might see
  1. ;;^DD(.4014,4.1,21,6,0)
  1. ;;=something like ;C10;"My Subheader").
  1. ;;^DD(.4014,4.1,23,0)
  1. ;;=^^2^2^2930125^
  1. ;;^DD(.4014,4.1,23,1,0)
  1. ;;=This information is parsed from the user dialogue or from the BY
  1. ;;^DD(.4014,4.1,23,2,0)
  1. ;;=input variable, by the FileMan print routines DIP*.
  1. ;;^DD(.4014,4.1,"DT")
  1. ;;=2930125
  1. ;;^DD(.4014,4.2,0)
  1. ;;=COMPUTED FIELD TYPE^F^^0;7^K:$L(X)>10!($L(X)<1) X
  1. ;;^DD(.4014,4.2,3)
  1. ;;=Answer must be 1-10 characters in length. Set by the print routine to something that looks like second piece of 0 node of DD (data type information) for on-the-fly computed fields or .001 field.
  1. ;;^DD(.4014,4.2,21,0)
  1. ;;=^^4^4^2931022^
  1. ;;^DD(.4014,4.2,21,1,0)
  1. ;;=This piece will contain a "D" if on-the-fly computed field results in a
  1. ;;^DD(.4014,4.2,21,2,0)
  1. ;;=date. It will be set to something like NJ6,0 if sorting by the .001
  1. ;;^DD(.4014,4.2,21,3,0)
  1. ;;=field. (These are the only values I have been able to find for this
  1. ;;^DD(.4014,4.2,21,4,0)
  1. ;;=field.)
  1. ;;^DD(.4014,4.2,23,0)
  1. ;;=^^3^3^2931022^
  1. ;;^DD(.4014,4.2,23,1,0)
  1. ;;=Set in C^DIP0 if DICOMP tells us that an on-the-fly computed field will
  1. ;;^DD(.4014,4.2,23,2,0)
  1. ;;=result in a date, and in ^DIP is sorting by the .001 field on a file that
  1. ;;^DD(.4014,4.2,23,3,0)
  1. ;;=has one.
  1. ;;^DD(.4014,4.2,"DT")
  1. ;;=2931022
  1. ;;^DD(.4014,4.3,0)
  1. ;;=ASK FOR FROM AND TO^S^1:YES;^ASK;1^Q
  1. ;;^DD(.4014,4.3,3)
  1. ;;=Enter 1 (YES) if user is to be prompted for FROM/TO values for this SORT FIELD.
  1. ;;^DD(.4014,4.3,21,0)
  1. ;;=^^3^3^2930201^
  1. ;;^DD(.4014,4.3,21,1,0)
  1. ;;=If this node is defined: then when the PRINT Option is run, or during
  1. ;;^DD(.4014,4.3,21,2,0)
  1. ;;=a call to the programmer print EN1^DIP, the user will be prompted
  1. ;;^DD(.4014,4.3,21,3,0)
  1. ;;=for FROM and TO VALUES for this sort field.
  1. ;;^DD(.4014,4.3,23,0)
  1. ;;=^^4^4^2930201^
  1. ;;^DD(.4014,4.3,23,1,0)
  1. ;;=This field is created automatically when a template is being created or
  1. ;;^DD(.4014,4.3,23,2,0)
  1. ;;=edited, if the developer enters FROM/TO values, AND if the developer
  1. ;;^DD(.4014,4.3,23,3,0)
  1. ;;=then answers YES to the question "SHOULD TEMPLATE USER BE ASKED
  1. ;;^DD(.4014,4.3,23,4,0)
  1. ;;='FROM'-'TO' RANGE FOR field?"
  1. ;;^DD(.4014,4.3,"DT")
  1. ;;=2930201
  1. ;;^DD(.4014,5,0)
  1. ;;=FROM VALUE INTERNAL^F^^F;1^K:$L(X)>63!($L(X)<1) X
  1. ;;^DD(.4014,5,3)
  1. ;;=Answer must be 1-63 characters in length. The starting point for the sort, derived by FileMan.
  1. ;;^DD(.4014,5,21,0)
  1. ;;=^^3^3^2930119^^
  1. ;;^DD(.4014,5,21,1,0)
  1. ;;=FileMan takes the FROM value entered by the user, and finds the first
  1. ;;^DD(.4014,5,21,2,0)
  1. ;;=value that will sort just before this value in order to derive the
  1. ;;^DD(.4014,5,21,3,0)
  1. ;;=starting point for the sort.
  1. ;;^DD(.4014,5,23,0)
  1. ;;=^^1^1^2930119^^
  1. ;;^DD(.4014,5,23,1,0)
  1. ;;=Calculated by the sort routine FRV^DIP1.
  1. ;;^DD(.4014,5,"DT")
  1. ;;=2930119
  1. ;;^DD(.4014,6,0)
  1. ;;=FROM VALUE EXTERNAL^F^^F;2^K:$L(X)>63!($L(X)<1) X
  1. ;;^DD(.4014,6,3)
  1. ;;=Answer must be 1-63 characters in length. The starting point for the sort, as entered by the user.
  1. ;;^DD(.4014,6,21,0)
  1. ;;=^^1^1^2930115^
  1. ;;^DD(.4014,6,21,1,0)
  1. ;;=The FROM value for the sort, as it was entered by the user.
  1. ;;^DD(.4014,6,"DT")
  1. ;;=2930119
  1. ;;^DD(.4014,6.5,0)
  1. ;;=FROM VALUE PRINTABLE^F^^F;3^K:$L(X)>40!($L(X)<1) X
  1. ;;^DD(.4014,6.5,3)
  1. ;;=Answer must be 1-40 characters in length. Used for storing printable form of date or set values.
  1. ;;^DD(.4014,6.5,21,0)
  1. ;;=^^3^3^2930216^^
  1. ;;^DD(.4014,6.5,21,1,0)
  1. ;;=This field is used to store a printable representation of the FROM value
  1. ;;^DD(.4014,6.5,21,2,0)
  1. ;;=entered by the user during the sort/print dialogue. Used for date and
  1. ;;^DD(.4014,6.5,21,3,0)
  1. ;;=set-of-code data types.
  1. ;;^DD(.4014,6.5,23,0)
  1. ;;=^^1^1^2930216^
  1. ;;^DD(.4014,6.5,23,1,0)
  1. ;;=Built in CK^DIP12.
  1. ;;^DD(.4014,6.5,"DT")
  1. ;;=2930216
  1. ;;^DD(.4014,7,0)
  1. ;;=TO VALUE INTERNAL^F^^T;1^K:$L(X)>63!($L(X)<1) X
  1. ;;^DD(.4014,7,3)
  1. ;;=Answer must be 1-63 characters in length. The ending point for the sort, derived by FileMan.
  1. ;;^DD(.4014,7,21,0)
  1. ;;=^^3^3^2930115^
  1. ;;^DD(.4014,7,21,1,0)
  1. ;;=FileMan usually uses the TO value as entered by the user, but in the
  1. ;;^DD(.4014,7,21,2,0)
  1. ;;=case of dates and sets of codes, the internal value is used. This field
  1. ;;^DD(.4014,7,21,3,0)
  1. ;;=tells FileMan the ending point for the sort.
  1. ;;^DD(.4014,7,"DT")
  1. ;;=2930119
  1. ;;^DD(.4014,8,0)
  1. ;;=TO VALUE EXTERNAL^F^^T;2^K:$L(X)>63!($L(X)<1) X
  1. ;;^DD(.4014,8,3)
  1. ;;=Answer must be 1-63 characters in length. The ending point for the sort, as entered by the user.
  1. ;;^DD(.4014,8,21,0)
  1. ;;=^^1^1^2930115^
  1. ;;^DD(.4014,8,21,1,0)
  1. ;;=The ending value for the sort, as entered by the user.
  1. ;;^DD(.4014,8,"DT")
  1. ;;=2930119
  1. ;;^DD(.4014,8.5,0)
  1. ;;=TO VALUE PRINTABLE^F^^T;3^K:$L(X)>40!($L(X)<1) X
  1. ;;^DD(.4014,8.5,3)
  1. ;;=Answer must be 1-40 characters in length. Used for storing printable form of date and set values.
  1. ;;^DD(.4014,8.5,21,0)
  1. ;;=^^3^3^2930216^
  1. ;;^DD(.4014,8.5,21,1,0)
  1. ;;=This field is used to store a printable representation of the TO value
  1. ;;^DD(.4014,8.5,21,2,0)
  1. ;;=entered by the user during the sort/print dialogue. Used for date and
  1. ;;^DD(.4014,8.5,21,3,0)
  1. ;;=set-of-code data types.
  1. ;;^DD(.4014,8.5,23,0)
  1. ;;=^^1^1^2930216^
  1. ;;^DD(.4014,8.5,23,1,0)
  1. ;;=Created in CK^DIP12.
  1. ;;^DD(.4014,8.5,"DT")
  1. ;;=2930216
  1. ;;^DD(.4014,9,0)
  1. ;;=CROSS REFERENCE DATA^F^^IX;E1,245^K:$L(X)>245!($L(X)<1) X