Print Page as PDF
PSOERXU9 ICR (7222)

PSOERXU9    ICR (7222)

Name Value
NUMBER 7222
IA # 7222
DATE CREATED 2021/02/02
CUSTODIAL PACKAGE OUTPATIENT PHARMACY
USAGE Private
TYPE Routine
DBIC APPROVAL STATUS APPROVED
ROUTINE PSOERXU9
NAME PSOERXU9
GENERAL DESCRIPTION
The routine PSOERXU9 has entry points to return a
pointer to the ERX HOLDING QUEUE file (#52.49) based on a PRESCRIPTION IEN or
PENDING OUTPATIENT ORDER IEN, return a pointer to the ERX HOLDING QUEUE file
(#52.49) based on an ORDER IEN, and return data from the ERX HOLDING QUEUE
file (#52.49) based on the ERX HOLDING QUEUE IEN.
STATUS Active
KEYWORDS PSOERXU9
DURATION Till Otherwise Agreed
ID PSOERXU9
COMPONENT/ENTRY POINT
COMPONENT/ENTRY POINT COMPONENT DESCRIPTION VARIABLES
$$ERXIEN(RXIEN)
This entry point returns a pointer to the ERX HOLDING
QUEUE file (#52.49) based on a PRESCRIPTION IEN or PENDING OUTPATIENT ORDER
IEN.
VARIABLES TYPE VARIABLES DESCRIPTION
RXIEN Input
Input parameter - PENDING OUTPATIENT ORDERS file
(#52.41) IEN (e.g., "139839P") or PRESCRIPTION file (#52) IEN (e.g.,
12930984).
$$ERXIEN Output
Pointer to the ERX HOLDING QUEUE file (#52.49) or ""
(Not an eRx prescription).
$$ERXCHK(ORDERIEN)
This entry point returns a pointer to the ERX HOLDING
QUEUE file (#52.49) based on an ORDER IEN.
VARIABLES TYPE VARIABLES DESCRIPTION
ORDERIEN Input
Input parameter - ORDER (#100) file IEN.
$$CHKERX Output
Pointer to the ERX HOLDING QUEUE file (#52.49) or 0
(Not an eRx prescription).
ERXDATA(ERXDATA,ERXIEN)
This entry point returns data from the ERX HOLDING
QUEUE file (#52.49), ERX EXTERNAL PHARMACY file (#52.47), ERX EXTERNAL PERSON
file (#52.48), and ERX EXTERNAL PATIENT file (#52.46); based on the ERX
HOLDING QUEUE (#52.49) IEN.
VARIABLES TYPE VARIABLES DESCRIPTION
ERXIEN Input
Input parameter - ERX HOLDING QUEUE file (#52.49)
IEN.
ERXDATA Output
The ERXDATA array, passed by reference, returns data
from the ERX HOLDING QUEUE file (#52.49), ERX EXTERNAL PHARMACY file (#52.47),
ERX EXTERNAL PERSON file (#52.48), and ERX EXTERNAL PATIENT file (#52.46) to
be used for Controlled Substance reports.

ERXDATA(1)=null^eRxReceivedDate(FileMan)^eRxDrugName^
VistaDrugIEN^ CSdrugSchedule^
eRxQuantity^eRxRefill^eRxHubID
ERXDATA(2)=providerDEA#^null^providerName^providerDUZ
ERXDATA(3)=null^provStreet1^provCity^provState^
provZip ERXDATA(4)=patientName^patientDFN
ERXDATA(5)=patStreet1^patStreet2^null^patCity^
patState^patZip^patDOB(MM/DD/YYYY)
SUBSCRIBING PACKAGE
SUBSCRIBING PACKAGE SUBSCRIBING DETAILS
CONTROLLED SUBSTANCES
Controlled Substance reports require data from the ERX
HOLDING QUEUE file (52.49).
DATE ACTIVATED 2021/02/16