Table cms.mbsf_ab_2013
Overview for cms.mbsf_ab_2013
Primary Key: FILE, RECORD
SQL/DDL Statement
CREATE TABLE cms.mbsf_ab_2013 (
BENE_ID VARCHAR(15),
RFRNC_YR INT,
FIVEPCT VARCHAR(1),
EFIVEPCT VARCHAR(1),
COVSTART DATE,
CRNT_BIC VARCHAR(2),
STATE_CD VARCHAR(2),
CNTY_CD VARCHAR(3),
BENE_ZIP VARCHAR(9),
AGE INT,
BENE_DOB DATE,
V_DOD_SW VARCHAR(1),
DEATH_DT DATE,
NDI_DEATH_DT DATE,
SEX VARCHAR(1),
RACE VARCHAR(1),
RTI_RACE_CD VARCHAR(1),
OREC VARCHAR(1),
CREC VARCHAR(1),
ESRD_IND VARCHAR(1),
MS_CD VARCHAR(2),
A_TRM_CD VARCHAR(1),
B_TRM_CD VARCHAR(1),
A_MO_CNT INT,
B_MO_CNT INT,
BUYIN_MO INT,
HMO_MO INT,
BUYIN01 VARCHAR(1),
BUYIN02 VARCHAR(1),
BUYIN03 VARCHAR(1),
BUYIN04 VARCHAR(1),
BUYIN05 VARCHAR(1),
BUYIN06 VARCHAR(1),
BUYIN07 VARCHAR(1),
BUYIN08 VARCHAR(1),
BUYIN09 VARCHAR(1),
BUYIN10 VARCHAR(1),
BUYIN11 VARCHAR(1),
BUYIN12 VARCHAR(1),
HMOIND01 VARCHAR(1),
HMOIND02 VARCHAR(1),
HMOIND03 VARCHAR(1),
HMOIND04 VARCHAR(1),
HMOIND05 VARCHAR(1),
HMOIND06 VARCHAR(1),
HMOIND07 VARCHAR(1),
HMOIND08 VARCHAR(1),
HMOIND09 VARCHAR(1),
HMOIND10 VARCHAR(1),
HMOIND11 VARCHAR(1),
HMOIND12 VARCHAR(1),
FILE VARCHAR(128),
RECORD BIGSERIAL,
STATE VARCHAR(2) GENERATED ALWAYS AS (STATE_CD) STORED,
YEAR INT GENERATED ALWAYS AS (RFRNC_YR) STORED,
ZIP VARCHAR(9) GENERATED ALWAYS AS (BENE_ZIP) STORED,
PRIMARY KEY (FILE, RECORD)
);
CREATE INDEX mbsf_ab_2013_FILE_idx ON cms.mbsf_ab_2013 USING BTREE (FILE) ;
COMMENT ON table cms.mbsf_ab_2013 IS 'CREATED BY Dorieh: {"version": "0.2.3", "url": "https://github.com/NSAPH-Data-Platform/dorieh", "commit": "bf4644403297aaf478f6a42717508dde55da409a"}. Created at 2024-08-12 13:31:09.324286';
Columns:
Column Name |
Column Type |
Datatype |
---|---|---|
INT |
||
VARCHAR(1) |
||
INT |
||
INT |
||
VARCHAR(1) |
||
DATE |
||
VARCHAR(15) |
||
VARCHAR(9) |
||
VARCHAR(1) |
||
VARCHAR(1) |
||
VARCHAR(1) |
||
VARCHAR(1) |
||
VARCHAR(1) |
||
VARCHAR(1) |
||
VARCHAR(1) |
||
VARCHAR(1) |
||
VARCHAR(1) |
||
VARCHAR(1) |
||
VARCHAR(1) |
||
VARCHAR(1) |
||
INT |
||
VARCHAR(3) |
||
DATE |
||
VARCHAR(1) |
||
VARCHAR(2) |
||
DATE |
||
VARCHAR(1) |
||
VARCHAR(1) |
||
file |
VARCHAR(128) |
|
VARCHAR(1) |
||
INT |
||
VARCHAR(1) |
||
VARCHAR(1) |
||
VARCHAR(1) |
||
VARCHAR(1) |
||
VARCHAR(1) |
||
VARCHAR(1) |
||
VARCHAR(1) |
||
VARCHAR(1) |
||
VARCHAR(1) |
||
VARCHAR(1) |
||
VARCHAR(1) |
||
VARCHAR(1) |
||
VARCHAR(2) |
||
DATE |
||
VARCHAR(1) |
||
VARCHAR(1) |
||
BIGSERIAL |
||
INT |
||
VARCHAR(1) |
||
VARCHAR(1) |
||
generated |
VARCHAR(2) |
|
VARCHAR(2) |
||
VARCHAR(1) |
||
generated |
INT |
|
generated |
VARCHAR(9) |