Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Entry Points |  FileMan Files Accessed Via FileMan Db Call
Print Page as PDF
Routine: PSOASAP0

Package: Outpatient Pharmacy

Routine: PSOASAP0


Information

PSOASAP0 ;BIRM/MFR - American Society for Automation in Pharmacy (ASAP) Segments & Fields ;09/07/12

Source Information

Source file <PSOASAP0.m>

Entry Points

Name Comments DBIA/ICR reference
ASAP95(RXIEN,FILL) ;Returns the entire ASAP 1995 record for the Rx/Fill
TH02() ;ASAP 3.0 : Business Partner Implemetation Version (Not Used)
; ASAP 4.0+: Transaction Control Number
TH03() ;ASAP 3.0 : Transaction Control Number
; ASAP 4.0+: Transaction Type (Always "01" - Send/Request Transaction)
TH05() ;ASAP 3.0 : Message Type (Not Used)
; ASAP 4.0+: Creation Date (Format: YYYYMMDD)
TH06() ;ASAP 3.0 : Response ID (Not Used)
; ASAP 4.0+: Creation Time. Format: HHMMSS or HHMM
TH07() ;ASAP 3.0 : Project ID (Not Used)
; ASAP 4.0+: File Type. Returns: "T" - Test or "P" - Production
TH08() ;ASAP 3.0: Creation Date (Format: YYYYMMDD)
; ASAP 4.0: Composite Element Separator (:)
; ASAP 4.1+: Routing Number (Real-time transactions only) - Not Used
TH09() ;ASAP 3.0 : Creation Time. Format: HHMMSS or HHMM
; ASAP 4.1+: Segment Terminator Character
TH10() ;ASAP 3.0 : File Type
; ASAP 4.0+: N/A
TH12() ;ASAP 3.0 : Composite Element Separator
; ASAP 4.0+: N/A
TH13() ;ASAP 3.0 : Data Segment Terminator Character
; ASAP 4.0+: N/A
PHA01() ;National Provider Identifier
PHA03() ;Pharmacy DEA Number
PHA10() ;Phone Number
PAT03() ;ASAP 3.0 : Unique System ID - Patient (Not Used)
; ASAP 4.0+: ID of Patient (SSN)
PAT04() ;ASAP 3.0 : SSN
; ASAP 4.0+: ID Qualifier of Additional Patient Identifier (Not Used)
PAT12() ;Patient Address Information - Line 1
; ASAP 4.2: Length = 35 characters (All others: 30 characters)
PAT13() ;Patient Address Information - Line 2
; ASAP 4.2: Length = 35 characters (All others: 30 characters)
PAT15() ;Patient State Address
; US State Abbreviation
PAT16() ;Patient ZIP Code
; US Zip Code
PAT17() ;Patient Phone Number
PAT18() ;ASAP 3.0 : Email Address (Not Used)
; ASAP 4.0+: Patient DOB
PAT19() ;ASAP 3.0 : Patient DOB
; ASAP 4.0+: Patient Gender Code
PAT20() ;ASAP 3.0 : Patient Gender Code
; ASAP 4.0+: Species Code (Always return "01" for 'Human')
PAT22() ;ASAP 3.0 : Primary Prescription Coverage Type (Not Used)
; ASAP 4.0+:Country of Non-U.S. Resident
RX08() ;Date Rx Written (Format: YYYYMMDD)
RX14() ;Product ID (NDC - National Drug Code)
DSP01() ;ASAP 3.0 : Reporting Status ("01" - Add / "02" - Change / "03" - Delete)
; ASAP 4.0 : Reporting Status ("" - New / "01" - Revise / "02" - Void)
; ASAP 4.1+: Reporting Status ("00" - New / "01" - Revise / "02" - Void)
DSP02() ;ASAP 3.0 : Program Participation Status (Not Used)
; ASAP 4.0+: Prescription Number
DSP03() ;ASAP 3.0 : Prescription Number
; ASAP 4.0+: Date Rx Written (Format: YYYYMMDD)
DSP04() ;ASAP 3.0 : Refill Number
; ASAP 4.0+: Refills Authorized
DSP05() ;ASAP 3.0 : Unique System ID - RPh (Not Used)
; ASAP 4.0+: Date Filled (Release Date) (Format: YYYYMMDD)
; ZERO RPT 4.0+: Date Report was created
DSP06() ;ASAP 3.0 : Unique System ID - Patient (Not Used)
; ASAP 4.0+: Refill Number (Partials are always "0")
DSP07() ;ASAP 3.0 : Unique System ID - Prescriber (Not Used)
; ASAP 4.0+: Product ID Qualifier (Always return "01" for 'NDC')
DSP08() ;ASAP 3.0 : Unique System ID - Drug (Not Used)
; ASAP 4.0+:Product ID (NDC - National Drug Code)
DSP09() ;ASAP 3.0 : Date Filled
; ASAP 4.0+: Quantity Dispensed
DSP10() ;ASAP 3.0 : Time Filled (Not Used)
; ASAP 4.0+: Days Supply
DSP11() ;ASAP 3.0 : Product ID Qualifier (01:NDC)
; ASAP 4.0+: Drug Dosage Units Code
DSP12() ;ASAP 3.0 : Product ID (NDC)
; ASAP 4.0+: Transmission Form of Rx Origin Code (Nature of Order)
DSP13() ;ASAP 3.0 : Product Description (Not Used)
; ASAP 4.0+: Partial Fill Indicator
DSP14() ;ASAP 3.0 : Quantity Dispensed
; ASAP 4.0+: Pharmacist National Provider Identifier (NPI)
DSP15() ;ASAP 3.0 : Days Supply
; ASAP 4.0+: Pharmacist State License Number (Not Used)
DSP16() ;ASAP 3.0 : Basis of Days Supply Determiniation (Always "3" for 'As directed by doctor')
; ASAP 4.0+: Classification Code for Payment Type (Always return "05" for 'Military Installations and VA')
DSP17() ;ASAP 3.0 : Refills Remaining (Not Used)
; ASAP 4.0 : N/A
; ASAP 4.1+: Date Sold
PRE01() ;ASAP 3.0 : Not Used
; ASAP 4.0+: Prescriber National Provider Identifier (NPI)
PRE02() ;Prescriber DEA Number
PRE03() ;ASAP 3.0 : Prescriber NPI
; ASAP 4.0+: Prescriber DEA Number Suffix
PRE04() ;ASAP 3.0 : Prescriber DEA Number
; ASAP 4.0+: Prescriber State License Number (Not Used)
PRE05() ;ASAP 3.0 : Prescriber DEA Number Suffix
; ASAP 4.0+: Prescriber Last Name
PRE06() ;ASAP 3.0 : Prescriber State Lince Number (Not Used)
; ASAP 4.0+: Prescriber First Name
PRE07() ;ASAP 3.0 : Prescriber Alternate ID (Not Used)
; ASAP 4.0+: Prescriber Middle Name
PRE08() ;ASAP 3.0 : Prescriber's Last Name
; ASAP 4.0 & 4.1: N/A (up to PRE07 only)
; ASAP 4.2: Prescriber's Phone Number
PRE09() ;ASAP 3.0: Prescriber' First Name
; ASAP 4.2: Prescriber's DETOX Number if DETOX drug
PRE10() ;ASAP 3.0: Prescriber' Middle Name
RPH03() ;National Provider Identification (NPI)
RPH06() ;Pharmacist Last Name
RPH07() ;Pharmacist First Name
RPH08() ;Pharmacist Middle Name
TT01() ;Transaction Control Number
; ASAP 3.0 : Same as TH03
; ASAP 4.0+: Same as TH02
PHONE(NUMBER) ;Returns the Phone number (numeric only - max 10 digits)
ADDRESS(VALUE,LINE) ;Returns Address Line1 and Line2 (max 30 characters)
PRVDEA() ;Returns the Provider DEA #
NUMERIC(VALUE) ;Returns the Numeric Value

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^DPT - [#2] GET1^DIQ
^VA(200 - [#200] GET1^DIQ
^DIC(4 - [#4] GETS^DIQ
^DIC(5 - [#5] GET1^DIQ
^PSDRUG - [#50] GET1^DIQ
^PSRX - [#52] GET1^DIQ
^PS(58.42 - [#58.42] GET1^DIQ
^PS(59 - [#59] GET1^DIQ
^HL(779.004 - [#779.004] GET1^DIQ
Info |  Source |  Entry Points |  FileMan Files Accessed Via FileMan Db Call