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

DINIT298.m

Go to the documentation of this file.
  1. DINIT298 ;SFISC/MKO-FORM AND BLOCK FILES ;10:49 AM 30 Mar 1999
  1. ;;22.2;VA FileMan;;Jan 05, 2016;Build 42
  1. ;;Per VA Directive 6402, this routine should not be modified.
  1. ;;Submitted to OSEHRA 5 January 2015 by the VISTA Expertise Network.
  1. ;;Based on Medsphere Systems Corporation's MSC FileMan 1051.
  1. ;;Licensed under the terms of the Apache License, Version 2.0.
  1. ;
  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 ^DINIT299
  1. Q Q
  1. ;;^DD(.4044,10,21,16,0)
  1. ;;=The variable X contains the current internal value of the field, DDSEXT
  1. ;;^DD(.4044,10,21,17,0)
  1. ;;=contains the current external value of the field, and DDSOLD contains the
  1. ;;^DD(.4044,10,21,18,0)
  1. ;;=previous internal value of the field.
  1. ;;^DD(.4044,11,0)
  1. ;;=PRE ACTION^K^^11;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
  1. ;;^DD(.4044,11,3)
  1. ;;=Enter standard MUMPS code that will be executed when the user navigates to this field.
  1. ;;^DD(.4044,11,9)
  1. ;;=@
  1. ;;^DD(.4044,11,21,0)
  1. ;;=^^2^2^2940629^
  1. ;;^DD(.4044,11,21,1,0)
  1. ;;=This MUMPS code is executed when the user reaches the field. The variable
  1. ;;^DD(.4044,11,21,2,0)
  1. ;;=X contains the current value of the field.
  1. ;;^DD(.4044,12,0)
  1. ;;=POST ACTION^K^^12;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
  1. ;;^DD(.4044,12,3)
  1. ;;=Enter standard MUMPS code that will be executed when the user leaves this field.
  1. ;;^DD(.4044,12,9)
  1. ;;=@
  1. ;;^DD(.4044,12,21,0)
  1. ;;=^^6^6^2950306^
  1. ;;^DD(.4044,12,21,1,0)
  1. ;;=This MUMPS code is executed when the user leaves the field, except on
  1. ;;^DD(.4044,12,21,2,0)
  1. ;;=time-out.
  1. ;;^DD(.4044,12,21,3,0)
  1. ;;=
  1. ;;^DD(.4044,12,21,4,0)
  1. ;;=The variable X contains the current internal value of the field, DDSEXT
  1. ;;^DD(.4044,12,21,5,0)
  1. ;;=contains the current external value of the field, and DDSOLD contains
  1. ;;^DD(.4044,12,21,6,0)
  1. ;;=the previous internal value of the field.
  1. ;;^DD(.4044,12,"DT")
  1. ;;=2950306
  1. ;;^DD(.4044,13,0)
  1. ;;=POST ACTION ON CHANGE^K^^13;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
  1. ;;^DD(.4044,13,3)
  1. ;;=Enter standard MUMPS code that will be executed when the user changes the value of this field.
  1. ;;^DD(.4044,13,9)
  1. ;;=@
  1. ;;^DD(.4044,13,21,0)
  1. ;;=^^4^4^2940629^
  1. ;;^DD(.4044,13,21,1,0)
  1. ;;=This MUMPS code is executed only if the user changed the value of the
  1. ;;^DD(.4044,13,21,2,0)
  1. ;;=field. The variables X and DDSEXT contain the new internal and external
  1. ;;^DD(.4044,13,21,3,0)
  1. ;;=values of the field, and DDSOLD contains the original internal value of
  1. ;;^DD(.4044,13,21,4,0)
  1. ;;=the field.
  1. ;;^DD(.4044,13,"DT")
  1. ;;=2931029
  1. ;;^DD(.4044,14,0)
  1. ;;=DATA VALIDATION^K^^14;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
  1. ;;^DD(.4044,14,3)
  1. ;;=This is Standard MUMPS code.
  1. ;;^DD(.4044,14,9)
  1. ;;=@
  1. ;;^DD(.4044,14,21,0)
  1. ;;=^^5^5^2940907^
  1. ;;^DD(.4044,14,21,1,0)
  1. ;;=Enter MUMPS code that will be executed after the user enters a new
  1. ;;^DD(.4044,14,21,2,0)
  1. ;;=value for this field. If the code sets DDSERROR, the value will
  1. ;;^DD(.4044,14,21,3,0)
  1. ;;=be rejected. You might also want to ring the bell and make a call to
  1. ;;^DD(.4044,14,21,4,0)
  1. ;;=HLP^DDSUTL to display a message to the user that indicates the reason the
  1. ;;^DD(.4044,14,21,5,0)
  1. ;;=value was rejected.
  1. ;;^DD(.4044,14,"DT")
  1. ;;=2930820
  1. ;;^DD(.4044,20.1,0)
  1. ;;=READ TYPE^S^D:DATE;F:FREE TEXT;L:LIST OR RANGE;N:NUMERIC;P:POINTER;S:SET OF CODES;Y:YES OR NO;DD:DATA DICTIONARY;^20;1^Q
  1. ;;^DD(.4044,20.1,21,0)
  1. ;;=^^1^1^2930812^^
  1. ;;^DD(.4044,20.1,21,1,0)
  1. ;;=Enter the data type of this form-only field.
  1. ;;^DD(.4044,20.1,"DT")
  1. ;;=2930812
  1. ;;^DD(.4044,20.2,0)
  1. ;;=PARAMETERS^F^^20;2^K:$L(X)>2!($L(X)<1) X
  1. ;;^DD(.4044,20.2,3)
  1. ;;=Answer must be 1-2 characters in length.
  1. ;;^DD(.4044,20.2,21,0)
  1. ;;=^^8^8^2940907^
  1. ;;^DD(.4044,20.2,21,1,0)
  1. ;;=This property coressponds to the parameters that can be used in the first
  1. ;;^DD(.4044,20.2,21,2,0)
  1. ;;=^-piece of the DIR(0) input variable to ^DIR. The "O" parameter has no
  1. ;;^DD(.4044,20.2,21,3,0)
  1. ;;=effect, since the Required property can be used to make a field required.
  1. ;;^DD(.4044,20.2,21,4,0)
  1. ;;=The "A" and "B" parameters also have no effect.
  1. ;;^DD(.4044,20.2,21,5,0)
  1. ;;=
  1. ;;^DD(.4044,20.2,21,6,0)
  1. ;;=Free text fields can use the "U" parameter.
  1. ;;^DD(.4044,20.2,21,7,0)
  1. ;;=List or Range fields can use the "C" parameter.
  1. ;;^DD(.4044,20.2,21,8,0)
  1. ;;=Set of Codes fields can use the "X" and "M" parameters.
  1. ;;^DD(.4044,20.2,"DT")
  1. ;;=2930812
  1. ;;^DD(.4044,20.3,0)
  1. ;;=QUALIFIERS^F^^20;3^K:$L(X)>100!($L(X)<1) X
  1. ;;^DD(.4044,20.3,3)
  1. ;;=Answer must be 1-100 characters in length.
  1. ;;^DD(.4044,20.3,21,0)
  1. ;;=^^14^14^2940908^^
  1. ;;^DD(.4044,20.3,21,1,0)
  1. ;;=This property corresponds to the second ^-piece of the DIR(0) input
  1. ;;^DD(.4044,20.3,21,2,0)
  1. ;;=variable to ^DIR. For Data Dictionary type form only fields, it
  1. ;;^DD(.4044,20.3,21,3,0)
  1. ;;=identifies the file and field.
  1. ;;^DD(.4044,20.3,21,4,0)
  1. ;;=
  1. ;;^DD(.4044,20.3,21,5,0)
  1. ;;=Valid qualifiers are:
  1. ;;^DD(.4044,20.3,21,6,0)
  1. ;;=
  1. ;;^DD(.4044,20.3,21,7,0)
  1. ;;= Date Minimum date:Maximum date:%DT
  1. ;;^DD(.4044,20.3,21,8,0)
  1. ;;= Free Text Minimum length:Maximum length
  1. ;;^DD(.4044,20.3,21,9,0)
  1. ;;= List or Range Minimum:Maximum:Maximum decimals
  1. ;;^DD(.4044,20.3,21,10,0)
  1. ;;= Numeric Minimum:Maximum:Maximum decimals
  1. ;;^DD(.4044,20.3,21,11,0)
  1. ;;= Pointer Global root or #:DIC(0)
  1. ;;^DD(.4044,20.3,21,12,0)
  1. ;;= Set of Codes Code:Stands for;Code:Stands for;
  1. ;;^DD(.4044,20.3,21,13,0)
  1. ;;= Yes or No
  1. ;;^DD(.4044,20.3,21,14,0)
  1. ;;= Data Dictionary file#,field#
  1. ;;^DD(.4044,20.3,"DT")
  1. ;;=2930812
  1. ;;^DD(.4044,21,0)
  1. ;;=HELP^.404421^^21;0
  1. ;;^DD(.4044,21,"DT")
  1. ;;=2930812
  1. ;;^DD(.4044,22,0)
  1. ;;=INPUT TRANSFORM^K^^22;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
  1. ;;^DD(.4044,22,3)
  1. ;;=Enter standard MUMPS code.
  1. ;;^DD(.4044,22,9)
  1. ;;=@
  1. ;;^DD(.4044,22,21,0)
  1. ;;=^^3^3^2940908^
  1. ;;^DD(.4044,22,21,1,0)
  1. ;;=This is MUMPS code that can examine X, the value entered by the user, and
  1. ;;^DD(.4044,22,21,2,0)
  1. ;;=kill X if it is invalid. It corresponds to the third ^-piece of the
  1. ;;^DD(.4044,22,21,3,0)
  1. ;;=DIR(0) input variable to ^DIR.
  1. ;;^DD(.4044,22,"DT")
  1. ;;=2930812
  1. ;;^DD(.4044,23,0)
  1. ;;=SAVE CODE^K^^23;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
  1. ;;^DD(.4044,23,3)
  1. ;;=Enter Standard MUMPS code.
  1. ;;^DD(.4044,23,9)
  1. ;;=@
  1. ;;^DD(.4044,23,21,0)
  1. ;;=^^8^8^2930920^^
  1. ;;^DD(.4044,23,21,1,0)
  1. ;;=This is MUMPS code that is executed when the user issues a Save command
  1. ;;^DD(.4044,23,21,2,0)
  1. ;;=and the value of this field changed since the last Save. You can use this
  1. ;;^DD(.4044,23,21,3,0)
  1. ;;=field to save in global or local variables the value the user enters into
  1. ;;^DD(.4044,23,21,4,0)
  1. ;;=this field. The following variables are available:
  1. ;;^DD(.4044,23,21,5,0)
  1. ;;=
  1. ;;^DD(.4044,23,21,6,0)
  1. ;;= X = The new value of the field in internal form
  1. ;;^DD(.4044,23,21,7,0)
  1. ;;= DDSEXT = The new value of the field in external form
  1. ;;^DD(.4044,23,21,8,0)
  1. ;;= DDSOLD = The original (pre-save) value of the field in internal form