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

Intergy Version: 22.00.00.00

AilmentDiagnosis

Table Definition  Parent Tables  Child Tables

Table Definition

Description: This table is used to record the diagnosis codes for an ailment.

Field Datatype Default Null Option Comment
AilmentSID INTEGER ?   MANDATORY FK
UBDiagnosisType CHAR(1) Alpha_-_O   MANDATORY The type of UB diagnosis. O = Other, V = Reason for Visit, E = External Cause of Injury, A = Admitting Diagnosis.
OrderNumber INTEGER 0   MANDATORY Programmatically set sequential number of the diagnosis code on the ailment.
DiagnosisCode CHARACTER(10)   MANDATORY FK
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.
PresentOnAdmission CHAR(1)   OPTIONAL Specifies whether or not the diagnosis was present on admission. Possible values include: Y = Yes , N = No , U = Unknown , W = Not Applicable.

Parent Tables
Parent TableJoin PhraseWhen deleting parent record...
Ailment AilmentDiagnosis.AilmentSID = Ailment.AilmentSID CASCADE if AilmentDiagnosis exists
Diagnosis AilmentDiagnosis.DiagnosisCode = Diagnosis.DiagnosisCode RESTRICT if AilmentDiagnosis exists

Child Tables
Child TableJoin PhraseWhen deleting AilmentDiagnosis record...