View medicare.qc_adm_union
Overview for medicare.qc_adm_union
Union of data from admissions table with the records discarded because of validation issues
Transformed from medicare.admissions
SQL/DDL Statement
CREATE view medicare.qc_adm_union AS SELECT reason,
year,
state,
state_iso,
admission_year,
diagnoses,
zip,
admission_date,
discharge_date,
adm_day_of_week,
primary_diagnosis,
bene_id,
bene,
pd_hll_hash,
icd_hll
FROM medicare_audit.admissions
UNION ALL
SELECT 'OK'::VARCHAR AS reason,
year,
state,
state_iso,
admission_year,
diagnoses,
zip,
admission_date,
discharge_date,
adm_day_of_week,
primary_diagnosis,
bene_id,
bene,
pd_hll_hash,
icd_hll
FROM medicare.admissions
;
COMMENT ON view medicare.qc_adm_union 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.799737';
Columns:
Column Name |
Column Type |
Datatype |
---|---|---|
copied |
INT |
|
copied |
DATE |
|
generated |
INT |
|
generated |
HLL_HASHVAL |
|
copied |
string |
|
copied |
string |
|
copied |
DATE |
|
generated |
HLL |
|
generated |
HLL_HASHVAL |
|
copied |
string |
|
computed |
string |
|
copied |
string |
|
generated |
char(5) |
|
computed |
INT |
|
copied |
INT |