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

Intergy Version: 22.00.00.00

PaymentAssignment

Table Definition  Parent Tables  Child Tables

Table Definition

Description: This table is used to record how a payment is assigned to various charges, etc.

Field Datatype Default Null Option Comment
PaymentSID INTEGER ?   MANDATORY FK
ChargeSID INTEGER ?   MANDATORY FK
ActivityCount INTEGER 0   MANDATORY FK
AccountSID INTEGER ?   MANDATORY FK
JournalSID INTEGER ?   MANDATORY FK
PostDate DATE   MANDATORY FK
Amount DECIMAL(10,2) 0   OPTIONAL User entered amount.
PatientBilled CHARACTER(1)   MANDATORY Flag to indicate if the charge has been put on a bill to the patient.
PatientStatement CHARACTER(1)   MANDATORY Flag to indicate if the item has been put on a statement to the patient.
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.
CreditedPlanID INTEGER ?   OPTIONAL FK

Parent Tables
Parent TableJoin PhraseWhen deleting parent record...
Plan PaymentAssignment.CreditedPlanID = Plan.PlanID RESTRICT if PaymentAssignment exists
ChargeActivity PaymentAssignment.ChargeSID = ChargeActivity.ChargeSID and
PaymentAssignment.ActivityCount = ChargeActivity.ActivityCount
CASCADE if PaymentAssignment exists
Payment PaymentAssignment.PaymentSID = Payment.PaymentSID RESTRICT if PaymentAssignment exists
Account PaymentAssignment.AccountSID = Account.AccountSID RESTRICT if PaymentAssignment exists

Child Tables
Child TableJoin PhraseWhen deleting PaymentAssignment record...
PlanClaimChargeRemit PlanClaimChargeRemit.PaymentSID = PaymentAssignment.PaymentSID and
PlanClaimChargeRemit.PaymentChargeSID = PaymentAssignment.ChargeSID and
PlanClaimChargeRemit.ActivityCount = PaymentAssignment.ActivityCount
SET NULL if PlanClaimChargeRemit exists
PaymentReversal PaymentReversal.PaymentSID = PaymentAssignment.PaymentSID and
PaymentReversal.ChargeSID = PaymentAssignment.ChargeSID and
PaymentReversal.AssignmentActivityCount = PaymentAssignment.ActivityCount
RESTRICT if PaymentReversal exists