Skip to main content

EMR medication master dimension table (Redshift)

Bi_DimEMRMedicationMaster

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

Field

Field type

Description

Primary Key

Mapped Dimension table

Mapped Dimension field

EMRMedicationMasterWId

BIGINT IDENTITY

Surrogate warehouse key for the medication master record

PK

MedicationId

VARCHAR(36)

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

MedicationName

NVARCHAR(255)

Name of the medication

ExternalId

NVARCHAR(255)

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

ExternalCode

NVARCHAR(255)

Code from an external medication reference system

FullySpecifiedName

NVARCHAR(512)

Fully specified clinical name of the medication

Synonyms

NVARCHAR(512)

Alternate names or synonyms for the medication

OrganizationId

VARCHAR(36)

Unique identifier (GUID) of the organization

an organization entity in the source system

Active

BOOLEAN

Indicates whether the medication 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

DataSource

SMALLINT

Code indicating the source of the medication data; see EMR domain definition

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