entity_home_healths

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_home_healths.entity_idBIGINT(20)unsigned NOT NULLProvided by Pellucid, FOREIGN KEY: links to entities102034
entity_home_healths.mpn_idVARCHAR(15)DEFAULT NULLProvided by CMS data031246
entity_home_healths.local_idVARCHAR(15)DEFAULT NULLPFI Number provided by source4899
entity_home_healths.local_id2VARCHAR(15)DEFAULT NULLAlternate local_id0101600
entity_home_healths.nameVARCHAR(255)DEFAULT NULLHome Health NameSt. John's Home Health
entity_home_healths.akaVARCHAR(255)DEFAULT NULLAlternative Home Health NameSaint John's HH
entity_home_healths.addressVARCHAR(255)DEFAULT NULLHome Health Physical Location123 Fake St.
entity_home_healths.cityVARCHAR(255)DEFAULT NULLHome Health Physical LocationLake Success
entity_home_healths.stateENUMDEFAULT NULL2 character abbreviation for the stateNY
entity_home_healths.state_fipsVARCHAR(10)DEFAULT NULLAssigned by federal government17
entity_home_healths.zipcodeVARCHAR(5)DEFAULT NULLHome Health 5 Digit Postal Code11042
entity_home_healths.county_nameVARCHAR(30)DEFAULT NULLPhysical LocationNassau
entity_home_healths.county_fipsVARCHAR(10)DEFAULT NULLAssigned by federal/state government007
entity_home_healths.regionVARCHAR(25)DEFAULT NULLAssigned to area, provided by source5
entity_home_healths.phone_numberVARCHAR(46)DEFAULT NULLTelephone Number5161234567
entity_home_healths.fax_numberVARCHAR(25)DEFAULT NULLTelefax Number5169876543
entity_home_healths.urlVARCHAR(200)DEFAULT NULLWebsite associated with the entitywww.albanycounty.com
entity_home_healths.entity_typeVARCHAR(25)DEFAULT NULLEntity's classificationCHHA
entity_home_healths.service_idVARCHAR(255)DEFAULT NULLDetails on the facility or sponsorCertified Home Health Agency
entity_home_healths.ipro_ownership_groupVARCHAR(100)DEFAULT NULLDetails regarding the ownership classificationGovernment, For Profit
entity_home_healths.ownershipVARCHAR(100)DEFAULT NULLOwner/operator of the entityCounty of Albany
entity_home_healths.operator_addressVARCHAR(255)DEFAULT NULLOperator's Physical Location123 Real St.
entity_home_healths.operator_cityVARCHAR(255)DEFAULT NULLOperator's Physical LocationNew Hyde Park
entity_home_healths.operator_stateENUMDEFAULT NULL2 character abbreviation for the stateNY
entity_home_healths.operator_zipcodeVARCHAR(5)DEFAULT NULLOperator's 5 Digit Postal Code11040
entity_home_healths.specialtiesVARCHAR(50)DEFAULT NULLThe Specialties of the Home HealthGeriatrics
entity_home_healths.aa_brSMALLINT(6)NOT NULL DEFAULT 0Amount of branches3
entity_home_healths.aa_cbTINYINT(4)DEFAULT 0Is combo? 1=Y 0=N1
entity_home_healths.aa_snTINYINT(4)DEFAULT 0Is special needs? 1=Y 0=N0
entity_home_healths.aa_daVARCHAR(25)DEFAULT NULLDeeming AgencyAHHA
entity_home_healths.opened_dateDATENOT NULL DEFAULT 0000-00-00Date the HH was opened2009-01-01
entity_home_healths.closed_dateDATEDEFAULT NULLDate the HH was closed2009-12-31
entity_home_healths.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
entity_home_healths.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