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

« Previous Version 2 Next »

Summary

This table is used to track identifying data for clinics.    Currently, the entity_clinics table is limited to entities in New York State.
The unique entity_id links to the entitiesentity_clinic_attributes, and entity_clinic_overrides tables.

Table Creation

CREATE TABLE IF NOT EXISTS `entity_clinics` (
`entity_id` int(10) DEFAULT NULL,
`entity_hospital_id` int(10) DEFAULT NULL,
`local_id` varchar(4) DEFAULT NULL,
`type` varchar(25) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`aka` varchar(255) DEFAULT NULL,
`address` varchar(255) DEFAULT NULL,
`city` varchar(255) DEFAULT NULL,
`state` varchar(2) DEFAULT NULL,
`zipcode` varchar(5) DEFAULT NULL,
`county_name` varchar(255) DEFAULT NULL,
`county_fips` varchar(3) DEFAULT NULL,
`phone_number` varchar(25) DEFAULT NULL,
`closed_date` date DEFAULT NULL,
`created` datetime DEFAULT NULL,
`modified` timestamp NULL DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

Fields

field
type
attributes
notes
example
entity_idint(20)UNSIGNED NOT NULL AUTO_INCREMENTProvided by Pellucid, same as entities table1219198502
entity_hospital_idint(10)DEFAULT NULLhospital entity_id that the clinic is tied to100001
local_idvarchar(10)DEFAULT NULLAssigned by data provider, ex: state 0012
typevarchar(25)DEFAULT NULLProvides details on the type of serviceDBA
namevarchar(255)DEFAULT NULL Ted's ACO
akavarchar(255)DEFAULT NULL Ted Jr's ACO
addressvarchar(255)DEFAULT NULLPhysical Location123 Fake St
cityvarchar(255)DEFAULT NULL Lake Success
statevarchar(2)DEFAULT NULLTwo-letter state abbreviationNY
state_fipsvarchar(10)DEFAULT NULLNationally defined09
zipcodevarchar(5)DEFAULT NULL 11042
county_namevarchar(30)DEFAULT NULL Nassau
county_fipsvarchar(10)DEFAULT NULLDetermined by state056
phone_numbervarchar(46)DEFAULT NULL 5165550123
closed_datedateDEFAULT NULLYYYY-MM-DD2011-01-12
createddatetime when the row was created2000-01-01 11:11:11
modifieddatetime when the row was most recently changed2014-08-01 01:12:12
  • No labels