entity_physician_locations

This table tracks all possible locations a physician bills from.  It is associated with CMS Physician Compare Data.  Essentially, they duplicate a physician for each location it bills from.  This system encourages less duplication by simply linking an entity_id to all of its addresses in a lookup table.

Table Structure

CREATE TABLE IF NOT EXISTS `entity_physician_locations` (
`location_id` int(20) NOT NULL,
`entity_id` int(10) DEFAULT NULL,
`address` varchar(255) DEFAULT NULL,
`address_line2` varchar(255) DEFAULT NULL,
`city` varchar(255) DEFAULT NULL,
`state` varchar(25) DEFAULT NULL,
`state_fips` varchar(2) DEFAULT NULL,
`zipcode` varchar(25) DEFAULT NULL,
`county_name` varchar(64) DEFAULT NULL,
`county_fips` varchar(3) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2026831 DEFAULT CHARSET=latin1;

 

Field Information

`location_id` an automatically generated id number that is unique for each entity and address combination
`entity_id` outside link to the entities table, identifies the physician associated with the row
`address` location information
`address_line2` secondary information on location, if any
`city`
`state`
`state_fips` 2 digit FIPS code generated nationally
`county_name` name of the county where the physician address is located
`county_fips` 3 digit FIPS code generated nationally

 

Fields

field
type
attributes
notes
example
entity_physician_locations.location_idint(20)UNSIGNED NOT NULL AUTO_INCREMENTIdentifier that is generated for each entity_id, address combination1
entity_physician_locations.entity_idint(10)DEFAULT NULLForeign Key: link to entity_physicians table. Gives information on physician who practices at the address123456
entity_physician_locations.addressvarchar(255)DEFAULT NULLLocation Information123 Fake St.
entity_physician_locations.address_line2varchar(255)DEFAULT NULLAdditional Location Information, if providedBuilding 2
entity_physician_locations.cityvarchar(255)DEFAULT NULLCity LocationLake Success
entity_physician_locations.statevarchar(25)DEFAULT NULLState LocationNY
entity_physician_locations.state_fipsvarchar(3)DEFAULT NULLState FIPS code, nationally defined01
entity_physician_locations.county_namevarchar(64)DEFAULT NULLCounty LocationNassau
entity_physician_locations.county_fipsvarchar(3)DEFAULT NULLCounty FIPS code, nationally defined001