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 3 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(10)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(4)DEFAULT NULLAssigned by data provider, ex: state 0012
typevarchar(25)DEFAULT NULLProvides details on the type of serviceDBA
namevarchar(255)DEFAULT NULLClinic NameTed's ACO
akavarchar(255)DEFAULT NULLAlternative Clinic NameTed Jr's ACO
addressvarchar(255)DEFAULT NULLPhysical Location123 Fake St
cityvarchar(255)DEFAULT NULLPhysical LocationLake Success
statevarchar(2)DEFAULT NULLTwo-letter state abbreviationNY
zipcodevarchar(5)DEFAULT NULLFive Digit Postal Code11042
county_namevarchar(255)DEFAULT NULLPhysical LocationNassau
county_fipsvarchar(3)DEFAULT NULLDetermined by state056
phone_numbervarchar(25)DEFAULT NULLTelephone Number5165550123
closed_datedateDEFAULT NULLYYYY-MM-DD2011-01-12
createddatetimeDEFAULT NULLWhen the row was created2000-01-01 11:11:11
modifiedtimestampDEFAULT NULLWhen the row was most recently changed2014-08-01 01:12:12
  • No labels