PSAUP ;BIR/JMB-Upload and Process Prime Vendor Invoice Data ;7/23/97
Source file <PSAUP.m>
Package | Total | Caller Graph |
---|---|---|
Drug Accountability | 2 | PSA UPLOAD PRIME VENDOR DATA PSAPROC |
Name | Comments | DBIA/ICR reference |
---|---|---|
PRINT2 | ||
LOADXTMP | ;Loads data into ^XTMP("PSAPV").
|
|
UNWRAP | ;Changes the data element and segment delimiters to ^ & ~, places each
|
|
SPACES | ;remove all leading spaces in all data elements
|
|
KILL | ;Kills uploading variables
|
|
;Ask if user wants to print invoices.
|
||
LINE | ;Places each segment on a node to itself.
|
|
PROC | ;Ask if user wants to process the invoice data now.
|
|
CHECK | ;Looks for X12 errors. If no errors, loads data into ^TMP("PSAPV SET",$J)
|
|
STORE | ;Get the line item data and store in ^XTMP("PSAPV")
|
|
PHARM | ;Assign a pharmacy location or master vault to each Order.
|
Name | Field # of Occurrence |
---|---|
^DIR | PSAUP+10, PRINT+3, PROC+2, PRINT2+3 |
^PSAPROC | PHARM+3 |
END^PSAPROC | UNWRAP+22, LOADXTMP+6 |
EXIT^PSAPROC | PHARM+3, PRINT2+4 |
XTMP^PSAUP1 | LOADXTMP+2 |
^PSAUP2 | CHECK+2 |
^PSAUP4 | PRINT+3, PRINT2+3 |
^PSAUP5 | STORE+4 |
RFILE^XTKERM4 | PSAUP+13 |
RECEIVE^XTKERMIT | PSAUP+17 |
HASH^XUSHSHP | PSAUP+16 |
Name | Line Occurrences |
---|---|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: READ |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Routine Call |
|
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^%ZOSF("EOFF" | PSAUP+16 |
^%ZOSF("EON" | PSAUP+16 |
^DIZ(8980 - [#8980] | PSAUP+12, PSAUP+13 |
^TMP("PSAPV SET" | CHECK+4!, LOADXTMP+3!, KILL+1! |
^TMP("PSAPV" | PSAUP+18!, LINE+1!, LINE+7*, SPACES+2, SPACES+3, SPACES+4, SPACES+11!, KILL+1! |
^TMP("PSAPVS" | SPACES+4*, SPACES+10*, CHECK+3!, KILL+1! |
^TMP("PSAX12" | PSAUP+14!, PSAUP+22, UNWRAP+7, UNWRAP+8, UNWRAP+9, UNWRAP+12, UNWRAP+13, UNWRAP+15, UNWRAP+16*, UNWRAP+26 , UNWRAP+27, UNWRAP+30*, UNWRAP+31, LINE+3, LINE+4, SPACES+1!, KILL+1! |
^XTMP("PSAPV" | STORE+1 |
^XUSEC("PSA ORDERS" | PSAUP+6 |
Name | Line Occurrences |
---|---|
KILL | PSAUP+11, PSAUP+22, UNWRAP+19, CHECK+4, LOADXTMP+3, STORE+2, PRINT+3, PROC+2, PROC+3 |
LINE | UNWRAP+17, UNWRAP+23 |
Name | Field # of Occurrence |
---|---|
^(0 | UNWRAP+8, UNWRAP+9 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
% | KILL+2! |
>> DAVE | UNWRAP+8* |
DIR | PSAUP+10!, PRINT+3!, PROC+2!, PRINT2+3!, KILL+2! |
DIR("?" | PRINT+2*, PROC+1*, PRINT2+1* |
DIR("??" | PSAUP+10*, PRINT+2*, PROC+1*, PRINT2+2* |
DIR("A" | PSAUP+10*, PRINT+2*, PROC+1*, PRINT2* |
DIR("B" | PSAUP+10*, PRINT+2*, PROC+1*, PRINT2* |
DIR(0 | PSAUP+10*, PRINT+2*, PROC+1*, PRINT2* |
DIRUT | PRINT+3, PROC+2, KILL+2! |
DTIME | PSAUP+16 |
DUZ | PSAUP+6, PSAUP+12, PSAUP+13 |
DWLC | PSAUP+12*, PSAUP+17*, PSAUP+20, PSAUP+21, KILL+2! |
IOF | PSAUP+7, PSAUP+21, STORE+1 |
PSABBC | UNWRAP+6*, UNWRAP+7, UNWRAP+9*, UNWRAP+12, UNWRAP+17, KILL+2! |
PSACNT | UNWRAP+12*, UNWRAP+26*, LINE+2*, LINE+7*, SPACES+2*, SPACES+5*, SPACES+6*, SPACES+7, KILL+2! |
PSACOMB | KILL+2! |
PSACS | KILL+2! |
PSACTN1 | KILL+2! |
PSACTRL | KILL+2! |
PSACTRL2 | KILL+2! |
PSADATA | UNWRAP+13*, UNWRAP+14*, UNWRAP+16, UNWRAP+27*, UNWRAP+28*, UNWRAP+29*, UNWRAP+30, LINE+4*, LINE+5, LINE+6 , LINE+9*, KILL+2! |
PSADE | SPACES+7*, SPACES+8*, SPACES+9, KILL+2! |
PSADT | KILL+2! |
PSADUP | KILL+2! |
PSAENTRY | PRINT2+3*, KILL+2! |
PSAERR | KILL+2! |
PSAEX | SPACES+6*, KILL+2! |
PSAEXPEC | KILL+2! |
PSAFND1 | KILL+2! |
PSAGS | KILL+2! |
PSAHOLD | LINE+2*, LINE+4, LINE+5*, LINE+9*, LINE+10*, KILL+2! |
PSAIEN | KILL+2! |
PSAIN | KILL+2! |
PSAINV | KILL+2! |
PSAINVDT | KILL+2! |
PSAINVN | KILL+2! |
PSAISA | UNWRAP+6*, UNWRAP+7, UNWRAP+8*, KILL+2! |
PSAISIT | KILL+2! |
PSAISITN | KILL+2! |
PSAITCNT | KILL+2! |
PSAITEM | KILL+2! |
PSALAST | KILL+3! |
PSALINE | UNWRAP+6*, UNWRAP+7*, UNWRAP+8, UNWRAP+9, UNWRAP+12*, UNWRAP+13, UNWRAP+15, UNWRAP+16, UNWRAP+26*, UNWRAP+27 , UNWRAP+30, UNWRAP+31, LINE+2*, LINE+3*, LINE+4, SPACES+2*, SPACES+3, SPACES+4, SPACES+10, KILL+3! |
PSALLCS | KILL+3! |
PSALLOK | KILL+3! |
PSALND | UNWRAP+6*, UNWRAP+8*, UNWRAP+19, UNWRAP+23, UNWRAP+28, KILL+3! |
PSALOC | KILL+3! |
PSANDC | KILL+3! |
PSANEW | KILL+3! |
PSANEXT | STORE+1*, STORE+2, KILL+3! |
PSANTYPE | KILL+3! |
PSAOK | KILL+3! |
PSAORD | KILL+3! |
PSAORDDT | KILL+3! |
PSAORDN | KILL+3! |
PSAOSIT | KILL+3! |
PSAOSITN | KILL+3! |
PSAOUT | PSAUP+11*, PSAUP+14*, PSAUP+16*, PSAUP+17, PSAUP+18, PSAUP+19*, PSAUP+20*, UNWRAP+26, CHECK+4, LOADXTMP+3 , PHARM+2*, PHARM+3, KILL+3! |
PSAPC | SPACES+7*, SPACES+9, KILL+3! |
PSAS | KILL+4! |
PSASEG | LINE+6*, LINE+7, LINE+8, SPACES+3*, SPACES+4, SPACES+5, SPACES+6, SPACES+7, SPACES+9*, SPACES+10 , KILL+4! |
PSASEGD | UNWRAP+6*, UNWRAP+8*, UNWRAP+9, UNWRAP+14, UNWRAP+19, UNWRAP+23, UNWRAP+29, KILL+4! |
PSASEGL | SPACES+5*, SPACES+6, KILL+4! |
PSASS | KILL+4! |
PSAST | KILL+4! |
PSASTA | PRINT+1*, KILL+4! |
PSASTAR | UNWRAP+20*, UNWRAP+21, UNWRAP+22, KILL+4! |
PSASTCNT | KILL+4! |
PSASTLN | PSAUP+9*! |
>> PSASTOP | LINE+6*, LINE+9* |
PSASUB | KILL+4! |
PSASYN | KILL+4! |
PSAUOM | KILL+4! |
PSAUOM1 | KILL+4! |
PSAUOMH | KILL+4! |
PSAUOMH1 | KILL+4! |
PSAVSN | KILL+4! |
PSAX | SPACES+6*, KILL+4! |
X | PSAUP+16*, KILL+4! |
X1 | KILL+4! |
X2 | KILL+4! |
XTKDIC | PSAUP+12*, PSAUP+17*, KILL+4! |
XTKERR | PSAUP+18*, PSAUP+19, KILL+4! |
XTKMODE | PSAUP+12*, PSAUP+17*, KILL+4! |
Y | PSAUP+11, PRINT+3, PROC+2, PRINT2+3, KILL+4! |