Last Updated: 7/22/2025 8:42:49 PM

Intergy Version: 22.00.00.00

LabOrderTask

Table Definition  Parent Tables  Child Tables

Table Definition

Description: This table holds tasks for lab order creation.

Field Datatype Default Null Option Comment
LabOrderTaskSID INTEGER ?   MANDATORY System generated unique identifier. Uses the Lab sequence.
PracticeID INTEGER ?   MANDATORY FK
FavoriteSID INTEGER ?   MANDATORY System generated unique identifier for favorite lab orders. Uses the Lab sequence.
StaffID INTEGER ?   MANDATORY FK
PatientID INTEGER ?   MANDATORY FK
DiagnosisCode CHARACTER(10)   OPTIONAL The diagnosis code corresponding to the diagnosis. User entered.
DiagnosisFlag CHARACTER(1)   OPTIONAL Indicates the task diagnosis overrides the lab favorite order diagnosis. Possible values: (U)se Defaults , Use (P)atient last diagnosis and (N)one (O)verride
SelectFlag CHARACTER(1)   OPTIONAL Indicates if the lab order task is associated to one or multiple labs. Possible values: (N)o selection , (M)ulti Lab Order and (S)election of one Lab required
TimeStamp CHARACTER(14)   OPTIONAL System generated date/time stamp record was last written.
LastUser INTEGER ?   OPTIONAL User ID of user that last wrote the record.
CreateStamp CHARACTER(14)   OPTIONAL System generated date/time stamp record was created.
CreateUser INTEGER ?   OPTIONAL User ID of user that created the record.
AssignedUser INTEGER ?   MANDATORY FK - Practice user to which the task is assigned to.
Note CHARACTER(32000)   OPTIONAL User entered note regarding the lab order task.
EncounterSID INTEGER ?   OPTIONAL FK - Encounter used for clinicals
EnteredStamp CHARACTER(14)   OPTIONAL Date/Time stamp of when the user entered this information.
EnteredByUser INTEGER ?   OPTIONAL FK to MMUser UserID of the person who entered the lab order task.

Parent Tables
Parent TableJoin PhraseWhen deleting parent record...
Encounter LabOrderTask.EncounterSID = Encounter.EncounterSID RESTRICT if LabOrderTask exists
Diagnosis LabOrderTask.DiagnosisCode = Diagnosis.DiagnosisCode NONE if LabOrderTask exists
Patient LabOrderTask.PracticeID = Patient.PracticeID and
LabOrderTask.PatientID = Patient.PatientID
CASCADE if LabOrderTask exists
Staff LabOrderTask.PracticeID = Staff.PracticeID and
LabOrderTask.StaffID = Staff.StaffID
CASCADE if LabOrderTask exists

Child Tables
Child TableJoin PhraseWhen deleting LabOrderTask record...
LabOrderTaskTest LabOrderTaskTest.LabOrderTaskSID = LabOrderTask.LabOrderTaskSID CASCADE if LabOrderTaskTest exists