Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Summary

 

The entity_practices table contains information on the practices reported in RDE and BTE files. The table is updated monthly. It contains details on the practice and its operating specifications. The entity_id field links to the entities, having the same id existing in both tables and acting as a key.  The entity_id also acts as a link to the entity_practice_attributes and entity_practice_overrides tables.


 The practice_id field in entity_physicians is used to link physicians to their entity_practice, similar to the link between entity_hospitals and entity_systems.

 

Table Creation

CREATE TABLE IF NOT EXISTS `entity_practices` (
`entity_id` int(20) NOT NULL,
`upin_id` varchar(10) DEFAULT NULL,
`npi_id` varchar(10) DEFAULT NULL,
`dea_id` varchar(10) DEFAULT NULL,
`rde_id` varchar(10) DEFAULT NULL,
`tax_id` varchar(20) DEFAULT NULL,
`med_license_id` varchar(10) DEFAULT NULL,
`practice_name` varchar(255) DEFAULT NULL,
`address` varchar(255) DEFAULT NULL,
`city` varchar(255) DEFAULT NULL,
`state` varchar(2) 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,
`phone_number` varchar(46) DEFAULT NULL,
`closed_date` date DEFAULT NULL,
`created` timestamp NULL DEFAULT NULL,
`modified` timestamp NULL DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

 

Field Information

`entity_id` the identifying entity number. Same as entity_id in the 

entities  and serves as a link
`upin_id` alternative to the npi_id. Given as an identifier
`npi_id` national provider number derived from https://nppes.cms.hhs.gov/NPPES/NPIRegistryHome.do
`dea_id` identification number provided by the DEA
`rde_id` identifying RDE number for the administrative physician for the
practice. Links to [[entity_physicians]] table
`tax_id` the tax identification number associated with this practice
`med_license_id` medical license identification number
`practice_name`
`address` physical location of the establishment
`city`
`state` the two-letter state abbreviation
('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 is null and national entities have a state code of 'US'
`state_fips` FIPS state code, taken from AHA Annual Survey
`zipcode`
`county_name`
`county_fips` FIPS county code, taken from AHA Annual Survey
`phone_number`
`closed_date` date the physician record was closed in YYYY-MM-DD format
`created` date and time the row was created in YYYY-MM-DD HH:MM:SS format
`modified` date and time the row was modified in YYYY-MM-DD HH:MM:SS format. Can be set
to current ON UPDATE CURRENT_TIMESTAMP
  

Fields
fieldtypeattributesnotesexample
entity_idint(20)UNSIGNED NOT NULL AUTO_INCREMENTProvided by Pellucid, same as entities table1219198502
upin_idvarchar(10)DEFAULT NULL  Unique Physician Identification NumberI12345
npi_idvarchar(10)DEFAULT NULLDerived from Government registry1918445361
dea_idvarchar(10)DEFAULT NULL DEA Registration Number BS1234567
rde_idvarchar(10)DEFAULT NULL  1234567890
tax_idvarchar(20)DEFAULT NULL  Practice's Employer ID Number123456789
med_license_idvarchar(10)DEFAULT NULL Medical License Number MD12345
practice_namevarchar(255)DEFAULT NULL  The Name of the PracticeTom's Rhinoplasty
addressvarchar(255)DEFAULT NULLPhysical Location123 Fake St
cityvarchar(255)DEFAULT NULL Physical LocationLake Success
statevarchar(2)DEFAULT NULLTwo-letter state abbreviationNY
state_fipsvarchar(10)DEFAULT NULLNationally defined09
zipcodevarchar(5)DEFAULT NULL Five Digit Postal Code11042
county_namevarchar(30)DEFAULT NULL Physical LocationNassau
county_fipsvarchar(10)DEFAULT NULLDetermined by state056
phone_numbervarchar(46)DEFAULT NULL Telephone Number5165550123
closed_datedateDEFAULT NULLDate of closure YYYY-MM-DD2001-01-24
createdtimestampDEFAULT NULLThe date and time the row was created2014-07-18 09:15:36
modifiedtimestampDEFAULT NULLThe date and time the row was last modified2014-07-18 09:15:36