Print Page as PDF
DBIA4662 ICR (4662)

DBIA4662    ICR (4662)

Name Value
NUMBER 4662
IA # 4662
DATE CREATED 2005/04/26
CUSTODIAL PACKAGE PHARMACY DATA MANAGEMENT
USAGE Supported
TYPE Routine
DBIC APPROVAL STATUS APPROVED
ROUTINE PSS50P7
NAME DBIA4662
GENERAL DESCRIPTION
This API will return information from the PHARMACY
ORDERABLE ITEM file (#50.7).
STATUS Active
DURATION Till Otherwise Agreed
ID PSS50P7
COMPONENT/ENTRY POINT
COMPONENT/ENTRY POINT COMPONENT DESCRIPTION VARIABLES
DRGIEN(PSSIEN,PSSFL,LIST)
This API will return a list of drugs from the DRUG
file (#50) that are matched to an entry in the PHARMACY ORDERABLE ITEM file
(#50.7).
VARIABLES TYPE VARIABLES DESCRIPTION
PSSIEN Input
This is the internal entry number from the PHARMACY
ORDERABLE ITEM file (#50.7). [required]
PSSFL Input
This parameter represents the inactive date, in
FileMan format.  If no date is passed in, all entries matched to the Pharmacy
Orderable Item will be returned. If a date is passed in, only entries without
an inactive date and entries with an inactive date later than this date will
be returned.  [optional]
LIST Input
This will be the name subscript in the return ^TMP
global. [required]
~TMP Output
^TMP($J,LIST,0)= Total entries returned. If there are
no entries being returned, then this will be equal to "-1^NO DATA FOUND".

^TMP($J,LIST,PSS50)=""

Where PSS50 is the internal entry number from the DRUG file (#50).
ZERO(PSSIEN,PSSFT,PSSFL,LIST)
Returns the zero node of the PHARMACY ORDERABLE ITEM
file (#50.7) in the ^TMP array.  A check for the existence of the zero node
will be performed.  External format will be included if applicable.
VARIABLES TYPE VARIABLES DESCRIPTION
PSSIEN Input
IEN of entry in the PHARMACY ORDERABLE ITEM file
(#50.7) [optional]
PSSFT Input
NAME field (#.01) of the PHARMACY ORDERABLE ITEM file
(#50.7) (a value of "??" may be used) [optional]
PSSFL Input
Inactive date: A null value will return all entries
(entry of a FileMan format date (ex: 3030917) will return active entries after
this date) [optional]
LIST Input
Subscript value in ^TMP($J,LISTvalue,  [required]
~TMP Output
^TMP($J,LIST,0) = Total entries returned or -1^NO
DATA FOUND

^TMP($J,LIST,PSSIEN,.01) = NAME (50.7,.01)

^TMP($J,LIST,PSSIEN,.02) = DOSAGE FORM(50.7,.02)^NAME (50.606,.01)

^TMP($J,LIST,PSSIEN,.03) = IV FLAG (50.7,.03)^External format for the set of
codes (ex: 1 if flagged for IV)

^TMP($J,LIST,PSSIEN,.04) = INACTIVE DATE (50.7,.04)^External format (ex: SEP
12,1999)

^TMP($J,LIST,PSSIEN,.05) = DAY (nD) or DOSE (nL) LIMIT (50.7,.05)

^TMP($J,LIST,PSSIEN,.06) = MED ROUTE (50.7,.06)^NAME (51.2,.01)

^TMP($J,LIST,PSSIEN,.07) = SCHEDULE TYPE (50.7,.07)^External format for the
set of codes

^TMP($J,LIST,PSSIEN,.08) = SCHEDULE (50.7,.08)

^TMP($J,LIST,PSSIEN,.09) = SUPPLY (50.7,.09)^External format for the set of
codes

^TMP($J,LIST,PSSIEN,5) = FORMULARY STATUS (50.7,5)^External format for the set
of codes

^TMP($J,LIST,PSSIEN,8) = NON-VA MED (50.7,8)^External format for the set of
codes (ex: 1 flagged the med as Non-VA)

^TMP($J,LIST,"B",NAME,PSSIEN) = ""
SSET(PSSC,PSSCNT,PSSI,DIR,SUB)
Returns a subset of orderable items.
VARIABLES TYPE VARIABLES DESCRIPTION
PSSC Input
Count (number wheel) used when populating the return
^TMP global.
PSSCNT Input
Number of items to return at one time.
PSSI Input
Starting location for the 'B' cross-reference.
DIR Input

1 - Process 'B' cross-reference backwards.  -1 - Process 'B' cross-reference
backwards.
SUB Input
The subscript to use to return data in the ^TMP
global.
~TMP(SUB,$J,1,PSSC) Output
^TMP(SUB,$J,1,PSSC)=IEN of the Orderable Item ^ NAME
(#.01) ^ DOSAGE FORM (from 50.606) ^ External form of INACTIVE DATE (#.04)
NAME
Returns the NAME field (#.01) of the PHARMACY
ORDERABLE ITEM file (#50.7).
VARIABLES TYPE VARIABLES DESCRIPTION
PSSIEN Input
IEN = entry in PHARMACY ORDERABLE ITEM file (#50.7)
$$NAME Output
$$NAME = NAME field (#.01) of the PHARMACY ORDERABLE
ITEM file (#50.7)
INDCATN
This API will return a list of Indications for use
for a given entry in the PHARMACY ORDERABLE ITEM file (#50.7).
VARIABLES TYPE VARIABLES DESCRIPTION
Input
PSSIEN Input
This is the internal entry number from the PHARMACY
ORDERABLE ITEM file (#50.7). [required]
LIST Input
This will be the name subscript in the return ^TMP
global. [required]
~TMP or None Output
^TMP($J,LIST,Seq#) if the 'Most Common Indication For
Use' and 'Indications For Use' are populated.

^TMP($J,LIST,"OTH",Seq#) if there are other language,'Other Language Most
Common Indication' and 'Other Language Indications' are populated.

Will not return a TMP global if Indications are not populated.

The Seq# for 'Most Common Indication For Use' or 'Other Language Most Common
Indication' is always set to '1' if populated.

Ex:

^TMP(547627655,"PSO",1)="FOR CHOLESTEROL^1" ^TMP(547627655,"PSO",2)="TO LOWER
BAD CHOLESTEROL" ^TMP(547627655,"PSO",3)="TO RAISE GOOD CHOLESTEROL"

^TMP(547627655,"PSO","OTH",1)="PARA COLESTEROL^1"
^TMP(547627655,"PSO","OTH",2)="PARA BAJAR COLESTEROL MALO"
^TMP(547627655,"PSO","OTH",3)="PARA AUMENTAR COLESTEROL BUENO"
DATE ACTIVATED 2019/05/22