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

DINIT293.m

Go to the documentation of this file.
  1. DINIT293 ;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 ^DINIT294
  1. Q Q
  1. ;;^DD(.4031,8,1,0)
  1. ;;=^.1^^0
  1. ;;^DD(.4031,8,3)
  1. ;;=Answer must be 5-92 characters in length.
  1. ;;^DD(.4031,8,21,0)
  1. ;;=^^25^25^2940907^
  1. ;;^DD(.4031,8,21,1,0)
  1. ;;=This property can be used instead of Subpage Link to link a subpage to a
  1. ;;^DD(.4031,8,21,2,0)
  1. ;;=field.
  1. ;;^DD(.4031,8,21,3,0)
  1. ;;=
  1. ;;^DD(.4031,8,21,4,0)
  1. ;;=Parent Field has the following format:
  1. ;;^DD(.4031,8,21,5,0)
  1. ;;=
  1. ;;^DD(.4031,8,21,6,0)
  1. ;;= Field id,Block id,Page id
  1. ;;^DD(.4031,8,21,7,0)
  1. ;;=
  1. ;;^DD(.4031,8,21,8,0)
  1. ;;=where,
  1. ;;^DD(.4031,8,21,9,0)
  1. ;;=
  1. ;;^DD(.4031,8,21,10,0)
  1. ;;= Field id = Field Order number; or
  1. ;;^DD(.4031,8,21,11,0)
  1. ;;= Caption of the field; or
  1. ;;^DD(.4031,8,21,12,0)
  1. ;;= Unique Name of the field
  1. ;;^DD(.4031,8,21,13,0)
  1. ;;=
  1. ;;^DD(.4031,8,21,14,0)
  1. ;;= Block id = Block Order number; or
  1. ;;^DD(.4031,8,21,15,0)
  1. ;;= Block Name
  1. ;;^DD(.4031,8,21,16,0)
  1. ;;=
  1. ;;^DD(.4031,8,21,17,0)
  1. ;;= Page id = Page Number; or
  1. ;;^DD(.4031,8,21,18,0)
  1. ;;= Page Name
  1. ;;^DD(.4031,8,21,19,0)
  1. ;;=
  1. ;;^DD(.4031,8,21,20,0)
  1. ;;=For example:
  1. ;;^DD(.4031,8,21,21,0)
  1. ;;=
  1. ;;^DD(.4031,8,21,22,0)
  1. ;;= ZZFIELD 1,ZZBLOCK 1,ZZPAGE 1
  1. ;;^DD(.4031,8,21,23,0)
  1. ;;=
  1. ;;^DD(.4031,8,21,24,0)
  1. ;;=identifies the field with Caption or Unique Name "ZZFIELD 1," on the block
  1. ;;^DD(.4031,8,21,25,0)
  1. ;;=named "ZZBLOCK 1," on the page named "ZZPAGE 1".
  1. ;;^DD(.4031,8,"DT")
  1. ;;=2931201
  1. ;;^DD(.4031,11,0)
  1. ;;=PRE ACTION^K^^11;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
  1. ;;^DD(.4031,11,3)
  1. ;;=Enter Standard MUMPS code that will be executed before the user reaches a page.
  1. ;;^DD(.4031,11,9)
  1. ;;=@
  1. ;;^DD(.4031,11,21,0)
  1. ;;=^^1^1^2940907^^^^
  1. ;;^DD(.4031,11,21,1,0)
  1. ;;=This MUMPS code is executed when the user reaches a page.
  1. ;;^DD(.4031,11,22)
  1. ;;=
  1. ;;^DD(.4031,12,0)
  1. ;;=POST ACTION^K^^12;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
  1. ;;^DD(.4031,12,3)
  1. ;;=Enter Standard MUMPS code that will be executed after the user leaves a page.
  1. ;;^DD(.4031,12,9)
  1. ;;=@
  1. ;;^DD(.4031,12,21,0)
  1. ;;=^^1^1^2940907^^^
  1. ;;^DD(.4031,12,21,1,0)
  1. ;;=This MUMPS code is executed when the user leaves the page.
  1. ;;^DD(.4031,15,0)
  1. ;;=DESCRIPTION^.403115^^15;0
  1. ;;^DD(.4031,40,0)
  1. ;;=BLOCK^.4032IP^^40;0
  1. ;;^DD(.403115,0)
  1. ;;=DESCRIPTION SUB-FIELD^^.01^1
  1. ;;^DD(.403115,0,"DT")
  1. ;;=2910204
  1. ;;^DD(.403115,0,"NM","DESCRIPTION")
  1. ;;=
  1. ;;^DD(.403115,0,"UP")
  1. ;;=.4031
  1. ;;^DD(.403115,.01,0)
  1. ;;=DESCRIPTION^W^^0;1^Q
  1. ;;^DD(.403115,.01,3)
  1. ;;=Enter text which describes the page.
  1. ;;^DD(.403115,.01,21,0)
  1. ;;=^^1^1^2940908^^
  1. ;;^DD(.403115,.01,21,1,0)
  1. ;;=Enter text that describes this page.
  1. ;;^DD(.40315,0)
  1. ;;=DESCRIPTION SUB-FIELD^^.01^1
  1. ;;^DD(.40315,0,"DT")
  1. ;;=2910204
  1. ;;^DD(.40315,0,"NM","DESCRIPTION")
  1. ;;=
  1. ;;^DD(.40315,0,"UP")
  1. ;;=.403
  1. ;;^DD(.40315,.01,0)
  1. ;;=DESCRIPTION^W^^0;1^Q
  1. ;;^DD(.40315,.01,3)
  1. ;;=
  1. ;;^DD(.40315,.01,21,0)
  1. ;;=^^1^1^2940908^^^^
  1. ;;^DD(.40315,.01,21,1,0)
  1. ;;=Enter text that describes this form.
  1. ;;^DD(.4032,0)
  1. ;;=BLOCK SUB-FIELD^^12^13
  1. ;;^DD(.4032,0,"DT")
  1. ;;=2940506
  1. ;;^DD(.4032,0,"ID","WRITE")
  1. ;;=D EN^DDIOL("(Block Order "_$P(^(0),U,2)_")","","?35")
  1. ;;^DD(.4032,0,"IX","AC",.4032,1)
  1. ;;=
  1. ;;^DD(.4032,0,"IX","B",.4032,.01)
  1. ;;=
  1. ;;^DD(.4032,0,"NM","BLOCK")
  1. ;;=
  1. ;;^DD(.4032,0,"UP")
  1. ;;=.4031
  1. ;;^DD(.4032,.01,0)
  1. ;;=BLOCK NAME^MP.404'X^DIST(.404,^0;1^S:$D(X) DINUM=X
  1. ;;^DD(.4032,.01,1,0)
  1. ;;=^.1
  1. ;;^DD(.4032,.01,1,1,0)
  1. ;;=.4032^B
  1. ;;^DD(.4032,.01,1,1,1)
  1. ;;=S ^DIST(.403,DA(2),40,DA(1),40,"B",$E(X,1,30),DA)=""
  1. ;;^DD(.4032,.01,1,1,2)
  1. ;;=K ^DIST(.403,DA(2),40,DA(1),40,"B",$E(X,1,30),DA)
  1. ;;^DD(.4032,.01,1,2,0)
  1. ;;=.403^AB
  1. ;;^DD(.4032,.01,1,2,1)
  1. ;;=S ^DIST(.403,"AB",$E(X,1,30),DA(2),DA(1),DA)=""
  1. ;;^DD(.4032,.01,1,2,2)
  1. ;;=K ^DIST(.403,"AB",$E(X,1,30),DA(2),DA(1),DA)
  1. ;;^DD(.4032,.01,1,2,"%D",0)
  1. ;;=^^2^2^2930521^
  1. ;;^DD(.4032,.01,1,2,"%D",1,0)
  1. ;;=This cross reference provides an index that can be used to determine
  1. ;;^DD(.4032,.01,1,2,"%D",2,0)
  1. ;;=the forms on which a block is used.
  1. ;;^DD(.4032,.01,1,2,"DT")
  1. ;;=2930521
  1. ;;^DD(.4032,.01,21,0)
  1. ;;=^^1^1^2940908^^^^
  1. ;;^DD(.4032,.01,21,1,0)
  1. ;;=Enter the name of the block to be placed on this page of the form.
  1. ;;^DD(.4032,.01,"DT")
  1. ;;=2930521
  1. ;;^DD(.4032,1,0)
  1. ;;=BLOCK ORDER^RNJ4,1X^^0;2^K:+X'=X!(X>99.9)!(X<1)!(X?.E1"."2N.N)!$D(^DIST(.403,DA(2),40,DA(1),40,"AC",X)) X
  1. ;;^DD(.4032,1,1,0)
  1. ;;=^.1
  1. ;;^DD(.4032,1,1,1,0)
  1. ;;=.4032^AC
  1. ;;^DD(.4032,1,1,1,1)
  1. ;;=S ^DIST(.403,DA(2),40,DA(1),40,"AC",$E(X,1,30),DA)=""
  1. ;;^DD(.4032,1,1,1,2)
  1. ;;=K ^DIST(.403,DA(2),40,DA(1),40,"AC",$E(X,1,30),DA)
  1. ;;^DD(.4032,1,1,1,"%D",0)
  1. ;;=^^2^2^2910118^^
  1. ;;^DD(.4032,1,1,1,"%D",1,0)
  1. ;;=This cross-reference is used to ensure that order numbers are unique for
  1. ;;^DD(.4032,1,1,1,"%D",2,0)
  1. ;;=the page.
  1. ;;^DD(.4032,1,1,1,"DT")
  1. ;;=2910118
  1. ;;^DD(.4032,1,3)
  1. ;;=Enter a number between 1 and 99.9, 1 Decimal Digit, which represents the order in which the block will be processed within the page. This number must be unique for the page.
  1. ;;^DD(.4032,1,21,0)
  1. ;;=^^5^5^2940907^^
  1. ;;^DD(.4032,1,21,1,0)
  1. ;;=The Block Order determines the order users traverse fields on a page when
  1. ;;^DD(.4032,1,21,2,0)
  1. ;;=they press <PF1><PF4> to go to the next block, or press <RET> to move from
  1. ;;^DD(.4032,1,21,3,0)
  1. ;;=the last field on one block to the first field on the next. When the user
  1. ;;^DD(.4032,1,21,4,0)
  1. ;;=first reaches a page, ScreenMan places the user on the block with the
  1. ;;^DD(.4032,1,21,5,0)
  1. ;;=lowest Block Order number.
  1. ;;^DD(.4032,2,0)
  1. ;;=BLOCK COORDINATE^F^^0;3^K:$L(X)>7!($L(X)<1)!'(X?.N1",".N) X
  1. ;;^DD(.4032,2,3)
  1. ;;=Enter the block coordinate relative to the page coordinate. Answer must be two positive integers separated by a comma (,), as follows: 'Upper left row,Upper left column.'
  1. ;;^DD(.4032,2,21,0)
  1. ;;=^^2^2^2940907^^
  1. ;;^DD(.4032,2,21,1,0)
  1. ;;=The block coordinate is relative to the page coordinate. The first row
  1. ;;^DD(.4032,2,21,2,0)
  1. ;;=and column on the block have a coordinate of 1,1.
  1. ;;^DD(.4032,2,"DT")
  1. ;;=2940908
  1. ;;^DD(.4032,3,0)
  1. ;;=TYPE OF BLOCK^S^e:EDIT;d:DISPLAY;^0;4^Q
  1. ;;^DD(.4032,3,3)
  1. ;;=
  1. ;;^DD(.4032,3,21,0)
  1. ;;=^^7^7^2940907^
  1. ;;^DD(.4032,3,21,1,0)
  1. ;;=Enter 'EDIT' if users can navigate to as well as edit fields in this
  1. ;;^DD(.4032,3,21,2,0)
  1. ;;=block. Enter 'DISPLAY' if users cannot edit any of the fields in this
  1. ;;^DD(.4032,3,21,3,0)
  1. ;;=block. User's can navigate to a DISPLAY block only if it contains
  1. ;;^DD(.4032,3,21,4,0)
  1. ;;=multiple or word processing fields, in which case, the cursor stops at any