PSOASAP0 ;BIRM/MFR - American Society for Automation in Pharmacy (ASAP) Segments & Fields ;09/07/12
Source file <PSOASAP0.m>
action | A | extended action | Ea | event driver | Ed | subscriber | Su | protocol | O | limited protocol | LP | run routine | RR | broker | B | edit | E | server | Se | P | screenman | SM | inquire | I |
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
|
Name | Field # of Occurrence |
---|---|
$$GET1^DIQ | PHA01+2, PHA03+3, PHA03+7, PHA10+1, PAT15+2, PAT17+5, PAT17+7, PAT17+9, PAT17+11, PAT17+13 , PAT17+15, PAT22+5, RX08+2, RX08+5, RX14+3, DSP02+3, DSP03+2, DSP03+4, DSP03+7, DSP04+3 , DSP05+5, DSP08+5, DSP11+4, DSP12+5, DSP12+8, PRE02+2, PRE05+8, PRE06+3, PRE07+3, PRE08+3 , PRE08+7, PRE09+3, PRE09+5, PRE10+2, RPH06+1, RPH07+1, RPH08+1 |
GETS^DIQ | PRE08+12 |
^DIWP | ADDRESS+2 |
$$NATURE^ORUTL3 | DSP12+10 |
$$DSP03^PSOASAP | ASAP95+23 |
$$DSP04^PSOASAP | ASAP95+24 |
$$DSP05^PSOASAP | ASAP95+14 |
$$DSP08^PSOASAP | ASAP95+20 |
$$DSP09^PSOASAP | ASAP95+17 |
$$DSP10^PSOASAP | ASAP95+18 |
$$DSP12^PSOASAP | ASAP95+25 |
$$PAT03^PSOASAP | ASAP95+10 |
$$PAT07^PSOASAP | ASAP95+29 |
$$PAT08^PSOASAP | ASAP95+30 |
$$PAT12^PSOASAP | ASAP95+31 |
$$PAT15^PSOASAP | ASAP95+32 |
$$PAT16^PSOASAP | ASAP95+11, ASAP95+33 |
$$PAT18^PSOASAP | ASAP95+12 |
$$PAT19^PSOASAP | ASAP95+13 |
$$PHA03^PSOASAP | ASAP95+9 |
$$PRE02^PSOASAP | ASAP95+21 |
$$PRE03^PSOASAP | ASAP95+28 |
$$RXDAYSUP^PSOBPSUT | DSP10+3, DSP15+2 |
$$RXQTY^PSOBPSUT | DSP09+6, DSP14+2 |
$$RXRLDT^PSOBPSUT | RX08+4, DSP03+6, DSP05+6, DSP09+4 |
$$GETNDC^PSONDCUT | RX14+4, DSP08+6, DSP12+6 |
$$VERDATA^PSOSPMU0 | TH09+3, TH13+3 |
$$PRVDETOX^PSOUTIL | PRE09+7 |
$$RXDEA^PSOUTIL | PRVDEA+1 |
$$DETOX^PSSOPKI | PRE09+6 |
$$SITE^VASITE | ASAP95+6, TH02+3, TH03+2 |
$$FMTHL7^XLFDT | TH05+3, TH08+5, PAT18+3, PAT19+2, RX08+6, DSP03+8, DSP05+5, DSP05+7, DSP09+5 |
$$HTFM^XLFDT | TH05+3, TH06+3, TH08+5, TH09+2 |
$$TRIM^XLFSTR | PAT12+5, PAT13+4, ADDRESS+2, ADDRESS+3 |
$$WHAT^XUAF4 | PHA03+4, PHA03+8 |
$$PROD^XUPROD | TH07+3, TH10+2 |
$$DEA^XUSER | PRE02+4, PRE02+5, PRE03+8, PRE03+9, PRE04+6, PRE04+7, PRE05+5, PRE05+6 |
$$DIV4^XUSER | PRE08+10 |
$$NPI^XUSNPI | PHA01+3, DSP14+4, PRE01+4, PRE03+4, RPH03+2 |
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 |
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^UTILITY($J | ADDRESS+2!, ADDRESS+3, ADDRESS+4! |
Name | Line Occurrences |
---|---|
$$ADDRESS | PAT12+8, PAT13+6 |
$$DSP05 | DSP17+4 |
$$NUMERIC | RX14+2, RX14+3, RX14+4, DSP08+4, DSP08+5, DSP08+6, DSP12+4, DSP12+5, DSP12+6, PHONE+2 |
$$PAT22 | PAT15+2, PAT16+2 |
$$PHA03 | PRE02+5, PRE03+9, PRE04+7, PRE05+6 |
$$PHA10 | PAT17+17, PRE08+21 |
$$PHONE | PHA10+1, PAT17+3, PAT17+5, PAT17+7, PAT17+9, PAT17+11, PAT17+13, PAT17+15, PRE08+7, PRE08+14 , PRE08+15 |
$$PRE02 | PRE03+9 |
$$PRE04 | PRE05+6 |
$$PRVDEA | PRE02+3, PRE03+7, PRE04+5, PRE05+4 |
$$TH02 | TT01+4 |
$$TH03 | TT01+3 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
ADDRESS | PAT12+2~, PAT12+3, PAT12+4*, PAT12+5*, PAT12+6*, PAT12+7, PAT12+8, PAT13+3~, PAT13+4*, PAT13+5 , PAT13+6, ADDRESS+1~, ADDRESS+3*, ADDRESS+5 |
ASAP95 | ASAP95+3~, ASAP95+5*, ASAP95+6*, ASAP95+7*, ASAP95+8*, ASAP95+9*, ASAP95+10*, ASAP95+11*, ASAP95+12*, ASAP95+13* , ASAP95+14*, ASAP95+15*, ASAP95+16*, ASAP95+17*, ASAP95+18*, ASAP95+19*, ASAP95+20*, ASAP95+21*, ASAP95+22*, ASAP95+23* , ASAP95+24*, ASAP95+25*, ASAP95+26*, ASAP95+27*, ASAP95+28*, ASAP95+29*, ASAP95+30*, ASAP95+31*, ASAP95+32*, ASAP95+33* , ASAP95+34*, ASAP95+35 |
>> BATCHIEN | TH02+3, TH03+2, DSP05+5 |
CNTRYIEN | PAT22+3~, PAT22+4*, PAT22+5 |
CONTACT | PRE08+9~, PRE08+13*, PRE08+14, PRE08+15 |
CONTACTS | PRE08+9~, PRE08+12! |
CONTACTS( | PRE08+13, PRE08+14, PRE08+15 |
DIV | PRE08+9~, PRE08+11*, PRE08+12, PRE08+17, PRE08+18 |
DIVS | PRE08+9~, PRE08+10 |
DIVS( | PRE08+11, PRE08+17, PRE08+18 |
DIWL | ADDRESS+1~, ADDRESS+2* |
DIWR | ADDRESS+1~, ADDRESS+2* |
>> DRUGIEN | RX14+3, DSP08+5, DSP11+4, DSP12+5, PRE09+5*, PRE09+6 |
DSP03 | DSP03+3~, DSP03+4*, DSP03+6, DSP03+7*, DSP03+8 |
DSP05 | DSP05+4~, DSP05+5*, DSP05+6*, DSP05+7 |
DSP08 | DSP08+3~*, DSP08+4*, DSP08+5*, DSP08+6*, DSP08+7 |
DSP09 | DSP09+2~, DSP09+3, DSP09+4*, DSP09+5* |
DSP12 | DSP12+2~*, DSP12+3, DSP12+4*, DSP12+5*, DSP12+6* |
DT | PHA01+3, RX08+4, DSP03+6, DSP05+6, DSP09+4, DSP14+4, RPH03+2 |
DTXCHK | PRE09+2~*, PRE09+6*, PRE09+7 |
FILL | ASAP95~, ASAP95+16 |
>> FILLNUM | RX08+4, RX14+4, DSP03+6, DSP04+2, DSP05+6, DSP06+3, DSP08+6, DSP09+4, DSP09+6, DSP10+3 , DSP12+6, DSP13+3, DSP13+4, DSP14+2, DSP15+2 |
FIPSCODE | PAT22+3~, PAT22+5*, PAT22+6 |
I | ADDRESS+1~, NUMERIC+1~, NUMERIC+3* |
INSPHONE | PRE08+9~, PRE08+13, PRE08+15*, PRE08+17, PRE08+18 |
INST | PHA03+1~, PHA03+3*, PHA03+4, PHA03+7*, PHA03+8 |
LINE | ADDRESS~, ADDRESS+3 |
NOO | DSP12+7~*, DSP12+10*, DSP12+11 |
NPI | DSP14+3~, DSP14+4*, DSP14+5 |
NPINST | PHA01+1~, PHA01+2*, PHA01+3 |
NPINUM | PHA01+1~, PHA01+3*, PHA01+4 |
NUMBER | PHONE~, PHONE+2 |
NUMERIC | NUMERIC+1~, NUMERIC+2*, NUMERIC+3*, NUMERIC+4 |
ORDNUM | DSP12+7~, DSP12+8*, DSP12+9, DSP12+10 |
PAT17 | PAT17+1~, PAT17+3*, PAT17+5*, PAT17+7*, PAT17+9*, PAT17+11*, PAT17+13*, PAT17+15* |
>> PATIEN | PAT17+5, PAT17+7, PAT17+9, PAT17+11, PAT17+13, PAT17+15 |
PHA03 | PHA03+1~, PHA03+3*, PHA03+4*, PHA03+6, PHA03+8*, PHA03+9 |
PHONE | PHONE+1~, PHONE+2*, PHONE+3*, PHONE+4 |
PRDEA | PRE09+2~*, PRE09+7*, PRE09+8 |
PRE01 | PRE01+3~, PRE01+4*, PRE01+5 |
PRE02 | PRE02+1~, PRE02+3*, PRE02+4*, PRE02+5*, PRE02+6 |
PRE03 | PRE03+2~, PRE03+3, PRE03+4*, PRE03+5*, PRE03+7*, PRE03+8*, PRE03+9*, PRE03+10 |
PRE04 | PRE04+4~, PRE04+5*, PRE04+6*, PRE04+7*, PRE04+8 |
PRE05 | PRE05+2~, PRE05+3, PRE05+4*, PRE05+5*, PRE05+6* |
PRE08 | PRE08+5~, PRE08+7*, PRE08+11, PRE08+17*, PRE08+18*, PRE08+19 |
>> PREIEN | PRE01+4, PRE02+4, PRE02+5, PRE03+4, PRE03+8, PRE03+9, PRE04+6, PRE04+7, PRE05+5, PRE05+6 , PRE05+8, PRE06+3, PRE07+3, PRE08+3, PRE08+7, PRE08+10, PRE09+3, PRE09+7, PRE10+2 |
>> PSOASVER | TH02+2, TH03+2, TH05+2, TH06+2, TH07+2, TH08+3, TH08+4, TH09+2, TH09+3, TH10+2 , TH12+2, TH13+2, TH13+3, PAT03+2, PAT04+2, PAT12+3, PAT13+2, PAT18+2, PAT19+2, PAT20+2 , PAT22+2, DSP01+3, DSP01+4, DSP02+2, DSP03+2, DSP04+2, DSP05+3, DSP06+2, DSP07+2, DSP08+2 , DSP09+3, DSP10+2, DSP11+2, DSP12+3, DSP13+2, DSP13+3, DSP14+2, DSP15+2, DSP16+2, DSP17+3 , PRE01+2, PRE03+3, PRE04+2, PRE05+3, PRE06+2, PRE07+2, PRE08+3, PRE08+4, PRE09+3, PRE09+4 , PRE10+1, TT01+3 |
>> RECTYPE | RX14+2, DSP01+3, DSP01+4, DSP01+5, DSP05+6, DSP08+4, DSP09+4, DSP09+6, DSP10+3, DSP12+4 , DSP14+2, DSP15+2 |
RPH03 | RPH03+1~, RPH03+2*, RPH03+3 |
>> RPHIEN | DSP14+4, RPH03+2, RPH06+1, RPH07+1, RPH08+1 |
>> RTSDATA("DAYSUP" | DSP10+3, DSP15+2 |
>> RTSDATA("NDC" | RX14+2, DSP08+4, DSP12+4 |
>> RTSDATA("QTY" | DSP09+6, DSP14+2 |
>> RTSDATA("RELDTTM" | DSP05+6, DSP09+4 |
RX08 | RX08+1~, RX08+2*, RX08+4, RX08+5*, RX08+6 |
RX14 | RX14+1~*, RX14+2*, RX14+3*, RX14+4*, RX14+5 |
RXIEN | ASAP95~, ASAP95+4, RX08+2, RX08+4, RX08+5, RX14+4, DSP02+3, DSP03+2, DSP03+4, DSP03+6 , DSP03+7, DSP04+3, DSP05+6, DSP08+6, DSP09+4, DSP09+6, DSP10+3, DSP12+6, DSP12+8, DSP14+2 , DSP15+2, PRE02+2, PRE09+5, PRVDEA+1 |
RXISSDT | PRE02+1~, PRE02+2*, PRE02+4, PRE02+5 |
RXNUM | ASAP95+3~, ASAP95+4*, ASAP95+15 |
>> SITEIEN | PHA01+2, PHA03+3, PHA03+7, PHA10+1 |
UNIT | DSP11+3~, DSP11+4*, DSP11+5 |
>> VADM(2 | PAT03+3, PAT04+2 |
>> VADM(3 | PAT18+3, PAT19+2 |
>> VADM(5 | PAT19+3, PAT20+2 |
VALUE | ADDRESS~, ADDRESS+2, NUMERIC~, NUMERIC+3 |
>> VAPA(1 | PAT12+4, PAT12+5, PAT13+4 |
>> VAPA(11 | PAT12+4, PAT12+6, PAT16+2 |
>> VAPA(2 | PAT12+5, PAT13+2, PAT13+4 |
>> VAPA(23 | PAT15+4 |
>> VAPA(24 | PAT16+4 |
>> VAPA(25 | PAT22+4 |
>> VAPA(3 | PAT12+5, PAT13+4 |
>> VAPA(5 | PAT15+2 |
>> VAPA(8 | PAT17+3 |
X | ADDRESS+1~, ADDRESS+2* |