Print Page as PDF
ADMINISTRATION SCHEDULE ICR (4546)

ADMINISTRATION SCHEDULE    ICR (4546)

Name Value
NUMBER 4546
IA # 4546
DATE CREATED 2004/12/14
CUSTODIAL PACKAGE PHARMACY DATA MANAGEMENT
CUSTODIAL ISC Birmingham
USAGE Supported
TYPE Routine
DBIC APPROVAL STATUS APPROVED
ROUTINE PSS51P1
NAME ADMINISTRATION SCHEDULE
GENERAL DESCRIPTION
This DBIA is provided by PDM (Pharmacy Data Management)
as an API to the ADMINISTRATION SCHEDULE file (#51.1). This API must be used
by all packages accessing this file as all the Pharmacy packages are being
re-engineered.
STATUS Active
DURATION Till Otherwise Agreed
ID PSS51P1
COMPONENT/ENTRY POINT
COMPONENT/ENTRY POINT COMPONENT DESCRIPTION VARIABLES
ZERO(PSSIEN,PSSFT,PSSPP,PSSTSCH,LIST)
Format: D
ZERO^PSS51P1(PSSIEN,PSSFT,PSSPP,PSSTSCH,LIST)
VARIABLES TYPE VARIABLES DESCRIPTION
PSSIEN Input
PSSIEN = IEN of entry in ADMINISTRATION SCHEDULE file
(#51.1) [optional]
PSSFT Input
PSSFT = NAME field in ADMINISTRATION SCHEDULE file
(#51.1) (a value of  "??" may be used) [optional]
PSSPP Input
PSSPP = the PACKAGE PREFIX field (#4) of the
ADMINISTRATION SCHEDULE file (#51.1) (screening for the Package Prefix if this
field is passed in (ex: PSJ, LR )) [optional]
PSSTSCH Input
PSSTSCH = TYPE OF SCHEDULE field (#5) of
ADMINISTRATION SCHEDULE file (#51.1) (screening for One-time "O" if PSSTSCH
passed in) [optional]
LIST Input
LIST = array defined by the calling application
[required]
~TMP Output
^TMP($J,LIST,0)=Total entries returning or -1^NO DATA
FOUND

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

^TMP($J,LIST,PSSIEN,1)=STANDARD ADMINISTRATION TIMES(51.1,1)

^TMP($J,LIST,PSSIEN,2)=FREQUENCY (IN MINUTES)(51.1,2)

^TMP($J,LIST,PSSIEN,2.5)=MAX DAYS FOR ORDERS(51.1,2.5)

^TMP($J,LIST,PSSIEN,4)=PACKAGE PREFIX(51.1,4)

^TMP($J,LIST,PSSIEN,5)=TYPE OF SCHEDULE(51.1,5)^External format for the set of
code

^TMP($J,LIST,PSSIEN,6)=STANDARD SHIFTS(51.1,6)

^TMP($J,LIST,PSSIEN,8)=OUTPATIENT EXPANSION(51.1,8)

^TMP($J,LIST,PSSIEN,8.1)=OTHER LANGUAGE EXPANSION(51.1,8.1)

^TMP($J,LIST,"B",NAME,PSSIEN)= ""
AP(PSSPP,PSSFT,PSSWDIEN,PSSSTPY,LIST,PSSFREQ)
Format: D
AP^PSS51P1(PSSPP,PSSFT,PSSWDIEN,PSSSTPY,LIST,PSSFREQ)
VARIABLES TYPE VARIABLES DESCRIPTION
PSSPP Input
PSSPP = PACKAGE PREFIX field (#4) of the
ADMINISTRATION SCHEDULE file (#51.1) [required]
PSSFT Input
PSSFT = NAME field (#.01) of the ADMINISTRATION
SCHEDULE file (#51.1) (a value of  "??" may be used) [optional]
PSSWDIEN Input
PSSWDIEN = IEN of entry of WARD multiple in
ADMINISTRATION SCHEDULE file (#51.1) [optional]
PSSSTPY Input
PSSSTPY = TYPE OF SCHEDULE field (#5) OF
ADMINISTRATION SCHEDULE file (#51.1) [optional]
LIST Input
LIST = array defined by the calling application
[required]
TMP Output
^TMP($J,LIST,0)=Total entries returning or -1^NO DATA
FOUND

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

^TMP($J,LIST,PSSIEN,1)=STANDARD ADMINISTRATION TIMES(51.1,1)

^TMP($J,LIST,PSSIEN,2)=FREQUENCY (IN MINUTES) (51.1,2)

^TMP($J,LIST,PSSIEN,2.5)=MAX DAYS FOR ORDERS(51.1,2.5)

^TMP($J,LIST,PSSIEN,4)=PACKAGE PREFIX(51.1,4)

^TMP($J,LIST,PSSIEN,5)=TYPE OF SCHEDULE(51.1,5)^External format for the set of
code

^TMP($J,LIST,PSSIEN,8)=OUTPATIENT EXPANSION(51.1,8)

^TMP($J,LIST,PSSIEN,"WARD",0)=Total entries returning for this sub-file or
-1^NO DATA FOUND

^TMP($J,LIST,PSSIEN,"WARD",PSSWDIEN,.01)=WARD (51.11,.01)^NAME(42,.01)

^TMP($J,LIST,PSSIEN,"WARD",PSSWDIEN,1)=WARD ADMINISTRATION TIMES(51.11,1)

^TMP($J,LIST,"AP"_PACKAGE PREFIX,NAME,PSSIEN)=""

Note: If PSSSTYP is passed in the API will screening on this value:

1. If PSSPP is passed in, PSSFT = "" or PSSFT = "??", PSSWDIEN = "" and PSSTYP
= "", then all schedules associated with the PSSPP and Ward will be returned.

2. If PSSPP is passed in, PSSFT = "" or PSSFT = "??", PSSWDIEN is passed in
and PSSTYP = "", then all schedules associated with the PSSPP will be returned
and only Ward matched the PSSWDIEN will be included.

3. If PSSPP = "", PSSFT = "QID", PSSWDIEN = "" and PSSTYP = "", then QID data
and associated Wards will be returned.

4. If PSSPP = "", PSSFT = "QID", PSSWDIEN is passed in and PSSTYP = "", then
QID data will be returned and only matched Ward will be included.
PSSFREQ Input
Filter for FREQUENCY field (#2) of the OF
ADMINISTRATION SCHEDULE file   (#51.1).  [optional]

NOTE: If the frequency in the FREQUENCY field (#2) is greater than a value
passed in as PSSFREQ, then the entry will not be returned. Additionally, a
PSSFREQ value less than 1 or null will be ignored.
PSSDQ
Displays all the entries in the ADMINISTRATION
SCHEDULE file (#51.1).
SCHED
Calls new routine PSSSCHED to return a new filtered
array of Administration Schedules to CPRS for selection from the list of
schedules presented to the user.
VARIABLES TYPE VARIABLES DESCRIPTION
PSSWIEN Input
IEN of the ward location for the patient.  If this
value is null, it will be set to 0.
PSSARRY Both
Array of schedules to be returned to CPRS.  The
structure is:

PSSARRY(n) = IEN^NAME^OUTPATIENT EXPANSION^SCHEDULE TYPE^ADMIN TIME

IEN = Ward location (File #42) of the patient.

NAME = Schedule Name

OUTPATIENT EXPANSION = Display name of the schedule for Outpatient Pharmacy.

SCHEDULE TYPE = Schedule type of the schedule

ADMIN TIME = Either the Standard Administration Times for the schedule or the
Ward-Specific Administration Times for the schedule, if defined.

DATE ACTIVATED 2008/07/28