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

DINIT292.m

Go to the documentation of this file.
  1. DINIT292 ;SFISC/MKO-FORM AND BLOCK FILES ;09DEC2015
  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 ^DINIT293
  1. Q Q
  1. ;;^DD(.4031,1,21,3,0)
  1. ;;=is unable to navigate to any of the fields on the header block.
  1. ;;^DD(.4031,1,21,4,0)
  1. ;;=
  1. ;;^DD(.4031,1,21,5,0)
  1. ;;=Starting with Version 21 of FileMan, there is no need to use header
  1. ;;^DD(.4031,1,21,6,0)
  1. ;;=blocks. Display-type blocks, with a coordinate of '1,1' relative to the
  1. ;;^DD(.4031,1,21,7,0)
  1. ;;=page, provide the same functionality as header blocks.
  1. ;;^DD(.4031,1,"DT")
  1. ;;=2930702
  1. ;;^DD(.4031,2,0)
  1. ;;=PAGE COORDINATE^F^^0;3^K:$L(X)>7!($L(X)<1)!'(X?.N1",".N) X
  1. ;;^DD(.4031,2,3)
  1. ;;=Enter the coordinate of the upper left corner of the page. Answer must be two positive integers separated by a comma (,), as follows: 'Upper left row,Upper left column'.
  1. ;;^DD(.4031,2,21,0)
  1. ;;=^^13^13^2940908^
  1. ;;^DD(.4031,2,21,1,0)
  1. ;;=The Page Coordinate property defines the location of the top left corner
  1. ;;^DD(.4031,2,21,2,0)
  1. ;;=of the page on the screen. The format of a coordinate is: Row,Column.
  1. ;;^DD(.4031,2,21,3,0)
  1. ;;=Regular pages normally have a Page Coordinate of "1,1". They do not have
  1. ;;^DD(.4031,2,21,4,0)
  1. ;;=a Lower Right Coordinate.
  1. ;;^DD(.4031,2,21,5,0)
  1. ;;=
  1. ;;^DD(.4031,2,21,6,0)
  1. ;;=The Page Coordinate of pop-up pages defines the position of the top left
  1. ;;^DD(.4031,2,21,7,0)
  1. ;;=corner of the border of the pop-up page. Pop-up pages must have a Lower
  1. ;;^DD(.4031,2,21,8,0)
  1. ;;=Right Coordinate, which defines the position of the bottom right corner of
  1. ;;^DD(.4031,2,21,9,0)
  1. ;;=the border of the pop-up page.
  1. ;;^DD(.4031,2,21,10,0)
  1. ;;=
  1. ;;^DD(.4031,2,21,11,0)
  1. ;;=All blocks on the page are positioned relative to the page on which they
  1. ;;^DD(.4031,2,21,12,0)
  1. ;;=are defined. If a page is moved -- that is, if the Page Coordinate is
  1. ;;^DD(.4031,2,21,13,0)
  1. ;;=changed -- all blocks and all fields on that page move with it.
  1. ;;^DD(.4031,2,"DT")
  1. ;;=2940908
  1. ;;^DD(.4031,3,0)
  1. ;;=NEXT PAGE^NJ5,1^^0;4^K:+X'=X!(X>999.9)!(X<1)!(X?.E1"."2N.N) X
  1. ;;^DD(.4031,3,3)
  1. ;;=Answer must be a Number between 1 and 999.9, 1 Decimal Digit.
  1. ;;^DD(.4031,3,21,0)
  1. ;;=^^9^9^2940908^
  1. ;;^DD(.4031,3,21,1,0)
  1. ;;=Enter the page to go to when the user presses <PF1><Down> or selects the
  1. ;;^DD(.4031,3,21,2,0)
  1. ;;=NEXT PAGE command from the Command Line.
  1. ;;^DD(.4031,3,21,3,0)
  1. ;;=
  1. ;;^DD(.4031,3,21,4,0)
  1. ;;=When the user attempts a Save, ScreenMan follows the Next Page links
  1. ;;^DD(.4031,3,21,5,0)
  1. ;;=starting with the first page displayed to the user. ScreenMan loads all
  1. ;;^DD(.4031,3,21,6,0)
  1. ;;=those pages, including any defaults, and checks that all required fields
  1. ;;^DD(.4031,3,21,7,0)
  1. ;;=have values. If any of the required fields have null values, no Save
  1. ;;^DD(.4031,3,21,8,0)
  1. ;;=occurs. If all required field have values, Screenman Saves the data,
  1. ;;^DD(.4031,3,21,9,0)
  1. ;;=including all defaults.
  1. ;;^DD(.4031,4,0)
  1. ;;=PREVIOUS PAGE^NJ5,1^^0;5^K:+X'=X!(X>999.9)!(X<1)!(X?.E1"."2N.N) X
  1. ;;^DD(.4031,4,3)
  1. ;;=Answer must be a Number between 1 and 999.9, 1 Decimal Digit.
  1. ;;^DD(.4031,4,21,0)
  1. ;;=^^1^1^2940907^
  1. ;;^DD(.4031,4,21,1,0)
  1. ;;=Enter the page to go to when the user presses <PF1><Up>.
  1. ;;^DD(.4031,5,0)
  1. ;;=IS THIS A POP UP PAGE?^S^0:NO;1:YES;^0;6^Q
  1. ;;^DD(.4031,5,1,0)
  1. ;;=^.1
  1. ;;^DD(.4031,5,1,1,0)
  1. ;;=.4031^AC^MUMPS
  1. ;;^DD(.4031,5,1,1,1)
  1. ;;=S:X $P(^DIST(.403,DA(1),40,DA,0),U,2)=""
  1. ;;^DD(.4031,5,1,1,2)
  1. ;;=Q
  1. ;;^DD(.4031,5,1,1,3)
  1. ;;=Programmer only
  1. ;;^DD(.4031,5,1,1,"%D",0)
  1. ;;=^^1^1^2940627^
  1. ;;^DD(.4031,5,1,1,"%D",1,0)
  1. ;;=If this is a pop up page, there can be no header block.
  1. ;;^DD(.4031,5,1,1,"DT")
  1. ;;=2940627
  1. ;;^DD(.4031,5,3)
  1. ;;=
  1. ;;^DD(.4031,5,21,0)
  1. ;;=^^8^8^2940908^
  1. ;;^DD(.4031,5,21,1,0)
  1. ;;=If the page is a pop-up page rather than a regular page, set this property
  1. ;;^DD(.4031,5,21,2,0)
  1. ;;=to 'YES'.
  1. ;;^DD(.4031,5,21,3,0)
  1. ;;=
  1. ;;^DD(.4031,5,21,4,0)
  1. ;;=ScreenMan displays pop-up pages with a border, on top of what is
  1. ;;^DD(.4031,5,21,5,0)
  1. ;;=already on the screen. The top left coordinate of the pop-up page
  1. ;;^DD(.4031,5,21,6,0)
  1. ;;=defines the location of the top left corner of the border. Pop-up
  1. ;;^DD(.4031,5,21,7,0)
  1. ;;=pages must also have a lower right coordinate, which defines the location
  1. ;;^DD(.4031,5,21,8,0)
  1. ;;=of the bottom left corner of the border.
  1. ;;^DD(.4031,5,"DT")
  1. ;;=2940627
  1. ;;^DD(.4031,6,0)
  1. ;;=LOWER RIGHT COORDINATE^F^^0;7^K:$L(X)>7!($L(X)<1)!'(X?.N1",".N) X
  1. ;;^DD(.4031,6,3)
  1. ;;=Enter the coordinate of the bottom right corner of the pop up page. Answer must be two positive integers separated by a comma (,), as follows: 'Lower right row,Lower right column'.
  1. ;;^DD(.4031,6,21,0)
  1. ;;=^^4^4^2940908^
  1. ;;^DD(.4031,6,21,1,0)
  1. ;;=The existence of a lower right coordinate implies that the page is a
  1. ;;^DD(.4031,6,21,2,0)
  1. ;;=pop-up page. The lower right coordinate and the page coordinate define
  1. ;;^DD(.4031,6,21,3,0)
  1. ;;=the position of the border ScreenMan displays when it paints a pop-up
  1. ;;^DD(.4031,6,21,4,0)
  1. ;;=page.
  1. ;;^DD(.4031,6,"DT")
  1. ;;=2940908
  1. ;;^DD(.4031,7,0)
  1. ;;=PAGE NAME^FX^^1;1^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>30!($L(X)<3)!(X=+$P(X,"E")) X
  1. ;;^DD(.4031,7,1,0)
  1. ;;=^.1
  1. ;;^DD(.4031,7,1,1,0)
  1. ;;=.4031^C^MUMPS
  1. ;;^DD(.4031,7,1,1,1)
  1. ;;=S ^DIST(.403,DA(1),40,"C",$$UP^DILIBF(X),DA)=""
  1. ;;^DD(.4031,7,1,1,2)
  1. ;;=K ^DIST(.403,DA(1),40,"C",$$UP^DILIBF(X),DA)
  1. ;;^DD(.4031,7,1,1,3)
  1. ;;=Programmer only
  1. ;;^DD(.4031,7,1,1,"%D",0)
  1. ;;=^^2^2^2930816^
  1. ;;^DD(.4031,7,1,1,"%D",1,0)
  1. ;;=This cross reference is a regular index of the page name converted to all
  1. ;;^DD(.4031,7,1,1,"%D",2,0)
  1. ;;=upper case characters.
  1. ;;^DD(.4031,7,1,1,"DT")
  1. ;;=2930816
  1. ;;^DD(.4031,7,3)
  1. ;;=Enter the name of the page, 3-30 characters in length.
  1. ;;^DD(.4031,7,21,0)
  1. ;;=^^5^5^2940907^^
  1. ;;^DD(.4031,7,21,1,0)
  1. ;;=Like the Page Number, you can use the Page Name to refer to a page in
  1. ;;^DD(.4031,7,21,2,0)
  1. ;;=ScreenMan functions and utilities. ScreenMan displays the Page Name to
  1. ;;^DD(.4031,7,21,3,0)
  1. ;;=the user if, during an attempt to file data, ScreenMan finds required
  1. ;;^DD(.4031,7,21,4,0)
  1. ;;=fields with null values. ScreenMan uses the Caption of the field and the
  1. ;;^DD(.4031,7,21,5,0)
  1. ;;=Page Name to inform the user of the location of the required field.
  1. ;;^DD(.4031,7,"DT")
  1. ;;=2931020
  1. ;;^DD(.4031,8,0)
  1. ;;=PARENT FIELD^FX^^1;2^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>92!($L(X)<5)!'(X?1.E1","1.E1","1.E) X I $D(X) D PFIELD^DDSIT