- DIPKI006 ; ; 30-MAR-1999
- ;;22.0;VA FileMan;;Mar 30, 1999
- ;Per VHA Directive 10-93-142, this routine should not be modified.
- Q:'DIFQ(9.4) 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) X NO E S @X=Y
- Q Q
- ;;^DD(9.44,222.8,3)
- ;;=
- ;;^DD(9.44,222.8,21,0)
- ;;=^^7^7^2920513^^^^
- ;;^DD(9.44,222.8,21,1,0)
- ;;=
- ;;^DD(9.44,222.8,21,2,0)
- ;;=If the data being sent is to be MERGED, then only data which is not
- ;;^DD(9.44,222.8,21,3,0)
- ;;=already on file at the recipient site will be put in place.
- ;;^DD(9.44,222.8,21,4,0)
- ;;=
- ;;^DD(9.44,222.8,21,5,0)
- ;;=If the data being sent is to OVERWRITE, then the data included in
- ;;^DD(9.44,222.8,21,6,0)
- ;;=the initialization routines will be put in place regardless of what
- ;;^DD(9.44,222.8,21,7,0)
- ;;=is on file at the recipient site.
- ;;^DD(9.44,222.8,"DT")
- ;;=2890627
- ;;^DD(9.44,222.9,0)
- ;;=MAY USER OVERRIDE DATA UPDATE^S^y:YES;n:NO;^222;9^Q
- ;;^DD(9.44,222.9,2)
- ;;=MAY USER OVERRIDE DATA UPDATE
- ;;^DD(9.44,222.9,3)
- ;;=
- ;;^DD(9.44,222.9,21,0)
- ;;=^^7^7^2920513^^^^
- ;;^DD(9.44,222.9,21,1,0)
- ;;=YES means that the user has the option to determine whether or not
- ;;^DD(9.44,222.9,21,2,0)
- ;;=to bring in the data that has been sent with the package. However,
- ;;^DD(9.44,222.9,21,3,0)
- ;;=he does not get the ability to change from merge to overwrite or
- ;;^DD(9.44,222.9,21,4,0)
- ;;=from overwrite to merge.
- ;;^DD(9.44,222.9,21,5,0)
- ;;=
- ;;^DD(9.44,222.9,21,6,0)
- ;;=No means that the developer of the INIT will control whether the data
- ;;^DD(9.44,222.9,21,7,0)
- ;;=will be installed at the target site.
- ;;^DD(9.44,222.9,"DT")
- ;;=2940502
- ;;^DD(9.44,223,0)
- ;;=SCREEN TO DETERMINE DD UPDATE^KX^^223;E1,245^K:$L(X)>240 X I $D(X) D ^DIM
- ;;^DD(9.44,223,3)
- ;;=This is Standard MUMPS code from 1 to 240 characters in length.
- ;;^DD(9.44,223,9)
- ;;=@
- ;;^DD(9.44,223,21,0)
- ;;=^^7^7^2920513^^
- ;;^DD(9.44,223,21,1,0)
- ;;=This field contains standard MUMPS code which is used to determine
- ;;^DD(9.44,223,21,2,0)
- ;;=whether or not a data dictionary should be updated. This code must
- ;;^DD(9.44,223,21,3,0)
- ;;=set $T. If $T=1, the DD will be updated. If $T=0, it will not.
- ;;^DD(9.44,223,21,4,0)
- ;;=
- ;;^DD(9.44,223,21,5,0)
- ;;=This code will be executed within VA FileMan which may be being called
- ;;^DD(9.44,223,21,6,0)
- ;;=from within MailMan which is being called from within MenuMan.
- ;;^DD(9.44,223,21,7,0)
- ;;=Namespace your variables.
- ;;^DD(9.44,223,"DT")
- ;;=2890927
- ;;^DD(9.444,0)
- ;;=*STATUS SUB-FIELD^NL^2^4
- ;;^DD(9.444,0,"NM","*STATUS")
- ;;=
- ;;^DD(9.444,0,"UP")
- ;;=9.4
- ;;^DD(9.444,.01,0)
- ;;=DATE^DX^^0;1^S %DT="E" D ^%DT S (DINUM,X)=Y K:Y<1 X,DINUM
- ;;^DD(9.444,.01,3)
- ;;=Please enter the date at which the current status took effect.
- ;;^DD(9.444,.01,21,0)
- ;;=^^1^1^2851008^^
- ;;^DD(9.444,.01,21,1,0)
- ;;=This is the date at which the current status took effect.
- ;;^DD(9.444,.01,"DT")
- ;;=2840814
- ;;^DD(9.444,1,0)
- ;;=STATUS^S^A:ASSIGNED;P:PENDING;T:TEMPORARY;X:NO LONGER USED;^0;2^Q
- ;;^DD(9.444,1,21,0)
- ;;=^^2^2^2851008^
- ;;^DD(9.444,1,21,1,0)
- ;;=This specifies the current status of the namespace, i.e. Temporary,
- ;;^DD(9.444,1,21,2,0)
- ;;=Pending, Assigned, etc.
- ;;^DD(9.444,1,"DT")
- ;;=2840814
- ;;^DD(9.444,1.5,0)
- ;;=EXPIRATION DATE^D^^2;1^S %DT="E" D ^%DT S X=Y K:Y<1 X
- ;;^DD(9.444,1.5,3)
- ;;=Please enter the date at which the namespace was de-assigned.
- ;;^DD(9.444,1.5,21,0)
- ;;=^^2^2^2851008^^
- ;;^DD(9.444,1.5,21,1,0)
- ;;=This is the date at which the assignment of the namespace to
- ;;^DD(9.444,1.5,21,2,0)
- ;;=this Package expired.
- ;;^DD(9.444,1.5,"DT")
- ;;=2840815
- ;;^DD(9.444,2,0)
- ;;=COMMENTS^9.454^^1;0
- ;;^DD(9.444,2,21,0)
- ;;=^^1^1^2851008^
- ;;^DD(9.444,2,21,1,0)
- ;;=These are any comments about the status of this Package's namespace.
- ;;^DD(9.45,0)
- ;;=FIELD SUB-FIELD^NL^.01^1
- ;;^DD(9.45,0,"IX","B",9.45,.01)
- ;;=
- ;;^DD(9.45,0,"NM","FIELD")
- ;;=
- ;;^DD(9.45,0,"UP")
- ;;=9.44
- ;;^DD(9.45,.01,0)
- ;;=FIELD^MFX^^0;1^S %=+^DIC(9.4,DA(2),4,DA(1),0),X=$S($L(X)>30:X,$D(^DD(%,"B",X)):X,X'?.NP:0,'$D(^DD(%,X,0)):0,1:$P(^(0),U,1)) K:X=0 X
- ;;^DD(9.45,.01,.1)
- ;;=FIELDS REQUIRED FOR THE PACKAGE
- ;;^DD(9.45,.01,1,0)
- ;;=^.1
- ;;^DD(9.45,.01,1,1,0)
- ;;=9.45^B
- ;;^DD(9.45,.01,1,1,1)
- ;;=S ^DIC(9.4,DA(2),4,DA(1),1,"B",X,DA)=""
- ;;^DD(9.45,.01,1,1,2)
- ;;=K ^DIC(9.4,DA(2),4,DA(1),1,"B",X,DA)
- ;;^DD(9.45,.01,3)
- ;;=Please enter the name of a field.
- ;;^DD(9.45,.01,21,0)
- ;;=^^4^4^2920513^^^^
- ;;^DD(9.45,.01,21,1,0)
- ;;=The name of a FileMan field required by this Package. This field is
- ;;^DD(9.45,.01,21,2,0)
- ;;=only to be filled in if you wish to send only selected fields in
- ;;^DD(9.45,.01,21,3,0)
- ;;=an INIT of this file, instead of the full data dictionary. (i.e.,
- ;;^DD(9.45,.01,21,4,0)
- ;;=a partial DD).
- ;;^DD(9.45,.01,"DT")
- ;;=2840302
- ;;^DD(9.454,0)
- ;;=COMMENTS SUB-FIELD^NL^.01^1
- ;;^DD(9.454,0,"NM","COMMENTS")
- ;;=
- ;;^DD(9.454,0,"UP")
- ;;=9.444
- ;;^DD(9.454,.01,0)
- ;;=COMMENTS^W^^0;1^Q
- ;;^DD(9.454,.01,21,0)
- ;;=^^1^1^2851008^
- ;;^DD(9.454,.01,21,1,0)
- ;;=These are comments about the status of this Package's namespace.
- ;;^DD(9.454,.01,"DT")
- ;;=2840815
- ;;^DD(9.455,0)
- ;;=*KEY VARIABLE SUB-FIELD^NL^1^3
- ;;^DD(9.455,0,"DT")
- ;;=2920928
- ;;^DD(9.455,0,"IX","AB",9.455,.01)
- ;;=
- ;;^DD(9.455,0,"NM","*KEY VARIABLE")
- ;;=
- ;;^DD(9.455,0,"UP")
- ;;=9.4
- ;;^DD(9.455,.01,0)
- ;;=KEY VARIABLE^MF^^0;1^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>17!($L(X)<1) X
- ;;^DD(9.455,.01,1,0)
- ;;=^.1
- ;;^DD(9.455,.01,1,1,0)
- ;;=9.455^AB
- ;;^DD(9.455,.01,1,1,1)
- ;;=S ^DIC(9.4,DA(1),1933,"AB",$E(X,1,30),DA)=""
- ;;^DD(9.455,.01,1,1,2)
- ;;=K ^DIC(9.4,DA(1),1933,"AB",$E(X,1,30),DA)
- ;;^DD(9.455,.01,3)
- ;;=Please enter the name of a MUMPS Variable needed by this Package (1-17 characters).
- ;;^DD(9.455,.01,21,0)
- ;;=^^2^2^2851009^^
- ;;^DD(9.455,.01,21,1,0)
- ;;=The name of a MUMPS variable which the Package would like defined
- ;;^DD(9.455,.01,21,2,0)
- ;;=prior to entry into the routines.
- ;;^DD(9.455,.01,"DT")
- ;;=2850228
- ;;^DD(9.455,.02,0)
- ;;=PURPOSE FOR ERR REPORTS^F^^0;2^K:$L(X)>40!($L(X)<3) X
- ;;^DD(9.455,.02,3)
- ;;=Answer must be 3-40 characters in length. This will be displayed to indicate the purpose of this variable on error reports
- ;;^DD(9.455,.02,21,0)
- ;;=^^8^8^2920928^
- ;;^DD(9.455,.02,21,1,0)
- ;;=This field is meant to contain a brief description of the purpose or role
- ;;^DD(9.455,.02,21,2,0)
- ;;=of this KEY VARIABLE. If this variable is present in an error which has
- ;;^DD(9.455,.02,21,3,0)
- ;;=been trapped, and a user selects display of key variables, then this
- ;;^DD(9.455,.02,21,4,0)
- ;;=description will be displayed to aid the user in interpeting the variable
- ;;^DD(9.455,.02,21,5,0)
- ;;=and its value at the time the error occurred. If this description is not
- DIPKI006 ; ; 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 IF 'DIFQ(9.4)
- QUIT
- 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)
- XECUTE NO
- IF '$TEST
- SET @X=Y
- Q QUIT
- +1 ;;^DD(9.44,222.8,3)
- +2 ;;=
- +3 ;;^DD(9.44,222.8,21,0)
- +4 ;;=^^7^7^2920513^^^^
- +5 ;;^DD(9.44,222.8,21,1,0)
- +6 ;;=
- +7 ;;^DD(9.44,222.8,21,2,0)
- +8 ;;=If the data being sent is to be MERGED, then only data which is not
- +9 ;;^DD(9.44,222.8,21,3,0)
- +10 ;;=already on file at the recipient site will be put in place.
- +11 ;;^DD(9.44,222.8,21,4,0)
- +12 ;;=
- +13 ;;^DD(9.44,222.8,21,5,0)
- +14 ;;=If the data being sent is to OVERWRITE, then the data included in
- +15 ;;^DD(9.44,222.8,21,6,0)
- +16 ;;=the initialization routines will be put in place regardless of what
- +17 ;;^DD(9.44,222.8,21,7,0)
- +18 ;;=is on file at the recipient site.
- +19 ;;^DD(9.44,222.8,"DT")
- +20 ;;=2890627
- +21 ;;^DD(9.44,222.9,0)
- +22 ;;=MAY USER OVERRIDE DATA UPDATE^S^y:YES;n:NO;^222;9^Q
- +23 ;;^DD(9.44,222.9,2)
- +24 ;;=MAY USER OVERRIDE DATA UPDATE
- +25 ;;^DD(9.44,222.9,3)
- +26 ;;=
- +27 ;;^DD(9.44,222.9,21,0)
- +28 ;;=^^7^7^2920513^^^^
- +29 ;;^DD(9.44,222.9,21,1,0)
- +30 ;;=YES means that the user has the option to determine whether or not
- +31 ;;^DD(9.44,222.9,21,2,0)
- +32 ;;=to bring in the data that has been sent with the package. However,
- +33 ;;^DD(9.44,222.9,21,3,0)
- +34 ;;=he does not get the ability to change from merge to overwrite or
- +35 ;;^DD(9.44,222.9,21,4,0)
- +36 ;;=from overwrite to merge.
- +37 ;;^DD(9.44,222.9,21,5,0)
- +38 ;;=
- +39 ;;^DD(9.44,222.9,21,6,0)
- +40 ;;=No means that the developer of the INIT will control whether the data
- +41 ;;^DD(9.44,222.9,21,7,0)
- +42 ;;=will be installed at the target site.
- +43 ;;^DD(9.44,222.9,"DT")
- +44 ;;=2940502
- +45 ;;^DD(9.44,223,0)
- +46 ;;=SCREEN TO DETERMINE DD UPDATE^KX^^223;E1,245^K:$L(X)>240 X I $D(X) D ^DIM
- +47 ;;^DD(9.44,223,3)
- +48 ;;=This is Standard MUMPS code from 1 to 240 characters in length.
- +49 ;;^DD(9.44,223,9)
- +50 ;;=@
- +51 ;;^DD(9.44,223,21,0)
- +52 ;;=^^7^7^2920513^^
- +53 ;;^DD(9.44,223,21,1,0)
- +54 ;;=This field contains standard MUMPS code which is used to determine
- +55 ;;^DD(9.44,223,21,2,0)
- +56 ;;=whether or not a data dictionary should be updated. This code must
- +57 ;;^DD(9.44,223,21,3,0)
- +58 ;;=set $T. If $T=1, the DD will be updated. If $T=0, it will not.
- +59 ;;^DD(9.44,223,21,4,0)
- +60 ;;=
- +61 ;;^DD(9.44,223,21,5,0)
- +62 ;;=This code will be executed within VA FileMan which may be being called
- +63 ;;^DD(9.44,223,21,6,0)
- +64 ;;=from within MailMan which is being called from within MenuMan.
- +65 ;;^DD(9.44,223,21,7,0)
- +66 ;;=Namespace your variables.
- +67 ;;^DD(9.44,223,"DT")
- +68 ;;=2890927
- +69 ;;^DD(9.444,0)
- +70 ;;=*STATUS SUB-FIELD^NL^2^4
- +71 ;;^DD(9.444,0,"NM","*STATUS")
- +72 ;;=
- +73 ;;^DD(9.444,0,"UP")
- +74 ;;=9.4
- +75 ;;^DD(9.444,.01,0)
- +76 ;;=DATE^DX^^0;1^S %DT="E" D ^%DT S (DINUM,X)=Y K:Y<1 X,DINUM
- +77 ;;^DD(9.444,.01,3)
- +78 ;;=Please enter the date at which the current status took effect.
- +79 ;;^DD(9.444,.01,21,0)
- +80 ;;=^^1^1^2851008^^
- +81 ;;^DD(9.444,.01,21,1,0)
- +82 ;;=This is the date at which the current status took effect.
- +83 ;;^DD(9.444,.01,"DT")
- +84 ;;=2840814
- +85 ;;^DD(9.444,1,0)
- +86 ;;=STATUS^S^A:ASSIGNED;P:PENDING;T:TEMPORARY;X:NO LONGER USED;^0;2^Q
- +87 ;;^DD(9.444,1,21,0)
- +88 ;;=^^2^2^2851008^
- +89 ;;^DD(9.444,1,21,1,0)
- +90 ;;=This specifies the current status of the namespace, i.e. Temporary,
- +91 ;;^DD(9.444,1,21,2,0)
- +92 ;;=Pending, Assigned, etc.
- +93 ;;^DD(9.444,1,"DT")
- +94 ;;=2840814
- +95 ;;^DD(9.444,1.5,0)
- +96 ;;=EXPIRATION DATE^D^^2;1^S %DT="E" D ^%DT S X=Y K:Y<1 X
- +97 ;;^DD(9.444,1.5,3)
- +98 ;;=Please enter the date at which the namespace was de-assigned.
- +99 ;;^DD(9.444,1.5,21,0)
- +100 ;;=^^2^2^2851008^^
- +101 ;;^DD(9.444,1.5,21,1,0)
- +102 ;;=This is the date at which the assignment of the namespace to
- +103 ;;^DD(9.444,1.5,21,2,0)
- +104 ;;=this Package expired.
- +105 ;;^DD(9.444,1.5,"DT")
- +106 ;;=2840815
- +107 ;;^DD(9.444,2,0)
- +108 ;;=COMMENTS^9.454^^1;0
- +109 ;;^DD(9.444,2,21,0)
- +110 ;;=^^1^1^2851008^
- +111 ;;^DD(9.444,2,21,1,0)
- +112 ;;=These are any comments about the status of this Package's namespace.
- +113 ;;^DD(9.45,0)
- +114 ;;=FIELD SUB-FIELD^NL^.01^1
- +115 ;;^DD(9.45,0,"IX","B",9.45,.01)
- +116 ;;=
- +117 ;;^DD(9.45,0,"NM","FIELD")
- +118 ;;=
- +119 ;;^DD(9.45,0,"UP")
- +120 ;;=9.44
- +121 ;;^DD(9.45,.01,0)
- +122 ;;=FIELD^MFX^^0;1^S %=+^DIC(9.4,DA(2),4,DA(1),0),X=$S($L(X)>30:X,$D(^DD(%,"B",X)):X,X'?.NP:0,'$D(^DD(%,X,0)):0,1:$P(^(0),U,1)) K:X=0 X
- +123 ;;^DD(9.45,.01,.1)
- +124 ;;=FIELDS REQUIRED FOR THE PACKAGE
- +125 ;;^DD(9.45,.01,1,0)
- +126 ;;=^.1
- +127 ;;^DD(9.45,.01,1,1,0)
- +128 ;;=9.45^B
- +129 ;;^DD(9.45,.01,1,1,1)
- +130 ;;=S ^DIC(9.4,DA(2),4,DA(1),1,"B",X,DA)=""
- +131 ;;^DD(9.45,.01,1,1,2)
- +132 ;;=K ^DIC(9.4,DA(2),4,DA(1),1,"B",X,DA)
- +133 ;;^DD(9.45,.01,3)
- +134 ;;=Please enter the name of a field.
- +135 ;;^DD(9.45,.01,21,0)
- +136 ;;=^^4^4^2920513^^^^
- +137 ;;^DD(9.45,.01,21,1,0)
- +138 ;;=The name of a FileMan field required by this Package. This field is
- +139 ;;^DD(9.45,.01,21,2,0)
- +140 ;;=only to be filled in if you wish to send only selected fields in
- +141 ;;^DD(9.45,.01,21,3,0)
- +142 ;;=an INIT of this file, instead of the full data dictionary. (i.e.,
- +143 ;;^DD(9.45,.01,21,4,0)
- +144 ;;=a partial DD).
- +145 ;;^DD(9.45,.01,"DT")
- +146 ;;=2840302
- +147 ;;^DD(9.454,0)
- +148 ;;=COMMENTS SUB-FIELD^NL^.01^1
- +149 ;;^DD(9.454,0,"NM","COMMENTS")
- +150 ;;=
- +151 ;;^DD(9.454,0,"UP")
- +152 ;;=9.444
- +153 ;;^DD(9.454,.01,0)
- +154 ;;=COMMENTS^W^^0;1^Q
- +155 ;;^DD(9.454,.01,21,0)
- +156 ;;=^^1^1^2851008^
- +157 ;;^DD(9.454,.01,21,1,0)
- +158 ;;=These are comments about the status of this Package's namespace.
- +159 ;;^DD(9.454,.01,"DT")
- +160 ;;=2840815
- +161 ;;^DD(9.455,0)
- +162 ;;=*KEY VARIABLE SUB-FIELD^NL^1^3
- +163 ;;^DD(9.455,0,"DT")
- +164 ;;=2920928
- +165 ;;^DD(9.455,0,"IX","AB",9.455,.01)
- +166 ;;=
- +167 ;;^DD(9.455,0,"NM","*KEY VARIABLE")
- +168 ;;=
- +169 ;;^DD(9.455,0,"UP")
- +170 ;;=9.4
- +171 ;;^DD(9.455,.01,0)
- +172 ;;=KEY VARIABLE^MF^^0;1^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>17!($L(X)<1) X
- +173 ;;^DD(9.455,.01,1,0)
- +174 ;;=^.1
- +175 ;;^DD(9.455,.01,1,1,0)
- +176 ;;=9.455^AB
- +177 ;;^DD(9.455,.01,1,1,1)
- +178 ;;=S ^DIC(9.4,DA(1),1933,"AB",$E(X,1,30),DA)=""
- +179 ;;^DD(9.455,.01,1,1,2)
- +180 ;;=K ^DIC(9.4,DA(1),1933,"AB",$E(X,1,30),DA)
- +181 ;;^DD(9.455,.01,3)
- +182 ;;=Please enter the name of a MUMPS Variable needed by this Package (1-17 characters).
- +183 ;;^DD(9.455,.01,21,0)
- +184 ;;=^^2^2^2851009^^
- +185 ;;^DD(9.455,.01,21,1,0)
- +186 ;;=The name of a MUMPS variable which the Package would like defined
- +187 ;;^DD(9.455,.01,21,2,0)
- +188 ;;=prior to entry into the routines.
- +189 ;;^DD(9.455,.01,"DT")
- +190 ;;=2850228
- +191 ;;^DD(9.455,.02,0)
- +192 ;;=PURPOSE FOR ERR REPORTS^F^^0;2^K:$L(X)>40!($L(X)<3) X
- +193 ;;^DD(9.455,.02,3)
- +194 ;;=Answer must be 3-40 characters in length. This will be displayed to indicate the purpose of this variable on error reports
- +195 ;;^DD(9.455,.02,21,0)
- +196 ;;=^^8^8^2920928^
- +197 ;;^DD(9.455,.02,21,1,0)
- +198 ;;=This field is meant to contain a brief description of the purpose or role
- +199 ;;^DD(9.455,.02,21,2,0)
- +200 ;;=of this KEY VARIABLE. If this variable is present in an error which has
- +201 ;;^DD(9.455,.02,21,3,0)
- +202 ;;=been trapped, and a user selects display of key variables, then this
- +203 ;;^DD(9.455,.02,21,4,0)
- +204 ;;=description will be displayed to aid the user in interpeting the variable
- +205 ;;^DD(9.455,.02,21,5,0)
- +206 ;;=and its value at the time the error occurred. If this description is not