DINIT295 ;SFISC/MKO-FORM AND BLOCK FILES ;3:33 PM 20 Apr 1999 [ 04/02/2003 8:25 AM ]
;;22.0;VA FileMan;**1001**;APR 1, 2003
;;22.0;VA FileMan;**8**;Mar 30, 1999
;Per VHA Directive 10-93-142, this routine should not be modified.
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
G ^DINIT296
Q Q
;;^DIC(.404,0,"GL")
;;=^DIST(.404,
;;^DIC("B","BLOCK",.404)
;;=
;;^DIC(.404,"%D",0)
;;=^^2^2^2940914^
;;^DIC(.404,"%D",1,0)
;;=This file stores ScreenMan blocks, which are used to build forms in the
;;^DIC(.404,"%D",2,0)
;;=Form file.
;;^DD(.404,0)
;;=FIELD^^40^7
;;^DD(.404,0,"DT")
;;=2940625
;;^DD(.404,0,"IX","B",.404,.01)
;;=
;;^DD(.404,0,"NM","BLOCK")
;;=
;;^DD(.404,0,"PT",.4031,1)
;;=
;;^DD(.404,0,"PT",.4032,.01)
;;=
;;^DD(.404,.01,0)
;;=NAME^RFX^^0;1^K:$L(X)>30!($L(X)<3)!(X?1P.E)!(X=+$P(X,"E")) X I $D(X),$S($D(DDS)&$G(DA):$P($G(^DIST(.404,DA,0)),U)'=X,1:1),$D(^DIST(.404,"B",X)) K X
;;^DD(.404,.01,1,0)
;;=^.1
;;^DD(.404,.01,1,1,0)
;;=.404^B
;;^DD(.404,.01,1,1,1)
;;=S ^DIST(.404,"B",$E(X,1,30),DA)=""
;;^DD(.404,.01,1,1,2)
;;=K ^DIST(.404,"B",$E(X,1,30),DA)
;;^DD(.404,.01,1,1,"DT")
;;=2900912
;;^DD(.404,.01,3)
;;=Answer must be 3-30 characters in length.
;;^DD(.404,.01,21,0)
;;=^^2^2^2940907^^
;;^DD(.404,.01,21,1,0)
;;=Enter the name of the block, 3-30 characters in length. The block name
;;^DD(.404,.01,21,2,0)
;;=must be unique and cannot be numeric or start with punctuation.
;;^DD(.404,.01,"DEL",1,0)
;;=I '$D(DDSDEL) D EN^DDIOL($C(7)_"You must use the FileMan options to delete blocks.") I 1
;;^DD(.404,.01,"DT")
;;=2931020
;;^DD(.404,1,0)
;;=DATA DICTIONARY NUMBER^FX^^0;2^K:X'=+$P(X,"E")!(X<2)!($L(X)>16)!'$D(^DD(X)) X
;;^DD(.404,1,3)
;;=Answer must be 1-16 characters in length.
;;^DD(.404,1,21,0)
;;=^^3^3^2940907^
;;^DD(.404,1,21,1,0)
;;=Enter the data dictionary number of the file or subfile that contains the
;;^DD(.404,1,21,2,0)
;;=fields that are placed on this block. A block can contain fields from
;;^DD(.404,1,21,3,0)
;;=only one file or subfile.
;;^DD(.404,1,"DT")
;;=2930406
;;^DD(.404,2,0)
;;=DISABLE NAVIGATION^S^0:NO;1:YES;2:OUTOK;^0;3^Q
;;^DD(.404,2,3)
;;=
;;^DD(.404,2,21,0)
;;=^^8^8^2940907^^
;;^DD(.404,2,21,1,0)
;;=Enter 'YES' if navigation within the block should be disabled. When
;;^DD(.404,2,21,2,0)
;;=navigation is disabled, user cannot ^-jump to other fields, they cannot
;;^DD(.404,2,21,3,0)
;;=^-jump to the Command Line, and the <Up>, <Down>, <Tab>, and <PF4> keys
;;^DD(.404,2,21,4,0)
;;=traverse the fields in the same order as the <RET> key -- that is, in the
;;^DD(.404,2,21,5,0)
;;=order established by the Field Order property of the fields.
;;^DD(.404,2,21,6,0)
;;=
;;^DD(.404,2,21,7,0)
;;=Enter 'OUTOK' to disable navigation, but allow the user to ^-jump to the
;;^DD(.404,2,21,8,0)
;;=Command Line.
;;^DD(.404,11,0)
;;=PRE ACTION^K^^11;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
;;^DD(.404,11,3)
;;=Enter standard MUMPS code that will be executed when the user navigates to the block.
;;^DD(.404,11,9)
;;=@
;;^DD(.404,11,21,0)
;;=^^6^6^2940907^^
;;^DD(.404,11,21,1,0)
;;=This is MUMPS code that is executed when the user navigates to the
;;^DD(.404,11,21,2,0)
;;=block.
;;^DD(.404,11,21,3,0)
;;=
;;^DD(.404,11,21,4,0)
;;=This pre-action is part of the block definition itself, so if this
;;^DD(.404,11,21,5,0)
;;=block is used on another page or another form, the pre-action still
;;^DD(.404,11,21,6,0)
;;=applies.
;;^DD(.404,12,0)
;;=POST ACTION^K^^12;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
;;^DD(.404,12,3)
;;=Enter standard MUMPS that will be executed when the user leaves the block.
;;^DD(.404,12,9)
;;=@
;;^DD(.404,12,21,0)
;;=^^5^5^2940907^^
;;^DD(.404,12,21,1,0)
;;=This is MUMPS code that is executed when the user leaves the block.
;;^DD(.404,12,21,2,0)
;;=
;;^DD(.404,12,21,3,0)
;;=This post-action is part of the block definition itself, so if the
;;^DD(.404,12,21,4,0)
;;=block is used on another page or on another form, the post-action still
;;^DD(.404,12,21,5,0)
;;=applies.
;;^DD(.404,15,0)
;;=DESCRIPTION^.40415^^15;0
;;^DD(.404,40,0)
;;=FIELD^.4044I^^40;0
;;^DD(.404,40,"DT")
;;=2931029
;;^DD(.40415,0)
;;=DESCRIPTION SUB-FIELD^^.01^1
;;^DD(.40415,0,"DT")
;;=2910204
;;^DD(.40415,0,"NM","DESCRIPTION")
;;=
;;^DD(.40415,0,"UP")
;;=.404
;;^DD(.40415,.01,0)
;;=DESCRIPTION^W^^0;1^Q
;;^DD(.40415,.01,3)
;;=
;;^DD(.40415,.01,21,0)
;;=^^1^1^2940908^^^
;;^DD(.40415,.01,21,1,0)
;;=Enter text that describes this block.
;;^DD(.4044,0)
;;=FIELD SUB-FIELD^^30^33
;;^DD(.4044,0,"DT")
;;=2940625
;;^DD(.4044,0,"ID","WRITE")
;;=D EN^DDIOL($S($P(^(0),U,2)?1"Select "1.E:$E($P(^(0),U,2),8,999),1:$S($P(^(0),U,2)="!M":$G(^(.1)),1:$P(^(0),U,2)))_$S($P(^(0),U,4)]"":" ("_$P(^(0),U,4)_")",1:""),"","?9")
;;^DD(.4044,0,"ID","WRITE1")
;;=D EN^DDIOL($S($P($G(^(7)),U,2):" (Sub Page Link defined)",1:"")_$S($G(^(1)):" (Field #"_^(1)_")",1:"")_$S($P(^(0),U,5)]"":" ("_$P(^(0),U,5)_")",1:""),"","?0")
;;^DD(.4044,0,"IX","B",.4044,.01)
;;=
;;^DD(.4044,0,"IX","C",.4044,1)
;;=
;;^DD(.4044,0,"IX","D",.4044,3.1)
;;=
;;^DD(.4044,0,"NM","FIELD")
;;=
;;^DD(.4044,0,"UP")
;;=.404
;;^DD(.4044,.01,0)
;;=FIELD ORDER^MNJ4,1X^^0;1^K:X'=+$P(X,"E")!(X>99.9)!(X<0)!(X?.E1"."2N.N) X I $D(X),$D(^DIST(.404,DA(1),40,"B",X)) K X
;;^DD(.4044,.01,1,0)
;;=^.1
;;^DD(.4044,.01,1,1,0)
;;=.4044^B
;;^DD(.4044,.01,1,1,1)
;;=S ^DIST(.404,DA(1),40,"B",$E(X,1,30),DA)=""
;;^DD(.4044,.01,1,1,2)
;;=K ^DIST(.404,DA(1),40,"B",$E(X,1,30),DA)
;;^DD(.4044,.01,3)
;;=Enter a unique number between 0 and 99.9, inclusive, which represents the order in which the fields will be edited.
;;^DD(.4044,.01,21,0)
;;=^^2^2^2940907^
;;^DD(.4044,.01,21,1,0)
;;=The Field Order number determines the order in which users traverse the
;;^DD(.4044,.01,21,2,0)
;;=fields in the block as they press <RET>.
;;^DD(.4044,1,0)
;;=CAPTION^FX^^0;2^K:$L(X)>80!($L(X)<1) X S:$E($G(X))="!"&($G(X)'="!M") X=$$FUNC^DDSCAP(X)
;;^DD(.4044,1,1,0)
;;=^.1^^-1
;;^DD(.4044,1,1,2,0)
;;=.4044^C^MUMPS
;;^DD(.4044,1,1,2,1)
;;=S:X'="!M" ^DIST(.404,DA(1),40,"C",$TR($E($S(X?1"Select "1.E:$P(X,"Select ",2,99),1:X),1,63),"abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ"),DA)=""
;;^DD(.4044,1,1,2,2)
;;=K:X'="!M" ^DIST(.404,DA(1),40,"C",$TR($E($S(X?1"Select "1.E:$P(X,"Select ",2,99),1:X),1,63),"abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ"),DA)
;;^DD(.4044,1,1,2,3)
;;=Programmer only
;;^DD(.4044,1,1,2,"%D",0)
;;=^^2^2^2931029^^^^
;;^DD(.4044,1,1,2,"%D",1,0)
;;=This cross referenced is used to allow selection of fields by caption name
;;^DD(.4044,1,1,2,"%D",2,0)
;;=as well as by order number when entering new fields in the block.
;;^DD(.4044,1,1,2,"DT")
;;=2920214
DINIT295 ;SFISC/MKO-FORM AND BLOCK FILES ;3:33 PM 20 Apr 1999 [ 04/02/2003 8:25 AM ]
+1 ;;22.0;VA FileMan;**1001**;APR 1, 2003
+2 ;;22.0;VA FileMan;**8**;Mar 30, 1999
+3 ;Per VHA Directive 10-93-142, this routine should not be modified.
+4 FOR I=1:2
SET X=$TEXT(Q+I)
IF X=""
QUIT
SET Y=$EXTRACT($TEXT(Q+I+1),4,999)
SET X=$EXTRACT(X,4,999)
IF $ASCII(Y)=126
SET I=I+1
SET Y=$EXTRACT(Y,2,999)_$EXTRACT($TEXT(Q+I+1),5,99)
IF $ASCII(Y)=61
SET Y=$EXTRACT(Y,2,999)
SET @X=Y
+5 GOTO ^DINIT296
Q QUIT
+1 ;;^DIC(.404,0,"GL")
+2 ;;=^DIST(.404,
+3 ;;^DIC("B","BLOCK",.404)
+4 ;;=
+5 ;;^DIC(.404,"%D",0)
+6 ;;=^^2^2^2940914^
+7 ;;^DIC(.404,"%D",1,0)
+8 ;;=This file stores ScreenMan blocks, which are used to build forms in the
+9 ;;^DIC(.404,"%D",2,0)
+10 ;;=Form file.
+11 ;;^DD(.404,0)
+12 ;;=FIELD^^40^7
+13 ;;^DD(.404,0,"DT")
+14 ;;=2940625
+15 ;;^DD(.404,0,"IX","B",.404,.01)
+16 ;;=
+17 ;;^DD(.404,0,"NM","BLOCK")
+18 ;;=
+19 ;;^DD(.404,0,"PT",.4031,1)
+20 ;;=
+21 ;;^DD(.404,0,"PT",.4032,.01)
+22 ;;=
+23 ;;^DD(.404,.01,0)
+24 ;;=NAME^RFX^^0;1^K:$L(X)>30!($L(X)<3)!(X?1P.E)!(X=+$P(X,"E")) X I $D(X),$S($D(DDS)&$G(DA):$P($G(^DIST(.404,DA,0)),U)'=X,1:1),$D(^DIST(.404,"B",X)) K X
+25 ;;^DD(.404,.01,1,0)
+26 ;;=^.1
+27 ;;^DD(.404,.01,1,1,0)
+28 ;;=.404^B
+29 ;;^DD(.404,.01,1,1,1)
+30 ;;=S ^DIST(.404,"B",$E(X,1,30),DA)=""
+31 ;;^DD(.404,.01,1,1,2)
+32 ;;=K ^DIST(.404,"B",$E(X,1,30),DA)
+33 ;;^DD(.404,.01,1,1,"DT")
+34 ;;=2900912
+35 ;;^DD(.404,.01,3)
+36 ;;=Answer must be 3-30 characters in length.
+37 ;;^DD(.404,.01,21,0)
+38 ;;=^^2^2^2940907^^
+39 ;;^DD(.404,.01,21,1,0)
+40 ;;=Enter the name of the block, 3-30 characters in length. The block name
+41 ;;^DD(.404,.01,21,2,0)
+42 ;;=must be unique and cannot be numeric or start with punctuation.
+43 ;;^DD(.404,.01,"DEL",1,0)
+44 ;;=I '$D(DDSDEL) D EN^DDIOL($C(7)_"You must use the FileMan options to delete blocks.") I 1
+45 ;;^DD(.404,.01,"DT")
+46 ;;=2931020
+47 ;;^DD(.404,1,0)
+48 ;;=DATA DICTIONARY NUMBER^FX^^0;2^K:X'=+$P(X,"E")!(X<2)!($L(X)>16)!'$D(^DD(X)) X
+49 ;;^DD(.404,1,3)
+50 ;;=Answer must be 1-16 characters in length.
+51 ;;^DD(.404,1,21,0)
+52 ;;=^^3^3^2940907^
+53 ;;^DD(.404,1,21,1,0)
+54 ;;=Enter the data dictionary number of the file or subfile that contains the
+55 ;;^DD(.404,1,21,2,0)
+56 ;;=fields that are placed on this block. A block can contain fields from
+57 ;;^DD(.404,1,21,3,0)
+58 ;;=only one file or subfile.
+59 ;;^DD(.404,1,"DT")
+60 ;;=2930406
+61 ;;^DD(.404,2,0)
+62 ;;=DISABLE NAVIGATION^S^0:NO;1:YES;2:OUTOK;^0;3^Q
+63 ;;^DD(.404,2,3)
+64 ;;=
+65 ;;^DD(.404,2,21,0)
+66 ;;=^^8^8^2940907^^
+67 ;;^DD(.404,2,21,1,0)
+68 ;;=Enter 'YES' if navigation within the block should be disabled. When
+69 ;;^DD(.404,2,21,2,0)
+70 ;;=navigation is disabled, user cannot ^-jump to other fields, they cannot
+71 ;;^DD(.404,2,21,3,0)
+72 ;;=^-jump to the Command Line, and the <Up>, <Down>, <Tab>, and <PF4> keys
+73 ;;^DD(.404,2,21,4,0)
+74 ;;=traverse the fields in the same order as the <RET> key -- that is, in the
+75 ;;^DD(.404,2,21,5,0)
+76 ;;=order established by the Field Order property of the fields.
+77 ;;^DD(.404,2,21,6,0)
+78 ;;=
+79 ;;^DD(.404,2,21,7,0)
+80 ;;=Enter 'OUTOK' to disable navigation, but allow the user to ^-jump to the
+81 ;;^DD(.404,2,21,8,0)
+82 ;;=Command Line.
+83 ;;^DD(.404,11,0)
+84 ;;=PRE ACTION^K^^11;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
+85 ;;^DD(.404,11,3)
+86 ;;=Enter standard MUMPS code that will be executed when the user navigates to the block.
+87 ;;^DD(.404,11,9)
+88 ;;=@
+89 ;;^DD(.404,11,21,0)
+90 ;;=^^6^6^2940907^^
+91 ;;^DD(.404,11,21,1,0)
+92 ;;=This is MUMPS code that is executed when the user navigates to the
+93 ;;^DD(.404,11,21,2,0)
+94 ;;=block.
+95 ;;^DD(.404,11,21,3,0)
+96 ;;=
+97 ;;^DD(.404,11,21,4,0)
+98 ;;=This pre-action is part of the block definition itself, so if this
+99 ;;^DD(.404,11,21,5,0)
+100 ;;=block is used on another page or another form, the pre-action still
+101 ;;^DD(.404,11,21,6,0)
+102 ;;=applies.
+103 ;;^DD(.404,12,0)
+104 ;;=POST ACTION^K^^12;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
+105 ;;^DD(.404,12,3)
+106 ;;=Enter standard MUMPS that will be executed when the user leaves the block.
+107 ;;^DD(.404,12,9)
+108 ;;=@
+109 ;;^DD(.404,12,21,0)
+110 ;;=^^5^5^2940907^^
+111 ;;^DD(.404,12,21,1,0)
+112 ;;=This is MUMPS code that is executed when the user leaves the block.
+113 ;;^DD(.404,12,21,2,0)
+114 ;;=
+115 ;;^DD(.404,12,21,3,0)
+116 ;;=This post-action is part of the block definition itself, so if the
+117 ;;^DD(.404,12,21,4,0)
+118 ;;=block is used on another page or on another form, the post-action still
+119 ;;^DD(.404,12,21,5,0)
+120 ;;=applies.
+121 ;;^DD(.404,15,0)
+122 ;;=DESCRIPTION^.40415^^15;0
+123 ;;^DD(.404,40,0)
+124 ;;=FIELD^.4044I^^40;0
+125 ;;^DD(.404,40,"DT")
+126 ;;=2931029
+127 ;;^DD(.40415,0)
+128 ;;=DESCRIPTION SUB-FIELD^^.01^1
+129 ;;^DD(.40415,0,"DT")
+130 ;;=2910204
+131 ;;^DD(.40415,0,"NM","DESCRIPTION")
+132 ;;=
+133 ;;^DD(.40415,0,"UP")
+134 ;;=.404
+135 ;;^DD(.40415,.01,0)
+136 ;;=DESCRIPTION^W^^0;1^Q
+137 ;;^DD(.40415,.01,3)
+138 ;;=
+139 ;;^DD(.40415,.01,21,0)
+140 ;;=^^1^1^2940908^^^
+141 ;;^DD(.40415,.01,21,1,0)
+142 ;;=Enter text that describes this block.
+143 ;;^DD(.4044,0)
+144 ;;=FIELD SUB-FIELD^^30^33
+145 ;;^DD(.4044,0,"DT")
+146 ;;=2940625
+147 ;;^DD(.4044,0,"ID","WRITE")
+148 ;;=D EN^DDIOL($S($P(^(0),U,2)?1"Select "1.E:$E($P(^(0),U,2),8,999),1:$S($P(^(0),U,2)="!M":$G(^(.1)),1:$P(^(0),U,2)))_$S($P(^(0),U,4)]"":" ("_$P(^(0),U,4)_")",1:""),"","?9")
+149 ;;^DD(.4044,0,"ID","WRITE1")
+150 ;;=D EN^DDIOL($S($P($G(^(7)),U,2):" (Sub Page Link defined)",1:"")_$S($G(^(1)):" (Field #"_^(1)_")",1:"")_$S($P(^(0),U,5)]"":" ("_$P(^(0),U,5)_")",1:""),"","?0")
+151 ;;^DD(.4044,0,"IX","B",.4044,.01)
+152 ;;=
+153 ;;^DD(.4044,0,"IX","C",.4044,1)
+154 ;;=
+155 ;;^DD(.4044,0,"IX","D",.4044,3.1)
+156 ;;=
+157 ;;^DD(.4044,0,"NM","FIELD")
+158 ;;=
+159 ;;^DD(.4044,0,"UP")
+160 ;;=.404
+161 ;;^DD(.4044,.01,0)
+162 ;;=FIELD ORDER^MNJ4,1X^^0;1^K:X'=+$P(X,"E")!(X>99.9)!(X<0)!(X?.E1"."2N.N) X I $D(X),$D(^DIST(.404,DA(1),40,"B",X)) K X
+163 ;;^DD(.4044,.01,1,0)
+164 ;;=^.1
+165 ;;^DD(.4044,.01,1,1,0)
+166 ;;=.4044^B
+167 ;;^DD(.4044,.01,1,1,1)
+168 ;;=S ^DIST(.404,DA(1),40,"B",$E(X,1,30),DA)=""
+169 ;;^DD(.4044,.01,1,1,2)
+170 ;;=K ^DIST(.404,DA(1),40,"B",$E(X,1,30),DA)
+171 ;;^DD(.4044,.01,3)
+172 ;;=Enter a unique number between 0 and 99.9, inclusive, which represents the order in which the fields will be edited.
+173 ;;^DD(.4044,.01,21,0)
+174 ;;=^^2^2^2940907^
+175 ;;^DD(.4044,.01,21,1,0)
+176 ;;=The Field Order number determines the order in which users traverse the
+177 ;;^DD(.4044,.01,21,2,0)
+178 ;;=fields in the block as they press <RET>.
+179 ;;^DD(.4044,1,0)
+180 ;;=CAPTION^FX^^0;2^K:$L(X)>80!($L(X)<1) X S:$E($G(X))="!"&($G(X)'="!M") X=$$FUNC^DDSCAP(X)
+181 ;;^DD(.4044,1,1,0)
+182 ;;=^.1^^-1
+183 ;;^DD(.4044,1,1,2,0)
+184 ;;=.4044^C^MUMPS
+185 ;;^DD(.4044,1,1,2,1)
+186 ;;=S:X'="!M" ^DIST(.404,DA(1),40,"C",$TR($E($S(X?1"Select "1.E:$P(X,"Select ",2,99),1:X),1,63),"abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ"),DA)=""
+187 ;;^DD(.4044,1,1,2,2)
+188 ;;=K:X'="!M" ^DIST(.404,DA(1),40,"C",$TR($E($S(X?1"Select "1.E:$P(X,"Select ",2,99),1:X),1,63),"abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ"),DA)
+189 ;;^DD(.4044,1,1,2,3)
+190 ;;=Programmer only
+191 ;;^DD(.4044,1,1,2,"%D",0)
+192 ;;=^^2^2^2931029^^^^
+193 ;;^DD(.4044,1,1,2,"%D",1,0)
+194 ;;=This cross referenced is used to allow selection of fields by caption name
+195 ;;^DD(.4044,1,1,2,"%D",2,0)
+196 ;;=as well as by order number when entering new fields in the block.
+197 ;;^DD(.4044,1,1,2,"DT")
+198 ;;=2920214