Print Page as PDF
OE/RR CALL TO PSSJORDF ICR (2418)

OE/RR CALL TO PSSJORDF    ICR (2418)

Name Value
NUMBER 2418
IA # 2418
DATE CREATED 1998/05/20
CUSTODIAL PACKAGE PHARMACY DATA MANAGEMENT
CUSTODIAL ISC Birmingham
USAGE Controlled Subscription
TYPE Routine
DBIC APPROVAL STATUS APPROVED
ROUTINE PSSJORDF
NAME OE/RR CALL TO PSSJORDF
GENERAL DESCRIPTION
This DBIA allows use of START^PSSJORDF and
START1^PSSJORDF as documented in the OE/RR Developer Interface Specification.
STATUS Active
DURATION Till Otherwise Agreed
ID PSSJORDF
COMPONENT/ENTRY POINT
COMPONENT/ENTRY POINT COMPONENT DESCRIPTION VARIABLES
START(PSJORD,PSJOPAC)
The Default med route will be returned from the
DEFAULT MED ROUTE field (#.06) of the PHARMACY ORDERABLE ITEM file (#50.7) if
it is populated or from the POSSIBLE MED ROUTES multiple (#50.711) of the
PHARMACY ORDERABLE ITEM file (#50.7) if it is populated with a single entry
and the USE DOSAGE FORM MED ROUTE LIST field (#10) is set to "NO".

The med route selection list will be returned with entries from the POSSIBLE
MED ROUTES multiple (#50.711) if the USE DOSAGE FORM MED ROUTE LIST field
(#10) is set to "NO". Otherwise, the med routes associated with the orderable
item's dosage form, MED ROUTE FOR DOSAGE FORM multiple (#50.6061) of the
DOSAGE FORM file (#50.606), will be returned. If there are no entries, then
all med routes found in the MEDICATION ROUTES file (#51.2) will be returned.
VARIABLES TYPE VARIABLES DESCRIPTION
PSJORD Input
Orderable Item IEN
TMP('PSJMR',$J,IEN) Output
MED ROUTE^MED ROUTE ABBREVIATION^MED ROUTE
IEN^OUTPATIENT EXPANSION^IV FLAG^DEFAULT FLAG

D in the DEFAULT FLAG field indicates this is the default MED ROUTE for the
specified orderable item.
TMP('PSJNOUN',$J,IEN) Output
NOUN^VERB^PREPOSITION
TMP('PSJSCH',$J) Output
DEFAULT SCHEDULE NAME
PSJOPAC Input
This variable represents the pharmacy package for
which the order is being entered in CPRS. "O" will be for an Outpatient order,
and "I" will be for an Inpatient order. This will impact the default Schedule
that is returned, since some Schedules are allowed for Outpatient orders, but
not for Inpatient orders.
START1(PSJORD,PSJQOF)
This is the entry point from the CPRS IV Dialog for
IV orders.

If there is only one orderable item in the IV order request, then the same
logic defined under the START component will be used to return the default med
route and the med route selection list from the PHARMACY ORDERABLE ITEM file
(#50.7).

If there is more than one orderable item on the IV order request, the PHARMACY
ORDERABLE ITEM file (#50.7) will be checked for each orderable item for the
default med route and med route selection list as defined under START
component.  If there is a default med route common with every orderable item,
then that default med route will be returned. Similarly, the list of possible
med routes that are common with every orderable item will be returned.
VARIABLES TYPE VARIABLES DESCRIPTION
PSJORD Both
Array of pharmacy orderable items that make up the IV
order.  The inbound structure is: PSJORD(0)=Number of orderable items in the
order PSJORD(n)=Orderable item IEN number

The output structure is:

PSJORD(n)=IEN^NAME^ABBREVIATION^OUTPATIENT EXPANSION^DEFAULT

IEN is the Medication Route IEN from the Medication Route File #51.2.

NAME, ABBREVIATION, and OUTPATIENT EXPANSION are all pieces of the data string
from ^PS(51.2,IEN,0)

If all the orderable items associated with the IV order have the same default
med route defined in the Pharmacy Orderable Item File #50.7, then a "D" will
be added as the last piece of the data string returned. If there is no
default, or if there is more than one orderable item on the order, the DEFAULT
piece will be null.
PSJQOF Input
This denotes whether the IV order is a quick order or
not.  If the flat is set to 1 then all med routes defined in the med route
file that are flagged for use in all packages, and are flagged for use in IVs
will be returned.

PSJQOF=0 This is not a quick order PSJQOF=1 This is a quick order
SUBSCRIBING PACKAGE
SUBSCRIBING PACKAGE ISC SUBSCRIBING DETAILS
ORDER ENTRY/RESULTS REPORTING Salt Lake City
VA POINT OF SERVICE (KIOSKS)
VISTA INTEGRATION ADAPTOR
VIABDX SAVE RPC references PSSJORDF routine.
OUTPATIENT PHARMACY
INPATIENT MEDICATIONS
Added 8/24/20
DATE ACTIVATED 2011/05/10