Print Page as PDF
DBIA4196 ICR (4196)

DBIA4196    ICR (4196)

Name Value
NUMBER 4196
IA # 4196
DATE CREATED 2003/08/20
CUSTODIAL PACKAGE SCHEDULING
CUSTODIAL ISC Albany
USAGE Private
TYPE Routine
DBIC APPROVAL STATUS APPROVED
ROUTINE SDPHARM1
NAME DBIA4196
GENERAL DESCRIPTION
The Scheduling package will provide a default
Institution and default Station Number to Outpatient Pharmacy, based on future
appointments for patients, when someone is attempting to add a patient to the
TPB ELIGIBILITY (#52.91) File. The Scheduling package will also provide the
nearest Primary Care Appointment date and Hospital Location of that
appointment for a patient.
STATUS Active
DURATION Till Otherwise Agreed
ID SDPHARM1
COMPONENT/ENTRY POINT
COMPONENT/ENTRY POINT COMPONENT DESCRIPTION VARIABLES
$$DEF(SDPSODFN)
This entry point returns the default Institution and
Station Number.
VARIABLES TYPE VARIABLES DESCRIPTION
SDPSODFN Input
This is the internal entry number from the PATIENT
(#2) File.
$$DEF Output
This variable contains the default Institution and
Station Number. If a '0' is returned, that means defaults could not be found.
If defaults can be found, this variable will be 2 pieces, with the '^' as the
delimiter. The first piece will be the internal number from the INSTITUTION
(#4) File, the second piece will be that Institution's Station Number.
$$PRIAPT(SDPSOPAT)
This entry point returns the nearest Primary Care
Appointment for a patient. Primary Care is determined by the DSS credit pair
codes that were exported as part of the Transitional Pharmacy Benefit project.

VARIABLES TYPE VARIABLES DESCRIPTION
SDPSOPAT Input
This is the internal entry number from the PATIENT
(#2) File.
$$PRIAPT Output
This variable contains the Primary Care Appointment
information. It will be returned in the following format in 3 pieces of
information:

OCT 29, 2003@12:30  OUTPATIENT LAB  (6 days)

The first piece is the date/time of the appointment, the second piece is the
Hospital Location, the third piece is the number of days from the current date
to the appointment. Outpatient Encounters are also evaluated.  Whichever is
closest to the current date, either encounter or appointment, is returned. If
it is a past encounter that is returned, then the third piece would be
returned like this for an encounter 6 days ago: (-6 days).  The Hospital
Location associated with the Outpatient Encounter must be for one of the DSS
credit pair codes as determined by the Transitional Pharmacy Benefit project,
and the status of the Outpatient Encounter must be either "CHECKED OUT" or
"INPATIENT APPOINTMENT".
SUBSCRIBING PACKAGE
SUBSCRIBING PACKAGE ISC SUBSCRIBING DETAILS
OUTPATIENT PHARMACY Birmingham
When adding patients manually to the TPB ELIGIBILITY
(#52.91) File, Institution and Station Number are required fields. This
routine is called to possibly provide defaults for those fields when patients
are being added to the file. The Scheduling package will also provide the
nearest Primary Care Appointment date and Hospital Location of that
appointment for a patient.