APSPESG ;IHS/MSC/MGH - Process entries from APSP REFILL REQUEST file ;24-Jul-2013 08:40;PLS
Source file <APSPESG.m>
Package | Total | Call Graph |
---|---|---|
IHS Changes To Pharmacy | 5 | $$SPI^APSPES1 $$FMTPHN^APSPES2 $$PADDR^APSPESG1 PROCESS^APSPESG2 ($$GHLDAT,$$PATNAME,SHLVARS)^APSPESLP |
Order Entry Results Reporting | 4 | $$XQAKILL^ORB3F1 RESP^ORCSAVE2 AUTH^ORWDPS32 DC^ORWDXA |
Kernel | 3 | ($$FMTE,$$NOW)^XLFDT DELETEA^XQALERT $$ACTIVE^XUSER |
VA Fileman | 2 | FILE^DIE $$GET1^DIQ |
CIA Utilities | 1 | CAPTURE^CIAUHFS |
Health Level Seven | 1 | $$FMDATE^HLFNC |
IHS Patient | 1 | $$DOB^AUPNPAT |
MSC RPC Broker | 1 | $$GETVAR^CIANBUTL |
VueCentric Framework | 1 | $$TMPGBL^CIAVMRPC |
Package | Total | Caller Graph |
---|---|---|
IHS Changes To Pharmacy | 4 | APSPES2 APSPES4 APSPESG1 APSPFNC1 |
Name | Comments | DBIA/ICR reference |
---|---|---|
ADDMISIG(NODE) | ;EP-
|
|
CHGPRV(DATA,IEN,PRVIEN) | ;EP
|
|
GETIDATA(DATA,IEN,FILTER) | ;EP-
|
|
QUECHECK(DFN) | ;EP-
|
|
GETVAL(DATA,FIL,IEN,FLD,FLG) | ;EP-
|
|
MATCHDT(IEN,TYPE,START,STOP) | ;EP-
|
|
GETSIG(IEN) | ;EP-
|
|
GHLDAT(IEN) | ; Get HL7 message data from APSP REFILL REQUEST FILE
|
|
ORD(IEN) | ;Order details D:30 QTY:30 RF:2 DAW:No Indication: 401.9
|
|
GETREC(DATA,IEN) | ;EP-
|
|
DETAIL(DATA,IEN) | ; EP-
|
|
QUEVWCNT(DATA,DFN) | ;EP-
|
|
NPSPI(DATA,FROM,DIR,MAX) | ;EP-
|
|
GETLIST(RET,FILTER,TCHK,START,STOP) | ; -- Return list of unprocessed refills
|
|
GETDRUG(IEN) | ;EP-
|
|
CANSHOW(IEN,FILTER) | ;EP -
|
|
SHLVARS | ; Set up HL segment data
|
|
GMATCHI(IEN) | ;EP-
|
|
DRGNAME(APSPRXO) | ;EP-
|
|
GETITM(IEN) | ;EP-
|
|
HL7INIT(IEN) | ;EP--
|
|
PATNAME(PIDSEG) | ;
|
|
GETPGEN(IEN) | ;EP-
|
|
ADD(TXT,STRING) | ;EP-
|
|
STORE(DATA,IEN,FLD,VAL,NOSTS) | ;EP-
|
|
DUPS(IEN) | ;Return if there are duplicate entries
|
|
GETSEG(DATA,TYPE) | ;
|
|
AUTH(PRV) | ;EP-
|
|
STOREDOS(DATA,IEN,FLDARY) | ;EP-
|
|
GETPDOB(IEN) | ;EP-
|
|
GETPPHN(IEN) | ;EP-
|
|
TMPGBL() | ;EP
|
Name | Field # of Occurrence |
---|---|
$$SPI^APSPES1 | NPSPI+5 |
$$FMTPHN^APSPES2 | GETITM+24, GETITM+25, GETPPHN+3 |
$$PADDR^APSPESG1 | GETITM+26 |
PROCESS^APSPESG2 | CHGPRV+27 |
$$GHLDAT^APSPESLP | DETAIL+8, GETPDOB+3, HL7INIT+5 |
$$PATNAME^APSPESLP | DETAIL+11 |
SHLVARS^APSPESLP | DETAIL+9, GETPDOB+3, HL7INIT+5 |
$$DOB^AUPNPAT | PATNAME+5 |
$$GETVAR^CIANBUTL | QUECHECK+2 |
CAPTURE^CIAUHFS | DETAIL+29 |
$$TMPGBL^CIAVMRPC | DETAIL+28 |
FILE^DIE | STORE+8, STOREDOS+3, CHGPRV+25 |
$$GET1^DIQ | GETITM+6, GETITM+7, GETITM+12, GETITM+17, GETITM+20, GETITM+21, GETITM+22, GETITM+23, GETITM+24, GETITM+25 , GETITM+28, GETITM+29, GETITM+30, GETITM+31, GETITM+33, PATNAME+2, PATNAME+3, PATNAME+4, PATNAME+5, DRGNAME+2 , ORD+2, ORD+3, ORD+4, ORD+5, ORD+6, GHLDAT+2, GMATCHI+6, DETAIL+15, DETAIL+18, GETVAL+1 , GETREC+6, CHGPRV+3, CHGPRV+4, CHGPRV+5, CHGPRV+6 |
$$FMDATE^HLFNC | GETPDOB+4 |
$$XQAKILL^ORB3F1 | CHGPRV+15, CHGPRV+18 |
RESP^ORCSAVE2 | CHGPRV+9 |
AUTH^ORWDPS32 | AUTH+2 |
DC^ORWDXA | CHGPRV+11 |
$$FMTE^XLFDT | GETITM+13, GETITM+18, PATNAME+5, GETPDOB+4 |
$$NOW^XLFDT | CHGPRV+22 |
DELETEA^XQALERT | CHGPRV+16, CHGPRV+19 |
$$ACTIVE^XUSER | NPSPI+5 |
RPC Name | Call Tags |
---|---|
APSPESG GETLIST | GETLIST |
APSPESG STORE | STORE |
APSPESG NPSPI | NPSPI |
APSPESG GETREC | GETREC |
APSPESG QUEVWCNT | QUEVWCNT |
APSPESG GETIDATA | GETIDATA |
APSPESG CHGPRV | CHGPRV |
APSPESG GETVAL | GETVAL |
FileNo | Call Tags |
---|---|
^ORD(101.43 - [#101.43] | GET1^DIQ |
^DPT - [#2] | GET1^DIQ |
^APSPNCP(9009033.7 - [#9009033.7] | GET1^DIQ |
^APSPOPHM - [#9009033.9] | GET1^DIQ |
^APSPRREQ - [#9009033.91] | GET1^DIQ |
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^APSPNCP(9009033.7 - [#9009033.7] | DETAIL+15 |
^APSPRREQ - [#9009033.91] | GETLIST+4, DUPS+3, CANSHOW+2, MATCHDT+4, STORE+7, GETREC+3, GETREC+4, ADDMISIG+2, ADDMISIG+3, QUECHECK+4 |
^APSPRREQ("E" | QUECHECK+7 |
^ORD(100.03 - [#100.03] | CHGPRV+2 |
^ORD(100.9 - [#100.9] | CHGPRV+14, CHGPRV+16, CHGPRV+17, CHGPRV+19 |
^TMP("APSPESG" | TMPGBL+1! |
^VA(200 - [#200] | NPSPI+3, NPSPI+4 |
^XUSEC("PROVIDER" | NPSPI+5 |
Name | Line Occurrences |
---|---|
$$AUTH | NPSPI+5 |
$$CANSHOW | GETLIST+7, QUECHECK+5 |
$$DRGNAME | GETITM+11 |
$$DUPS | GMATCHI+3 |
$$GETDRUG | GETREC+6 |
$$GETITM | GETLIST+10, STORE+9, GETIDATA+2 |
$$GETPDOB | PATNAME+10 |
$$GETPGEN | PATNAME+10 |
$$GETPPHN | GETITM+10 |
$$GETSEG | SHLVARS+2 |
$$GETSIG | GETITM+34 |
$$GHLDAT | GETITM+7 |
$$GMATCHI | GETITM+34 |
$$MATCHDT | GETLIST+8 |
$$ORD | GETITM+32 |
$$PATNAME | GETITM+9 |
$$QUECHECK | QUEVWCNT+1 |
$$TMPGBL | GETLIST+2, GETREC+2 |
ADD | GMATCHI+5, GMATCHI+7, GMATCHI+8, GMATCHI+9, GMATCHI+10, GMATCHI+11, GMATCHI+13, GMATCHI+14 |
ADDMISIG | GETREC+8, GETREC+9 |
HL7INIT | GETDRUG+2, GETPDOB+2, GETPGEN+2, GETPPHN+2, GETSIG+2 |
SHLVARS | GETITM+8 |
Name | Field # of Occurrence |
---|---|
^($J | TMPGBL+1 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
ACT | MATCHDT+2~, MATCHDT+4*, MATCHDT+9 |
APSPMSH | GETITM+4~, DETAIL+1~, DETAIL+5 |
APSPORC | GETITM+4~, DETAIL+1~, DETAIL+12, DETAIL+16 |
APSPPID | GETITM+4~, GETITM+9, DETAIL+1~, DETAIL+11, GETPDOB+4, GETPGEN+3, GETPPHN+3 |
APSPRX0 | GETITM+4~ |
APSPRXE | GETITM+4~, DETAIL+1~ |
APSPRXO | GETITM+11, DRGNAME~, DRGNAME+3, DRGNAME+4, DETAIL+1~, DETAIL+12, DETAIL+13, DETAIL+14, DETAIL+15, DETAIL+16 , DETAIL+19, GETDRUG+3, GETSIG+3 |
APSPRXR | DETAIL+1~, DETAIL+14 |
CNT | GETLIST+1~, GETLIST+4*, GETLIST+9*, GETLIST+10, DUPS+1~, DUPS+2*, DUPS+4*, DUPS+5, GMATCHI+1~, GMATCHI+2* , ADD+1*, ADD+2, NPSPI+1~, NPSPI+2*, NPSPI+3, NPSPI+5*, GETREC+1~, GETREC+2*, GETREC+6, GETREC+7* , ADDMISIG+5*, ADDMISIG+6, QUECHECK+1~, QUECHECK+4*, QUECHECK+6*, QUECHECK+7 |
CONJ | DETAIL+2~, DETAIL+25*, DETAIL+26 |
DAT | GETSEG+1~, GETSEG+3*, GETSEG+4 |
DATA | GETSEG~, DETAIL~, DETAIL+28*, DETAIL+29, STORE~, STORE+9*, STORE+10*, GETVAL~, GETVAL+1*, STOREDOS~ , STOREDOS+2*, STOREDOS+4*, STOREDOS+5*, NPSPI~, GETREC~, GETREC+2*, GETREC+5, GETREC+6, ADDMISIG+6, QUEVWCNT~ , QUEVWCNT+1*, GETIDATA~, GETIDATA+2*, GETIDATA+3*, CHGPRV~, CHGPRV+1~, CHGPRV+27 |
DATA( | GETSEG+2, GETSEG+3, NPSPI+5* |
DATA(0 | GETREC+3* |
DAW | ORD+1~, ORD+5*, ORD+7 |
DFN | QUECHECK~, QUECHECK+2*, QUECHECK+7, QUEVWCNT~, QUEVWCNT+1 |
DIR | NPSPI~, NPSPI+2*, NPSPI+3, NPSPI+4 |
DLM | DETAIL+1~, DETAIL+10*, DETAIL+12, DETAIL+13, DETAIL+14, DETAIL+15, DETAIL+16, GETDRUG+1~, GETDRUG+3, GETPDOB+1~ , GETPDOB+4, GETPGEN+1~, GETPGEN+3, GETPPHN+1~, GETPPHN+3, GETSIG+1~, GETSIG+3, HL7INIT+1* |
DNYDT | GETITM+5~, GETITM+15*, GETITM+17*, GETITM+18, GETITM+34 |
DNYDTF | GETITM+5~, GETITM+15*, GETITM+18*, GETITM+19*, GETITM+34 |
DNYRSN | GETITM+5~, GETITM+15*, GETITM+21*, GETITM+34 |
DNYUSR | GETITM+5~, GETITM+15*, GETITM+20*, GETITM+34 |
DONE | DETAIL+3~, DETAIL+20*, DETAIL+21, DETAIL+23* |
DRUG | GETITM+4~, GETITM+11*, GETITM+34, DETAIL+2~, DETAIL+13* |
DUR | DETAIL+3~, DETAIL+25*, DETAIL+26, DETAIL+27 |
DUZ | STORE+5, CHGPRV+7 |
ERR | STORE+1~, STORE+9, STOREDOS+1~, STOREDOS+4, STOREDOS+5 |
FDA | STORE+1~, STOREDOS+1~, CHGPRV+1~ |
FDA( | STORE+4*, STORE+5*, STORE+7*, CHGPRV+21*, CHGPRV+22*, CHGPRV+23*, CHGPRV+24* |
FIL | GETVAL~, GETVAL+1 |
FILTER | GETLIST~, GETLIST+3*, GETLIST+7, CANSHOW~, CANSHOW+3, GMATCHI+12, STORE+1~, STORE+2*, QUECHECK+1~, QUECHECK+3* , QUECHECK+5, GETIDATA~, GETIDATA+1* |
FLD | STORE~, STORE+4, STORE+5, GETVAL~, GETVAL+1 |
FLDARY | STOREDOS~, STOREDOS+2 |
FLG | GETVAL~, GETVAL+1 |
FROM | NPSPI~, NPSPI+2*, NPSPI+3*, NPSPI+4, NPSPI+5 |
G | GETPGEN+1~, GETPGEN+3*, GETPGEN+4 |
GENDER | PATNAME+1~, PATNAME+3*, PATNAME+4*, PATNAME+5 |
HLDATA | GETITM+4~, SHLVARS+2 |
HLECH | DETAIL+3~, DETAIL+5*, DETAIL+7, GETDRUG+1~, GETPDOB+1~, GETPGEN+1~, GETPPHN+1~, GETSIG+1~, HL7INIT+2*, HL7INIT+4 |
HLECH( | DETAIL+7*, HL7INIT+4* |
HLECH(1 | DETAIL+12, DETAIL+14, DETAIL+16, DETAIL+24, DETAIL+25, GETPPHN+3, GETSIG+3 |
HLECH(2 | DETAIL+22 |
HLMSG | GETITM+7*, GHLDAT+1~, GHLDAT+2*, GHLDAT+3, DETAIL+1~, DETAIL+8*, GETDRUG+1~, GETPDOB+1~, GETPDOB+3*, GETPGEN+1~ , GETPPHN+1~, GETSIG+1~, HL7INIT+5* |
I | DETAIL+6*, DETAIL+7, DETAIL+21*, DETAIL+22, DETAIL+26, GETDRUG+1~, GETPDOB+1~, GETPGEN+1~, GETPPHN+1~, GETSIG+1~ , HL7INIT+3*, HL7INIT+4 |
IEN | GETLIST+1~, GETLIST+4*, GETLIST+7, GETLIST+8, GETLIST+10, GETITM~, GETITM+6, GETITM+7, GETITM+10, GETITM+12 , GETITM+17, GETITM+20, GETITM+21, GETITM+22, GETITM+28, GETITM+29, GETITM+30, GETITM+31, GETITM+32, GETITM+33 , GETITM+34, PATNAME+2, PATNAME+4, PATNAME+5, PATNAME+10, DRGNAME+2, ORD~, ORD+2, ORD+3, ORD+4 , ORD+5, ORD+6, DUPS~, DUPS+3, GHLDAT~, GHLDAT+2, CANSHOW~, CANSHOW+2, MATCHDT~, MATCHDT+4 , GMATCHI~, GMATCHI+3, GMATCHI+6, DETAIL~, DETAIL+8, DETAIL+18, STORE~, STORE+4, STORE+5, STORE+7 , STORE+9, GETVAL~, GETVAL+1, STOREDOS~, STOREDOS+2, NPSPI+1~, NPSPI+3*, NPSPI+4*, NPSPI+5, GETREC~ , GETREC+3, GETREC+4, GETREC+6, ADDMISIG+2, ADDMISIG+3, GETDRUG~, GETDRUG+2, GETPDOB~, GETPDOB+2, GETPDOB+3 , GETPGEN~, GETPGEN+2, GETPPHN~, GETPPHN+2, GETSIG~, GETSIG+2, QUECHECK+1~, QUECHECK+4*, QUECHECK+5, GETIDATA~ , GETIDATA+2, HL7INIT~, HL7INIT+5, CHGPRV~, CHGPRV+3, CHGPRV+4, CHGPRV+5, CHGPRV+6, CHGPRV+21, CHGPRV+22 , CHGPRV+23, CHGPRV+24, CHGPRV+27 |
IND | GETITM+5~, GETITM+27*, GETITM+34, ORD+1~, ORD+6*, ORD+7 |
INST | DETAIL+2~, DETAIL+13* |
INTERVAL | DETAIL+4~, DETAIL+25*, DETAIL+26 |
ITMDATE | GETITM+4~, GETITM+12*, GETITM+13, GETITM+34 |
>> ITMDTFMT | GETITM+13*, GETITM+14*, GETITM+34 |
LD | MATCHDT+2~, MATCHDT+4*, MATCHDT+9 |
LINE | GETITM+4~ |
LINEVAR | GETITM+4~ |
>> LOCID | GETITM+30*, GETITM+34 |
LP | ADDMISIG+1~, ADDMISIG+2*, ADDMISIG+3 |
MATCH | GETITM+5~, GETITM+31*, GETITM+34, GMATCHI+1~, GMATCHI+6*, GMATCHI+7, GMATCHI+8, GMATCHI+9, GMATCHI+10, GMATCHI+11 , GMATCHI+13 |
MAX | NPSPI~, NPSPI+2*, NPSPI+3 |
MD | MATCHDT+2~, MATCHDT+4*, MATCHDT+7 |
MEDUNITS | DETAIL+3~, DETAIL+16* |
MSGID | GETITM+4~, GETITM+7*, GETITM+34 |
N0 | MATCHDT+2~, MATCHDT+4* |
NIEN | DUPS+1~, DUPS+3* |
NODE | ADDMISIG~, ADDMISIG+2, ADDMISIG+3, ADDMISIG+6 |
NOSTS | STORE~, STORE+3*, STORE+6 |
NOUN | DETAIL+2~, DETAIL+15* |
>> NTPHM | GETITM+33*, GETITM+34 |
>> ORDINFO | GETITM+32*, GETITM+34 |
>> ORDUZ | CHGPRV+7* |
ORID | CHGPRV+1~, CHGPRV+3*, CHGPRV+9, CHGPRV+11 |
ORL | CHGPRV+1~, CHGPRV+5*, CHGPRV+11 |
ORNIFN | CHGPRV+13~, CHGPRV+14*, CHGPRV+15, CHGPRV+16, CHGPRV+17*, CHGPRV+18, CHGPRV+19 |
ORNP | CHGPRV+1~, CHGPRV+4*, CHGPRV+11 |
ORVP | CHGPRV+1~, CHGPRV+6*, CHGPRV+16, CHGPRV+19 |
>> PADD | GETITM+26*, GETITM+34 |
PADDR | GETITM+5~ |
PAT | GETITM+4~, PATNAME+1~, PATNAME+2*, PATNAME+3, PATNAME+4*, PATNAME+5, PATNAME+6*, PATNAME+7*, PATNAME+8, DETAIL+2~ , DETAIL+11* |
PATFN | GETITM+4~, PATNAME+1~, PATNAME+8*, PATNAME+9 |
PATLN | GETITM+4~, PATNAME+1~, PATNAME+8*, PATNAME+9 |
PATNAME | GETITM+5~, GETITM+9*, GETITM+34, PATNAME+1~, PATNAME+9*, PATNAME+10 |
>> PFAX | GETITM+25*, GETITM+34 |
PFLG | QUECHECK+1~ |
PHARM | DETAIL+3~, DETAIL+18* |
PIDSEG | PATNAME~, PATNAME+6 |
PIEN | GETITM+5~, GETITM+22*, GETITM+23, GETITM+24, GETITM+25, GETITM+26, GETITM+34 |
PNAM | GETITM+5~, GETITM+23*, GETITM+34 |
PPHN | GETITM+5~, GETITM+24*, GETITM+34 |
PRMT | CHGPRV+1~, CHGPRV+8*, CHGPRV+9 |
PROV | DETAIL+2~, DETAIL+12* |
PROVDAT | DETAIL+2~, DETAIL+12* |
PRV | AUTH~, AUTH+2 |
PRVID | GETITM+5~, GETITM+29*, GETITM+34 |
PRVIEN | CHGPRV~, CHGPRV+23 |
PTID | GETITM+5~, GETITM+28*, GETITM+34 |
PTPHN | GETITM+5~, GETITM+10*, GETITM+34 |
Q | GETSEG+1~, GETSEG+2*, GETSEG+4* |
QTY | ORD+1~, ORD+3*, ORD+7, DETAIL+2~, DETAIL+12* |
REASON | CHGPRV+1~, CHGPRV+2*, CHGPRV+11 |
REC | GETREC+1~, GETREC+4*, GETREC+6, CHGPRV+1~, CHGPRV+11 |
REF | ORD+1~, ORD+4*, ORD+7 |
REFILLS | DETAIL+3~, DETAIL+17* |
RES | MATCHDT+2~, MATCHDT+5*, MATCHDT+7*, MATCHDT+9*, MATCHDT+10, AUTH+1~, AUTH+2, AUTH+3 |
RET | GETLIST~, GETLIST+2*, GETLIST+10, GETSEG+1~, GETSEG+2*, GETSEG+3*, GETSEG+4*, GETSEG+5, DRGNAME+1~, DRGNAME+2* , DRGNAME+3, DRGNAME+4*, DRGNAME+5 |
ROUTE | DETAIL+2~, DETAIL+14* |
RRNUM | DUPS+1~ |
SCHARY | DETAIL+4~ |
SCHARY( | DETAIL+26* |
SCHITEM | DETAIL+4~, DETAIL+22*, DETAIL+23, DETAIL+24, DETAIL+25 |
SCHUPD | DETAIL+4~, DETAIL+24*, DETAIL+26 |
SEG | GETITM+4~ |
SEGTYP | SHLVARS+1~, SHLVARS+2* |
SIGDAT | DETAIL+3~, DETAIL+19* |
STA | CANSHOW+1~, CANSHOW+2*, CANSHOW+3 |
START | GETLIST~, GETLIST+8, MATCHDT~, MATCHDT+7, MATCHDT+9 |
STAT | GETITM+5~, GETITM+6*, GETITM+16, GETITM+27 |
STOP | GETLIST~, GETLIST+8, MATCHDT~, MATCHDT+3*, MATCHDT+7, MATCHDT+9 |
STR | DETAIL+2~, DETAIL+14* |
STRING | GMATCHI+1~, GMATCHI+2*, GMATCHI+5, GMATCHI+7, GMATCHI+8, GMATCHI+9, GMATCHI+10, GMATCHI+11, GMATCHI+13, GMATCHI+14 , GMATCHI+15, ADD~, ADD+2*, ADD+3* |
SUP | ORD+1~, ORD+2*, ORD+7 |
TCHK | GETLIST~, GETLIST+8 |
TOTDUR | DETAIL+4~, DETAIL+27* |
TXT | GMATCHI+1~, GMATCHI+2*, GMATCHI+5*, GMATCHI+7*, GMATCHI+8*, GMATCHI+9*, GMATCHI+10*, GMATCHI+11*, GMATCHI+13*, GMATCHI+14* , ADD~, ADD+2, ADD+3, GETREC+1~, ADDMISIG+3*, ADDMISIG+4, ADDMISIG+6 |
TYPE | GETSEG~, GETSEG+4, MATCHDT~, MATCHDT+1, MATCHDT+6, MATCHDT+8 |
U | GETITM+34, PATNAME+8, DRGNAME+3, DRGNAME+4, CANSHOW+2, MATCHDT+4, DETAIL+13, DETAIL+26, STORE+7, NPSPI+5 , GETREC+6, GETDRUG+3, QUECHECK+7, CHGPRV+16, CHGPRV+19 |
UNITS | DETAIL+2~, DETAIL+14* |
USCHDUR | DETAIL+3~, DETAIL+16*, DETAIL+22 |
VAL | STORE~, STORE+4 |
VAR | SHLVARS+1~, SHLVARS+2* |
X | GETSEG+1~, GETSEG+2*, GETSEG+3, GMATCHI+1~, GMATCHI+3*, GMATCHI+4, GMATCHI+5 |
XQAID | CHGPRV+16*!, CHGPRV+19*! |
XQAKILL | CHGPRV+13~, CHGPRV+15*, CHGPRV+18* |