STANDARD DATA DICTIONARY #58.6 -- PADE INBOUND TRANSACTIONS FILE                                                  3/24/25    PAGE 1
STORED IN ^PS(58.6,  *** NO DATA STORED YET ***   SITE: WWW.BMIRWIN.COM   UCI: VISTA,VISTA                         (VERSION 5.0)   

DATA          NAME                  GLOBAL        DATA
ELEMENT       TITLE                 LOCATION      TYPE
-----------------------------------------------------------------------------------------------------------------------------------
The PADE INBOUND TRANSACTIONS (#58.6) file contains Pharmacy Automation Dispensing Equipment transactions received from PADE
dispensing devices.  The PADE HL7 transaction is first received by the VistA HL7 Messaging application, where the PADE inbound
filer is invoked to create an entry in the PADE INBOUND TRANSACTIONS (#58.6).  
 
This file creates several cross references designed to facilitate querying and reporting of PADE data using various search
criteria. Supported transactions that are not associated with a patient include Load, Unload, and Count. Supported transaction
associated with a patient include Dispense, Return, and Waste.  


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

CROSS
REFERENCED BY: TRANSACTION DATE/TIME(B)

INDEXED BY:    INBOUND PADE SYSTEM & DISPENSING DEVICE & DRAWER & TYPE OF TRANSACTION & QUANTITY & POCKET & ACTUAL BEGIN BALANCE &
               TRANSACTION DATE/TIME & SUBDRAWER (AC), INBOUND PADE SYSTEM & DISPENSING DEVICE & TRANSACTION DATE/TIME (DEV),
               INBOUND PADE SYSTEM & DISPENSING DEVICE & DRUG & TRANSACTION DATE/TIME (DEVD), INBOUND PADE SYSTEM & DRUG &
               TRANSACTION DATE/TIME (DRG), INBOUND PADE SYSTEM & DISPENSING DEVICE & DRUG NAME & TRANSACTION DATE/TIME & ALTERNATE
               DRUG ID (MDRG), MISSING PATIENT NAME (MPT), TRANSACTION DATE/TIME (P), STATUS & TRANSACTION DATE/TIME (ST), USER
               EXTERNAL ID & TRANSACTION DATE/TIME (USR)


    LAST MODIFIED: OCT 6,2016@13:01:37

58.6,.001     NUMBER                     NUMBER

              INPUT TRANSFORM:  K:+X'=X!(X>9999999999999)!(X<0)!(X?.E1"."1N.N) X
              LAST EDITED:      JUL 28, 2015 
              HELP-PROMPT:      Type a number between 0 and 9999999999999, 0 decimal digits. 
              DESCRIPTION:      This field is intended to allow for multiple transaction filed at the exact same Date and Time,
                                with identical Internal Entry Numbers equal to the same Date and Time.  


58.6,.01      TRANSACTION DATE/TIME  0;1 DATE (Required)

              INPUT TRANSFORM:  S %DT="ESTXR" D ^%DT S X=Y K:Y<1 X
              LAST EDITED:      AUG 23, 2016 
              HELP-PROMPT:      Enter the Date/Time the transaction occurred. 
              DESCRIPTION:
                                This field contains the Date and Time the transaction occurred at the PADE device.  

              DELETE TEST:      1,0)= I 1 D EN^DDIOL("Division cannot be deleted, it must be inactivated!","","$C(7),!?5")

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

              FIELD INDEX:      P (#1372)    REGULAR    IR    LOOKUP & SORTING
                  Short Descr:  Link patient to PADE transaction
                  Description:  This cross reference groups PADE transactions by patient, by date, and by drug item, to optimize
                                lookups and report processing. With this cross reference, all transactions related to a specific
                                patient may be retrieved quickly and efficiently.  
                    Set Logic:  S ^PS(58.6,"P",$E(X(1),1,30),X(2),$E(X(3),1,45),DA)=""
                   Kill Logic:  K ^PS(58.6,"P",$E(X(1),1,30),X(2),$E(X(3),1,45),DA)
                   Whole Kill:  K ^PS(58.6,"P")
                         X(1):  Computed Code: S X=$$PTIX^PSJPDRUT(DA,.PSJOMS)
                                  (Subscr 1)  (Len 30)
                         X(2):  TRANSACTION DATE/TIME  (58.6,.01)  (Subscr 2)  (forwards)
                         X(3):  Computed Code: S X=$$DRGIX^PSJPDRUT(DA,.PSJOMS)
                                  (Subscr 3)  (Len 45)

              RECORD INDEXES:   AC (#1352), DEV (#1358), DEVD (#1368), DRG (#1369), MDRG (#1370), ST (#1373), USR (#1374)

58.6,1        DISPENSING DEVICE      0;2 FREE TEXT (Required)

              INPUT TRANSFORM:  K:$L(X)>30!($L(X)<2) X
              LAST EDITED:      AUG 23, 2016 
              HELP-PROMPT:      Answer must be 2-30 characters in length. 
              DESCRIPTION:      This field contains the dispensive device or cabinet where the actions described by the transaction
                                were performed.  

              RECORD INDEXES:   AC (#1352), DEV (#1358), DEVD (#1368), MDRG (#1370)

58.6,1.1      INBOUND PADE SYSTEM    1;3 FREE TEXT (Required)

              INPUT TRANSFORM:  K:$L(X)>30!($L(X)<2) X
              LAST EDITED:      AUG 23, 2016 
              HELP-PROMPT:      Answer must be 2-30 characters in length. 
              DESCRIPTION:      This fields contains a pointer to the PADE INVENTORY SYSTEM (#58.601) file. This represents the
                                Pharmacy Automation Dispensing Equipment (PADE) system from which this transaction originated.  

              RECORD INDEXES:   AC (#1352), DEV (#1358), DEVD (#1368), DRG (#1369), MDRG (#1370)

58.6,1.2      DRAWER                 1;4 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>30!($L(X)<1) X
              LAST EDITED:      AUG 23, 2016 
              HELP-PROMPT:      Answer must be 1-30 characters in length. 
              DESCRIPTION:      This field contains the PADE drawer from which, or into which, the drug item in the trasaction was
                                added or removed. A PADE drawer is a storage location for drugs within a PADE dispensing device or
                                cabinet. A drawer is the primary storage location within a cabinet and may be subdivided into 
                                pockets and/or sub-drawers.  

              RECORD INDEXES:   AC (#1352)

58.6,2        DRUG                   0;3 POINTER TO DRUG FILE (#50) (Required)

              LAST EDITED:      MAR 01, 2016 
              HELP-PROMPT:      Enter the drug item added or removed from the PADE device. 
              DESCRIPTION:
                                This field contains the drug in the PADE device acted upon by the transaction.  

              TECHNICAL DESCR:
                                Pointer to the DRUG (#50) file.  

              RECORD INDEXES:   DEVD (#1368), DRG (#1369)

58.6,3        QUANTITY               0;4 NUMBER

              INPUT TRANSFORM:  K:+X'=X!(X>999999)!(X<-999999)!(X?.E1"."3N.N) X
              LAST EDITED:      AUG 23, 2016 
              HELP-PROMPT:      Type a number between -999999 and 999999, 2 decimal digits. 
              DESCRIPTION:      This field contains the quantity of the drug acted upon in the transaction. The quantity is a
                                physical item count of drug items in the units in which the drug items are stocked and dispensed.  

              RECORD INDEXES:   AC (#1352)

58.6,4        TYPE OF TRANSACTION    0;5 SET (Required)

                                'L' FOR LOAD; 
                                'U' FOR UNLOAD; 
                                'R' FOR RETURN; 
                                'V' FOR VEND; 
                                'W' FOR WASTE; 
                                'C' FOR COUNT; 
                                'F' FOR REFILL; 
                                'B' FOR EMPTY; 
                                'E' FOR EXPIRED; 
                                'D' FOR DESTOCK; 
                                'A' FOR DISCREPANCY; 
                                'N' FOR CANCEL; 
              LAST EDITED:      AUG 23, 2016 
              HELP-PROMPT:      Enter the transaction type matching the PADE action. 
              DESCRIPTION:      This field contains the type of the transaction. LOAD and RETURN transactions indicate item(s) were
                                added to a PADE device, UNLOAD and DISPENSE transactions indicate item(s) were removed from a PADE
                                device. A COUNT transaction neither adds nor removes items from the PADE device.  

              RECORD INDEXES:   AC (#1352)

58.6,5        DRUG FORM              0;6 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>30!($L(X)<1) X
              LAST EDITED:      AUG 30, 2015 
              HELP-PROMPT:      Answer must be 1-30 characters in length. 
              DESCRIPTION:      This field contains the dispense form of the transaction's drug item. This should indicate exactly
                                what was added or removed from the PADE device.  For instance: TABLET, BOTTLE, INHALER.  


58.6,6        USER                   0;7 POINTER TO NEW PERSON FILE (#200)

              LAST EDITED:      NOV 30, 2015 
              HELP-PROMPT:      Enter the user who performed the action at the PADE device. 
              DESCRIPTION:      This field contains the name of the user physically adding or removing the drug item(s) from or to
                                the PADE device.  


58.6,6.1      USER EXTERNAL ID       5;1 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>30!($L(X)<1) X
              LAST EDITED:      NOV 30, 2015 
              HELP-PROMPT:      Answer must be 1-30 characters in length. 
              DESCRIPTION:      This field contains the external ID of the user performing the addition or removal of the drug item
                                from the PADE dispensing device, as received from the PADE system via the PADE HL7 interface.  

              RECORD INDEXES:   USR (#1374)

58.6,6.2      USER TEXT NAME         5;2 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>30!($L(X)<1) X
              LAST EDITED:      NOV 30, 2015 
              HELP-PROMPT:      Answer must be 1-30 characters in length. 
              DESCRIPTION:      This field contains the text name of the user performing the transaction, as received from the
                                vendor via the PADE HL7 interface. This should be the same as the user's name in VistA, however,
                                this is not enforced by any automated process. Discrepancies in the user's name between VistA and
                                the vendor database should be reviewed and corrected.  


58.6,7        WITNESS                0;8 POINTER TO NEW PERSON FILE (#200)

              LAST EDITED:      NOV 30, 2015 
              HELP-PROMPT:      Enter the user who witnessed the action at the PADE device. 
              DESCRIPTION:      This field contains the name of the user formally witnessing the adding or removing of drug item(s)
                                to or from the PADE.  


58.6,7.1      WITNESS EXTERNAL ID    5;3 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>30!($L(X)<1) X
              LAST EDITED:      NOV 30, 2015 
              HELP-PROMPT:      Answer must be 1-30 characters in length. 
              DESCRIPTION:      This field contains the external PADE system identifier for the user acting as a witness to the
                                addition or removal of the drug item from the PADE dispensing device, as received from the PADE
                                system via the PADE HL7 interface.  


58.6,7.2      WITNESS TEXT NAME      5;5 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>30!($L(X)<1) X
              LAST EDITED:      NOV 30, 2015 
              HELP-PROMPT:      Answer must be 1-30 characters in length. 
              DESCRIPTION:      This field contains the text name of the person witnessing the transaction, as received from the
                                vendor via the PADE HL7  interface. This should be the same as the person's name in VistA; however,
                                as this is not enforced by any automated process,  discrepancies in the witnesses' name between
                                VistA and the vendor database should be reviewed and corrected.  


58.6,8        DIVISION               0;9 POINTER TO INSTITUTION FILE (#4)

              LAST EDITED:      NOV 18, 2015 
              HELP-PROMPT:      Enter the Division associated with the transaction. 
              DESCRIPTION:      This field conains the medical division associated with the PADE device from which the transaction
                                originated.  

              TECHNICAL DESCR:
                                Pointer to the INSTITUTION (#4) file.  


58.6,9        HOSPITAL LOCATION      0;10 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>30!($L(X)<2) X
              LAST EDITED:      AUG 30, 2015 
              HELP-PROMPT:      Answer must be 2-30 characters in length. 
              DESCRIPTION:      This field contains the ward or clinic location associated with the PADE device from which the
                                transaction originated.  


58.6,10       POCKET                 0;11 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>30!($L(X)<1) X
              LAST EDITED:      AUG 23, 2016 
              HELP-PROMPT:      Answer must be 1-30 characters in length. 
              DESCRIPTION:      This field contains the name of the storage pocket in the PADE transaction, from which or to which
                                the transaction's drug item was removed or added.  

              RECORD INDEXES:   AC (#1352)

58.6,11       SUBDRAWER              0;12 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>30!($L(X)<1) X
              LAST EDITED:      AUG 23, 2016 
              HELP-PROMPT:      Answer must be 1-30 characters in length. 
              DESCRIPTION:      This field contains the name of the PADE device's subdrawer, from which the transaction's drug item
                                was removed, or to which the transaction's drug was added.  

              RECORD INDEXES:   AC (#1352)

58.6,12       EXPECTED BEGIN BALANCE 0;13 NUMBER

              INPUT TRANSFORM:  K:+X'=X!(X>9999999)!(X<-9999999)!(X?.E1"."1N.N) X
              LAST EDITED:      JUL 28, 2015 
              HELP-PROMPT:      Type a number between -9999999 and 9999999, 0 decimal digits. 
              DESCRIPTION:      This field contains a transaction's expected balance of a drug within a specific PADE
                                drawer/pocket, prior to any actions described by the transaction.  


58.6,13       ACTUAL BEGIN BALANCE   0;14 NUMBER

              INPUT TRANSFORM:  K:+X'=X!(X>9999999)!(X<-9999999)!(X?.E1"."1N.N) X
              LAST EDITED:      AUG 23, 2016 
              HELP-PROMPT:      Type a number between -9999999 and 9999999, 0 decimal digits. 
              DESCRIPTION:      This field contains a physical count of drug items in the specific PADE storage location sent in
                                the transaction, prior to any action described by the transaction.  

              RECORD INDEXES:   AC (#1352)

58.6,14       PATIENT                0;15 POINTER TO PATIENT FILE (#2)

              LAST EDITED:      MAR 16, 2016 
              HELP-PROMPT:      Enter the patient associated with the transaction. 
              DESCRIPTION:      This field contains the name of the patient in the transaction for whom a drug item was removed or
                                returned to the PADE.  


58.6,14.1     PATIENT TEXT LAST NAME 3;5 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>30!($L(X)<1) X
              LAST EDITED:      JAN 08, 2016 
              HELP-PROMPT:      Answer must be 1-30 characters in length. 
              DESCRIPTION:      This is the patient's last name received in field 5, component 1 of the PID segment received from
                                the PADE vendor when a patient is involved in activity at the PADE dispensing device.  

              TECHNICAL DESCR:  This is the patient's first (given) name received in field 5, component 2 of the PID segment
                                received from the PADE vendor when a patient is involved in activity at the PADE dispensing device.  


58.6,14.2     PATIENT TEXT FIRST NAME 3;6 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>30!($L(X)<1) X
              LAST EDITED:      JAN 08, 2016 
              HELP-PROMPT:      Answer must be 1-30 characters in length. 
              DESCRIPTION:      This is the patient's first name received in field 5, component 2 of the PID segment received from
                                the PADE vendor when a patient is involved in activity at the PADE dispensing device.  


58.6,14.3     PATIENT ID             3;7 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>30!($L(X)<1) X
              LAST EDITED:      JAN 08, 2016 
              HELP-PROMPT:      Answer must be 1-30 characters in length. 
              DESCRIPTION:      This is the patient's identifier received in field 3, component 1 of the PID segment received from
                                the PADE vendor when a patient is involved in activity at the PADE dispensing device.  


58.6,15       PHARMACY ORDER         1;1 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>30!($L(X)<1) X
              LAST EDITED:      JUL 30, 2015 
              HELP-PROMPT:      Answer must be 1-30 characters in length. 
              DESCRIPTION:      This field contains the pharmacy order from the transaction for which the drug item was removed or
                                returned to the PADE device.  


58.6,16       POCKET BALANCE         1;2 NUMBER

              INPUT TRANSFORM:  K:+X'=X!(X>9999999)!(X<-9999999)!(X?.E1"."1N.N) X
              LAST EDITED:      SEP 09, 2015 
              HELP-PROMPT:      Type a number between -9999999 and 9999999, 0 decimal digits. 
              DESCRIPTION:      This field contains the sum of the Actual Begin Balance received in the transaction and the
                                Quantity received in the transaction and represents the new balance in the PADE device after the
                                event described by the transaction was completed.  


58.6,17       DEVICE BALANCE         1;5 NUMBER

              INPUT TRANSFORM:  K:+X'=X!(X>99999)!(X<-99999)!(X?.E1"."1N.N) X
              LAST EDITED:      AUG 06, 2015 
              HELP-PROMPT:      Type a number between -99999 and 99999, 0 decimal digits. 
              DESCRIPTION:      This field contains the total balance of a drug item within a PADE device as reported by the PADE
                                device in the transaction.  


58.6,18       DRUG NAME              1;6 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>40!($L(X)<1) X
              LAST EDITED:      MAY 31, 2016 
              HELP-PROMPT:      Answer must be 1-40 characters in length. 
              DESCRIPTION:
                                This field contains the name of the drug in the transaction, as it is defined in the PADE device.  

              RECORD INDEXES:   MDRG (#1370)

58.6,19       ALTERNATE DRUG ID      1;7 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>30!($L(X)<1) X
              LAST EDITED:      MAY 31, 2016 
              HELP-PROMPT:      Answer must be 1-30 characters in length. 
              DESCRIPTION:
                                This field contains an alternate ID of the drug in the PADE device acted transaction.  

              RECORD INDEXES:   MDRG (#1370)

58.6,20       DRUG LOT NUMBER        1;8 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>11!($L(X)<1) X
              LAST EDITED:      SEP 09, 2015 
              HELP-PROMPT:      Answer must be 1-11 characters in length. 
              DESCRIPTION:
                                This field contains the lot number of the drug in the transaction.  


58.6,21       TRANSACTION COMMENT    2;1 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>245!($L(X)<1) X
              LAST EDITED:      SEP 09, 2015 
              HELP-PROMPT:      Answer must be 1-245 characters in length. 
              DESCRIPTION:      This field contains comments entered by the user performing the action described by the
                                transaction.  


58.6,22       STATUS                 3;1 SET

                                'P' FOR PENDING; 
                                'C' FOR COMPLETED; 
                                'I' FOR INCOMPLETE; 
              LAST EDITED:      MAR 22, 2016 
              HELP-PROMPT:      Enter the processing status of the transaction in the inbound queue. 
              DESCRIPTION:      This field indicates the status of the transaction's update to the PADE INVENTORY file (#58.601).
                                The status is set to P (Pending) at the time the transaction is filed, then changed to I (In
                                Progress) when procesing of the transaction begins, and C (Complete) when the transaction has been
                                successfully processed to update the PADE INVENTORY file.  

              RECORD INDEXES:   ST (#1373)

58.6,23       PAR QUANTITY           3;2 NUMBER

              INPUT TRANSFORM:  K:+X'=X!(X>9999)!(X<0)!(X?.E1"."1N.N) X
              LAST EDITED:      JAN 12, 2016 
              HELP-PROMPT:      Type a number between 0 and 9999, 0 decimal digits. 
              DESCRIPTION:      PAR Quantity represents the minimum quantity of the item that should be stocked in the PADE device;
                                an inventory count below this level indicates the item should be restocked/refilled. 


58.6,24       MISSING PATIENT ID     3;3 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>30!($L(X)<2) X
              LAST EDITED:      DEC 07, 2015 
              HELP-PROMPT:      Answer must be 2-30 characters in length. 
              DESCRIPTION:      If the patient received from PADE via HL7 is not on file in the local VistA system, this field is
                                populated with the unknown patient's ID.  


58.6,25       MISSING PATIENT NAME   3;4 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>30!($L(X)<2) X
              LAST EDITED:      DEC 07, 2015 
              HELP-PROMPT:      Answer must be 2-30 characters in length. 
              DESCRIPTION:      If the patient received from PADE via HL7 is not on file in the local VistA system, this field is
                                populated with the unknown patient's name.  

              FIELD INDEX:      MPT (#1371)    REGULAR    IR    LOOKUP & SORTING
                  Short Descr:  Missing Patient
                  Description:  This cross reference contains patient names received from the PADE system without a corresponding
                                patient ID matching a patient in VistA.  
                    Set Logic:  S ^PS(58.6,"MPT",$E(X,1,30),DA)=""
                   Kill Logic:  K ^PS(58.6,"MPT",$E(X,1,30),DA)
                   Whole Kill:  K ^PS(58.6,"MPT")
                         X(1):  MISSING PATIENT NAME  (58.6,25)  (Subscr 1)  (Len 30)  (forwards)



      FILES POINTED TO                      FIELDS

DRUG (#50)                        DRUG (#2)

INSTITUTION (#4)                  DIVISION (#8)

NEW PERSON (#200)                 USER (#6)
                                  WITNESS (#7)

PATIENT (#2)                      PATIENT (#14)


File #58.6

  Record Indexes:

  AC (#1352)    RECORD    MUMPS    IR    ACTION
      Short Descr:  File incoming PADE transaction into PADE INVENTORY (#58.601) file.
      Description:  This action cross reference files incoming HL7 data received from PADE vendors into the PADE INVENTORY SYSTEM
                    (#58.601) file by invoking FIL58601^PSJPADIT. 
                     
                    The PADE TRANSACTION (#58.6) file serves as a queue for the incoming transaction, with minimal validation, in
                    order to capture the activity in the HL7 message for reporting purposes; the PADE INVENTORY SYSTEM (#58.601)
                    file is only updated if required data is present.  
        Set Logic:  D FIL58601^PSJPADIT(.X,.PSJOMS)
       Kill Logic:  Q
             X(1):  INBOUND PADE SYSTEM  (58.6,1.1)  (Subscr 1)  (Len 30)  (forwards)
             X(2):  DISPENSING DEVICE  (58.6,1)  (Subscr 2)  (Len 30)  (forwards)
             X(3):  DRAWER  (58.6,1.2)  (Subscr 3)  (Len 30)  (forwards)
             X(4):  Computed Code: S X=$$DRGXREF^PSJPAD7I(DA,.PSJOMS)
                      (Subscr 4)  (Len 30)  (forwards)
             X(5):  TYPE OF TRANSACTION  (58.6,4)  (Subscr 5)  (Len 30)  (forwards)
             X(6):  QUANTITY  (58.6,3)  (Subscr 6)  (Len 30)  (forwards)
             X(7):  POCKET  (58.6,10)  (Subscr 7)  (Len 30)  (forwards)
             X(8):  ACTUAL BEGIN BALANCE  (58.6,13)  (Subscr 8)  (Len 30)  (forwards)
             X(9):  TRANSACTION DATE/TIME  (58.6,.01)  (Subscr 9)  (forwards)
            X(10):  SUBDRAWER  (58.6,11)  (Subscr 10)  (forwards)

  DEV (#1358)    RECORD    REGULAR    IR    LOOKUP & SORTING
      Short Descr:  PADE device by Date
      Description:  This cross reference groups transactions by PADE dispensing system, device, and by date/time to optimize
                    lookups and reports. With this cross reference, a list of PADE dispensing devices with transaction activity for
                    a given range of dates may be quickly retrieved.  
        Set Logic:  S ^PS(58.6,"DEV",$E(X(1),1,30),$E(X(2),1,30),X(3),DA)=""
       Kill Logic:  K ^PS(58.6,"DEV",$E(X(1),1,30),$E(X(2),1,30),X(3),DA)
       Whole Kill:  K ^PS(58.6,"DEV")
             X(1):  INBOUND PADE SYSTEM  (58.6,1.1)  (Subscr 1)  (Len 30)  (forwards)
             X(2):  DISPENSING DEVICE  (58.6,1)  (Subscr 2)  (Len 30)  (forwards)
             X(3):  TRANSACTION DATE/TIME  (58.6,.01)  (Subscr 3)  (forwards)

  DEVD (#1368)    RECORD    REGULAR    IR    LOOKUP & SORTING
      Short Descr:  Link Device to Drug by Date
      Description:  This cross reference groups PADE transactions by PADE dispensing device, and by drug, and by date/time to
                    optimize lookups and reports. With this cross reference, a list of drug items acted upon for a specific PADE 
                    device within a selected range of dates may be quickly retrieved.  
        Set Logic:  S ^PS(58.6,"DEVD",$E(X(1),1,30),$E(X(2),1,30),$E(X(3),1,30),$E(X(4),1,30),DA)=""
       Kill Logic:  K ^PS(58.6,"DEVD",$E(X(1),1,30),$E(X(2),1,30),$E(X(3),1,30),$E(X(4),1,30),DA)
       Whole Kill:  K ^PS(58.6,"DEVD")
             X(1):  INBOUND PADE SYSTEM  (58.6,1.1)  (Subscr 1)  (Len 30)  (forwards)
             X(2):  DISPENSING DEVICE  (58.6,1)  (Subscr 2)  (Len 30)  (forwards)
             X(3):  DRUG  (58.6,2)  (Subscr 3)  (Len 30)  (forwards)
             X(4):  TRANSACTION DATE/TIME  (58.6,.01)  (Subscr 4)  (Len 30)  (forwards)

  DRG (#1369)    RECORD    REGULAR    IR    LOOKUP & SORTING
      Short Descr:  Drug ITEM by Date
      Description:  This cross reference groups transactions by drug item and by transaction date/time to optimize lookups and
                    reports. With this cross reference, a list of drugs with transaction activity for a given range of dates may be 
                    quickly retrieved.  
        Set Logic:  S ^PS(58.6,"DRG",$E(X(1),1,30),X(2),X(3),DA)=""
       Kill Logic:  K ^PS(58.6,"DRG",$E(X(1),1,30),X(2),X(3),DA)
       Whole Kill:  K ^PS(58.6,"DRG")
             X(1):  INBOUND PADE SYSTEM  (58.6,1.1)  (Subscr 1)  (Len 30)  (forwards)
             X(2):  DRUG  (58.6,2)  (Subscr 2)  (forwards)
             X(3):  TRANSACTION DATE/TIME  (58.6,.01)  (Subscr 3)  (forwards)

  MDRG (#1370)    RECORD    MUMPS    IR    LOOKUP & SORTING
      Short Descr:  DRUG NOT ON FILE
      Description:  This cross reference contains drug items received via the PADE HL7 interface that do not match to a drug in the
                    DRUG (#50) file.  
        Set Logic:  S ^PS(58.6,"MDRG",X(1),X(2),X(3),X(4),$G(DA))=""
         Set Cond:  I $L($G(X(5))) S X='$D(^PSDRUG(+$G(X(5)),2))
       Kill Logic:  K ^PS(58.6,"MDRG",X(1),X(2),X(3),X(4),$G(DA))
       Whole Kill:  K ^PS(58.6,"MDRG")
             X(1):  INBOUND PADE SYSTEM  (58.6,1.1)  (Subscr 1)  (forwards)
             X(2):  DISPENSING DEVICE  (58.6,1)  (Subscr 2)  (forwards)
             X(3):  DRUG NAME  (58.6,18)  (Subscr 3)  (Len 30)  (forwards)
             X(4):  TRANSACTION DATE/TIME  (58.6,.01)  (Subscr 4)  (forwards)
             X(5):  ALTERNATE DRUG ID  (58.6,19)  (Subscr 5)  (forwards)

  ST (#1373)    RECORD    REGULAR    IR    LOOKUP & SORTING
      Short Descr:  Transaction Processing Status
      Description:  This cross reference represents the processsing status of the incoming HL7 transaction in the PADE TRANSACTIONS
                    (#58.6) file, which serves as a queue for incoming HL7 PADE transactions. The status is set to 'P' (Pending)
                    when the entry is initially filed, then set to 'I' (In Progress) when the transaction begins processing, and
                    'C' (Complete) when the entry has been successfully processed.  
        Set Logic:  S ^PS(58.6,"ST",X(1),X(2),DA)=""
       Kill Logic:  K ^PS(58.6,"ST",X(1),X(2),DA)
       Whole Kill:  K ^PS(58.6,"ST")
             X(1):  STATUS  (58.6,22)  (Subscr 1)  (forwards)
             X(2):  TRANSACTION DATE/TIME  (58.6,.01)  (Subscr 2)  (forwards)

  USR (#1374)    RECORD    REGULAR    IR    LOOKUP & SORTING
      Short Descr:  Link and group PADE user to PADE Inbound transactions
      Description:  This cross reference grouips PADE transactions by PADE user ID and date/time to optimize lookups and reports.
                    With this cross reference, a list of clinical users performing PADE actions within a selected range of dates
                    may be quickly retrieved.  
        Set Logic:  S ^PS(58.6,"USR",$E(X(1),1,30),X(2),DA)=""
       Kill Logic:  K ^PS(58.6,"USR",$E(X(1),1,30),X(2),DA)
       Whole Kill:  K ^PS(58.6,"USR")
             X(1):  USER EXTERNAL ID  (58.6,6.1)  (Subscr 1)  (Len 30)  (forwards)
             X(2):  TRANSACTION DATE/TIME  (58.6,.01)  (Subscr 2)  (forwards)


INPUT TEMPLATE(S):

PRINT TEMPLATE(S):

SORT TEMPLATE(S):

FORM(S)/BLOCK(S):