Surgery is also granted permission from the MAS package
to make the following references (READ only) to MAS data.
The following two items are used together on several reports.
^DGS(41.1,"B",DFN,INTERNAL ENTRY IN FILE 41.1) The various Surgery Schedule
reports loop through the B cross reference to locate scheduled admissions for
the patient if the patient is not an inpatient already.
Second piece of ^DGS(41.1,INTERNAL ENTRY IN FILE 41.1,0) This piece, which
holds the RESERVATION DATE/TIME of the scheduled admission, is checked for
each scheduled admission found in the B cross reference to determine if the
RESERVATION DATE/TIME is future. If there is a future scheduled admission, the
report prints "ADM. PENDING" for the patient.