Print Page as PDF
PSSOPKI ICR (3737)

PSSOPKI    ICR (3737)

Name Value
NUMBER 3737
IA # 3737
DATE CREATED 2002/08/29
CUSTODIAL PACKAGE PHARMACY DATA MANAGEMENT
CUSTODIAL ISC Birmingham
USAGE Controlled Subscription
TYPE Routine
DBIC APPROVAL STATUS APPROVED
ROUTINE PSSOPKI
NAME PSSOPKI
GENERAL DESCRIPTION
Pharmacy Data Management returns the most restrictive
CS FEDERAL SCHEDULE code / DEA SPECIAL HDLG code for a Pharmacy Orderable
Item, based on the Dispense Drugs that are associated with that Pharmacy
Orderable Item.  The CS FEDERAL SCHEDULE code / DEA SPECIAL HDLG code is
derived as follows: If any of the active dispense drugs associated with the
orderable item for the specified package are matched to an entry in the
National Drug File, then the most restrictive CS FEDERAL SCHEDULE code from
the National Drug File will be returned. If there is no match or the CS
FEDERAL SCHEDULE code is undefined then the most restrictive DEA SPECIAL HDLG
code mapped to the corresponding CS FEDERAL SCHEDULE code as listed below will
be returned.

DEA, SPECIAL HDLG      CS FEDERAL SCHEDULE
1                      1    (Schedule I narcotics)
2A                     2    (Schedule II narcotics)
2C                     2n   (Schedule II non-narcotics)
3A                     3    (Schedule III narcotics)
3C                     3n   (Schedule III non-narcotics)
4                      4    (Schedule IV narcotics)
5                      5    (Schedule V narcotics)
STATUS Active
KEYWORDS DETOX
DURATION Till Otherwise Agreed
ID PSSOPKI
COMPONENT/ENTRY POINT
COMPONENT/ENTRY POINT COMPONENT DESCRIPTION VARIABLES
OIDEA(PSSXOI,PSSXOIP)
VARIABLES TYPE VARIABLES DESCRIPTION
PSSXOI Input
This variable is the internal entry number from the
Pharmacy Orderable Item (#50.7) file.
PSSXOIP Input
This variable can be one of three values. "O"
indicates that this call is being made for an Outpatient Pharmacy order.
Either an "I" or a "U" indicates that this call is being made for an Inpatient
Medications order.
$$OIDEA Output
This output variable will have the most restrictive
CS FEDERAL SCHEDULE code or the DEA SPECIAL HDLG code as mapped to the
corresponding CS FEDERAL SCHEDULE code (as defined in the description), of the
active Dispense Drugs that are matched to the Pharmacy Orderable Item for the
specified package.

This variable can have one of the following values:

1;1  -  Schedule I Narcotics
1;2  -  Schedule II Narcotics - requires a wet signature
1;2n -  Schedule II Non-Narcotics - requires a wet signature
2;3  -  Schedule III Narcotics
2;3n -  Schedule III Non-Narcotics
2;4  -  Schedule IV Narcotics
2;5  -  Schedule V Narcotics
0    -  None of the above but there are active drugs matched to the
Pharmacy Orderable Item for the specified package
"" (Null)- There are no active drugs for the specified package matched to
the Pharmacy Orderable Item.  Schedule I-V Narcotics will return a
2 piece value separated by a semicolon. 1st piece makes it compatible with the
old API 3373, where 1 requires a wet signature and 2 does not.

2nd piece provides the exact nature of the Narcotics.
$$DETOX(PSSDIEN)
This API will identify a drug as a detoxification
drug when its name contains "BUPREN".

Format:
S X=$$DETOX^PSSOPKI(PSSDIEN)
VARIABLES TYPE VARIABLES DESCRIPTION
PSSDIEN Input
This is the IEN of the DRUG file (#50).
$$DETOX Output
Where the output value is:
0 (zero) = not a detoxification drug
1 (one) = a detoxification drug
$$OIDETOX(PSSXOI,PSSXOIP)
This API will identify a Pharmacy Orderable Item as a
detoxification drug based on the Dispense Drugs that are associated with that
Pharmacy Orderable Item and at least one of them contains "BUPREN" in the
name.

Format:
S X=$$OIDETOX(PSSXOI,PSSXOIP)
VARIABLES TYPE VARIABLES DESCRIPTION
PSSXOI Input
IEN of the Pharmacy Orderable Item file (#50.7).
PSSXOIP Input
Application Package usage.
I - Inpatient
U - Unit Dose
O - Outpatient
$$OIDETOX Output
Where the output value is:
0 (zero) = not a detoxification drug
1 (one) = a detoxification drug
SUBSCRIBING PACKAGE
SUBSCRIBING PACKAGE ISC SUBSCRIBING DETAILS
ORDER ENTRY/RESULTS REPORTING Salt Lake City
VA POINT OF SERVICE (KIOSKS)
OUTPATIENT PHARMACY
Outpatient Pharmacy has permission to make the $$DETOX
call.
VISTA INTEGRATION ADAPTOR
VIABDX SAVE RPC references PSSOPKI routine.
DATE ACTIVATED 2011/12/07