STANDARD DATA DICTIONARY #15.4 -- MERGE IMAGES FILE                                                               3/24/25    PAGE 1
STORED IN ^XDRM(  *** NO DATA STORED YET ***   SITE: WWW.BMIRWIN.COM   UCI: VISTA,VISTA                            (VERSION 7.3)   

DATA          NAME                  GLOBAL        DATA
ELEMENT       TITLE                 LOCATION      TYPE
-----------------------------------------------------------------------------------------------------------------------------------
File 15.4 stores an image of the pairs of entries in files that were merged immediately prior to the actual merge.  In addition,
there is also a record of the locations of pointer values that were changed during the merge process.  


              DD ACCESS: @
              RD ACCESS: @
              WR ACCESS: @
             DEL ACCESS: @
           LAYGO ACCESS: @
           AUDIT ACCESS: @

CROSS
REFERENCED BY: MERGED FROM(B), MERGED TO(B)



15.4,.01      MERGED FROM            0;1          VARIABLE POINTER (Required)

              FILE  ORDER  PREFIX    LAYGO  MESSAGE
                 2    1    XDRM         n      
                                         
              LAST EDITED:      DEC 04, 1997 
              HELP-PROMPT:      This is the FROM entry of the MERGE Pair 
              DESCRIPTION:      This field contains a variable pointer reference to the location in the primary merge file of the
                                entry which was merged into another entry.  

              CROSS-REFERENCE:  15.4^B 
                                1)= S ^XDRM("B",$E(X,1,30),DA)=""
                                2)= K ^XDRM("B",$E(X,1,30),DA)


15.4,.02      MERGED TO              0;2          VARIABLE POINTER

              FILE  ORDER  PREFIX    LAYGO  MESSAGE
                 2    1                 n      
                                         
              LAST EDITED:      DEC 05, 1997 
              HELP-PROMPT:      This is the entry that was merged into 
              DESCRIPTION:      This field contains a variable pointer reference to the entry in the primary file for the merge,
                                into which the entry indicated by the MERGED FROM (#.01) field was merged.  

              CROSS-REFERENCE:  15.4^B 
                                1)= S ^XDRM("B",$E(X,1,30),DA)=""
                                2)= K ^XDRM("B",$E(X,1,30),DA)


15.4,.03      DATE MERGED            0;3 DATE

              INPUT TRANSFORM:  S %DT="EX" D ^%DT S X=Y K:Y<1 X
              LAST EDITED:      MAY 14, 1998 
              HELP-PROMPT:      This is the date on which the entries were merged. 
              DESCRIPTION:      This field indicates the date on which the entry indicated by the MERGED FROM (#.01) field was
                                merged into the entry indicated by the MERGED TO (#.02) field.  


15.4,1        FROM FILE#             1;0 POINTER Multiple #15.41 (Add New Entry without Asking)

              DESCRIPTION:      This field specifies a file for which a data image was recorded for the entry specified by the
                                MERGED FROM (#.01) field.  


15.41,.01       FROM FILE#             0;1 POINTER TO FILE FILE (#1)

                LAST EDITED:      DEC 04, 1997 
                HELP-PROMPT:      Selects one of the files that was merged 
                DESCRIPTION:      This field specifies a file for which a data image was recorded for the entry specified by the
                                  MERGED FROM (#.01) field in the parent file (MERGE IMAGES, 15.4).  

                CROSS-REFERENCE:  15.41^B 
                                  1)= S ^XDRM(DA(1),1,"B",$E(X,1,30),DA)=""
                                  2)= K ^XDRM(DA(1),1,"B",$E(X,1,30),DA)


15.41,.02       IEN IN FILE            0;2 NUMBER

                INPUT TRANSFORM:  K:+X'=X!(X>9999999999)!(X<0)!(X?.E1"."1N.N) X
                LAST EDITED:      DEC 04, 1997 
                HELP-PROMPT:      This is the internal entry number for the FROM entry in the current file. 
                DESCRIPTION:      This is the internal entry number (IEN) associated with the MERGED FROM (#.01 field in file 15.4)
                                  entry in the current file (FROM FILE#, #.01).  While this is normally the same as the IEN of the
                                  entry indicated by MERGED FROM, there are some files which are not associated by DINUMed values
                                  and for which the IEN is different.  This field contains the proper IEN for the entry in the
                                  current file (FROM FILE#, #.01).  


15.41,1         GLOBAL DATA            1;0 Multiple #15.411 (Add New Entry without Asking)

                DESCRIPTION:      This multiple field contains the global nodes (lacking the beginning '^') for the MERGED FROM
                                  entry in the current file (FROM FILE#, #.01).  The global prior to the merge can be reconstructed
                                  by setting the value in field #1.01 of the subfile into the global location specified by the data 
                                  in the current field (#.01).  If there is no field #1.01 associated with a global location, the
                                  value was NULL.  


15.411,.01        GLOBAL NODE            0;1 FREE TEXT

                  INPUT TRANSFORM:  K:$L(X)>245!($L(X)<2) X
                  LAST EDITED:      DEC 04, 1997 
                  HELP-PROMPT:      This is the global node for which the data is given 
                  DESCRIPTION:      This field contains global node (lacking the beginning '^') for the MERGED FROM entry in the
                                    current file (FROM FILE#, #.01). The global prior to the merge can be reconstructed by setting
                                    the value in field #1.01 into the global location specified by the data inthe current field
                                    (#.01).  If there is no field #1.01 associated with a global location, the value was NULL.  

                  CROSS-REFERENCE:  15.411^B 
                                    1)= S ^XDRM(DA(2),1,DA(1),1,"B",$E(X,1,30),DA)=""
                                    2)= K ^XDRM(DA(2),1,DA(1),1,"B",$E(X,1,30),DA)


15.411,1.01       DATA VALUE             1;E1,245 FREE TEXT

                  INPUT TRANSFORM:  K:$L(X)>245!($L(X)<1) X
                  LAST EDITED:      DEC 04, 1997 
                  HELP-PROMPT:      This is the value associated with the current global node 
                  DESCRIPTION:      This field contains the data value associated with the global location specified in GLOBAL NODE
                                    (#.01).  If there is no data in the current field, then the value associated with the global
                                    was NULL.  






15.4,2        TO FILE#               2;0 POINTER Multiple #15.42 (Add New Entry without Asking)

              DESCRIPTION:      This field specifies a file for which a data image was recorded for the entry specified by the
                                MERGED TO (#.02) field.  


15.42,.01       TO FILE#               0;1 POINTER TO FILE FILE (#1)

                LAST EDITED:      DEC 04, 1997 
                HELP-PROMPT:      Selects one of the files that was merged 
                DESCRIPTION:      This field specifies a file for which a data image was recorded for the entry specified by the
                                  MERGED TO (#.02 ) field in the parent file (MERGE IMAGES, 15.4).  

                CROSS-REFERENCE:  15.42^B 
                                  1)= S ^XDRM(DA(1),2,"B",$E(X,1,30),DA)=""
                                  2)= K ^XDRM(DA(1),2,"B",$E(X,1,30),DA)


15.42,.02       IEN IN FILE            0;2 NUMBER

                INPUT TRANSFORM:  K:+X'=X!(X>9999999999)!(X<0)!(X?.E1"."1N.N) X
                LAST EDITED:      DEC 04, 1997 
                HELP-PROMPT:      This is the internal entry number for the TO entry in the current file. 
                DESCRIPTION:      This is the internal entry number (IEN) associated with the MERGED TO (#.02 field in file 15.4)
                                  entry in the current file (TO FILE#, #.01).  While this is normally the same as the IEN of the
                                  entry indicated by MERGED TO, there are some files which are not associated by DINUMed values and
                                  for which the IEN is different.  This field contains the proper IEN for the entry in the current
                                  file (TO FILE#, .01).  


15.42,1         GLOBAL DATA            1;0 Multiple #15.421 (Add New Entry without Asking)

                DESCRIPTION:      This multiple field contains the global nodes (lacking the beginning '^') for the MERGED TO entry
                                  in the current file (TO FILE#, #.01).  The global prior to the merge can be reconstructed by
                                  setting the value in field #1.01 of the subfile into the global location specified by the data in
                                  the current field (#.01).  If there is no field #1.01 associated with a global location, the
                                  value was NULL.  


15.421,.01        GLOBAL NODE            0;1 FREE TEXT

                  INPUT TRANSFORM:  K:$L(X)>245!($L(X)<2) X
                  LAST EDITED:      DEC 04, 1997 
                  HELP-PROMPT:      This is the global node for which the data is given 
                  DESCRIPTION:      This field contains a global node (lacking the beginning'^') for the MERGED TO entry in the
                                    current file (TO FILE#, #.01).    The global prior to the merge can be reconstructed by setting
                                    the value in field #1.01 of the subfile into the global location specified by the data in the
                                    current field (#.01).  If there is no field #1.01 associated with a global location, the value
                                    was NULL.  

                  CROSS-REFERENCE:  15.421^B 
                                    1)= S ^XDRM(DA(2),2,DA(1),1,"B",$E(X,1,30),DA)=""
                                    2)= K ^XDRM(DA(2),2,DA(1),1,"B",$E(X,1,30),DA)


15.421,1.01       DATA VALUE             1;E1,245 FREE TEXT

                  INPUT TRANSFORM:  K:$L(X)>245!($L(X)<1) X
                  LAST EDITED:      DEC 04, 1997 
                  HELP-PROMPT:      This is the value associated with the current global node 
                  DESCRIPTION:      This field contains the data value associated with the global location specified in GLOBAL NODE
                                    (#.01).  If there is no data in the current field, then the value associated with the global
                                    was NULL.  






15.4,3        POINTERS CHANGED       3;0 Multiple #15.43 (Add New Entry without Asking)

              DESCRIPTION:      This multiple field contains data on locations where a pointer value was changed.  The #.01 field
                                contains the information which would be specified as subscripts in the array passed in a call to
                                FILE^DIE.  The array subscripts are separated by a ';', and are in the form FILE;IENS;FIELD.  The
                                value which was present before the data was changed is stored in field #1.01.  


15.43,.01       POINTERS CHANGED       0;1 FREE TEXT

                INPUT TRANSFORM:  K:$L(X)>100!($L(X)<1) X
                LAST EDITED:      DEC 05, 1997 
                HELP-PROMPT:      Value is file number;field number;IEN string  where file number may be a subfile number 
                DESCRIPTION:      This field contains data on a location where a pointer value was changed.  The #.01 field
                                  contains the information which would be specified as subscripts in the array passed in a call to
                                  FILE^DIE.  The array subscripts are separated by a ';', and are in the form FILE;IENS;FIELD.  The
                                  value which was present before the data was changed is stored in field #1.01.  

                CROSS-REFERENCE:  15.43^B 
                                  1)= S ^XDRM(DA(1),3,"B",$E(X,1,30),DA)=""
                                  2)= K ^XDRM(DA(1),3,"B",$E(X,1,30),DA)


15.43,1.01      ORIGINAL VALUE         1;1 FREE TEXT

                INPUT TRANSFORM:  K:$L(X)>200!($L(X)<1) X
                LAST EDITED:      DEC 05, 1997 
                HELP-PROMPT:      This is the pointer value before it was changed 
                DESCRIPTION:      This field contains the pointer value which was present at the location specified by the #.01
                                  field, prior to the value being changed during the merge.  





      FILES POINTED TO                      FIELDS

FILE (#1)                         FROM FILE#:FROM FILE# (#.01)
                                  TO FILE#:TO FILE# (#.01)

PATIENT (#2)                      MERGED FROM (#.01)
                                  MERGED TO (#.02)



INPUT TEMPLATE(S):

PRINT TEMPLATE(S):

SORT TEMPLATE(S):

FORM(S)/BLOCK(S):