Print Page as PDF
SURGERY Data Interface for LABORATORY SERVICE ICR (893)

SURGERY Data Interface for LABORATORY SERVICE    ICR (893)

Name Value
NUMBER 893
IA # 893
DATE CREATED 2000/12/07
CUSTODIAL PACKAGE SURGERY
CUSTODIAL ISC Birmingham
USAGE Private
TYPE Routine
DBIC APPROVAL STATUS APPROVED
ROUTINE SROSPLG
NAME SURGERY Data Interface for LABORATORY SERVICE
ORIGINAL NUMBER 893
GENERAL DESCRIPTION
SROSPLG was written as an interface to provide SURGERY
data for LABORATORY SERVICE Surgical Pathology reports created during Anatomic
Pathology Log-In.  Entry point SROSPLG allows the LABORATORY SERVICE user to
select from a list of surgeries performed in the last seven days for the given
patient.  Entry point DISP extracts the chosen surgery data and copies it into
the corresponding Surgical Pathology report.
STATUS Active
DURATION Next Version
ID SROSPLG
COMPONENT/ENTRY POINT
COMPONENT/ENTRY POINT COMPONENT DESCRIPTION VARIABLES
SROSPLG
The purpose of this component/entry point is to
lookup recent surgery data that may exist for this patient/specimen.  For the
given Surgical Pathology patient, this entry point searches the SURGERY file
(#130) for any surgeries performed in the last seven days.  If none are found,
the user is informed of this.  If only one surgery is found, the user is asked
if the given surgery is the correct surgery for the specimen.  If more than
one is found, a surgery may be selected from a list presented to the user.
VARIABLES TYPE VARIABLES DESCRIPTION
LRDFN Input
(Required)  This is the LRDFN (#.01) from the
patient's record in the LAB DATA file (#63).  Based on the provided LRDFN, the
code checks the PARENT FILE field (#.02).  This field should contain a value
of 2, indicating the PATIENT file (#2).  If not, program execution ends.
DFN Input
(Optional)  This is the patient's DFN from the
PATIENT file (#2).  If this variable is not already defined, the program sets
it to the value stored in the NAME field (#.03) of the LAB DATA file (#63).
SRTN Output
Based on the DFN for the patient, a list of surgeries
from the last seven days is presented to the user.  The IEN from the SURGERY
file (#130) for the chosen surgery is return in variable SRTN.  If no surgery
was found or was selected by the user, SRTN will be undefined.
SRDOC Output
If the chosen surgery is a non-OR procedure, the
PROVIDER (#123) of the SURGERY file (#130) is returned in variable SRDOC.  If
it is an OR procedure, the SURGEON (#.14) of the SURGERY file (#130) is
returned in variable SRDOC.  The value in SRDOC will then be stored in field
SURGEON/PHYSICIAN (sub-field #.07) of SURGICAL PATHOLOGY (#8) of the LAB DATA
file (#63).
DISP
This component/entry point is used to extract data
from the SURGERY file (#130) for the surgery selected in component SROSPLG and
store it in the corresponding sub-fields of SURGICAL PATHOLOGY (#8) of the LAB
DATA file (#63).  These fields include BRIEF CLINICAL HISTORY (#.013),
PREOPERATIVE DIAGNOSIS (#.014), OPERATIVE FINDINGS (#.015), POSTOPERATIVE
DIAGNOSIS (#.016).
VARIABLES TYPE VARIABLES DESCRIPTION
SRTN Input
(Required)  The IEN from the SURGERY file (#130) for
the surgery chosen in component SROSPLG.
LRDFN Input
(Required)  This is the LRDFN (#.01) from the
patient's record in the LAB DATA file (#63).
LRSS Input
(Required)  The accession area for the record in the
LAB DATA file (#63).  It will always be "SP" for SURGICAL PATHOLOGY (#8).
LRI Input
(Required) The inverse DATE/TIME SPECIMEN TAKEN
(sub-field #.01) of SURGICAL PATHOLOGY (#8) of the LAB DATA file (#63).
SUBSCRIBING PACKAGE
SUBSCRIBING PACKAGE ISC
LAB SERVICE Dallas