- XPDIN006 ; ; 03-JUL-1995
- ;;8.0;KERNEL;;JUL 10, 1995
- Q:'DIFQ(9.6) 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.64,222.8,3)
- ;;=
- ;;^DD(9.64,222.8,21,0)
- ;;=7^^9^9^2941108^^^^
- ;;^DD(9.64,222.8,21,1,0)
- ;;=ADD ONLY IF NEW will install data at the installing site only if this
- ;;^DD(9.64,222.8,21,2,0)
- ;;=file is new to the site or there is no data in this file at the site.
- ;;^DD(9.64,222.8,21,3,0)
- ;;=MERGE data will only bring in data which is not already on file at
- ;;^DD(9.64,222.8,21,4,0)
- ;;=the installing site.
- ;;^DD(9.64,222.8,21,5,0)
- ;;=OVERWRITE data will be put in place regardless of what is on file
- ;;^DD(9.64,222.8,21,6,0)
- ;;=at the installing site.
- ;;^DD(9.64,222.8,21,7,0)
- ;;=REPLACE will delete the installing site's data before installing data for
- ;;^DD(9.64,222.8,21,8,0)
- ;;=this file. It will preserve locally developed fields, if they were created
- ;;^DD(9.64,222.8,21,9,0)
- ;;=within the VA Programming Standards and Conventions.
- ;;^DD(9.64,222.8,"DT")
- ;;=2940831
- ;;^DD(9.64,222.9,0)
- ;;=MAY USER OVERRIDE DATA UPDATE^S^y:YES;n:NO;^222;9^Q
- ;;^DD(9.64,222.9,3)
- ;;=
- ;;^DD(9.64,222.9,21,0)
- ;;=7^^7^7^2940414^^^
- ;;^DD(9.64,222.9,21,1,0)
- ;;=YES means that the user has the option to determine whether or not
- ;;^DD(9.64,222.9,21,2,0)
- ;;=to bring in the data that has been sent with this package. However,
- ;;^DD(9.64,222.9,21,3,0)
- ;;=the user does not get the ability to change how to install the SITE'S DATA,
- ;;^DD(9.64,222.9,21,4,0)
- ;;=i.e. MERGE to REPLACE.
- ;;^DD(9.64,222.9,21,5,0)
- ;;=
- ;;^DD(9.64,222.9,21,6,0)
- ;;=NO means that the developer of this package will control whether the data
- ;;^DD(9.64,222.9,21,7,0)
- ;;=will be installed at the target site.
- ;;^DD(9.64,222.9,"DT")
- ;;=2940502
- ;;^DD(9.64,223,0)
- ;;=SCREEN TO DETERMINE DD UPDATE^KX^^223;E1,245^K:$L(X)>240 X I $D(X) D ^DIM
- ;;^DD(9.64,223,3)
- ;;=This is Standard MUMPS code from 1 to 240 characters in length.
- ;;^DD(9.64,223,9)
- ;;=@
- ;;^DD(9.64,223,21,0)
- ;;=^^5^5^2940915^^^^
- ;;^DD(9.64,223,21,1,0)
- ;;=This field contains standard MUMPS code which is used to determine
- ;;^DD(9.64,223,21,2,0)
- ;;=whether or not a data dictionary should be updated. This code must
- ;;^DD(9.64,223,21,3,0)
- ;;=set $T. If $T=1, the DD will be updated. If $T=0, it will not.
- ;;^DD(9.64,223,21,4,0)
- ;;=
- ;;^DD(9.64,223,21,5,0)
- ;;=Namespace your variables.
- ;;^DD(9.64,223,"DT")
- ;;=2890927
- ;;^DD(9.64,224,0)
- ;;=SCREEN TO SELECT DATA^K^^224;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
- ;;^DD(9.64,224,3)
- ;;=This is Standard MUMPS code.
- ;;^DD(9.64,224,9)
- ;;=@
- ;;^DD(9.64,224,21,0)
- ;;=^^5^5^2950512^^^^
- ;;^DD(9.64,224,21,1,0)
- ;;=This field contains standard M code which is used to determine
- ;;^DD(9.64,224,21,2,0)
- ;;=whether a record in a file should be exported in this package.
- ;;^DD(9.64,224,21,3,0)
- ;;=The variable Y will be equal to the internal entry number of the
- ;;^DD(9.64,224,21,4,0)
- ;;=current record. This code must set $T, if $T=1 then the record will
- ;;^DD(9.64,224,21,5,0)
- ;;=be sent. If $T=0 it will not.
- ;;^DD(9.64,224,"DT")
- ;;=2940119
- ;;^DD(9.641,0)
- ;;=DD NUMBER SUB-FIELD^^1^3
- ;;^DD(9.641,0,"DT")
- ;;=2950330
- ;;^DD(9.641,0,"IX","APDD",9.641,.01)
- ;;=
- ;;^DD(9.641,0,"NM","DD NUMBER")
- ;;=
- ;;^DD(9.641,0,"UP")
- ;;=9.64
- ;;^DD(9.641,.01,0)
- ;;=DD NUMBER^MFX^^0;1^K:X[""""!($A(X)=45) X I $D(X) S X=$$CHKDD^DIFROMSD(D1,+$G(X),"N") K:X'>0 X S:$D(X) DINUM=+X,X=$P(X,"^",2)
- ;;^DD(9.641,.01,1,0)
- ;;=^.1
- ;;^DD(9.641,.01,1,1,0)
- ;;=9.641^APDD^MUMPS
- ;;^DD(9.641,.01,1,1,1)
- ;;=S ^XPD(9.6,DA(2),4,"APDD",DA(1),DA)=""
- ;;^DD(9.641,.01,1,1,2)
- ;;=K ^XPD(9.6,DA(2),4,"APDD",DA(1),DA)
- ;;^DD(9.641,.01,1,1,"%D",0)
- ;;=^^2^2^2950117^
- ;;^DD(9.641,.01,1,1,"%D",1,0)
- ;;=Used to create an array structure containing Partial DDs. This array
- ;;^DD(9.641,.01,1,1,"%D",2,0)
- ;;=is passed to FIA^DIFROMSU as a list of DD numbers and fields to transport.
- ;;^DD(9.641,.01,1,1,"DT")
- ;;=2940829
- ;;^DD(9.641,.01,3)
- ;;=Enter a valid DD number for this file.
- ;;^DD(9.641,.01,4)
- ;;=D DDIOLDD^DIFROMSD(D1)
- ;;^DD(9.641,.01,21,0)
- ;;=^^17^17^2940903^
- ;;^DD(9.641,.01,21,1,0)
- ;;=
- ;;^DD(9.641,.01,21,2,0)
- ;;=DD NUMBER pertains to the file's number or any multiple field contained
- ;;^DD(9.641,.01,21,3,0)
- ;;=within the file.
- ;;^DD(9.641,.01,21,4,0)
- ;;=
- ;;^DD(9.641,.01,21,5,0)
- ;;=This list starts with the file's top level number followed by a list of
- ;;^DD(9.641,.01,21,6,0)
- ;;=multiple fields contained within the file, if any. These DO NOT represent
- ;;^DD(9.641,.01,21,7,0)
- ;;=Field Number(s).
- ;;^DD(9.641,.01,21,8,0)
- ;;=
- ;;^DD(9.641,.01,21,9,0)
- ;;=The nesting levels are not represented. All the DD NUMBERs, file number
- ;;^DD(9.641,.01,21,10,0)
- ;;=and multiple fields, have been flatten to a single list.
- --- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HXPDIN006 5022 printed Mar 13, 2025@21:08:41 Page 2
- XPDIN006 ; ; 03-JUL-1995
- +1 ;;8.0;KERNEL;;JUL 10, 1995
- +2 if 'DIFQ(9.6)
- 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.64,222.8,3)
- +2 ;;=
- +3 ;;^DD(9.64,222.8,21,0)
- +4 ;;=7^^9^9^2941108^^^^
- +5 ;;^DD(9.64,222.8,21,1,0)
- +6 ;;=ADD ONLY IF NEW will install data at the installing site only if this
- +7 ;;^DD(9.64,222.8,21,2,0)
- +8 ;;=file is new to the site or there is no data in this file at the site.
- +9 ;;^DD(9.64,222.8,21,3,0)
- +10 ;;=MERGE data will only bring in data which is not already on file at
- +11 ;;^DD(9.64,222.8,21,4,0)
- +12 ;;=the installing site.
- +13 ;;^DD(9.64,222.8,21,5,0)
- +14 ;;=OVERWRITE data will be put in place regardless of what is on file
- +15 ;;^DD(9.64,222.8,21,6,0)
- +16 ;;=at the installing site.
- +17 ;;^DD(9.64,222.8,21,7,0)
- +18 ;;=REPLACE will delete the installing site's data before installing data for
- +19 ;;^DD(9.64,222.8,21,8,0)
- +20 ;;=this file. It will preserve locally developed fields, if they were created
- +21 ;;^DD(9.64,222.8,21,9,0)
- +22 ;;=within the VA Programming Standards and Conventions.
- +23 ;;^DD(9.64,222.8,"DT")
- +24 ;;=2940831
- +25 ;;^DD(9.64,222.9,0)
- +26 ;;=MAY USER OVERRIDE DATA UPDATE^S^y:YES;n:NO;^222;9^Q
- +27 ;;^DD(9.64,222.9,3)
- +28 ;;=
- +29 ;;^DD(9.64,222.9,21,0)
- +30 ;;=7^^7^7^2940414^^^
- +31 ;;^DD(9.64,222.9,21,1,0)
- +32 ;;=YES means that the user has the option to determine whether or not
- +33 ;;^DD(9.64,222.9,21,2,0)
- +34 ;;=to bring in the data that has been sent with this package. However,
- +35 ;;^DD(9.64,222.9,21,3,0)
- +36 ;;=the user does not get the ability to change how to install the SITE'S DATA,
- +37 ;;^DD(9.64,222.9,21,4,0)
- +38 ;;=i.e. MERGE to REPLACE.
- +39 ;;^DD(9.64,222.9,21,5,0)
- +40 ;;=
- +41 ;;^DD(9.64,222.9,21,6,0)
- +42 ;;=NO means that the developer of this package will control whether the data
- +43 ;;^DD(9.64,222.9,21,7,0)
- +44 ;;=will be installed at the target site.
- +45 ;;^DD(9.64,222.9,"DT")
- +46 ;;=2940502
- +47 ;;^DD(9.64,223,0)
- +48 ;;=SCREEN TO DETERMINE DD UPDATE^KX^^223;E1,245^K:$L(X)>240 X I $D(X) D ^DIM
- +49 ;;^DD(9.64,223,3)
- +50 ;;=This is Standard MUMPS code from 1 to 240 characters in length.
- +51 ;;^DD(9.64,223,9)
- +52 ;;=@
- +53 ;;^DD(9.64,223,21,0)
- +54 ;;=^^5^5^2940915^^^^
- +55 ;;^DD(9.64,223,21,1,0)
- +56 ;;=This field contains standard MUMPS code which is used to determine
- +57 ;;^DD(9.64,223,21,2,0)
- +58 ;;=whether or not a data dictionary should be updated. This code must
- +59 ;;^DD(9.64,223,21,3,0)
- +60 ;;=set $T. If $T=1, the DD will be updated. If $T=0, it will not.
- +61 ;;^DD(9.64,223,21,4,0)
- +62 ;;=
- +63 ;;^DD(9.64,223,21,5,0)
- +64 ;;=Namespace your variables.
- +65 ;;^DD(9.64,223,"DT")
- +66 ;;=2890927
- +67 ;;^DD(9.64,224,0)
- +68 ;;=SCREEN TO SELECT DATA^K^^224;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
- +69 ;;^DD(9.64,224,3)
- +70 ;;=This is Standard MUMPS code.
- +71 ;;^DD(9.64,224,9)
- +72 ;;=@
- +73 ;;^DD(9.64,224,21,0)
- +74 ;;=^^5^5^2950512^^^^
- +75 ;;^DD(9.64,224,21,1,0)
- +76 ;;=This field contains standard M code which is used to determine
- +77 ;;^DD(9.64,224,21,2,0)
- +78 ;;=whether a record in a file should be exported in this package.
- +79 ;;^DD(9.64,224,21,3,0)
- +80 ;;=The variable Y will be equal to the internal entry number of the
- +81 ;;^DD(9.64,224,21,4,0)
- +82 ;;=current record. This code must set $T, if $T=1 then the record will
- +83 ;;^DD(9.64,224,21,5,0)
- +84 ;;=be sent. If $T=0 it will not.
- +85 ;;^DD(9.64,224,"DT")
- +86 ;;=2940119
- +87 ;;^DD(9.641,0)
- +88 ;;=DD NUMBER SUB-FIELD^^1^3
- +89 ;;^DD(9.641,0,"DT")
- +90 ;;=2950330
- +91 ;;^DD(9.641,0,"IX","APDD",9.641,.01)
- +92 ;;=
- +93 ;;^DD(9.641,0,"NM","DD NUMBER")
- +94 ;;=
- +95 ;;^DD(9.641,0,"UP")
- +96 ;;=9.64
- +97 ;;^DD(9.641,.01,0)
- +98 ;;=DD NUMBER^MFX^^0;1^K:X[""""!($A(X)=45) X I $D(X) S X=$$CHKDD^DIFROMSD(D1,+$G(X),"N") K:X'>0 X S:$D(X) DINUM=+X,X=$P(X,"^",2)
- +99 ;;^DD(9.641,.01,1,0)
- +100 ;;=^.1
- +101 ;;^DD(9.641,.01,1,1,0)
- +102 ;;=9.641^APDD^MUMPS
- +103 ;;^DD(9.641,.01,1,1,1)
- +104 ;;=S ^XPD(9.6,DA(2),4,"APDD",DA(1),DA)=""
- +105 ;;^DD(9.641,.01,1,1,2)
- +106 ;;=K ^XPD(9.6,DA(2),4,"APDD",DA(1),DA)
- +107 ;;^DD(9.641,.01,1,1,"%D",0)
- +108 ;;=^^2^2^2950117^
- +109 ;;^DD(9.641,.01,1,1,"%D",1,0)
- +110 ;;=Used to create an array structure containing Partial DDs. This array
- +111 ;;^DD(9.641,.01,1,1,"%D",2,0)
- +112 ;;=is passed to FIA^DIFROMSU as a list of DD numbers and fields to transport.
- +113 ;;^DD(9.641,.01,1,1,"DT")
- +114 ;;=2940829
- +115 ;;^DD(9.641,.01,3)
- +116 ;;=Enter a valid DD number for this file.
- +117 ;;^DD(9.641,.01,4)
- +118 ;;=D DDIOLDD^DIFROMSD(D1)
- +119 ;;^DD(9.641,.01,21,0)
- +120 ;;=^^17^17^2940903^
- +121 ;;^DD(9.641,.01,21,1,0)
- +122 ;;=
- +123 ;;^DD(9.641,.01,21,2,0)
- +124 ;;=DD NUMBER pertains to the file's number or any multiple field contained
- +125 ;;^DD(9.641,.01,21,3,0)
- +126 ;;=within the file.
- +127 ;;^DD(9.641,.01,21,4,0)
- +128 ;;=
- +129 ;;^DD(9.641,.01,21,5,0)
- +130 ;;=This list starts with the file's top level number followed by a list of
- +131 ;;^DD(9.641,.01,21,6,0)
- +132 ;;=multiple fields contained within the file, if any. These DO NOT represent
- +133 ;;^DD(9.641,.01,21,7,0)
- +134 ;;=Field Number(s).
- +135 ;;^DD(9.641,.01,21,8,0)
- +136 ;;=
- +137 ;;^DD(9.641,.01,21,9,0)
- +138 ;;=The nesting levels are not represented. All the DD NUMBERs, file number
- +139 ;;^DD(9.641,.01,21,10,0)
- +140 ;;=and multiple fields, have been flatten to a single list.