-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_medicare.hospital_general_info`
(
  provider_id STRING OPTIONS(description=""),
  hospital_name STRING OPTIONS(description=""),
  address STRING OPTIONS(description=""),
  city STRING OPTIONS(description=""),
  state STRING OPTIONS(description=""),
  zip_code STRING OPTIONS(description=""),
  county_name STRING OPTIONS(description=""),
  phone_number STRING OPTIONS(description=""),
  hospital_type STRING OPTIONS(description=""),
  hospital_ownership STRING OPTIONS(description=""),
  emergency_services BOOL OPTIONS(description=""),
  meets_criteria_for_promoting_interoperability_of_ehrs BOOL OPTIONS(description=""),
  hospital_overall_rating STRING OPTIONS(description=""),
  hospital_overall_rating_footnote STRING OPTIONS(description=""),
  mortality_group_measure_count STRING OPTIONS(description="Count of measures included in the Mortality measure group"),
  facility_mortaility_measures_count STRING OPTIONS(description="Number of Mortality measures used in the hospital’s overall star rating"),
  mortality_measures_better_count STRING OPTIONS(description="Number of Mortality measures that are better than the national value"),
  mortality_measures_no_different_count STRING OPTIONS(description="Number of Mortality measures that are no different than the national value"),
  mortality_measures_worse_count STRING OPTIONS(description="Number of Mortality measures that are worse than the national value"),
  mortaility_group_footnote STRING OPTIONS(description="Footnote about Mortality measures"),
  safety_measures_count STRING OPTIONS(description="Count of measures included in the Safety of Care measure group"),
  facility_care_safety_measures_count STRING OPTIONS(description="Number of Safety of care measures used in the hospital’s overall star rating"),
  safety_measures_better_count STRING OPTIONS(description="Number of Safety of care measures that are better than the national value"),
  safety_measures_no_different_count STRING OPTIONS(description="Number of Safety of care measures that are no different than the national value"),
  safety_measures_worse_count STRING OPTIONS(description="Number of Safety of care measures that are worse than the national value"),
  safety_group_footnote STRING OPTIONS(description="Footnote about Safety of care measures"),
  readmission_measures_count STRING OPTIONS(description="Count of measures included in the Readmission measure group"),
  facility_readmission_measures_count STRING OPTIONS(description="Number of Readmission measures used in the hospital’s overall star rating"),
  readmission_measures_better_count STRING OPTIONS(description="Number of Readmission measures that are better than the national value"),
  readmission_measures_no_different_count STRING OPTIONS(description="Number of Readmission measures that are no different than the national value"),
  readmission_measures_worse_count STRING OPTIONS(description="Number of Readmission measures that are worse than the national value"),
  readmission_measures_footnote STRING OPTIONS(description="Footnote about Readmission measures"),
  patient_experience_measures_count STRING OPTIONS(description="Count of measures included in the Patient experience measure group"),
  facility_patient_experience_measures_count STRING OPTIONS(description="Number of Patient experience measures used in the hospital’s overall star rating"),
  patient_experience_measures_footnote STRING OPTIONS(description="Footnote about Patient experience measures"),
  timely_and_effective_care_measures_count STRING OPTIONS(description="Count of measures included in the Timely and effective care measure group"),
  facility_timely_and_effective_care_measures_count STRING OPTIONS(description="Number of Timely and effective care measures used in the hospital’s overall star rating"),
  timely_and_effective_care_measures_footnote STRING OPTIONS(description="Footnote about Timely and effective care measures")
);

INSERT INTO `bigquery-public-data.cms_medicare.hospital_general_info` (provider_id, hospital_name, address, city, state, zip_code, county_name, phone_number, hospital_type, hospital_ownership, emergency_services, meets_criteria_for_promoting_interoperability_of_ehrs, hospital_overall_rating, hospital_overall_rating_footnote, mortality_group_measure_count, facility_mortaility_measures_count, mortality_measures_better_count, mortality_measures_no_different_count, mortality_measures_worse_count, mortaility_group_footnote, safety_measures_count, facility_care_safety_measures_count, safety_measures_better_count, safety_measures_no_different_count, safety_measures_worse_count, safety_group_footnote, readmission_measures_count, facility_readmission_measures_count, readmission_measures_better_count, readmission_measures_no_different_count, readmission_measures_worse_count, readmission_measures_footnote, patient_experience_measures_count, facility_patient_experience_measures_count, patient_experience_measures_footnote, timely_and_effective_care_measures_count, facility_timely_and_effective_care_measures_count, timely_and_effective_care_measures_footnote) VALUES ('010018', 'CALLAHAN EYE HOSPITAL', '1720 UNIVERSITY BLVD, SUITE 500', 'BIRMINGHAM', 'AL', '35233', 'Jefferson', '(205) 325-8100', 'Acute Care Hospitals', 'Voluntary non-profit - Private', True, True, 'Not Available', '16', '7', 'Not Available', 'Not Available', 'Not Available', 'Not Available', '5', '8', '1', '0', '1', '0', NULL, '11', '1', '0', '1', '0', NULL, '8', 'Not Available', '5', '14', '3', NULL), ('010051', 'GREENE COUNTY HOSPITAL', '509 WILSON AVENUE', 'EUTAW', 'AL', '35462', 'Greene', '(205) 372-3388', 'Acute Care Hospitals', 'Government - Local', True, NULL, 'Not Available', '16', '7', 'Not Available', 'Not Available', 'Not Available', 'Not Available', '5', '8', '1', '0', '1', '0', NULL, '11', '1', '0', '1', '0', NULL, '8', 'Not Available', '5', '14', '3', NULL), ('010102', 'J PAUL JONES HOSPITAL', '317 MCWILLIAMS AVENUE', 'CAMDEN', 'AL', '36726', 'Wilcox', '(334) 682-4131', 'Acute Care Hospitals', 'Voluntary non-profit - Other', True, True, 'Not Available', '16', '7', '1', '0', '1', '0', NULL, '8', '1', '0', '1', '0', NULL, '11', '1', '0', '1', '0', NULL, '8', 'Not Available', '5', '14', '3', NULL), ('030074', 'SELLS HOSPITAL', 'HIGHWAY 86, AT TOPAWA ROAD', 'SELLS', 'AZ', '85634', 'Pima', '(520) 362-7003', 'Acute Care Hospitals', 'Tribal', True, NULL, 'Not Available', '16', '7', 'Not Available', 'Not Available', 'Not Available', 'Not Available', '5', '8', '1', '0', '1', '0', NULL, '11', '1', '0', '1', '0', NULL, '8', 'Not Available', '5', '14', 'Not Available', '5'), ('030136', 'DIGNITY HEALTH - ARIZONA GENERAL HOSPITAL', '7171 SOUTH 51ST AVENUE', 'LAVEEN', 'AZ', '85339', 'Maricopa', '(623) 584-5100', 'Acute Care Hospitals', 'Proprietary', False, NULL, 'Not Available', '16', '7', 'Not Available', 'Not Available', 'Not Available', 'Not Available', '5', '8', '1', '0', '1', '0', NULL, '11', '1', '0', '1', '0', NULL, '8', 'Not Available', '5', '14', '9', NULL);