Skip to main content

User social history fact table (s3)

Bi_FactUserSocialHistory_s3

Fact table recording guests' social-history entries captured via custom EMR fields, including field values and clinical context.

Field

Field type

Description

Primary Key

Mapped Dimension table

Mapped Dimension field

FactSegmentId

DECIMAL(19,0)

Business/natural key for the fact segment

UserSocialHistoryPK

BIGINT

Source system primary key of the user social history record

PK

UserId

VARCHAR(36)

GUID of the user/guest

Bi_DimUser

OrganizationId

VARCHAR(36)

GUID of the organization

Bi_DimCenter

EntityFieldId

INT

Source system integer identifier of the entity field

Bi_DimEMREntityField

FieldValue

NVARCHAR(512)

Value entered for the entity field

FieldValueId

NVARCHAR(255)

Identifier of the selected option value for the field

RelatedType

INT

Code indicating the type of entity this social history is related to; see EMR domain definition

RelatedId

VARCHAR(36)

GUID of the related entity

FormId

VARCHAR(36)

GUID of the form through which the record was captured

RelatedTime

TIMESTAMP

Timestamp of the related entity event

CriticalType

SMALLINT

Criticality classification code; see EMR domain definition

CreatedBy

VARCHAR(36)

GUID of the user who created the record

CreatedDate

TIMESTAMP

Timestamp when the record was created

UpdatedBy

VARCHAR(36)

GUID of the user who last updated the record

UpdatedDate

TIMESTAMP

Timestamp when the record was last updated

CenterId

VARCHAR(36)

GUID of the center

Bi_DimCenter

EtlCreatedBy

DECIMAL(19,0)

ID of the ETL process/user that created this record

EtlCreatedDate

TIMESTAMP

Timestamp when the ETL process created this record

Void

BOOLEAN

Indicates whether the record is voided (soft-deleted)

PodName

VARCHAR(20)

Name of the source pod from which the data originated

groupid

BIGINT

Identifier for the data group used in ETL partitioning