STANDARD DATA DICTIONARY #8928 -- PASTED TEXT TRACKING FILE                                                       3/24/25    PAGE 1
STORED IN ^TIUP(8928,  *** NO DATA STORED YET ***   SITE: WWW.BMIRWIN.COM   UCI: VISTA,VISTA                       (VERSION 1.0)   

DATA          NAME                  GLOBAL        DATA
ELEMENT       TITLE                 LOCATION      TYPE
-----------------------------------------------------------------------------------------------------------------------------------
This file is used by the copy/paste tracking functionality to track pasted text.  


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

   APPLICATION GROUP(S): TIU

POINTED TO BY: PARENT field (#.11) of the PASTED TEXT TRACKING File (#8928) 
               

CROSS
REFERENCED BY: PASTE DATE(B), PARENT(C)

INDEXED BY:    PASTED TO IEN & PASTED TO DOCUMENT LOCATION & PASTE DATE (AC), PASTED TO DOCUMENT LOCATION & PASTED TO IEN (AD)


    LAST MODIFIED: JUN 24,2020@12:13:55

8928,.01      PASTE DATE             0;1 DATE (Required)

              INPUT TRANSFORM:  S %DT="ESTXR" D ^%DT S X=Y K:Y<1 X
              LAST EDITED:      DEC 05, 2016 
              HELP-PROMPT:      Enter the date/time of the pasting action. 
              DESCRIPTION:
                                This is the date/time the text was pasted into a document.  

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

              RECORD INDEXES:   AC (#1573)

8928,.02      PASTING USER           0;2 POINTER TO NEW PERSON FILE (#200) (Required)

              LAST EDITED:      MAR 07, 2013 
              HELP-PROMPT:      Enter the user who performed the paste action. 
              DESCRIPTION:
                                This stores the user responsible for pasting the text into a document.  


8928,.03      INSTITUTION            0;3 POINTER TO INSTITUTION FILE (#4) (Required)

              LAST EDITED:      MAR 07, 2013 
              HELP-PROMPT:      Enter the Institution the paste user was signed into at time of paste. 
              DESCRIPTION:
                                This is the institution of the user at the time of the paste action.  


8928,.04      PASTED TO IEN          0;4 NUMBER (Required)

              INPUT TRANSFORM:  K:+X'=X!(X>99999999999)!(X<0)!(X?.E1"."5N.N) X
              LAST EDITED:      DEC 05, 2016 
              HELP-PROMPT:      Type a number between 0 and 99999999999, 4 decimal digits. 
              DESCRIPTION:      This contains the IEN of the document which received pasted text.  The file in which the IEN is
                                located, is denoted by the PASTED TO DOCUMENT LOCATION (#.05) field.  

              RECORD INDEXES:   AC (#1573), AD (#1574)

8928,.05      PASTED TO DOCUMENT LOCATION 0;5 POINTER TO FILE FILE (#1) (Required)

              LAST EDITED:      DEC 05, 2016 
              HELP-PROMPT:      Choose the file where the PASTED TO IEN is located. 
              DESCRIPTION:      This stores the file where the document which received pasted text, noted in the PASTED TO IEN
                                (#.04) field is located.  

              RECORD INDEXES:   AC (#1573), AD (#1574)

8928,.06      COPY FROM IEN          0;6 NUMBER

              INPUT TRANSFORM:  K:+X'=X!(X>999999999999)!(X<1)!(X?.E1"."5N.N) X
              LAST EDITED:      MAR 08, 2013 
              HELP-PROMPT:      Type a number between 1 and 999999999999, 4 decimal digits. 
              DESCRIPTION:
                                This stores the IEN of the document where the pasted to text was copied from.  


8928,.07      COPY FROM LOCATION     0;7 POINTER TO FILE FILE (#1)

              LAST EDITED:      MAR 11, 2013 
              HELP-PROMPT:      Choose the file where the COPY FROM IEN is located. 
              DESCRIPTION:      This field stores the file where the document from which the pasted text was copied, noted in the
                                COPY FROM IEN (#.06) field is located.  


8928,.08      COPY/PASTE MATCH PCT   0;8 NUMBER (Required)

              INPUT TRANSFORM:  K:+X'=X!(X>100)!(X<0)!(X?.E1"."1N.N) X
              LAST EDITED:      MAR 08, 2013 
              HELP-PROMPT:      Type a number between 0 and 100, 0 decimal digits. 
              DESCRIPTION:      This is the percent of matching text found between the pasted text and the copied text from whence
                                it originated as calculated by the capturing application, such as CPRS GUI. It is possible for the 
                                pasted text to not match 100% to the copied text due to the ability of a user to edit the copied
                                text prior to pasting the text into a document. For example, the user copies text from TIU note 1
                                and places it into the Notepad application to edit. The user then copies the edited text and pastes
                                it into TIU note 2. The pasted text may partially match the originally copied text prior to the
                                edit. If the matching percentage is high enough, the pasted text will be identified as originating
                                from the originally copied text from note 1.  Although technically, there would be a 100% match
                                with the copy from the notepad where the text was edited, the preferred match is where the text
                                came from within VistA/CPRS if we can identify it. This value is stored in whole number form.  

              TECHNICAL DESCR:
                                The calculation of this percentage is performed by the capturing application, such as CPRS GUI.  


8928,.09      CAPTURING APP          0;9 FREE TEXT (Required)

              INPUT TRANSFORM:  K:$L(X)>15!($L(X)<2) X
              LAST EDITED:      MAR 17, 2016 
              HELP-PROMPT:      Answer must be 2-15 characters in length. 
              DESCRIPTION:
                                This is the application which captured the paste.  

              TECHNICAL DESCR:
                                This is a free text field for identifying which application captured the paste information.  


8928,.1       OUTSIDE COPY           0;10 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>110!($L(X)<4) X
              LAST EDITED:      MAR 17, 2016 
              HELP-PROMPT:      Answer must be 4-110 characters in length. 
              DESCRIPTION:      This is used to store special information related to copied text.  The capturing application has
                                the ability to store identifier information which could not be stored in the COPY FROM IEN (#.06) 
                                and COPY FROM LOCATION (#.07) files. Piece one will always be "-1". Piece two will contain
                                semi-colon delimited information as determined by capturing application to determine where copied
                                from text originated from if not identifiable by a file and entry number.  


8928,.11      PARENT                 0;11 POINTER TO PASTED TEXT TRACKING FILE (#8928)

              LAST EDITED:      MAR 17, 2016 
              HELP-PROMPT:      Select the original entry containing the initial saved text from a saved paste. 
              DESCRIPTION:      This indicates the original entry which resulted from saving pasted text which did not match the
                                actually saved pasted text in the pasted to document. As the pasted text must match exactly what is 
                                in the pasted to document, the saved pasted text is searched and if not 100% matching, the found
                                text is saved in multiple entries with the sections of text which were found. This situation may
                                occur if the user edits the pasted text after pasting into the document, then an issue with
                                identifying the edited text in the capturing application exists. For example, CPRS GUI needs to
                                identify the pasted text and highlight it. An exact match is needed to properly highlight the text.
                                When the pasted text is saved, a comparison is made to the actual text of the document. If the
                                exact text of the pasted text which CPRS GUI passed in is not found, then additional finding logic
                                is executed to identify the different pieces of the document text which still match the pasted
                                text. Each part identified as still matching is saved as unique entries in this, the PASTED TEXT
                                TRACKING (#8928) file. So, if the pasted text of "Patient exhibits signs of dementia today" is
                                passed in by CPRS, but the user changed it to "Patient exhibits no signs of dementia today" in the
                                note prior to saving it, then what is captured and saved is "Patient exhibits" and "signs of
                                dementia today" as two separate entries in file #8928. As mentioned, this is needed so the CPRS GUI
                                can find and highlight the appropriate text. This text is identified as being related to the same
                                pasting action by using the parent field.  

              CROSS-REFERENCE:  8928^C 
                                1)= S ^TIUP(8928,"C",$E(X,1,30),DA)=""
                                2)= K ^TIUP(8928,"C",$E(X,1,30),DA)
                                This index is used to quickly identify child pastes to the parent (original) paste.  



8928,.12      FORCE SEARCH           0;12 SET

                                '0' FOR NORMAL SEARCH; 
                                '1' FOR FORCE SEARCH; 
                                '2' FOR PREVENT SEARCH; 
              LAST EDITED:      MAR 20, 2016 
              HELP-PROMPT:      Enter a code from 0 to 2 or the corresponding text. 
              DESCRIPTION:      This field is used to inform the calling application of the need to modify the search behavior used
                                to identify the pasted text.  


8928,1        PASTED TEXT            1;0   WORD-PROCESSING #8928.01   (NOWRAP)   (IGNORE "|")

              DESCRIPTION:
                                This stores the text pasted by a user, which was saved as part of a note.  


                LAST EDITED:      MAR 08, 2013 
                HELP-PROMPT:      Enter the text which was pasted by the user. 
                DESCRIPTION:
                                  This stores the text pasted by a user, which was saved as part of a note.  




8928,2        COPIED TEXT            2;0   WORD-PROCESSING #8928.02   (NOWRAP)   (IGNORE "|")

              DESCRIPTION:
                                This stores the text copied by a user, where the pasted text originated.  


                LAST EDITED:      APR 01, 2015 
                HELP-PROMPT:      Enter the text which was copied by the user. 
                DESCRIPTION:
                                  This stores the text copied by a user, where the pasted text originated.  





      FILES POINTED TO                      FIELDS

FILE (#1)                         PASTED TO DOCUMENT LOCATION (#.05)
                                  COPY FROM LOCATION (#.07)

INSTITUTION (#4)                  INSTITUTION (#.03)

NEW PERSON (#200)                 PASTING USER (#.02)

PASTED TEXT TRACKING (#8928)      PARENT (#.11)


File #8928

  Record Indexes:

  AC (#1573)    RECORD    REGULAR    IR    SORTING ONLY
      Short Descr:  Used to find pasted text for a specific location, document, and paste date.
      Description:  This index is used by the Copy/Paste functionality to quickly find pastes by pasted to file location, pasted to
                    file ien (document), and by paste date.  
        Set Logic:  S ^TIUP(8928,"AC",X(1),X(2),X(3),DA)=""
       Kill Logic:  K ^TIUP(8928,"AC",X(1),X(2),X(3),DA)
       Whole Kill:  K ^TIUP(8928,"AC")
             X(1):  PASTED TO IEN  (8928,.04)  (Subscr 1)  (forwards)
             X(2):  PASTED TO DOCUMENT LOCATION  (8928,.05)  (Subscr 2)  (forwards)
             X(3):  PASTE DATE  (8928,.01)  (Subscr 3)  (forwards)

  AD (#1574)    RECORD    REGULAR    IR    SORTING ONLY
      Short Descr:  Allows entries to be found related to specific entities.
      Description:  This index will be used by the Copy/Paste functionality to quickly find pastes related to specific notes.  This
                    will allow the pastes to be found and deleted in the event the note is deleted.  
        Set Logic:  S ^TIUP(8928,"AD",X(1),X(2),DA)=""
       Kill Logic:  K ^TIUP(8928,"AD",X(1),X(2),DA)
       Whole Kill:  K ^TIUP(8928,"AD")
             X(1):  PASTED TO DOCUMENT LOCATION  (8928,.05)  (Subscr 1)  (forwards)
             X(2):  PASTED TO IEN  (8928,.04)  (Subscr 2)  (forwards)


INPUT TEMPLATE(S):

PRINT TEMPLATE(S):

SORT TEMPLATE(S):

FORM(S)/BLOCK(S):