Skip to main content

EMR allergy master dimension table (Redshift)

Bi_DimEMRAllergyMaster

Master dimension table containing the complete catalog of allergens, including names, categories, synonyms, and external system mappings.

Field

Field type

Description

Primary Key

Mapped Dimension table

Mapped Dimension field

EMRAllergyMasterWId

BIGINT IDENTITY

Surrogate warehouse key for the allergy master record

PK

AllergyId

VARCHAR(36)

Unique identifier (GUID) of the allergy record from the source system

AllergenName

NVARCHAR(255)

Name of the allergen

Category

SMALLINT

Category code classifying the allergen type; see EMR domain definition

OrganizationId

VARCHAR(36)

Unique identifier (GUID) of the organization

an organization entity in the source system

ExternalId

NVARCHAR(255)

Identifier from an external allergy reference system (e.g., SNOMED, RxNorm)

ExternalCode

NVARCHAR(255)

Code from an external allergy reference system

FullySpecifiedName

NVARCHAR(512)

Fully specified clinical name of the allergen

Synonyms

NVARCHAR(512)

Alternate names or synonyms for the allergen

Active

BOOLEAN

Indicates whether the allergy master record is currently active

Void

BOOLEAN

Indicates whether the record has been voided/soft-deleted

CreatedBy

VARCHAR(36)

Identifier (GUID) of the user who created the record

CreatedDate

TIMESTAMP

Timestamp when the record was created

UpdatedBy

VARCHAR(36)

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

UpdatedDate

TIMESTAMP

Timestamp when the record was last updated

LocalizationId

NVARCHAR(255)

Localization identifier for multi-language support

groupid

BIGINT

Group identifier for multi-tenant partitioning

EtlCreatedDate

TIMESTAMP

Timestamp when the ETL process created this record

PodName

NVARCHAR(100)

Name of the source pod from which the data originated