Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Summary

Separate entities for home health institutions. Originally, this table was intended to track homes health facilities for NY state, but value generation was expanded to include data from the CMS Home Health Compare Data set, which includes national data.  An entity_id is generated, which is unique to the entities table, and can also be linked to entity_home_health_attributes and entity_home_health_overrides.

 

Table Creation


CREATE TABLE IF NOT EXISTS `entity_home_healths` ( 
`entity_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 
`mpn_id` varchar(15) DEFAULT NULL, 
`local_id` varchar(15) DEFAULT NULL, 
`local_id2` varchar(15) DEFAULT NULL, 
`name` varchar(255) DEFAULT NULL, 
`aka` varchar(255) DEFAULT NULL, 
`address` varchar(255) DEFAULT NULL, 
`city` varchar(255) DEFAULT NULL, 
`state` enum ('AK','AL','AR','AZ','CA','CO','CT','DC','DE','FL','GA','GU','HI','IA','ID','IL', 
'IN','KS','KY','LA','MA','MD','ME','MI','MN','MO','MP','MS','MT','NC','ND','NE','NH','NJ','NM', 
'NV','NY','OH','OK','OR','PA','PR','RI','SC','SD','TN','TX','US','UT','VA','VI','VT','WA','WI','WV','WY') DEFAULT NULL, 
`state_fips` varchar(10) DEFAULT NULL, 
`zipcode` varchar(5) DEFAULT NULL, 
`county_name` varchar(30) DEFAULT NULL, 
`county_fips` varchar(10) DEFAULT NULL, 
`region` varchar(25) DEFAULT , 
`phone_number` varchar(46) DEFAULT NULL, 
`fax_number` varchar(25) DEFAULT NULL, 
`url` varchar(200) DEFAULT NULL, 
`entity_type` varchar(25) DEFAULT NULL, 
`service_id` varchar(255) DEFAULT NULL, 
`ipro_ownership_group` varchar(100) DEFAULT NULL, 
`ownership` varchar(100) DEFAULT NULL, 
`operator_address` varchar(255) DEFAULT NULL, 
`operator_city` varchar(255) DEFAULT NULL, 
`operator_state` enum ('AK','AL','AR','AZ','CA','CO','CT','DC','DE','FL','GA','GU','HI','IA','ID','IL','IN', 
'KS','KY','LA','MA','MD','ME','MI','MN','MO','MP','MS','MT','NC','ND','NE','NH','NJ','NM','NV','NY','OH', 
'OK','OR','PA','PR','RI','SC','SD','TN','TX','US','UT','VA','VI','VT','WA','WI','WV','WY') DEFAULT NULL, 
`operator_zipcode` varchar(5) DEFAULT NULL, 
`specialties` varchar(50) DEFAULT NULL, 
`aa_br` smallint(6) NOT NULL DEFAULT '0', 
`aa_cb` tinyint(4) DEFAULT '0', 
`aa_sn` tinyint(4) DEFAULT '0', 
`aa_da` varchar(25) DEFAULT NULL, 
`opened_date` date NOT NULL DEFAULT '0000-00-00', 
`closed_date` date DEFAULT NULL, 
`created` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', 
`modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP, 

PRIMARY KEY (`entity_id`), 
UNIQUE KEY `hh_pfi_idx` (`entity_type`,`local_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=14265 ; 
ALTER TABLE `entity_home_healths` 
ADD CONSTRAINT `entity_home_healths_ibfk_1` FOREIGN KEY (`entity_id`) REFERENCES `entities` (`entity_id`) ON DELETE CASCADE;

 

Field Information


`entity_id` the unique ID that is created by IPRO and links this table to the 
entities table 
`mpn_id` the medicare provider number 
`local_id` other identifying number associated with the entity. In this case it is generally the PFI number 
`local_id2` secondary local id. Often is the opcert number 
`name` publicly recognized name for the home health 
`aka` alias for the entity 
`address` 
`city` 
`state` 
`state_fips` the federal fips code associated with the state 
`zipcode` 
`county_name` 
`county_fips` the fips code assigned to the county. Generally 3-digit 
`region` the region that this entity resides in. This field may be removed later on. 
`phone_number` 
`fax_number` 
`url` website for the entity 
`entity_type` abbreviated classification for the entity 
`service_id` extended entity_type classification 
`ipro_ownership_group` details regarding the nature of the entity (for profit/government owned, etc) 
`ownership` describes who owns the entity 
`operator_address` 
`operator_city` 
`operator_state` 
`operator_zipcode` 
`specialties` list of known specialties for the home health entity 
`aa_br` branches 
`aa_cb` is combination? 0 is no, 1 is yes 
`aa_sn` is special needs? 0 is no, 1 is yes 
`aa_da` deeming agency: Information on the agency that deemed the entity 
`opened_date` 
`closed_date` 
`created` 
`modified`

 

Fields

fieldtypeattributesnotesexample
entity_idBIGINT(20)unsigned NOT NULLfrom Entities102034
mpn_idVARCHAR(15)DEFAULT NULLProvided by CMS data031246
local_idVARCHAR(15)DEFAULT NULLPFI Number provided by source4899
local_id2VARCHAR(15)DEFAULT NULLAlternate local_id0101600
nameVARCHAR(255)DEFAULT NULL St. John's Home Health
akaVARCHAR(255)DEFAULT NULL Saint John's HH
addressVARCHAR(255)DEFAULT NULL 123 Fake St.
cityVARCHAR(255)DEFAULT NULL Lake Success
stateENUMDEFAULT NULL NY
state_fipsVARCHAR(10)DEFAULT NULLAssigned by federal government17
zipcodeVARCHAR(5)DEFAULT NULL 11042
county_nameVARCHAR(30)DEFAULT NULL Nassau
county_fipsVARCHAR(10)DEFAULT NULLAssigned by federal/state government007
regionVARCHAR(25)DEFAULT NULLAssigned to area, provided by source5
phone_numberVARCHAR(46)DEFAULT NULL 5161234567
fax_numberVARCHAR(25)DEFAULT NULL 5169876543
urlVARCHAR(200)DEFAULT NULLwebsite associated with the entitywww.albanycounty.com
entity_typeVARCHAR(25)DEFAULT NULLentity's classificationCHHA
service_idVARCHAR(255)DEFAULT NULLdetails on the facility or sponsorCertified Home Health Agency
ipro_ownership_groupVARCHAR(100)DEFAULT NULLdetails regarding the ownership classificationGovernment, For Profit
ownershipVARCHAR(100)DEFAULT NULLowner/operator of the entityCounty of Albany
operator_addressVARCHAR(255)DEFAULT NULL 123 Real St.
operator_cityVARCHAR(255)DEFAULT NULL New Hyde Park
operator_stateENUMDEFAULT NULL NY
operator_zipcodeVARCHAR(5)DEFAULT NULL 11040
specialtiesVARCHAR(50)DEFAULT NULL Geriatrics
aa_brSMALLINT(6)NOT NULL DEFAULT 0amount of branches3
aa_cbTINYINT(4)DEFAULT 0is combo? 1=Y 0=N1
aa_snTINYINT(4)DEFAULT 0is special needs? 1=Y 0=N0
aa_daVARCHAR(25)DEFAULT NULLDeeming AgencyAHHA
opened_dateDATENOT NULL DEFAULT 0000-00-00date the HH was opened2009-01-01
closed_dateDATEDEFAULT NULLdate the HH was closed2009-12-31
createdTIMESTAMPNOT NULL DEFAULT 0000-00-00 00:00:00date and time the row was created in YYYY-MM-DD HH:MM:SS format2010-06-14 10:56:37
modifiedTIMESTAMPNOT NULL DEFAULT 0000-00-00 00:00:00date and time the row was last edited in YYYY-MM-DD HH:MM:SS format2010-06-14 10:56:37

 

Notes

  • No labels