Skip to main content

User allergy reactions fact table (Redshift)

Bi_FactUserAllergyReactions

Fact table recording the specific reactions associated with guest allergy entries.

Field

Field type

Description

Primary Key

Mapped Dimension table

Mapped Dimension field

FactUserAllergyReactionsWId

BIGINT IDENTITY

Surrogate warehouse key for the user allergy reaction fact record

PK

FactSegmentId

DECIMAL(19,0)

Business/natural key for the fact segment

UserAllergyReactionPK

BIGINT

Source system primary key of the user allergy reaction record

UserAllergyReactionId

VARCHAR(36)

Unique identifier (GUID) of the allergy reaction record

UserAllergyFK

BIGINT

Foreign key reference to the parent user allergy record (source system)

reactionwid

BIGINT

Foreign key to the health condition master dimension (reaction lookup)

Bi_DimEMRHealthConditionMaster

EMRHealthConditionMasterWId

ReactionFK

VARCHAR(36)

Identifier (GUID) of the reaction from the health condition master

ReactionName

NVARCHAR(255)

Name of the allergy reaction

OrganizationId

VARCHAR(36)

Unique identifier (GUID) of the organization

Active

BOOLEAN

Indicates whether the allergy reaction record is currently active

CreatedByWid

BIGINT

Foreign key to the user dimension for the record creator

Bi_DimUser

userwid

CreatedBy

VARCHAR(36)

Identifier (GUID) of the user who created the record

CreatedDate

TIMESTAMP

Timestamp when the record was created

UpdatedByWid

BIGINT

Foreign key to the user dimension for the last updater

Bi_DimUser

userwid

UpdatedBy

VARCHAR(36)

Identifier (GUID) of the user who last updated the record

UpdatedDate

TIMESTAMP

Timestamp when the record was last updated

centerwid

BIGINT

Foreign key to the center dimension

Bi_DimCenter

centerwid

CenterId

VARCHAR(36)

Unique identifier (GUID) of the center

EtlCreatedBy

BIGINT

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 has been voided/soft-deleted

PodName

NVARCHAR(100)

Name of the source pod from which the data originated

groupid

BIGINT

Group identifier for multi-tenant partitioning