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

Intergy Version: 22.00.00.00

Account

Table Definition  Parent Tables  Child Tables

Table Definition

Description: This table is used to store account information.

Field Datatype Default Null Option Comment
AccountSID INTEGER ?   MANDATORY System generated unique id using the Account sequence.
PracticeID INTEGER ?   MANDATORY FK
GuarantorID INTEGER ?   MANDATORY FK - from Entity table. Note that Guarantor can either be a person or a company. Entity.Class dictates the type of guarantor.
AccountNumber CHARACTER(10)   MANDATORY Manual or system generated account number which must form a unique id in combination with the practice code.
AccountStatus CHARACTER(10)   MANDATORY FK
AcctFinanceGroup CHARACTER(6)   MANDATORY User selects account class code. Account class codes are defined in the LookupCode table for the lookup type 'AccountClass'. Codes for lookup type 'AccountClass' are user definable.
Balance DECIMAL(10,2) 0   OPTIONAL Balance following last close operation by practice.
PeriodBalance DECIMAL(10,2) 0   OPTIONAL Balance for last period following last close operation by practice.
LastReportedDate DATE   OPTIONAL Last Statement Date for the Account.
RecordStatus CHARACTER(1)   MANDATORY User selected record status for the account. RecordStatus is defined in the LookupCode table for the lookup type 'RecordStatus'. Codes for lookup type 'RecordStatus' are not user definable. Valid codes are (A)ctive and (I)nactive.
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.
Class CHARACTER(6)   OPTIONAL User entered. Field is supported by the lookup types:[AcctClass]. Values are defined in the LookupCode table for the above lookup types.
MonthlyPayment DECIMAL(10,2) 0   OPTIONAL Monthly minimum payment amount. User entered.
TaxCode CHARACTER(10)   OPTIONAL This field is reserved for future use by an external tax system.
NonPatientAccount CHARACTER(1) No_Value__N_   MANDATORY This flag indicates the account is used by the practice for special purposes and may not have patients assigned to it.
NonPatientAccountType CHARACTER(10)   OPTIONAL This field indicates the type of non-patient account as set by the lookuptype NonPatAcctType.
IndustrialAccount CHARACTER(1) No_Value__N_   OPTIONAL Y = account is an industrial account which indicates that patients on this account are not related to one another. N = account is non industrial which indicates that patients on this account could be related or share the same address (family accounts).
LastStatementAmount DECIMAL(10,2) 0   OPTIONAL Last statement amount for the account.
DNSortAccountNumber CHARACTER(10)   OPTIONAL This is a denormalized field maintained by write triggers whose source is the account number field. It is used for ease of sorting.
DNGuarLastName CHAR(35)   OPTIONAL Denormalized for performance reasons from the Person table or Company table. Do not write to this field. The person and company write triggers will keep field up-to-date.
DNGuarFirstName CHAR(35)   OPTIONAL Denormalized for performance reasons from the Person table. Do not write to this field. The person write triggers will keep field up-to-date.
DNGuarMiddleName CHAR(35)   OPTIONAL Denormalized for performance reasons from the Person table. Do not write to this field. The person write triggers will keep field up-to-date.
DNGuarNameSuffix CHARACTER(20)   OPTIONAL Denormalized for performance reasons from the Person table. Do not write to this field. The person write triggers will keep field up-to-date.
DiscountAdjCode CHARACTER(8)   OPTIONAL Unique tag. User entered.
HL7Updated CHARACTER(1)   OPTIONAL This field indicates if HL7 has processed this table entry and will be used by the DB triggers. values "Y" or "N".
PreviousAcctFinanceGroup CHARACTER(6)   OPTIONAL FK - from AcctFinanceGroupTable

Parent Tables
Parent TableJoin PhraseWhen deleting parent record...
Entity Account.GuarantorID = Entity.EntitySID RESTRICT if Account exists
AccountStatus Account.AccountStatus = AccountStatus.AccountStatus RESTRICT if Account exists
Practice Account.PracticeID = Practice.PracticeID CASCADE if Account exists

Child Tables
Child TableJoin PhraseWhen deleting Account record...
Encounter Encounter.AccountSID = Account.AccountSID SET NULL if Encounter exists
ChargeActivity ChargeActivity.AccountSID = Account.AccountSID RESTRICT if ChargeActivity exists
PaymentAssignment PaymentAssignment.AccountSID = Account.AccountSID RESTRICT if PaymentAssignment exists
AccountBill AccountBill.AccountSID = Account.AccountSID CASCADE if AccountBill exists
Charge Charge.AccountSID = Account.AccountSID RESTRICT if Charge exists
PatientAccount PatientAccount.AccountSID = Account.AccountSID CASCADE if PatientAccount exists
AccountNote AccountNote.AccountSID = Account.AccountSID CASCADE if AccountNote exists
AccountAlert AccountAlert.AccountSID = Account.AccountSID CASCADE if AccountAlert exists
AccountStatement AccountStatement.AccountSID = Account.AccountSID CASCADE if AccountStatement exists