mpi_memexta and mpi_memexta_h

The mpi_memexta table stores a composite view of a member.

Expanded name
Member Extension-A
Table category
This table stores a composite view of a member. It represents an extension of the core data model data types. Whereas it is possible to store each attribute as a separate type, creating many different segments (MEMNAME, MEMADDR and MEMATTRs), this particular view has been constructed for performance purposes. The “_h” table supports the storage of point-in-time history.
This table is a child table of mpi_memhead. The record must belong to one of the defined segments specified in mpi_segattr. Record creation and modification times are associated with mpi_audhead records.
Table 1. mpi_memexta Attribute Descriptions
Attribute Description
daudrecno Deletion of this particular record, from mpi_audhead. This field only appears in the "_h" table.
memrecno Unique member number from mpi_memhead
memseqno Member Sequence Number is a system generated value used to provide a unique primary key for attributes rows within a member; obtained from mpi_memhead.

The operational server permits multiple values for a given attribute type (for example, HOMEPHONE). The value is generated by looking at the value in mpi_memhead.memseqno. When a member is new, this value is 1. Each time an attribute is added for the member, the memseqno value is incremented. Later, attributes might get deleted or trimmed by the auto-history-purge mechanism and there can be gaps in the number sequence. The gap in sequence is not important; the software just cares that there is a unique value for each existing row.

Currently the operational server does not reference memseqno for attribute history management. Rather common values are collapsed into a single row in the database with a date stamp for the first time the value was seen in the database. A date stamp for the last time the database knew this value to be true is also stored. By maintaining memseqno however, the ability to modify history management if required in future versions is retained.

caudrecno Creation of this particular record, from mpi_audhead
maudrecno Last time the record value was modified, from mpi_audhead
recstat Record status; options are:

A – Active. The record is current and should be used in all matching-related activities.

I – Inactive. The record is not current and should not be used in matching-related activities, but is retained for retrieval due to historical significance.

D – Deleted. The record is marked for deletion, pending a purge of data, and should not be used in matching-related activities.

S – Shadow. The record is current, and should be used in all matching-related activities. The record is somewhat in limbo, pending verification due to workflow-related activities in the task-oriented tables.

attrrecno Attribute record number, from mpi_segattr
asaidxno Attribute Sparse Array Index; used to subdivide a given attribute and permit the association of multiple occurrences of the same attribute type.

The primary function of asaidxno is to direct the placement of attribute values from source systems into slots in the MDM database. For example, multiple Name values can be received from a single source. If the source system can distinguish between the multiple names, you can use asaidxno to make sure that the MDM database keeps that same distinction. An asaidxno number is assigned to each incoming value and the value is then slotted accordingly in the MDM database, such as HOMEPHONE[1] 111-1111, HOMEPHONE[2] 222-2222, HOMEPHONE[3] 333-3333.

The source system can then specify that they are changing the value for the HOMEPHONE[1], as opposed to a non-asaidxno setup where all of the phone values would be mixed together.

Asaidxno further works in association with the nsActive and nsExists settings in mpi_segattr to enable the process of tracking active and inactive values at the asaidxno level (mpi_segattr).

The inbound message broker process uses the asaidxno to indicate where to store the attribute value in the MDM database, while the outbound message broker process uses it to direct the return of attribute values from the MDM database to the source.

subidnum Sub ID number
hpmemidnum Member ID number
hpsubidnum Sub ID number
hppolidnum Policy ID number
memexpdate Expiration date
empname Employer name
onmlast Last name
onmfirst First name
onmmiddle Middle name
onmprefix Prefix for name (for example, Dr., Mr., Ms.)
onmsuffix Suffix for name (for example, II, III)
dob Customer date of birth
sex Customer gender
ssn Customer Social Security number
stline1 First line of street address
stline2 Second line of street address
city Address city
state Address state or province
zipcode Address Zip Code
country Address country
comtype1 Composite data type 1
comdata1 Composite data 1
comtype2 Composite data type 1
comdata2 Composite data 1
comtype3 Composite data type 1
comdata3 Composite data 1

mpi_memexta SQL:

CREATE TABLE mpi_memexta 
daudrecno   bigint		NOT NULL, 
memrecno    bigint		NOT NULL,
memseqno    smallint		NOT NULL,
caudrecno   bigint		NOT NULL,
maudrecno   bigint		NOT NULL,
recstat     nchar(1)		NOT NULL,
attrrecno   smallint		NOT NULL,
asaidxno    smallint		NOT NULL
subidnum    nvarchar(60)	NULL,
hpmemidnum  nvarchar(30)	NULL,
hpsubidnum  nvarchar(30)	NULL,
hppolidnum  nvarchar(30)	NULL,
memexpdate  datetime		NULL,
empname     nvarchar(35)	NULL,
onmlast     nvarchar(75)	NULL,
onmfirst    nvarchar(30)	NULL,
onmmiddle   nvarchar(30)	NULL,
onmprefix   nvarchar(10)	NULL,
onmsuffix   nvarchar(10)	NULL,
dob         datetime		NULL,
sex         nvarchar(1)		NULL,
ssn         nvarchar(9)		NULL,
stline1     nvarchar(60)	NULL,
stline2     nvarchar(60)	NULL,
city        nvarchar(30)	NULL,
state       nvarchar(15)	NULL,
zipcode     nvarchar(15)	NULL,
country     nvarchar(3)		NULL,
comtype1    nvarchar(2)		NULL,
comdata1    nvarchar(80)	NULL,
comtype2    nvarchar(2)		NULL,
comdata2    nvarchar(80)	NULL,
comtype3    nvarchar(2)		NULL,
comdata3    nvarchar(80)	NULL
CREATE UNIQUE INDEX mpi_memexta1 ON mpi_memexta (memrecno, memseqno)