STANDARD DATA DICTIONARY #58.4 -- SPMP ASAP RECORD DEFINITION FILE                                                3/24/25    PAGE 1
STORED IN ^PS(58.4,  (2 ENTRIES)   SITE: WWW.BMIRWIN.COM   UCI: VISTA,VISTA                                        (VERSION 7.0)   

DATA          NAME                  GLOBAL        DATA
ELEMENT       TITLE                 LOCATION      TYPE
-----------------------------------------------------------------------------------------------------------------------------------
This file is used as a map to all the data elements defined in the American Society for Automation in Pharmacy (ASAP) data format
version 4.0 and above.  
 
The ASAP data format is used when reporting controlled substance prescriptions to the State Prescription Monitoring Program (SPMP).  


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

   APPLICATION GROUP(S): PSO

CROSS
REFERENCED BY: NAME(B)

    LAST MODIFIED: APR 5,2021@09:44:33

58.4,.01      NAME                   0;1 FREE TEXT (Required)

              INPUT TRANSFORM:  K:$L(X)>50!($L(X)<1)!'(X'?1P.E) X
              LAST EDITED:      JAN 14, 2016 
              HELP-PROMPT:      Answer must be 1-50 characters in length. 
              DESCRIPTION:
                                This is the name of the American Society for Automation in Pharmacy (ASAP) data format definition.  

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


58.4,1        VERSION                VER;0 Multiple #58.4001

              DESCRIPTION:      This multiple contains information related to the version of the American Society for Automation in
                                Pharmacy (ASAP) data format definition.  


58.4001,.01     VERSION                0;1 FREE TEXT (Multiply asked)

                INPUT TRANSFORM:  K:$L(X)>10!($L(X)<1) X
                LAST EDITED:      MAR 15, 2016 
                HELP-PROMPT:      Answer must be 1-10 characters in length. 
                DESCRIPTION:      This is the version of the American Society for Automation in Pharmacy (ASAP) data format
                                  definition.  

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


58.4001,.02     DATA ELEMENT DELIMITER CHAR 0;2 FREE TEXT

                INPUT TRANSFORM:  K:$L(X)>1!($L(X)<1) X
                LAST EDITED:      MAR 15, 2016 
                HELP-PROMPT:      Answer must be 1 character in length. 
                DESCRIPTION:
                                  This is the character used to separate the ASAP Data Elements.  


58.4001,.03     SEGMENT TERMINATOR CHAR 0;3 FREE TEXT

                INPUT TRANSFORM:  K:$L(X)>1!($L(X)<1) X
                LAST EDITED:      MAR 15, 2016 
                HELP-PROMPT:      Answer must be 1 character in length. 
                DESCRIPTION:
                                  This is the character used to mark the end of an ASAP Segment.  


58.4001,.04     END OF LINE ESCAPE CHAR(S) 0;4 FREE TEXT

                INPUT TRANSFORM:  K:$L(X)>25!($L(X)<1) X
                LAST EDITED:      MAY 24, 2016 
                HELP-PROMPT:      Answer must be 1-25 characters in length. 
                DESCRIPTION:      This is the character escape sequence used for marking the end of a line in the data export file.
                                  This character escape sequence will be inserted at the end of each segment in the ASAP data file.  
                                   
                                  Examples: $C(10)    - Line Feed 
                                            $C(13)    - Carriage Return 
                                            $C(13,10) - Carriage Return & Carriage Return (Default) 
                                   
                                  Most PMP vendors/states do not require an escape sequence to mark the end of a line in the ASAP
                                  data file; however OpenVMS Operating System will throw an error if the line in the file gets
                                  longer than 32Kb, which is equivalent to about 500 prescriptions. 


58.4001,.05     ZERO REPORT ASAP VERSION 0;5 SET (BOOLEAN Data Type)

                LAST EDITED:      OCT 26, 2020 
                HELP-PROMPT:      Indicate whether ASAP version is used for Zero Reporting or not. 
                DESCRIPTION:      American Society for Automation in Pharmacy (ASAP) Version for Zero Reporting to the State (no
                                  prescription fills to report). Leave blank if the state does not require Zero Reporting.  


58.4001,1       SEGMENT                SEG;0 Multiple #58.40011

                DESCRIPTION:      This multiple contains information about the segment of the American Society for Automation in
                                  Pharmacy (ASAP) data format definition.  

                IDENTIFIED BY:    SEGMENT NAME(#.02)[R]

58.40011,.01      SEGMENT ID             0;1 FREE TEXT (Required) (Multiply asked)

                  INPUT TRANSFORM:  K:$L(X)>5!($L(X)<1) X
                  LAST EDITED:      MAR 15, 2016 
                  HELP-PROMPT:      Answer must be 1-5 characters in length. 
                  DESCRIPTION:      This is the Segment ID of the American Society for Automation in Pharmacy (ASAP) data format
                                    definition.  

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


58.40011,.02      SEGMENT NAME           0;2 FREE TEXT (Required)

                  INPUT TRANSFORM:  K:$L(X)>50!($L(X)<1) X
                  LAST EDITED:      MAR 15, 2016 
                  HELP-PROMPT:      Answer must be 1-50 characters in length. 
                  DESCRIPTION:      This is the Segment Name of the American Society for Automation in Pharmacy (ASAP) data format
                                    definition.  


58.40011,.03      PARENT SEGMENT         0;3 FREE TEXT

                  INPUT TRANSFORM:  K:$L(X)>5!($L(X)<1) X
                  LAST EDITED:      MAR 15, 2016 
                  HELP-PROMPT:      Answer must be 1-5 characters in length. 
                  DESCRIPTION:
                                    This is the segment's parent segment ID.  


58.40011,.04      REQUIREMENT            0;4 SET (Required)

                                    'R' FOR REQUIRED; 
                                    'O' FOR OPTIONAL; 
                                    'N' FOR NOT USED; 
                  LAST EDITED:      MAR 15, 2016 
                  HELP-PROMPT:      Indicate if the segment is required, optional or not used by the ASAP version. 
                  DESCRIPTION:
                                    This indicates if the segment is required, optional or not used.  


58.40011,.05      POSITION               0;5 NUMBER (Required)

                  INPUT TRANSFORM:  K:+X'=X!(X>999)!(X<1)!(X?.E1"."1.N) X
                  LAST EDITED:      MAR 15, 2016 
                  HELP-PROMPT:      Type a number between 1 and 999, 0 decimal digits. 
                  DESCRIPTION:
                                    This indicates the position of the segment within the record.  


58.40011,.06      LEVEL                  0;6 SET (Required)

                                    '1' FOR MAIN HEADER; 
                                    '2' FOR PHARMACY HEADER; 
                                    '3' FOR PATIENT DETAIL; 
                                    '4' FOR PRESCRIPTION DETAIL; 
                                    '5' FOR PHARMACY TRAILER; 
                                    '6' FOR MAIN TRAILER; 
                  LAST EDITED:      MAR 15, 2016 
                  HELP-PROMPT:      Indicate the level where the segment is placed within the ASAP definition. 
                  DESCRIPTION:
                                    This is the level where the segment is placed within the ASAP definition.  


58.40011,1        DATA ELEMENT           DAT;0 Multiple #58.400111

                  DESCRIPTION:      This multiple contains information about the data element of the American Society for
                                    Automation in Pharmacy (ASAP) data format definition.  

                  IDENTIFIED BY:    ELEMENT NAME(#.02)[R], REQUIREMENT(#.06)[R]

58.400111,.01       ELEMENT ID             0;1 FREE TEXT (Required) (Multiply asked)

                    INPUT TRANSFORM:  K:$L(X)>10!($L(X)<1) X
                    LAST EDITED:      MAR 15, 2016 
                    HELP-PROMPT:      Answer must be 1-10 characters in length. 
                    DESCRIPTION:      This is the data element ID of the American Society for Automation in Pharmacy (ASAP) data
                                      format definition.  

                    CROSS-REFERENCE:  58.400111^B 
                                      1)= S ^PS(58.4,DA(3),"VER",DA(2),"SEG",DA(1),"DAT","B",$E(X,1,30),DA)=""
                                      2)= K ^PS(58.4,DA(3),"VER",DA(2),"SEG",DA(1),"DAT","B",$E(X,1,30),DA)


58.400111,.02       ELEMENT NAME           0;2 FREE TEXT (Required)

                    INPUT TRANSFORM:  K:$L(X)>100!($L(X)<1) X
                    LAST EDITED:      MAR 15, 2016 
                    HELP-PROMPT:      Answer must be 1-100 characters in length. 
                    DESCRIPTION:      This is the data element name of the American Society for Automation in Pharmacy (ASAP) data
                                      format definition.  


58.400111,.03       DATA FORMAT            0;3 SET (Required)

                                      'AN' FOR ALPHANUMERIC; 
                                      'N' FOR NUMERIC; 
                                      'D' FOR DECIMAL; 
                                      'DT' FOR DATE; 
                                      'TM' FOR TIME; 
                    LAST EDITED:      MAR 15, 2016 
                    HELP-PROMPT:      Choose the format for the data element. 
                    DESCRIPTION:      This is the data element data format according to the American Society for Automation in
                                      Pharmacy (ASAP) data format definition.  


58.400111,.04       MAXIMUM LENGTH         0;4 NUMBER (Required)

                    INPUT TRANSFORM:  K:+X'=X!(X>999)!(X<1)!(X?.E1"."1.N) X
                    LAST EDITED:      MAR 10, 2016 
                    HELP-PROMPT:      Type a number between 1 and 999, 0 decimal digits. 
                    DESCRIPTION:      This is the data element maximum length according to the American Society for Automation in
                                      Pharmacy (ASAP) data format definition.  


58.400111,.05       POSITION               0;5 NUMBER (Required)

                    INPUT TRANSFORM:  K:+X'=X!(X>99)!(X<1)!(X?.E1"."1.N) X
                    LAST EDITED:      MAR 15, 2016 
                    HELP-PROMPT:      Type a number between 1 and 99, 0 decimal digits. 
                    DESCRIPTION:      This is the data element position within the segment according to the American Society for
                                      Automation in Pharmacy (ASAP) data format definition.  


58.400111,.06       REQUIREMENT            0;6 SET (Required)

                                      'R' FOR REQUIRED; 
                                      'O' FOR OPTIONAL; 
                                      'N' FOR NOT USED; 
                    LAST EDITED:      MAR 15, 2016 
                    HELP-PROMPT:      Indicate if the data element is required, optional or not used by the ASAP version. 
                    DESCRIPTION:
                                      This indicates if the data element is required, optional or not used.  


58.400111,.07       DESCRIPTION            DES;0   WORD-PROCESSING #58.4001111   (IGNORE "|")

                    DESCRIPTION:      This is the data element description from the American Society for Automation in Pharmacy
                                      (ASAP) data format definition.  


                      LAST EDITED:      MAR 15, 2016 
                      HELP-PROMPT:      Enter the description for this data element. 
                      DESCRIPTION:      This is the data element description from the American Society for Automation in Pharmacy
                                        (ASAP) data format definition. 




58.400111,.08       ELEMENT VALUE (M EXPRESSION) VAL;0   WORD-PROCESSING #58.410111   (NOWRAP)   (IGNORE "|")

                      DESCRIPTION:      This is the argument of a Mumps SET command which is used for retrieving the value of the
                                        data element.  


                        LAST EDITED:      MAR 15, 2016 
                        HELP-PROMPT:      This is the argument of a Mumps SET command which is used for retrieving the value of the 
                                          data element.  
                        DESCRIPTION:      This is the argument of a Mumps SET command which is used for retrieving the value of the
                                          data element.  











INPUT TEMPLATE(S):

PRINT TEMPLATE(S):

SORT TEMPLATE(S):

FORM(S)/BLOCK(S):