DINIT290 ;SFISC/MKO-FORM AND BLOCK FILES ;10:49 AM 30 Mar 1999
;;22.0;VA FileMan;;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 ^DINIT291
Q Q
;;^DIC(.403,0,"GL")
;;=^DIST(.403,
;;^DIC("B","FORM",.403)
;;=
;;^DIC(.403,"%D",0)
;;=^^3^3^2940914^
;;^DIC(.403,"%D",1,0)
;;=This file stores ScreenMan forms, which are composed of blocks. The
;;^DIC(.403,"%D",2,0)
;;=form's attributes that describe how information is presented on the screen
;;^DIC(.403,"%D",3,0)
;;=are contained in this file.
;;^DD(.403,0)
;;=FIELD^^40^18
;;^DD(.403,0,"DT")
;;=2941018
;;^DD(.403,0,"ID","WRITE")
;;=N D,D1,D2 S D2=^(0) S:$X>30 D1(1,"F")="!" S D=$P(D2,U,5) S:D D1(2)="("_$$FMTE^DILIBF(D)_")",D1(2,"F")="?30" S D=$P(D2,U,4) S:D D1(3)="User #"_D,D1(3,"F")="?50" S D=$P(D2,U,8) S:D D1(4)=" File #"_D,D1(4,"F")="?59" D EN^DDIOL(.D1)
;;^DD(.403,0,"ID","WRITED")
;;=I $G(DZ)?1"???".E N D S D=0 F S D=$O(^DIST(.403,Y,15,D)) Q:D'>0 I $D(^(D,0))#2 D EN^DDIOL(^(0),"","!?5")
;;^DD(.403,0,"IX","AB",.4032,.01)
;;=
;;^DD(.403,0,"IX","AC",.4031,1)
;;=
;;^DD(.403,0,"IX","AY",.403,.01)
;;=
;;^DD(.403,0,"IX","B",.403,.01)
;;=
;;^DD(.403,0,"IX","C",.403,6)
;;=
;;^DD(.403,0,"IX","F",.403,7)
;;=
;;^DD(.403,0,"IX","F1",.403,.01)
;;=
;;^DD(.403,0,"NM","FORM")
;;=
;;^DD(.403,.01,0)
;;=NAME^RFX^^0;1^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>30!($L(X)<3)!'(X'?1P.E)!(X=+$P(X,"E")) X
;;^DD(.403,.01,1,0)
;;=^.1
;;^DD(.403,.01,1,1,0)
;;=.403^B
;;^DD(.403,.01,1,1,1)
;;=S ^DIST(.403,"B",$E(X,1,30),DA)=""
;;^DD(.403,.01,1,1,2)
;;=K ^DIST(.403,"B",$E(X,1,30),DA)
;;^DD(.403,.01,1,2,0)
;;=.403^F1^MUMPS
;;^DD(.403,.01,1,2,1)
;;=X "S %=$P("_DIC_"DA,0),U,8) S:$L(%) "_DIC_"""F""_%,X,DA)=1"
;;^DD(.403,.01,1,2,2)
;;=X "S %=$P("_DIC_"DA,0),U,8) K:$L(%) "_DIC_"""F""_%,X,DA)"
;;^DD(.403,.01,1,2,3)
;;=Programmer only
;;^DD(.403,.01,1,2,"%D",0)
;;=^^6^6^2910812^
;;^DD(.403,.01,1,2,"%D",1,0)
;;=This cross-reference is used to quickly find all ScreenMan templates
;;^DD(.403,.01,1,2,"%D",2,0)
;;=associated with a file. It has the form:
;;^DD(.403,.01,1,2,"%D",3,0)
;;=
;;^DD(.403,.01,1,2,"%D",4,0)
;;= ^DIST(.403,"F"_file#,"formname",DA)=1
;;^DD(.403,.01,1,2,"%D",5,0)
;;=
;;^DD(.403,.01,1,2,"%D",6,0)
;;=A comparable cross-reference also exists on the PRIMARY FILE field.
;;^DD(.403,.01,1,2,"DT")
;;=2910812
;;^DD(.403,.01,1,3,0)
;;=.403^AY^MUMPS
;;^DD(.403,.01,1,3,1)
;;=Q
;;^DD(.403,.01,1,3,2)
;;=Q
;;^DD(.403,.01,1,3,3)
;;=Programmer only
;;^DD(.403,.01,1,3,"%D",0)
;;=^^7^7^2980924^
;;^DD(.403,.01,1,3,"%D",1,0)
;;=This is a no-op cross reference defined merely to document the data stored
;;^DD(.403,.01,1,3,"%D",2,0)
;;=under ^DIST(.403,form IEN,"AY").
;;^DD(.403,.01,1,3,"%D",3,0)
;;=
;;^DD(.403,.01,1,3,"%D",4,0)
;;=This global stores the compiled data for a Form. Form compilation occurs
;;^DD(.403,.01,1,3,"%D",5,0)
;;=automatically whenever a Form is edited through the FileMan supplied
;;^DD(.403,.01,1,3,"%D",6,0)
;;=options. The compiled data stored in this global is static information
;;^DD(.403,.01,1,3,"%D",7,0)
;;=that is used whenever a Form is run.
;;^DD(.403,.01,1,3,"DT")
;;=2980904
;;^DD(.403,.01,3)
;;=Answer must be 3-30 characters in length.
;;^DD(.403,.01,21,0)
;;=^^3^3^2940906^
;;^DD(.403,.01,21,1,0)
;;=Enter the name of the form, 3-30 characters in length. The form name
;;^DD(.403,.01,21,2,0)
;;=must be unique and cannot be numeric or start with a punctuation
;;^DD(.403,.01,21,3,0)
;;=character. It should also be namespaced.
;;^DD(.403,.01,"DEL",1,0)
;;=D EN^DDIOL($C(7)_"You must use the FileMan option to delete forms.") I 1
;;^DD(.403,.01,"DT")
;;=2980904
;;^DD(.403,1,0)
;;=READ ACCESS^FX^^0;2^I DUZ(0)'="@" N DDZ F DDZ=1:1:$L(X) K:DUZ(0)'[$E(X,DDZ) X
;;^DD(.403,1,3)
;;=Enter VA FileMan access code(s) which control access to the form.
;;^DD(.403,1,21,0)
;;=^^1^1^2931020^^
;;^DD(.403,1,21,1,0)
;;=Non-programmers can enter only their own VA FileMan access code(s).
;;^DD(.403,1,"DT")
;;=2931020
;;^DD(.403,2,0)
;;=WRITE ACCESS^FX^^0;3^I DUZ(0)'="@" N DDZ F DDZ=1:1:$L(X) K:DUZ(0)'[$E(X,DDZ) X
;;^DD(.403,2,3)
;;=Enter VA FileMan access code(s) which control access to the form.
;;^DD(.403,2,21,0)
;;=^^1^1^2931020^
;;^DD(.403,2,21,1,0)
;;=Non-programmers can enter only their own VA FileMan access code(s).
;;^DD(.403,2,"DT")
;;=2931020
;;^DD(.403,3,0)
;;=CREATOR^NJ3,0X^^0;4^K:X'?.N X
;;^DD(.403,3,3)
;;=Enter the VA FileMan User Number of the form creator.
;;^DD(.403,3,21,0)
;;=^^2^2^2931020^^
;;^DD(.403,3,21,1,0)
;;=This is the DUZ of the person who created the form. The ScreenMan
;;^DD(.403,3,21,2,0)
;;=options to create the form automatically put a value into this field.
;;^DD(.403,4,0)
;;=DATE CREATED^D^^0;5^S %DT="ETX" D ^%DT S X=Y K:Y<1 X
;;^DD(.403,4,3)
;;=Enter the date the form was created.
;;^DD(.403,4,21,0)
;;=^^2^2^2941018^^
;;^DD(.403,4,21,1,0)
;;=This is the date the form was created. The ScreenMan options to create
;;^DD(.403,4,21,2,0)
;;=the form automatically put a value into this field.
;;^DD(.403,4,"DT")
;;=2941018
;;^DD(.403,5,0)
;;=DATE LAST USED^D^^0;6^S %DT="ETX" D ^%DT S X=Y K:Y<1 X
;;^DD(.403,5,3)
;;=Enter the date and time the form was last used.
;;^DD(.403,5,21,0)
;;=^^2^2^2941018^^
;;^DD(.403,5,21,1,0)
;;=This is the date the form was last used. ScreenMan automatically
;;^DD(.403,5,21,2,0)
;;=puts a value into this field when the form is invoked.
;;^DD(.403,5,"DT")
;;=2941018
;;^DD(.403,6,0)
;;=TITLE^F^^0;7^K:$L(X)>50!($L(X)<1) X
;;^DD(.403,6,1,0)
;;=^.1
;;^DD(.403,6,1,1,0)
;;=.403^C
;;^DD(.403,6,1,1,1)
;;=S ^DIST(.403,"C",$E(X,1,30),DA)=""
;;^DD(.403,6,1,1,2)
;;=K ^DIST(.403,"C",$E(X,1,30),DA)
;;^DD(.403,6,1,1,"DT")
;;=2940908
;;^DD(.403,6,3)
;;=Answer must be 1-50 characters in length.
;;^DD(.403,6,21,0)
;;=^^4^4^2940908^
;;^DD(.403,6,21,1,0)
;;=The TITLE property can be used by the form designer to help identify a
;;^DD(.403,6,21,2,0)
;;=form. It is cross referenced and need not be unique. ScreenMan does not
;;^DD(.403,6,21,3,0)
;;=automatically display the TITLE to the user, but the form designer can
;;^DD(.403,6,21,4,0)
;;=choose to define a caption-only field that displays the title to the user.
;;^DD(.403,6,22)
;;=
;;^DD(.403,6,"DT")
;;=2940908
;;^DD(.403,7,0)
;;=PRIMARY FILE^RFX^^0;8^K:X'=+$P(X,"E")!(X<2)!($L(X)>16)!'$D(^DIC(X)) X
;;^DD(.403,7,1,0)
;;=^.1
;;^DD(.403,7,1,1,0)
;;=.403^F^MUMPS
;;^DD(.403,7,1,1,1)
;;=X "S %=$P("_DIC_"DA,0),U) S "_DIC_"""F""_X,%,DA)=1"
;;^DD(.403,7,1,1,2)
;;=X "S %=$P("_DIC_"DA,0),U) K "_DIC_"""F""_X,%,DA)"
DINIT290 ;SFISC/MKO-FORM AND BLOCK FILES ;10:49 AM 30 Mar 1999
+1 ;;22.0;VA FileMan;;Mar 30, 1999
+2 ;Per VHA Directive 10-93-142, this routine should not be modified.
+3 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
+4 GOTO ^DINIT291
Q QUIT
+1 ;;^DIC(.403,0,"GL")
+2 ;;=^DIST(.403,
+3 ;;^DIC("B","FORM",.403)
+4 ;;=
+5 ;;^DIC(.403,"%D",0)
+6 ;;=^^3^3^2940914^
+7 ;;^DIC(.403,"%D",1,0)
+8 ;;=This file stores ScreenMan forms, which are composed of blocks. The
+9 ;;^DIC(.403,"%D",2,0)
+10 ;;=form's attributes that describe how information is presented on the screen
+11 ;;^DIC(.403,"%D",3,0)
+12 ;;=are contained in this file.
+13 ;;^DD(.403,0)
+14 ;;=FIELD^^40^18
+15 ;;^DD(.403,0,"DT")
+16 ;;=2941018
+17 ;;^DD(.403,0,"ID","WRITE")
+18 ;;=N D,D1,D2 S D2=^(0) S:$X>30 D1(1,"F")="!" S D=$P(D2,U,5) S:D D1(2)="("_$$FMTE^DILIBF(D)_")",D1(2,"F")="?30" S D=$P(D2,U,4) S:D D1(3)="User #"_D,D1(3,"F")="?50" S D=$P(D2,U,8) S:D D1(4)=" File #"_D,D1(4,"F")="?59" D EN^DDIOL(.D1)
+19 ;;^DD(.403,0,"ID","WRITED")
+20 ;;=I $G(DZ)?1"???".E N D S D=0 F S D=$O(^DIST(.403,Y,15,D)) Q:D'>0 I $D(^(D,0))#2 D EN^DDIOL(^(0),"","!?5")
+21 ;;^DD(.403,0,"IX","AB",.4032,.01)
+22 ;;=
+23 ;;^DD(.403,0,"IX","AC",.4031,1)
+24 ;;=
+25 ;;^DD(.403,0,"IX","AY",.403,.01)
+26 ;;=
+27 ;;^DD(.403,0,"IX","B",.403,.01)
+28 ;;=
+29 ;;^DD(.403,0,"IX","C",.403,6)
+30 ;;=
+31 ;;^DD(.403,0,"IX","F",.403,7)
+32 ;;=
+33 ;;^DD(.403,0,"IX","F1",.403,.01)
+34 ;;=
+35 ;;^DD(.403,0,"NM","FORM")
+36 ;;=
+37 ;;^DD(.403,.01,0)
+38 ;;=NAME^RFX^^0;1^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>30!($L(X)<3)!'(X'?1P.E)!(X=+$P(X,"E")) X
+39 ;;^DD(.403,.01,1,0)
+40 ;;=^.1
+41 ;;^DD(.403,.01,1,1,0)
+42 ;;=.403^B
+43 ;;^DD(.403,.01,1,1,1)
+44 ;;=S ^DIST(.403,"B",$E(X,1,30),DA)=""
+45 ;;^DD(.403,.01,1,1,2)
+46 ;;=K ^DIST(.403,"B",$E(X,1,30),DA)
+47 ;;^DD(.403,.01,1,2,0)
+48 ;;=.403^F1^MUMPS
+49 ;;^DD(.403,.01,1,2,1)
+50 ;;=X "S %=$P("_DIC_"DA,0),U,8) S:$L(%) "_DIC_"""F""_%,X,DA)=1"
+51 ;;^DD(.403,.01,1,2,2)
+52 ;;=X "S %=$P("_DIC_"DA,0),U,8) K:$L(%) "_DIC_"""F""_%,X,DA)"
+53 ;;^DD(.403,.01,1,2,3)
+54 ;;=Programmer only
+55 ;;^DD(.403,.01,1,2,"%D",0)
+56 ;;=^^6^6^2910812^
+57 ;;^DD(.403,.01,1,2,"%D",1,0)
+58 ;;=This cross-reference is used to quickly find all ScreenMan templates
+59 ;;^DD(.403,.01,1,2,"%D",2,0)
+60 ;;=associated with a file. It has the form:
+61 ;;^DD(.403,.01,1,2,"%D",3,0)
+62 ;;=
+63 ;;^DD(.403,.01,1,2,"%D",4,0)
+64 ;;= ^DIST(.403,"F"_file#,"formname",DA)=1
+65 ;;^DD(.403,.01,1,2,"%D",5,0)
+66 ;;=
+67 ;;^DD(.403,.01,1,2,"%D",6,0)
+68 ;;=A comparable cross-reference also exists on the PRIMARY FILE field.
+69 ;;^DD(.403,.01,1,2,"DT")
+70 ;;=2910812
+71 ;;^DD(.403,.01,1,3,0)
+72 ;;=.403^AY^MUMPS
+73 ;;^DD(.403,.01,1,3,1)
+74 ;;=Q
+75 ;;^DD(.403,.01,1,3,2)
+76 ;;=Q
+77 ;;^DD(.403,.01,1,3,3)
+78 ;;=Programmer only
+79 ;;^DD(.403,.01,1,3,"%D",0)
+80 ;;=^^7^7^2980924^
+81 ;;^DD(.403,.01,1,3,"%D",1,0)
+82 ;;=This is a no-op cross reference defined merely to document the data stored
+83 ;;^DD(.403,.01,1,3,"%D",2,0)
+84 ;;=under ^DIST(.403,form IEN,"AY").
+85 ;;^DD(.403,.01,1,3,"%D",3,0)
+86 ;;=
+87 ;;^DD(.403,.01,1,3,"%D",4,0)
+88 ;;=This global stores the compiled data for a Form. Form compilation occurs
+89 ;;^DD(.403,.01,1,3,"%D",5,0)
+90 ;;=automatically whenever a Form is edited through the FileMan supplied
+91 ;;^DD(.403,.01,1,3,"%D",6,0)
+92 ;;=options. The compiled data stored in this global is static information
+93 ;;^DD(.403,.01,1,3,"%D",7,0)
+94 ;;=that is used whenever a Form is run.
+95 ;;^DD(.403,.01,1,3,"DT")
+96 ;;=2980904
+97 ;;^DD(.403,.01,3)
+98 ;;=Answer must be 3-30 characters in length.
+99 ;;^DD(.403,.01,21,0)
+100 ;;=^^3^3^2940906^
+101 ;;^DD(.403,.01,21,1,0)
+102 ;;=Enter the name of the form, 3-30 characters in length. The form name
+103 ;;^DD(.403,.01,21,2,0)
+104 ;;=must be unique and cannot be numeric or start with a punctuation
+105 ;;^DD(.403,.01,21,3,0)
+106 ;;=character. It should also be namespaced.
+107 ;;^DD(.403,.01,"DEL",1,0)
+108 ;;=D EN^DDIOL($C(7)_"You must use the FileMan option to delete forms.") I 1
+109 ;;^DD(.403,.01,"DT")
+110 ;;=2980904
+111 ;;^DD(.403,1,0)
+112 ;;=READ ACCESS^FX^^0;2^I DUZ(0)'="@" N DDZ F DDZ=1:1:$L(X) K:DUZ(0)'[$E(X,DDZ) X
+113 ;;^DD(.403,1,3)
+114 ;;=Enter VA FileMan access code(s) which control access to the form.
+115 ;;^DD(.403,1,21,0)
+116 ;;=^^1^1^2931020^^
+117 ;;^DD(.403,1,21,1,0)
+118 ;;=Non-programmers can enter only their own VA FileMan access code(s).
+119 ;;^DD(.403,1,"DT")
+120 ;;=2931020
+121 ;;^DD(.403,2,0)
+122 ;;=WRITE ACCESS^FX^^0;3^I DUZ(0)'="@" N DDZ F DDZ=1:1:$L(X) K:DUZ(0)'[$E(X,DDZ) X
+123 ;;^DD(.403,2,3)
+124 ;;=Enter VA FileMan access code(s) which control access to the form.
+125 ;;^DD(.403,2,21,0)
+126 ;;=^^1^1^2931020^
+127 ;;^DD(.403,2,21,1,0)
+128 ;;=Non-programmers can enter only their own VA FileMan access code(s).
+129 ;;^DD(.403,2,"DT")
+130 ;;=2931020
+131 ;;^DD(.403,3,0)
+132 ;;=CREATOR^NJ3,0X^^0;4^K:X'?.N X
+133 ;;^DD(.403,3,3)
+134 ;;=Enter the VA FileMan User Number of the form creator.
+135 ;;^DD(.403,3,21,0)
+136 ;;=^^2^2^2931020^^
+137 ;;^DD(.403,3,21,1,0)
+138 ;;=This is the DUZ of the person who created the form. The ScreenMan
+139 ;;^DD(.403,3,21,2,0)
+140 ;;=options to create the form automatically put a value into this field.
+141 ;;^DD(.403,4,0)
+142 ;;=DATE CREATED^D^^0;5^S %DT="ETX" D ^%DT S X=Y K:Y<1 X
+143 ;;^DD(.403,4,3)
+144 ;;=Enter the date the form was created.
+145 ;;^DD(.403,4,21,0)
+146 ;;=^^2^2^2941018^^
+147 ;;^DD(.403,4,21,1,0)
+148 ;;=This is the date the form was created. The ScreenMan options to create
+149 ;;^DD(.403,4,21,2,0)
+150 ;;=the form automatically put a value into this field.
+151 ;;^DD(.403,4,"DT")
+152 ;;=2941018
+153 ;;^DD(.403,5,0)
+154 ;;=DATE LAST USED^D^^0;6^S %DT="ETX" D ^%DT S X=Y K:Y<1 X
+155 ;;^DD(.403,5,3)
+156 ;;=Enter the date and time the form was last used.
+157 ;;^DD(.403,5,21,0)
+158 ;;=^^2^2^2941018^^
+159 ;;^DD(.403,5,21,1,0)
+160 ;;=This is the date the form was last used. ScreenMan automatically
+161 ;;^DD(.403,5,21,2,0)
+162 ;;=puts a value into this field when the form is invoked.
+163 ;;^DD(.403,5,"DT")
+164 ;;=2941018
+165 ;;^DD(.403,6,0)
+166 ;;=TITLE^F^^0;7^K:$L(X)>50!($L(X)<1) X
+167 ;;^DD(.403,6,1,0)
+168 ;;=^.1
+169 ;;^DD(.403,6,1,1,0)
+170 ;;=.403^C
+171 ;;^DD(.403,6,1,1,1)
+172 ;;=S ^DIST(.403,"C",$E(X,1,30),DA)=""
+173 ;;^DD(.403,6,1,1,2)
+174 ;;=K ^DIST(.403,"C",$E(X,1,30),DA)
+175 ;;^DD(.403,6,1,1,"DT")
+176 ;;=2940908
+177 ;;^DD(.403,6,3)
+178 ;;=Answer must be 1-50 characters in length.
+179 ;;^DD(.403,6,21,0)
+180 ;;=^^4^4^2940908^
+181 ;;^DD(.403,6,21,1,0)
+182 ;;=The TITLE property can be used by the form designer to help identify a
+183 ;;^DD(.403,6,21,2,0)
+184 ;;=form. It is cross referenced and need not be unique. ScreenMan does not
+185 ;;^DD(.403,6,21,3,0)
+186 ;;=automatically display the TITLE to the user, but the form designer can
+187 ;;^DD(.403,6,21,4,0)
+188 ;;=choose to define a caption-only field that displays the title to the user.
+189 ;;^DD(.403,6,22)
+190 ;;=
+191 ;;^DD(.403,6,"DT")
+192 ;;=2940908
+193 ;;^DD(.403,7,0)
+194 ;;=PRIMARY FILE^RFX^^0;8^K:X'=+$P(X,"E")!(X<2)!($L(X)>16)!'$D(^DIC(X)) X
+195 ;;^DD(.403,7,1,0)
+196 ;;=^.1
+197 ;;^DD(.403,7,1,1,0)
+198 ;;=.403^F^MUMPS
+199 ;;^DD(.403,7,1,1,1)
+200 ;;=X "S %=$P("_DIC_"DA,0),U) S "_DIC_"""F""_X,%,DA)=1"
+201 ;;^DD(.403,7,1,1,2)
+202 ;;=X "S %=$P("_DIC_"DA,0),U) K "_DIC_"""F""_X,%,DA)"