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: PSOASAP2

Package: Outpatient Pharmacy

Routine: PSOASAP2


Information

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

Source Information

Source file <PSOASAP2.m>

Entry Points

Name Comments DBIA/ICR reference
IS01() ; Unique Information Source ID
TH06() ;ASAP 3.0 : Response ID (Not Used)
; ASAP 4.0+: Creation Time. Format: HHMMSS or HHMM
; ASAP 5.0+: Creation Time. Data element increased in length from 6 to 7 to accomodate ZULU time Format: HHMMSSZ
PAT16() ;Patient ZIP Code
; US Zip Code
; if US then get VAPA(11), if ASAP version is 5 then get 2nd piece of VAPA(11) which is the US zip code with hyphens
; otherwise if ASAP version is a prior version then send zip code w/o hyphens (piece one)
PAT24() ;
; ASAP 5.0: Patient Preferred or Alias Last Name (new in 5.0)
PAT25() ;
; ASAP 5.0: Patient Preferred or Alias First Name (new in 5.0)
PAT26() ;
; ASAP 5.0: Patient Race Category (new in 5.0)
PAT27() ;
; ASAP 5.0: Patient Ethnicity (new in 5.0)
DSP08() ;ASAP 3.0 : Unique System ID - Drug (Not Used)
; ASAP 4.0+:Product ID (NDC - National Drug Code)
DSP27() ; ASAP 5.0: Time Filled (new with 5.0)
DSP29() ; ASAP 5.0: Total Quantity Remaining on Prescription (new with 5.0)
DSP30() ;ASAP 5.0: Total Quantity Remaining Drug Dosage Units Code (new in 5.0)
DSP34() ;ASAP 5.0: DEA Schedule/State Designation (new in 5.0)
PRE11() ;ASAP 5.0: Prescriber Address Information 1 (added in 5.0)
PRE12() ;ASAP 5.0: Prescriber Address Information 2 (added in 5.0)
PRE13() ;ASAP 5.0: Prescriber City Address (added in 5.0)
PRE14() ;ASAP 5.0: Prescriber State Address (added in 5.0)
PRE15() ;ASAP 5.0: Zip Code Address (added in 5.0)
RACE ; mapping of race and codes for PAT26
; race in VistA^code in ASAP specification
ETHNICITY ; mapping of ethnicity and codes for PAT27
; ethnicity in VistA^code in ASAP specification
ORDERARCHIVE(X) ; returns data from the ORDER DEA ARCHIVE INFO file (#101.52)
; Input - X = PLACER ORDER NUMBER (#52,39.3)
; Output - ^TMP($J,"ORDEA",ORIFN)
; - DEA # (101.52,10)
UTCTIM(FMDTM,TIMLEN) ; UTC Time
; Input=FM Date/Time
; Output=UTC time only, with appended "Z"

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
2.01 LIST^DIC
^DIC(4 - [#4] GET1^DIQ
^DIC(5 - [#5] FIND1^DIC,  GET1^DIQ
^PSDRUG - [#50] GET1^DIQ
^PSRX - [#52] GET1^DIQ
^PS(59 - [#59] GET1^DIQ
^XTV(8991.9 - [#8991.9] FIND1^DIC,  GET1^DIQ
Info |  Source |  Entry Points |  FileMan Files Accessed Via FileMan Db Call