User medical history fact table (s3)
Bi_FactUserMedicalHistory_s3
Fact table recording guests' medical-history entries, including diagnosed health conditions, diagnosis dates, resolution status, family history, and genetic-risk flags.
Field | Field type | Description | Primary Key | Mapped Dimension table | Mapped Dimension field |
|---|---|---|---|---|---|
FactSegmentId | DECIMAL(19,0) | Business/natural key for the fact segment | |||
MedicalHistoryPK | BIGINT | Source system primary key of the medical history record | PK | ||
MedicalHistoryID | VARCHAR(36) | GUID of the medical history record | |||
UserId | VARCHAR(36) | GUID of the user/guest | Bi_DimUser | ||
HealthConditionID | VARCHAR(36) | GUID of the health condition | Bi_DimEMRHealthConditionMaster | ||
ConditionName | NVARCHAR(256) | Name of the health condition | |||
Category | SMALLINT | Category code classifying the health condition type; see EMR domain definition | |||
DiagnosisDate | TIMESTAMP | Date when the condition was diagnosed | |||
Status | SMALLINT | Status code of the medical history record; see EMR domain definition | |||
ResolutionDate | TIMESTAMP | Date when the condition was resolved | |||
Notes | NVARCHAR(512) | Clinical notes associated with the medical history record | |||
IsFamilyHistory | BOOLEAN | Whether this is a family history record rather than a personal diagnosis | |||
UserRelationID | VARCHAR(36) | GUID of the relationship type for family history records | Bi_DimOrgUserRelationship | ||
IsGeneticRisk | BOOLEAN | Whether the condition represents a genetic risk factor | |||
RelatedType | INT | Code indicating the type of entity this 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 | |||
OrganizationId | VARCHAR(36) | GUID of the organization | Bi_DimCenter | ||
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 |