DECEASEDCONSTITUENT

Indicates that a constituent is deceased.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
DECEASEDDATE UDT_FUZZYDATE Default = '00000000' Stores the date of death.
DATEADDED datetime Default = getdate() Indicates the date this record was added.
DATECHANGED datetime Default = getdate() Indicates the date this record was last changed.
TS timestamp Timestamp.
TSLONG bigint (Computed) yes CONVERT(bigint, TS) Numeric representation of the timestamp.
DECEASEDCONFIRMATIONCODE tinyint Default = 0 Contains the deceased finder confirmation code.
ISREVIEWED bit Default = 0 Indicates whether or not deceasing options have been reviewed.
DECEASEDYEARS int (Computed) yes dbo.UFN_AGEFROMFUZZYDATE(DECEASEDCONSTITUENT.DECEASEDDATE,getdate()) For deceased individuals, returns the number of years since death.
DECEASEDCONFIRMATION nvarchar(17) (Computed) yes CASE [DECEASEDCONFIRMATIONCODE] WHEN 0 THEN N'Unconfirmed' WHEN 1 THEN N'Death Certificate' WHEN 2 THEN N'Relative Verified' WHEN 3 THEN N'Obituary Date' END

Foreign Keys

Foreign Key Field Type Null Notes Description
ID uniqueidentifier CONSTITUENT.LOCALID Primary Key.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
DECEASEDSOURCECODEID uniqueidentifier yes DECEASEDSOURCECODE.ID Deceased confirmation source.

Indexes

Index Name Fields Unique Primary Clustered
IX_DECEASEDCONSTITUENT_DATEADDED DATEADDED yes
IX_DECEASEDCONSTITUENT_DATECHANGED DATECHANGED
PK_DECEASEDCONSTITUENT ID yes yes

Triggers

Trigger Name Description
TR_DECEASEDCONSTITUENT_T2BDELETE
TR_DECEASEDCONSTITUENT_T2BINSERTUPDATE
TR_DECEASEDCONSTITUENT_AUDIT_UPDATE
TR_DECEASEDCONSTITUENT_AUDIT_DELETE