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

DINIT297.m

Go to the documentation of this file.
  1. DINIT297 ;SFISC/MKO-FORM AND BLOCK FILES ;3:30 PM 20 Apr 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 ^DINIT298
  1. Q Q
  1. ;;^DD(.4044,5.1,1,0)
  1. ;;=^.1^^0
  1. ;;^DD(.4044,5.1,3)
  1. ;;=Enter the caption coordinate relative to the block. Answer must be two positive integers separated by a comma (,), as follows: 'Row,Column'.
  1. ;;^DD(.4044,5.1,21,0)
  1. ;;=^^2^2^2940907^^
  1. ;;^DD(.4044,5.1,21,1,0)
  1. ;;=Caption coordinate is relative to the position of the block. The
  1. ;;^DD(.4044,5.1,21,2,0)
  1. ;;=top left corner of the block has coordinate 1,1.
  1. ;;^DD(.4044,5.1,"DT")
  1. ;;=2940908
  1. ;;^DD(.4044,5.2,0)
  1. ;;=SUPPRESS COLON AFTER CAPTION?^S^0:NO;1:YES;^2;4^Q
  1. ;;^DD(.4044,5.2,1,0)
  1. ;;=^.1^^0
  1. ;;^DD(.4044,5.2,3)
  1. ;;=
  1. ;;^DD(.4044,5.2,21,0)
  1. ;;=^^2^2^2940907^^
  1. ;;^DD(.4044,5.2,21,1,0)
  1. ;;=Enter 'YES' to suppress the display of a colon and space after the
  1. ;;^DD(.4044,5.2,21,2,0)
  1. ;;=caption.
  1. ;;^DD(.4044,5.2,"DT")
  1. ;;=2940629
  1. ;;^DD(.4044,6,0)
  1. ;;=DEFAULT^F^^3;1^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>245!($L(X)<1) X
  1. ;;^DD(.4044,6,3)
  1. ;;=Answer must be 1-245 characters in length.
  1. ;;^DD(.4044,6,21,0)
  1. ;;=^^8^8^2940907^
  1. ;;^DD(.4044,6,21,1,0)
  1. ;;=Enter the default you want displayed when the user first loads the page
  1. ;;^DD(.4044,6,21,2,0)
  1. ;;=on which this field is located, and the field's value is originally null.
  1. ;;^DD(.4044,6,21,3,0)
  1. ;;=Since ScreenMan validates the default, it must be valid, unambiguous, and
  1. ;;^DD(.4044,6,21,4,0)
  1. ;;=in external form; otherwise, it is not used.
  1. ;;^DD(.4044,6,21,5,0)
  1. ;;=
  1. ;;^DD(.4044,6,21,6,0)
  1. ;;=If you want to create an executable default, i.e., a default whose value
  1. ;;^DD(.4044,6,21,7,0)
  1. ;;=is determined at run time when the page is first loaded, the value of
  1. ;;^DD(.4044,6,21,8,0)
  1. ;;=this field must be "!M".
  1. ;;^DD(.4044,6,"DT")
  1. ;;=2920218
  1. ;;^DD(.4044,6.01,0)
  1. ;;=EXECUTABLE DEFAULT^K^^3.1;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
  1. ;;^DD(.4044,6.01,3)
  1. ;;=Enter standard MUMPS code that sets the variable Y.
  1. ;;^DD(.4044,6.01,9)
  1. ;;=@
  1. ;;^DD(.4044,6.01,21,0)
  1. ;;=^^4^4^2940907^
  1. ;;^DD(.4044,6.01,21,1,0)
  1. ;;=Enter MUMPS code that sets the variable Y equal to the default you want
  1. ;;^DD(.4044,6.01,21,2,0)
  1. ;;=displayed when the page is first loaded and the data value on file is
  1. ;;^DD(.4044,6.01,21,3,0)
  1. ;;=null. Y must be set to a valid, unambiguous user response; otherwise, it
  1. ;;^DD(.4044,6.01,21,4,0)
  1. ;;=is ignored.
  1. ;;^DD(.4044,6.01,"DT")
  1. ;;=2920218
  1. ;;^DD(.4044,6.1,0)
  1. ;;=REQUIRED^S^0:NO;1:YES;^4;1^Q
  1. ;;^DD(.4044,6.1,3)
  1. ;;=
  1. ;;^DD(.4044,6.1,21,0)
  1. ;;=^^5^5^2940907^
  1. ;;^DD(.4044,6.1,21,1,0)
  1. ;;=Whenever the user attempts a Save, ScreenMan checks all required fields
  1. ;;^DD(.4044,6.1,21,2,0)
  1. ;;=on all pages accessed during the editing session, as well as all pages
  1. ;;^DD(.4044,6.1,21,3,0)
  1. ;;=linked to the first page via the Next and Previous Page links. If any of
  1. ;;^DD(.4044,6.1,21,4,0)
  1. ;;=the required fields have null values, no Save occurs. You need not make a
  1. ;;^DD(.4044,6.1,21,5,0)
  1. ;;=field required that is already required by its data definition.
  1. ;;^DD(.4044,6.2,0)
  1. ;;=DUPLICATE^S^0:NO;1:YES;^4;2^Q
  1. ;;^DD(.4044,6.2,3)
  1. ;;=Enter 'YES' if the field value from the previous record can be duplicated with the 'spacebar-return' feature.
  1. ;;^DD(.4044,6.2,21,0)
  1. ;;=^^1^1^2940629^
  1. ;;^DD(.4044,6.2,21,1,0)
  1. ;;=This field is not currently being used.
  1. ;;^DD(.4044,6.3,0)
  1. ;;=RIGHT JUSTIFY^S^0:NO;1:YES;^4;3^Q
  1. ;;^DD(.4044,6.3,21,0)
  1. ;;=^^2^2^2940907^
  1. ;;^DD(.4044,6.3,21,1,0)
  1. ;;=Enter 'YES' if the data for this field should be displayed right-justified
  1. ;;^DD(.4044,6.3,21,2,0)
  1. ;;=in the editing window.
  1. ;;^DD(.4044,6.3,"DT")
  1. ;;=2940625
  1. ;;^DD(.4044,6.4,0)
  1. ;;=DISABLE EDITING^S^0:NO;1:YES;2:REACHABLE;^4;4^Q
  1. ;;^DD(.4044,6.4,3)
  1. ;;=
  1. ;;^DD(.4044,6.4,21,0)
  1. ;;=^^3^3^2940907^^^
  1. ;;^DD(.4044,6.4,21,1,0)
  1. ;;=Enter 'YES' to disable editing and to prevent the user from navigating
  1. ;;^DD(.4044,6.4,21,2,0)
  1. ;;=to the field. Enter 'REACHABLE' to disable editing, but allow the user to
  1. ;;^DD(.4044,6.4,21,3,0)
  1. ;;=navigate to the field.
  1. ;;^DD(.4044,6.4,"DT")
  1. ;;=2940625
  1. ;;^DD(.4044,6.5,0)
  1. ;;=DISALLOW LAYGO^S^0:NO;1:YES;^4;5^Q
  1. ;;^DD(.4044,6.5,3)
  1. ;;=
  1. ;;^DD(.4044,6.5,21,0)
  1. ;;=^^2^2^2931020^
  1. ;;^DD(.4044,6.5,21,1,0)
  1. ;;=Enter 'YES' to prohibit the user from adding new subentries into this
  1. ;;^DD(.4044,6.5,21,2,0)
  1. ;;=multiple. This question only pertains to multiple-valued fields.
  1. ;;^DD(.4044,6.6,0)
  1. ;;=ASK 'OK'^S^0:NO;1:YES;^4;6^Q
  1. ;;^DD(.4044,6.6,21,0)
  1. ;;=^^5^5^2990420^
  1. ;;^DD(.4044,6.6,21,1,0)
  1. ;;=Answer 'YES' to ask the user whether the looked-up entry is 'OK'. If only
  1. ;;^DD(.4044,6.6,21,2,0)
  1. ;;=one match is made to the user's lookup value, then ScreenMan will ask
  1. ;;^DD(.4044,6.6,21,3,0)
  1. ;;="OK?" instead of automatically selecting the found entry. This property
  1. ;;^DD(.4044,6.6,21,4,0)
  1. ;;=corresponds to the "V" flag in the DIC(0) input variable to ^DIC and only
  1. ;;^DD(.4044,6.6,21,5,0)
  1. ;;=pertains to multiple-valued fields.
  1. ;;^DD(.4044,8,0)
  1. ;;=SUB PAGE LINK^NJ5,1^^7;2^K:+X'=X!(X>999.9)!(X<1)!(X?.E1"."2N.N) X
  1. ;;^DD(.4044,8,3)
  1. ;;=Enter the Page Number of the page to open up when the user presses <Return> at this field. Type a Number between 1 and 999.9, 1 Decimal Digit.
  1. ;;^DD(.4044,8,21,0)
  1. ;;=^^7^7^2940907^
  1. ;;^DD(.4044,8,21,1,0)
  1. ;;=If you wish to take users to a pop-up page when they press <RET> at
  1. ;;^DD(.4044,8,21,2,0)
  1. ;;=this field, enter the Page Number of that page. When users exit that
  1. ;;^DD(.4044,8,21,3,0)
  1. ;;=pop-up page, ScreenMan will automatically take them to the field following
  1. ;;^DD(.4044,8,21,4,0)
  1. ;;=this field.
  1. ;;^DD(.4044,8,21,5,0)
  1. ;;=
  1. ;;^DD(.4044,8,21,6,0)
  1. ;;=You can also use the Parent Field property of the pop-up page to link a
  1. ;;^DD(.4044,8,21,7,0)
  1. ;;=field to the pop-up page.
  1. ;;^DD(.4044,10,0)
  1. ;;=BRANCHING LOGIC^K^^10;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
  1. ;;^DD(.4044,10,3)
  1. ;;=Enter Standard MUMPS code, 1-245 characters in length.
  1. ;;^DD(.4044,10,9)
  1. ;;=@
  1. ;;^DD(.4044,10,21,0)
  1. ;;=^^18^18^2940907^
  1. ;;^DD(.4044,10,21,1,0)
  1. ;;=This MUMPS code is executed whenever the user presses <RET> at the
  1. ;;^DD(.4044,10,21,2,0)
  1. ;;=field. Here you can set DDSBR equal to the field, block, and page,
  1. ;;^DD(.4044,10,21,3,0)
  1. ;;=separated by up-arrow delimiters, of the field to which you wish to take
  1. ;;^DD(.4044,10,21,4,0)
  1. ;;=users when they press <RET>. For example,
  1. ;;^DD(.4044,10,21,5,0)
  1. ;;=
  1. ;;^DD(.4044,10,21,6,0)
  1. ;;= S:X="Y" DDSBR="TEST FIELD 1^TEST BLOCK 1^TEST PAGE 2"
  1. ;;^DD(.4044,10,21,7,0)
  1. ;;=
  1. ;;^DD(.4044,10,21,8,0)
  1. ;;=would take the user to the field with unique name or caption "TEST FIELD
  1. ;;^DD(.4044,10,21,9,0)
  1. ;;=1" on the block named "TEST BLOCK 1" on a page named "TEST PAGE 2".
  1. ;;^DD(.4044,10,21,10,0)
  1. ;;=
  1. ;;^DD(.4044,10,21,11,0)
  1. ;;=Alternatively, if you wish to take users to another page when they press
  1. ;;^DD(.4044,10,21,12,0)
  1. ;;=<RET> at this field, and then when they close that page, automatically
  1. ;;^DD(.4044,10,21,13,0)
  1. ;;=take them to the field immediately following this field, you can set
  1. ;;^DD(.4044,10,21,14,0)
  1. ;;=DDSSTACK equal to the page name or number of that page.
  1. ;;^DD(.4044,10,21,15,0)
  1. ;;=