-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.sdoh_hrsa_shortage_areas.hpsa_mua`
(
  MUA_SOURCE_ID STRING OPTIONS(description="MUA/P ID; MUA/P Source ID; MUA/P Source Identification Number"),
  MUA_AREA_CD STRING OPTIONS(description="MUA/P Area Code; MUA/P Area Code (Component); MUA/P Service Area"),
  MCD_FIPS_Cd STRING OPTIONS(description="Minor Civil Division FIPS Code; MCD Code"),
  MCD_CENSUS_CD STRING OPTIONS(description="Minor Civil Division Census Code; MCD_Cd; Minor Civil Division Code"),
  MCD_NM STRING OPTIONS(description="Minor Civil Division Name; MCD Name"),
  MUA_DESIGNATION_TYP_CD STRING OPTIONS(description="Designation Type Code; MUA/P Designation Type Code"),
  MUA_DESIGNATION_TYP_DESC STRING OPTIONS(description="Designation Type; MUA/P Designation Type; MUA/P Designation Type Description"),
  MUA_STATUS_CD STRING OPTIONS(description="MUA/P Status Code"),
  MUA_STATUS_DESC STRING OPTIONS(description="MUA/P Status Description; MUA/P Status; Status"),
  CENSUS_TRACT STRING OPTIONS(description="Census Tract"),
  MUA_DESIGNATION_DT DATE OPTIONS(description="Designation Date; MUA/P Designation Date"),
  MUA_DESIGNATION_DT_TXT STRING OPTIONS(description="Designation Date; MUA/P Designation Date; MUA/P Designation Date String"),
  MUA_SCORE STRING OPTIONS(description="IMU Score; Index of Medical Underservice Score; MUA/P Score"),
  MUA_SERVICE_AREA_NM STRING OPTIONS(description="MUA/P Service Area Name; MUA/P Name; Service Area; Service Area Name"),
  MUA_UPDATE_DT DATE OPTIONS(description="MUA/P Update Date; Update Date"),
  MUA_UPDATE_DT_TXT STRING OPTIONS(description="MUA/P Update Date; MUA/P Update Date String; Update Date"),
  US_MEXICO_BORDER_100KM_IND STRING OPTIONS(description="U.S. - Mexico Border 100 Kilometer Indicator; La Paz Agreement; Primary Care Service Area U.S. - Mexico Border Indicator; U.S. - Mexico Border 100 Kilometer Status Indicator"),
  US_MEXICO_BORDER_COUNTY_IND STRING OPTIONS(description="U.S. - Mexico Border County Indicator; Primary Care Service Area U.S. - Mexico Border County Indicator"),
  STATE_COUNTY_FIPS_CD STRING OPTIONS(description="State and County Federal Information Processing Standard Code; State and County FIPS Code; State County FIPS Code"),
  COUNTY_FIPS_CD STRING OPTIONS(description="County or County Equivalent Federal Information Processing Standard Code; County FIPS; County FIPS Code; CountyFIPS"),
  LIST_BOX_COUNTY_NM STRING OPTIONS(description="Complete County Name; County; County Name; County, County Name; List Box County Name"),
  COUNTY_NM STRING OPTIONS(description="County Equivalent Name; Component County Name; County; County (Component); County Equivalent; County Name; County or County Equivalent; County or County Equivalent Name; County, County Equivalent; Grantee County Name"),
  COUNTY_DESC STRING OPTIONS(description="County Description"),
  REGION_CD STRING OPTIONS(description="HHS Region Code; Region Code"),
  REGION_NM STRING OPTIONS(description="HHS Region Name; Component HHS Region; HHS Region; Region Name; Site HHS Region"),
  STATE_FIPS_CD STRING OPTIONS(description="State FIPS Code; State Federal Information Processing Standard Code; State FIPS"),
  STATE_NM STRING OPTIONS(description="State Name; Component State; Component State Name; Site State; State; State Label; State/Territory"),
  STATE_ABBR STRING OPTIONS(description="State Abbreviation; State; State Code; State_Cd"),
  POVERTY_100_PCT_NUM FLOAT64 OPTIONS(description="Percent of Population with Incomes at or Below 100 Percent of the U.S. Federal Poverty Level; % of Population with Incomes at or Below 100% of the U.S. FPL; Percent of Population with Incomes at or Below 100 Percent of the USFPL"),
  POP_AGE_65_OVER_PCT FLOAT64 OPTIONS(description="Percentage of Population Age 65 and Over; % of Population Age 65 and Over"),
  INFANT_MORTALITY_RATE FLOAT64 OPTIONS(description="Infant Mortality Rate"),
  PROVIDER_1000_POP_RATIO STRING OPTIONS(description="Ratio of Providers per 1000 Population"),
  POVERTY_100_PCT_NUM_IMU FLOAT64 OPTIONS(description="Percent of Population with Incomes at or Below 100 Percent of the U.S. Federal Poverty Level Index of Medical Underservice Score; % of Population with Incomes at or Below 100% of the U.S. FPL IMU Score; Percent of Population with Incomes at or Below 100 Percent of the USFPL IMU Score"),
  POP_AGE_65_OVER_PCT_IMU FLOAT64 OPTIONS(description="Percentage of Population Age 65 and Over IMU Score; % of Population Age 65 and Over IMU Score; Percentage of Population Age 65 and Over Index of Medical Underservice Score"),
  INFANT_MORTALITY_RATE_IMU FLOAT64 OPTIONS(description="Infant Mortality Rate IMU Score; Infant Mortality Rate Index of Medical Underservice Score"),
  PROVIDER_1000_POP_RATIO_IMU FLOAT64 OPTIONS(description="Ratio of Providers per 1000 Population IMU Score; Ratio of Providers per 1000 Population IMU; Ratio of Providers per 1000 Population Index of Medical Underservice Score"),
  DW_RECORD_CREATE_DT DATE OPTIONS(description="Data Warehouse Record Create Date; Data As-of-Date; HRSA Data Warehouse Processing Date; SNAP; Snapshot; Snapshot Date"),
  DW_RECORD_CREATE_DT_TXT STRING OPTIONS(description="Data Warehouse Record Create Date Text; HDW Processing Date; HRSA Data Warehouse Processing Date; SNAP; Snapshot Date; Snapshot Date String; Snapshot Date Text"),
  PRIMARY_STATE_FIPS_CD STRING OPTIONS(description="Primary State FIPS Code; HPSA Primary State FIPS Code; MUA/P Primary State FIPS Code"),
  PRIMARY_STATE_ABBR STRING OPTIONS(description="HPSA Primary State Abbreviation; MUA/P Primary State Abbreviation; Primary State Abbreviation; State"),
  PRIMARY_STATE_NM STRING OPTIONS(description="Primary State Name; HPSA Primary State Name; MUA/P Primary State; Primary State; State"),
  PRIMARY_REGION_CD STRING OPTIONS(description="Primary HHS Region Code; HHS Region Code; HPSA Primary Region Code; MUA/P Primary Region Code; Primary Region Code; Region Code"),
  PRIMARY_REGION_NM STRING OPTIONS(description="Primary HHS Region Name; HHS Region; HPSA Primary Region Name; MUA/P Primary Region Name; Primary Region"),
  CMN_REGION_CD STRING OPTIONS(description="Common Region Code; Common HHS Region Code; HHS Region Code"),
  CMN_REGION_NM STRING OPTIONS(description="Common Region Name; Common HHS Region Name; HHS Region; HHS Region Name; Region Name"),
  CMN_STATE_NM STRING OPTIONS(description="Common State Name; State; State (Component); State Name"),
  CMN_STATE_ABBR STRING OPTIONS(description="Common State Abbreviation; Common State Name; State; State Abbreviation"),
  CMN_STATE_FIPS_CD STRING OPTIONS(description="Common State FIPS Code; State FIPS Code"),
  CMN_STATE_COUNTY_FIPS_CD STRING OPTIONS(description="Common State County FIPS Code; State County FIPS; State County FIPS Code"),
  CMN_COUNTY_NM_STATE_ABBR STRING OPTIONS(description="Common County Name; Common County Name with State Abbreviation; County; County Name; Proper County Name and State Abbreviation"),
  BREAK_DESIGNATION_IND STRING OPTIONS(description="Break in Designation; Break Designation"),
  MUA_COMP_DESIGNATION_DT DATE OPTIONS(description="Medically Underserved Area/Population (MUA/P) Component Designation Date"),
  MUA_COMP_DESIGNATION_DT_TXT STRING OPTIONS(description="Medically Underserved Area/Population (MUA/P) Component Designation Date"),
  MUA_COMP_GEO_NM STRING OPTIONS(description="Medically Underserved Area/Population (MUA/P) Component Geographic Name; Component Name"),
  MUA_COMP_GEO_TYP_CD STRING OPTIONS(description="Medically Underserved Area/Population (MUA/P) Component Geographic Type Code"),
  MUA_COMP_GEO_TYP_DESC STRING OPTIONS(description="Medically Underserved Area/Population (MUA/P) Component Geographic Type Description"),
  MUA_COMP_GEO_TYP_ID INT64 OPTIONS(description="Medically Underserved Area Geography Type Surrogate Key"),
  MUA_COMP_LAST_UPDATE_DT DATE OPTIONS(description="Medically Underserved Area/Population (MUA/P) Component Last Update Date"),
  MUA_COMP_STATUS_CD STRING OPTIONS(description="Medically Underserved Area/Population (MUA/P) Component Status Code"),
  MUA_COMP_STATUS_DESC STRING OPTIONS(description="Medically Underserved Area/Population (MUA/P) Component Status Description"),
  MUA_COMP_UPDATE_DT_TXT STRING OPTIONS(description="Medically Underserved Area/Population (MUA/P) Component Update Date"),
  MUA_DESIGNATION_POP FLOAT64 OPTIONS(description="Designation Population in a Medically Underserved Area/Population (MUA/P); MUA/P Population"),
  MUA_METRO_IND_CD STRING OPTIONS(description="Medically Underserved Area/Population (MUA/P) Metropolitan Indicator"),
  MUA_METRO_IND_DESC STRING OPTIONS(description="Medically Underserved Area/Population (MUA/P) Metropolitan Description"),
  MUA_METRO_IND_ID INT64 OPTIONS(description="Medically Underserved Area/Population (MUA/P) Metropolitan Indicator"),
  MUA_POPULATION_TYP_CD STRING OPTIONS(description="Medically Underserved Area/Population (MUA/P) Population Type Code; MUA/P Population Type Code"),
  MUA_POPULATION_TYP_DESC STRING OPTIONS(description="Medically Underserved Area/Population (MUA/P) Population Type; MUA/P Sub-Type; Population Type"),
  MUA_POPULATION_TYP_ID INT64 OPTIONS(description="Medically Underserved Area/Population (MUA/P) Population Type ID"),
  MUA_RES_CIV_POP INT64 OPTIONS(description="Medically Underserved Area/Population (MUA/P) Total Resident Civilian Population"),
  MUA_WITHDRAWAL_DT DATE OPTIONS(description="Medically Underserved Area/Population (MUA/P) Withdrawal Date; Withdrawn Date"),
  MUA_WITHDRAWAL_DT_TXT STRING OPTIONS(description="Medically Underserved Area/Population (MUA/P) Withdrawal Date in Text Format"),
  RURAL_STATUS_CD STRING OPTIONS(description="Rural Status Code"),
  RURAL_STATUS_DESC STRING OPTIONS(description="Rural Status Description; Component Rural Status; Rural Status"),
  PROVIDER_1000_POP FLOAT64 OPTIONS(description="Providers per 1000 Population; Number of Providers per 1000 Population")
)
OPTIONS(
  description="Metadata on the table is available here: https://data.hrsa.gov//DataDownload/DD_Files/MUA_DATAMART_METADATA.XLSX",
  labels=[("freebqcovid", "")]
);

INSERT INTO `bigquery-public-data.sdoh_hrsa_shortage_areas.hpsa_mua` (MUA_SOURCE_ID, MUA_AREA_CD, MCD_FIPS_Cd, MCD_CENSUS_CD, MCD_NM, MUA_DESIGNATION_TYP_CD, MUA_DESIGNATION_TYP_DESC, MUA_STATUS_CD, MUA_STATUS_DESC, CENSUS_TRACT, MUA_DESIGNATION_DT, MUA_DESIGNATION_DT_TXT, MUA_SCORE, MUA_SERVICE_AREA_NM, MUA_UPDATE_DT, MUA_UPDATE_DT_TXT, US_MEXICO_BORDER_100KM_IND, US_MEXICO_BORDER_COUNTY_IND, STATE_COUNTY_FIPS_CD, COUNTY_FIPS_CD, LIST_BOX_COUNTY_NM, COUNTY_NM, COUNTY_DESC, REGION_CD, REGION_NM, STATE_FIPS_CD, STATE_NM, STATE_ABBR, POVERTY_100_PCT_NUM, POP_AGE_65_OVER_PCT, INFANT_MORTALITY_RATE, PROVIDER_1000_POP_RATIO, POVERTY_100_PCT_NUM_IMU, POP_AGE_65_OVER_PCT_IMU, INFANT_MORTALITY_RATE_IMU, PROVIDER_1000_POP_RATIO_IMU, DW_RECORD_CREATE_DT, DW_RECORD_CREATE_DT_TXT, PRIMARY_STATE_FIPS_CD, PRIMARY_STATE_ABBR, PRIMARY_STATE_NM, PRIMARY_REGION_CD, PRIMARY_REGION_NM, CMN_REGION_CD, CMN_REGION_NM, CMN_STATE_NM, CMN_STATE_ABBR, CMN_STATE_FIPS_CD, CMN_STATE_COUNTY_FIPS_CD, CMN_COUNTY_NM_STATE_ABBR, BREAK_DESIGNATION_IND, MUA_COMP_DESIGNATION_DT, MUA_COMP_DESIGNATION_DT_TXT, MUA_COMP_GEO_NM, MUA_COMP_GEO_TYP_CD, MUA_COMP_GEO_TYP_DESC, MUA_COMP_GEO_TYP_ID, MUA_COMP_LAST_UPDATE_DT, MUA_COMP_STATUS_CD, MUA_COMP_STATUS_DESC, MUA_COMP_UPDATE_DT_TXT, MUA_DESIGNATION_POP, MUA_METRO_IND_CD, MUA_METRO_IND_DESC, MUA_METRO_IND_ID, MUA_POPULATION_TYP_CD, MUA_POPULATION_TYP_DESC, MUA_POPULATION_TYP_ID, MUA_RES_CIV_POP, MUA_WITHDRAWAL_DT, MUA_WITHDRAWAL_DT_TXT, RURAL_STATUS_CD, RURAL_STATUS_DESC, PROVIDER_1000_POP) VALUES ('474', '9013530200', NULL, NULL, NULL, 'MUP', 'Medically Underserved Population', 'D', 'Designated', '5302', '1994-12-08', '12/8/1994', '47.8', 'Low Inc - Rockville Service Area', '1994-12-08', '12/8/1994', 'N', 'N', '9013', '13', 'Tolland County', 'Tolland', 'County            ', '1', 'Region I', '9', 'Connecticut', 'CT', nan, nan, nan, NULL, nan, nan, nan, nan, '2019-12-17', '12/17/2019', '9', 'CT', 'Connecticut', '1', 'Region I', '1', 'Region I', 'Connecticut', 'CT', '9', '9013', 'Tolland County, CT', 'N', '1994-12-08', '12/8/1994', '5302', 'CT', 'Census Tract', 1, '1994-12-08', 'D', 'Designated', '12/8/1994', nan, '0', 'Unknown', 0, 'LI', 'MUP Low Income', 2, NULL, 'NaT', NULL, 'N', 'Non-Rural', nan), ('474', '9013530100', NULL, NULL, NULL, 'MUP', 'Medically Underserved Population', 'D', 'Designated', '5301', '1994-12-08', '12/8/1994', '47.8', 'Low Inc - Rockville Service Area', '1994-12-08', '12/8/1994', 'N', 'N', '9013', '13', 'Tolland County', 'Tolland', 'County            ', '1', 'Region I', '9', 'Connecticut', 'CT', nan, nan, nan, NULL, nan, nan, nan, nan, '2019-12-17', '12/17/2019', '9', 'CT', 'Connecticut', '1', 'Region I', '1', 'Region I', 'Connecticut', 'CT', '9', '9013', 'Tolland County, CT', 'N', '1994-12-08', '12/8/1994', '5301', 'CT', 'Census Tract', 1, '1994-12-08', 'D', 'Designated', '12/8/1994', nan, '0', 'Unknown', 0, 'LI', 'MUP Low Income', 2, NULL, 'NaT', NULL, 'N', 'Non-Rural', nan), ('470', '9005310300', NULL, NULL, NULL, 'MUP', 'Medically Underserved Population', 'D', 'Designated', '3103', '1994-12-08', '12/8/1994', '41.1', 'Low Inc - Central Torrington Service Area', '1994-12-08', '12/8/1994', 'N', 'N', '9005', '5', 'Litchfield County', 'Litchfield', 'County            ', '1', 'Region I', '9', 'Connecticut', 'CT', nan, nan, nan, NULL, nan, nan, nan, nan, '2019-12-17', '12/17/2019', '9', 'CT', 'Connecticut', '1', 'Region I', '1', 'Region I', 'Connecticut', 'CT', '9', '9005', 'Litchfield County, CT', 'N', '1994-12-08', '12/8/1994', '3103', 'CT', 'Census Tract', 1, '1994-12-08', 'D', 'Designated', '12/8/1994', nan, '0', 'Unknown', 0, 'LI', 'MUP Low Income', 2, NULL, 'NaT', NULL, 'R', 'Rural', nan), ('470', '9005310500', NULL, NULL, NULL, 'MUP', 'Medically Underserved Population', 'D', 'Designated', '3105', '1994-12-08', '12/8/1994', '41.1', 'Low Inc - Central Torrington Service Area', '1994-12-08', '12/8/1994', 'N', 'N', '9005', '5', 'Litchfield County', 'Litchfield', 'County            ', '1', 'Region I', '9', 'Connecticut', 'CT', nan, nan, nan, NULL, nan, nan, nan, nan, '2019-12-17', '12/17/2019', '9', 'CT', 'Connecticut', '1', 'Region I', '1', 'Region I', 'Connecticut', 'CT', '9', '9005', 'Litchfield County, CT', 'N', '1994-12-08', '12/8/1994', '3105', 'CT', 'Census Tract', 1, '1994-12-08', 'D', 'Designated', '12/8/1994', nan, '0', 'Unknown', 0, 'LI', 'MUP Low Income', 2, NULL, 'NaT', NULL, 'R', 'Rural', nan), ('470', '9005310801', NULL, NULL, NULL, 'MUP', 'Medically Underserved Population', 'D', 'Designated', '3108.01', '1994-12-08', '12/8/1994', '41.1', 'Low Inc - Central Torrington Service Area', '1994-12-08', '12/8/1994', 'N', 'N', '9005', '5', 'Litchfield County', 'Litchfield', 'County            ', '1', 'Region I', '9', 'Connecticut', 'CT', nan, nan, nan, NULL, nan, nan, nan, nan, '2019-12-17', '12/17/2019', '9', 'CT', 'Connecticut', '1', 'Region I', '1', 'Region I', 'Connecticut', 'CT', '9', '9005', 'Litchfield County, CT', 'N', '1994-12-08', '12/8/1994', '3108.01', 'CT', 'Census Tract', 1, '1994-12-08', 'D', 'Designated', '12/8/1994', nan, '0', 'Unknown', 0, 'LI', 'MUP Low Income', 2, NULL, 'NaT', NULL, 'R', 'Rural', nan);