STANDARD DATA DICTIONARY #52.09 -- REMOTE PRESCRIPTION LOG FILE                                                   6/27/25    PAGE 1
STORED IN ^PSRXR(52.09,  *** NO DATA STORED YET ***   SITE: WWW.BMIRWIN.COM   UCI: VISTA,VISTA                     (VERSION 7.0)   

DATA          NAME                  GLOBAL        DATA
ELEMENT       TITLE                 LOCATION      TYPE
-----------------------------------------------------------------------------------------------------------------------------------
This file logs all activity related to remote refills and partial fills. This file will hold actions taken locally on a remote
prescription, as well as actions taken by an external facility on any local prescriptions.  


              DD ACCESS: #
              RD ACCESS: P
              WR ACCESS: P
             DEL ACCESS: p
           LAYGO ACCESS: P

   APPLICATION GROUP(S): PSO

CROSS
REFERENCED BY: LOG DATE/TIME(B), PATIENT(C), RX NUMBER(D), SITE NUMBER(E), OPAI MESSAGE ID(F)

    LAST MODIFIED: MAY 22,2023@09:53:11

52.09,.01     LOG DATE/TIME          0;1 DATE (Required)

              INPUT TRANSFORM:  S %DT="ESTR" D ^%DT S X=Y K:Y<1 X
              LAST EDITED:      APR 26, 2014 
              HELP-PROMPT:      Enter the date/time for this transaction. 
              DESCRIPTION:      This is the date/time associated with this remote prescription transaction. The date/time
                                represents the date/time the message was processed and filed locally.  

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


52.09,.02     PATIENT                0;2 POINTER TO PATIENT FILE (#2) (Required)

              LAST EDITED:      APR 26, 2014 
              HELP-PROMPT:      Enter the Patient for which this refill or partial fill occured. 
              DESCRIPTION:
                                This is the patient for which a refill or partial fill request was generated.  

              CROSS-REFERENCE:  52.09^C 
                                1)= S ^PSRXR(52.09,"C",$E(X,1,30),DA)=""
                                2)= K ^PSRXR(52.09,"C",$E(X,1,30),DA)
                                Cross reference for patient IEN.  



52.09,.03     RX NUMBER              0;3 FREE TEXT (Required)

              INPUT TRANSFORM:  K:$L(X)>20!($L(X)<1) X
              LAST EDITED:      APR 26, 2014 
              HELP-PROMPT:      Enter the remote RX number. This is the RX number from the remote facility. 1-20 characters. 
              DESCRIPTION:
                                The RX# as stored at the remote facility.  

              CROSS-REFERENCE:  52.09^D 
                                1)= S ^PSRXR(52.09,"D",$E(X,1,30),DA)=""
                                2)= K ^PSRXR(52.09,"D",$E(X,1,30),DA)
                                Cross reference for remote RX number.  



52.09,.04     SITE NUMBER            0;4 POINTER TO INSTITUTION FILE (#4) (Required)

              LAST EDITED:      APR 28, 2014 
              HELP-PROMPT:      Select the site associated with this remote RX. 
              DESCRIPTION:
                                Site number for the remote facility.  

              CROSS-REFERENCE:  52.09^E 
                                1)= S ^PSRXR(52.09,"E",$E(X,1,30),DA)=""
                                2)= K ^PSRXR(52.09,"E",$E(X,1,30),DA)
                                Site Number Cross reference.  



52.09,.05     REQUEST TYPE           0;5 SET

                                'RF' FOR REFILL; 
                                'PR' FOR PARTIAL FILL; 
                                'OR' FOR OUTSIDE REFILL; 
                                'OP' FOR OUTSIDE PARTIAL FILL; 
              LAST EDITED:      AUG 04, 2014 
              HELP-PROMPT:      Select the type of request being made. Refill(RF), Partial Fill(PR), Outside Refill (OR), or 
                                Outside Partial Fill (OP). 
              DESCRIPTION:
                                This fields holds the type of request being made for this RX.  


52.09,.06     OUTGOING REQUEST PHARMACIST 0;6 POINTER TO NEW PERSON FILE (#200) (Required)

              LAST EDITED:      AUG 04, 2014 
              HELP-PROMPT:      Enter the Pharmacist for this refill or partial fill request. 
              DESCRIPTION:
                                This is the Pharmacist who initiated the refill or partial fill request to the remote facility.  


52.09,.061    REMOTE FILLING PERSON  0;11 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>45!($L(X)<1) X
              MAXIMUM LENGTH:   45
              LAST EDITED:      SEP 15, 2021 
              HELP-PROMPT:      Answer must be 1-45 characters in length. 
              DESCRIPTION:      This is the name of the person at the remote site who filled the OneVA refill/partial for the
                                selected RX.  


52.09,.062    REMOTE CHECKING PHARMACIST 0;12 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>45!($L(X)<1) X
              MAXIMUM LENGTH:   45
              LAST EDITED:      SEP 13, 2021 
              HELP-PROMPT:      Answer must be 1-45 characters in length. 
              DESCRIPTION:
                                This is the pharmacist from the remote site that checked the OneVA prescription refill/partial.  


52.09,.063    HOST REFILL IEN        0;13 NUMBER

              INPUT TRANSFORM:  K:+X'=X!(X>99)!(X<1)!(X?.E1"."1.N) X
              LAST EDITED:      OCT 13, 2021 
              HELP-PROMPT:      Type a number between 1 and 99, 0 decimal digits. 
              DESCRIPTION:      This is the REFILL entry at the host site in the PRESCRIPTION File (#52). This field will be
                                populated at both the host and dispensing site.  

                                UNEDITABLE

52.09,.064    HOST PARTIAL IEN       0;14 NUMBER

              INPUT TRANSFORM:  K:+X'=X!(X>99)!(X<1)!(X?.E1"."1.N) X
              LAST EDITED:      OCT 13, 2021 
              HELP-PROMPT:      Type a number between 1 and 99, 0 decimal digits. 
              DESCRIPTION:      This is the PARTIAL DATE entry at the host site in the PRESCRIPTION File (#52). This field will be
                                populated at both the host and dispensing site.  

                                UNEDITABLE

52.09,.065    HOST RX LOG IEN        0;15 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>20!($L(X)<1) X
              MAXIMUM LENGTH:   20
              LAST EDITED:      OCT 27, 2021 
              HELP-PROMPT:      Answer must be 1-20 characters in length. 
              DESCRIPTION:      This is the internal entry number of the Remote Prescription Log File (#52.09) at host site that is
                                associated with the OneVA refill/partial for the selected RX. This field will be populated at the
                                dispensing site only.  

                                UNEDITABLE

52.09,.07     QUANTITY               0;7 NUMBER

              INPUT TRANSFORM:  K:+X'=X!(X>9999)!(X<0)!(X?.E1"."1N.N) X
              LAST EDITED:      APR 26, 2014 
              HELP-PROMPT:      Enter the quantity that was dispensed with this refill or partial fill. 
              DESCRIPTION:
                                This is the quantity associated with this refill or partial fill.  


52.09,.08     DAYS SUPPLY            0;8 NUMBER

              INPUT TRANSFORM:  K:+X'=X!(X>999)!(X<0)!(X?.E1"."1N.N) X
              LAST EDITED:      APR 26, 2014 
              HELP-PROMPT:      Enter the days supply for this refill or partial fill. A numeric value 0-999. 
              DESCRIPTION:
                                This is the days supply for this refill or partial fill action.  


52.09,.09     REFILL/PARTIAL DATE    0;9 DATE

              INPUT TRANSFORM:  S %DT="ETXR" D ^%DT S X=Y K:Y<1 X
              LAST EDITED:      MAR 08, 2016 
              HELP-PROMPT:      Enter the date/time for this refill or partial fill request. 
              DESCRIPTION:      This is the date for the refill or partial fill request. This represents the date/time as it is
                                logged in the .01 field of either the REFILL or PARTIAL fill.  subfile within the PRESCRIPTION file
                                (#52) on the remote system.  


52.09,.1      DISPENSED DATE         0;10 DATE

              INPUT TRANSFORM:  S %DT="ETXR" D ^%DT S X=Y K:Y<1 X
              LAST EDITED:      MAR 08, 2016 
              HELP-PROMPT:      Enter the dispense date for this refill or partial fill request. 
              DESCRIPTION:      This is the Dispense date/time as it is held in the DISPENSED DATE within the REFILL subfile of the
                                PRESCRIPTION (#52) file, or the DISPENSED DATE within the PARTIAL subfile of the PRESCRIPTION file.  


52.09,1       REMOTE DRUG NAME       1;1 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>120!($L(X)<1) X
              LAST EDITED:      AUG 12, 2014 
              HELP-PROMPT:      Enter the name of the drug associated with this refill or partial fill request, 1-120 characters. 
              DESCRIPTION:
                                This is the name of the drug being dispense for this request.  


52.09,1.1     LOCAL (MATCHED) DRUG   1;2 POINTER TO DRUG FILE (#50)

              LAST EDITED:      AUG 12, 2014 
              HELP-PROMPT:      Enter the name of the local drug that matches the remote (incoming) drug. 
              DESCRIPTION:      This is the drug that was used for locally for the 'remote' refill or partial fill. Since drug IENS
                                and names may differ between sites, a user must match the remote drug name to a local drug.  


52.09,1.2     TOTAL REFILL/PARTIAL FILL COST 1;3 NUMBER

              INPUT TRANSFORM:  K:+X'=X!(X>9999999.9999999)!(X<0)!(X?.E1"."8.N) X
              LAST EDITED:      JUN 29, 2016 
              HELP-PROMPT:      Type a number between 0 and 9999999.9999999, 7 decimal digits. 
              DESCRIPTION:      This is the total cost for the 'remote'/filling facility. The cost is derived by using the cost of
                                the drug at the time of the refill or partial fill. The cost is being retrieved from file 50, field
                                13.  


52.09,1.3     VA PRODUCT ID          1;4 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>50!($L(X)<1) X
              LAST EDITED:      APR 06, 2016 
              HELP-PROMPT:      Answer must be 1-50 characters in length. 
              DESCRIPTION:
                                This is the VA product ID that will be passed in by the 'host' vista system.  


52.09,2       MESSAGE DETAILS        2;0   WORD-PROCESSING #52.092   (IGNORE "|")

              DESCRIPTION:
                                This is the HL7 message that is associated with the refill or partial fill request.  


                LAST EDITED:      APR 26, 2014 
                HELP-PROMPT:      Enter the message details for this refill or partial fill request. 
                DESCRIPTION:      Contains the message details that were passed back by the remote system. This gives more
                                  information on what occured with this RX request.  




52.09,3       LABEL DATA             3;0   WORD-PROCESSING #52.093   (NOWRAP)   (IGNORE "|")

              DESCRIPTION:
                                This contains the label data returned from the remote facility for a refill or partial fill.  


                LAST EDITED:      AUG 28, 2014 
                HELP-PROMPT:      Enter the label data, as processed and generated by the remote facility. 
                DESCRIPTION:      This is the label data that was built by the remote facility for printing at the local
                                  (requesting) facility.  




52.09,4       OPAI MESSAGE ID        4;1 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>40!($L(X)<1) X
              MAXIMUM LENGTH:   40
              LAST EDITED:      JAN 04, 2022 
              HELP-PROMPT:      Answer must be 1-40 characters in length. 
              DESCRIPTION:      This is the message ID from the Outpatient Pharmacy Automated Interface (OPAI) to an automated
                                dispensing device.  

                                UNEDITABLE
              CROSS-REFERENCE:  52.09^F^MUMPS 
                                1)= S ^PSRXR(52.09,"F",$E(X,1,40),DA)=""
                                2)= K ^PSRXR(52.09,"F",$E(X,1,40),DA)
                                3)= Do not delete this cross reference.
                                This cross reference indicates that this OneVA fill was sent to the Outpatient Pharmacy Automated
                                Interface (OPAI). It cross references the OPAI Message ID, which is the Message ID of the HL7
                                message that was sent to the OPAI. It sets the global ^PSRXR(52.09,"F",OPAI Message ID,IEN)="".  



52.09,4.1     HOST SITE ID           4;2 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>40!($L(X)<1) X
              MAXIMUM LENGTH:   40
              LAST EDITED:      OCT 13, 2021 
              HELP-PROMPT:      Answer must be 1-40 characters in length. 
              DESCRIPTION:      This is the site ID from the host site when a OneVA refill or partial fill is processed and sent to
                                the Outpatient Pharmacy Automated Interface (OPAI) at a dispensing site. This field will be
                                populated at the dispensing site only.  

                                UNEDITABLE

52.09,4.2     DISP ADD NAME          4;3 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>30!($L(X)<3) X
              MAXIMUM LENGTH:   30
              LAST EDITED:      JAN 04, 2022 
              HELP-PROMPT:      Answer must be 3-30 characters in length. 
              DESCRIPTION:      This is the name of the dispensing site's automated dispensing device that the OneVA fill was sent
                                to.  


52.09,4.3     DISP ADD DNS           4;4 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>50!($L(X)<1) X
              MAXIMUM LENGTH:   50
              LAST EDITED:      JAN 04, 2022 
              HELP-PROMPT:      Answer must be 1-50 characters in length. 
              DESCRIPTION:      This is the DNS name or IP address of the dispensing site's automated dispensing device that the
                                OneVA fill was sent to.  


52.09,4.4     DISP MULTI ADDS        4;5 SET

                                '1' FOR YES; 
              LAST EDITED:      JAN 04, 2022 
              DESCRIPTION:      This flag is set to '1' when there are multiple Automated Dispensing Devices (ADDs) defined for an
                                outpatient site. An additional entry is displayed in the prescription's activity log to indicate
                                which ADD the OneVA prescription refill/partial fill was sent to for dispensing.  



      FILES POINTED TO                      FIELDS

DRUG (#50)                        LOCAL (MATCHED) DRUG (#1.1)

INSTITUTION (#4)                  SITE NUMBER (#.04)

NEW PERSON (#200)                 OUTGOING REQUEST PHARMACIST (#.06)

PATIENT (#2)                      PATIENT (#.02)



INPUT TEMPLATE(S):

PRINT TEMPLATE(S):

SORT TEMPLATE(S):

FORM(S)/BLOCK(S):