-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.sdoh_hrsa_shortage_areas.hpsa_mental_health`
(
  Source_ID STRING OPTIONS(description="Primary identifier for a Health Professional Shortage Area (HPSA) as a complete unit in the source data system."),
  Source_Name STRING OPTIONS(description="The name of the Health Professional Shortage Area (HPSA). This data element comes directly from the source system in the most recent data refresh. For further information about HPSA refer to the http://www.hrsa.gov/shortage/ website."),
  Status_Code STRING OPTIONS(description="One character identifier that designates the current status of the HPSA designation. For further information about Health Professional Shortage Areas (HPSA) refer to the http://www.hrsa.gov/shortage/ website."),
  Status_Description STRING OPTIONS(description="Textual description of the current status of the Health Professional Shortage Area (HPSA) designation."),
  Type_Code STRING OPTIONS(description="Geography or facility type code characterizing the Health Professional Shortage Area (HPSA)."),
  Type_Desc STRING OPTIONS(description="Textual description of the Health Professional Shortage Area (HPSA) type."),
  Address STRING OPTIONS(description="Standardized version of the street address of a Health Professional Shortage Area (HPSA) facility."),
  City STRING OPTIONS(description="Standardized version of the city name in which a Health Professional Shortage Areas (HPSA) facility is located."),
  State_Abbr STRING OPTIONS(description="U.S. Postal Service (USPS) code for the state in which the Health Professional Shortage Area (HPSA) entity is located."),
  Postal_Code STRING OPTIONS(description="Health Professional Shortage Area (HPSA) U.S. Postal Service (USPS) Zoning Improvement Plan (ZIP) Code. In the context of HPSA data, this field only applies to facilities."),
  Degree_of_Shortage STRING OPTIONS(description="Degree of practitioner shortage for the Health Professional Shortage Area (HPSA) based on population to provider ratio."),
  Designation_Date DATE OPTIONS(description="Date on which the Health Professional Shortage Area (HPSA) was originally designated as a shortage area."),
  Designation_Last_Update_Date DATE OPTIONS(description="Date on which the Health Professional Shortage Area (HPSA) information was last updated in the source system."),
  Designation_Pop INT64 OPTIONS(description="Number of persons which have been identified by the HRSA, Bureau of Health Workforce (BHW), Division of Policy and Shortage Designation (DPSD) as being affected by the Health Professional Shortage Area (HPSA)."),
  Estimated_Underserved_Pop INT64 OPTIONS(description="Estimated underserved population served by the full-time equivalent (FTE) health care practitioners within a Health Professional Shortage Area (HPSA)."),
  Estimated_Served_Pop INT64 OPTIONS(description="Estimated total population served by the full-time equivalent (FTE) Health care practitioners within a Health Professional Shortage Area (HPSA)."),
  Formal_Ratio STRING OPTIONS(description="Ratio of the Health Professional Shortage Area (HPSA) Designation Population to HPSA provider full-time equivalents displayed in ratio format (for example, 3500:1), where the population and the designation share the same discipline class (for example, Primary Care, Dental Care, and Mental Health)."),
  Total_FTE_Clinicians FLOAT64 OPTIONS(description="Number of practitioners providing ambulatory patient care in the Health Professional Shortage Area (HPSA) expressed as full-time equivalents."),
  Metropolitan_Indicator_Code STRING OPTIONS(description="Single character indicating whether a Health Professional Shortage Area (HPSA) is considered to be in a metropolitan, non-metropolitan, or frontier area."),
  Metropolitan_Indicator_Desc STRING OPTIONS(description="Description indicating whether a Health Professional Shortage Area (HPSA) is either Metropolitan, Non-Metropolitan, or Frontier in nature."),
  Provider_Ratio_Goal STRING OPTIONS(description="Health Professional Shortage Area (HPSA) Provider Ratio Goal that is the target population per provider (physician) for the HPSA in a Discipline Class. Federal regulations stipulate that, in order to be considered as having a shortage of providers, an area must have a population-to-provider ratio of a certain threshold. For primary medical care, the population to provider ratio must be at least 3,500 to 1 (3,000 to 1 if there are unusually high needs in the community). For dental, the ratio must be at least 5,000 to 1 (4,000 to 1 in high-need communities). For mental health, the area must have a population to psychiatrist ratio of 30,000 to 1 (20,000 to 1 in high-need communities). For further information about Health Professional Shortage Areas (HPSA) refer to the http://www.hrsa.gov/shortage/ website."),
  Percent_Pop_Below_Poverty FLOAT64 OPTIONS(description="Percent of the population in the Health Professional Shortage Area (HPSA) living below the U.S. Federal Poverty Level (USFPL)."),
  HPSA_Score INT64 OPTIONS(description="Health Professional Shortage Area (HPSA) Score developed by the National Health Service Corps (NHSC) in determining priorities for assignment of clinicians. The scores range from 0 to 26 where the higher the score, the greater the priority."),
  HPSA_Shortage FLOAT64 OPTIONS(description="Number of full-time equivalent (FTE) practitioners needed in the Health Professional Shortage Area (HPSA) so that it will achieve the population to practitioner target ratio. The target ratio is determined by the type (discipline) of the HPSA."),
  Discipline_Class_Num INT64 OPTIONS(description="Single character code used by the HRSA Data Warehouse (HDW) to indicate the Discipline Class identification number (ID) values associated with health related discipline classes."),
  Discipline_Class_Desc STRING OPTIONS(description="Health Professional Shortage Area (HPSA) discipline class description. HPSA disciplines may be listed as Primary Care, Dental Health, or Mental Health."),
  Component_Source_ID STRING OPTIONS(description="Identification number linking a Health Professional Shortage Area (HPSA) component to its \"parent\" HPSA."),
  Component_Source_Name STRING OPTIONS(description="Name assigned to the Health Professional Shortage Area (HPSA) component as identified in the most recent data refresh."),
  Component_Status_Code STRING OPTIONS(description="One-character code that indicates the designation status for the component part of the Health Professional Shortage Areas (HPSA)."),
  Component_Status_Desc STRING OPTIONS(description="Health Professional Shortage Area (HPSA) Component Status Description which is the English-language expansion of the HPSA Component Status Code. This text description identifies the current status of the HPSA component and is subject to change during the life span of the HPSA."),
  Component_Type_Code STRING OPTIONS(description="Geography or facility type code which characterizes the Health Professional Shortage Area (HPSA) component."),
  Component_Type_Desc STRING OPTIONS(description="Health Professional Shortage Area (HPSA) Component Type Description which identifies in words the type of the HPSA for the component."),
  Component_State_Abbr STRING OPTIONS(description="U.S. Postal Service (USPS) two alphabetic character code for a U.S. state or U.S. territory that is associated with the county or county equivalent in which the Health Professional Shortage Area (HPSA) component is located."),
  Component_Postal_Code STRING OPTIONS(description="U.S. Postal Service Zone Improvement Plan (ZIP) associated with a Health Professional Shortage Area (HPSA) Component."),
  Component_Designation_Date DATE OPTIONS(description="Date when the HPSA was designated as a shortage area as represented in the most recent data refresh from the source data. For further information about Health Professional Shortage Areas (HPSA) refer to the http://www.hrsa.gov/shortage/ website."),
  Component_Designation_Date_String STRING OPTIONS(description="Date when the Health Professional Shortage Area (HPSA) was designated as a shortage area as represented in the most recent data-refresh from the source data and stored as a text string."),
  Component_Designation_Last_Update_Date DATE OPTIONS(description="Date when the HPSA component was last updated, as represented in the most recent HPSA source data refresh. For further information about Health Professional Shortage Areas (HPSA) refer to the http://www.hrsa.gov/shortage/ website."),
  Geography_ID STRING OPTIONS(description="Health Professional Shortage Area (HPSA) geography code which identifies the specific geographic area (county, minor civil division (MCD), or Census Tract) associated with the HPSA."),
  CountyFIPS INT64 OPTIONS(description="Numeric character string assigned by the National Institute of Standards and Technology to the counties and/or county equivalents for the states, the District of Columbia, and U.S. territories."),
  County_Name STRING OPTIONS(description="Name of the county or county equivalent in which the associated address is located, displayed as a text string."),
  StateCountyFIPS STRING OPTIONS(description="Concatenation (combination) of the Federal Information Processing Standard (FIPS) state and county codes."),
  State_FIPS STRING OPTIONS(description="State Federal Information Processing Standard (FIPS) code identifying the two numeric character string assigned by the National Institute of Standards and Technology (NIST) to states, the District of Columbia, and U.S. territories."),
  State_Abbr_2 STRING OPTIONS(description="U.S. Postal Service (USPS) two alphabetic character code for a U.S. state or U.S. territory associated with a location where an entity is situated."),
  State_Name STRING OPTIONS(description="State or territory name."),
  Primary_State_Name STRING OPTIONS(description="Formal, official U.S. state or U.S. territory name associated with the location or address for the entity (record). With respect to a Health Professional Shortage Area (HPSA) or a Medically Underserved Area/Population (MUA/P), the physical land area associated with the entity may cross state boundaries, which means a HPSA or MUA/P may consist of components or parts from one or more states. Therefore, the primary state for one of these areas is the state associated with the parent or primary record. Also, the primary state is used for aggregating counts and sums at the state level."),
  Primary_State_FIPS INT64 OPTIONS(description="State Federal Information Processing Standard (FIPS) code identifying the two numeric character string assigned by the National Institute of Standards and Technology (NIST) to states, the District of Columbia, and U.S. territories."),
  Primary_HHS_Region_Name STRING OPTIONS(description="Formal name for the U.S. Department of Health and Human Services (DHHS) Region associated with the location or address for the entity. With respect to a Health Professional Shortage Area (HPSA) or a Medically Underserved Area/Population (MUA/P), the physical land area associated with the entity may cross state boundaries, which means a HPSA or MUA/P may consist of components or parts from one or more states. Therefore, the primary state for one of these areas is the state associated with the parent or primary record. Also, the primary state is used for aggregating counts and sums at the state level."),
  US_Mexico_Border_County STRING OPTIONS(description="Indication of whether a county or a part of a county is listed in U.S. counties that the U.S. - Mexico Border Health Commission has defined as comprising the Border Health Initiative zone. For counties in the contiguous U.S., this data element may differ from the value of the U.S. - Mexico Border 100 Kilometer Indicator due to the fact that three counties in Arizona fall partially within the defined 100-kilometer boundary area, but are not listed in the list of counties that the U.S. - Mexico Border Health Commission identified as comprising the zone of interest."),
  US_Mexico_Border_100km STRING OPTIONS(description="Indication of whether any portion of the geographic entity cited is within 100 kilometers of the U.S. - Mexico border. The HRSA Data Warehouse generates this value by performing a geoprocessing analysis against the 100 kilometer U.S. - Mexico border region as defined by the HRSA Office of Rural Health Policy, Border Health Program."),
  Data_Warehouse_Record_Create_Date DATE OPTIONS(description="Date on which the data was processed by the HRSA Data Warehouse."),
  Data_Warehouse_Record_Create_Date_Text STRING OPTIONS(description="Date on which the data was processed by the HRSA Data Warehouse."),
  HPSA_Name STRING OPTIONS(description="Title case format, user friendly name which is generated by decoding the Health Professional Shortage Area (HPSA) name which came directly from the source system."),
  HPSA_Component_Name STRING OPTIONS(description="Name of the Health Professional Shortage Area (HPSA) component, as identified in the source data system. For area HPSAs, a component may be a county, census tract, or minor civil division (MCD)."),
  Break_in_Designation STRING OPTIONS(description="Indication of whether the Health Professional Shortage Area (HPSA) or Medically Underserved Area/Population (MUA/P) has been continuously designated since the original designation date."),
  Geocoding_Primary_X FLOAT64 OPTIONS(description="Primary longitude in decimal degrees (x coordinate) of an entity based on its address."),
  Geocoding_Primary_Y FLOAT64 OPTIONS(description="Primary latitude in decimal degrees (y coordinate) of an entity based on its address."),
  HPSA_Pop_Type_Code STRING OPTIONS(description="Code of the population type in a designated Health Professional Shortage Area (HPSA)."),
  HPSA_Pop_Type_Desc STRING OPTIONS(description="Population type description which characterizes the Health Professional Shortage Area (HPSA)."),
  HPSA_Resident_Civilian_Pop INT64 OPTIONS(description="Population type description for the Health Professional Shortage Area (HPSA)."),
  Common_City_Name_with_State_Abbr STRING OPTIONS(description="City name in which the entity is physically located."),
  Common_Postal_Code INT64 OPTIONS(description="Postal code associated with an entity address. For the purposes of the HRSA Data Warehouse this value is a five character U.S. Postal Service (USPS) Zone Improvement Plan (ZIP) code."),
  Common_County_Name STRING OPTIONS(description="HRSA Data Warehouse (HDW) concatenation of the complete county name and the state abbreviation."),
  Common_StateCounty_FIPS STRING OPTIONS(description="Combination of the state and county Federal Information Processing Standard (FIPS) codes."),
  Common_State_Abbr STRING OPTIONS(description="U.S. Postal Service (USPS) two alphabetic character code for a U.S. state or U.S. territory associated with a location where an entity is situated."),
  Common_State_Name STRING OPTIONS(description="State or territory name."),
  Common_State_FIPS STRING OPTIONS(description="State Federal Information Processing Standard (FIPS) code identifying the two numeric character string assigned by the National Institute of Standards and Technology (NIST) to states, the District of Columbia, and U.S. territories."),
  Common_Region_Name STRING OPTIONS(description="Formal name for the U.S. Department of Health and Human Services (HHS) region associated with the entity location or address."),
  HPSA_Withdrawn_Date DATE OPTIONS(description="Date on which the designation status was changed from designated to withdrawn."),
  HPSA_Withdrawn_Date_String STRING OPTIONS(description="Date on which the designation status was changed from designated to withdrawn."),
  Provider_Type STRING OPTIONS(description="Type of mental health providers used in the full-time equivalent (FTE) calculations for the specified Health Professional Shortage Area (HPSA) designation."),
  Rural_Status_Code STRING OPTIONS(description="Status code indicating rural status of an entity (such as a facility or a geographic area)."),
  Rural_Status_Desc STRING OPTIONS(description="Rural status description for the entity (such as a facility or a geographic area)."),
  HPSA_Designation_Pop_Type_Desc STRING OPTIONS(description="This attribute represents Health Professional Shortage Area (HPSA) designation population type description."),
  BHCMIS_OrgID STRING OPTIONS(description="Organization source identification number from the HRSA, Bureau of Primary Health Care (BPHC) Health Center Management Information System (BHCMIS).")
)
OPTIONS(
  description="Metadata on the table is available here: https://data.hrsa.gov//DataDownload/DD_Files/HPSA_DATAMART_METADATA.XLSX",
  labels=[("freebqcovid", "")]
);

INSERT INTO `bigquery-public-data.sdoh_hrsa_shortage_areas.hpsa_mental_health` (Source_ID, Source_Name, Status_Code, Status_Description, Type_Code, Type_Desc, Address, City, State_Abbr, Postal_Code, Degree_of_Shortage, Designation_Date, Designation_Last_Update_Date, Designation_Pop, Estimated_Underserved_Pop, Estimated_Served_Pop, Formal_Ratio, Total_FTE_Clinicians, Metropolitan_Indicator_Code, Metropolitan_Indicator_Desc, Provider_Ratio_Goal, Percent_Pop_Below_Poverty, HPSA_Score, HPSA_Shortage, Discipline_Class_Num, Discipline_Class_Desc, Component_Source_ID, Component_Source_Name, Component_Status_Code, Component_Status_Desc, Component_Type_Code, Component_Type_Desc, Component_State_Abbr, Component_Postal_Code, Component_Designation_Date, Component_Designation_Date_String, Component_Designation_Last_Update_Date, Geography_ID, CountyFIPS, County_Name, StateCountyFIPS, State_FIPS, State_Abbr_2, State_Name, Primary_State_Name, Primary_State_FIPS, Primary_HHS_Region_Name, US_Mexico_Border_County, US_Mexico_Border_100km, Data_Warehouse_Record_Create_Date, Data_Warehouse_Record_Create_Date_Text, HPSA_Name, HPSA_Component_Name, Break_in_Designation, Geocoding_Primary_X, Geocoding_Primary_Y, HPSA_Pop_Type_Code, HPSA_Pop_Type_Desc, HPSA_Resident_Civilian_Pop, Common_City_Name_with_State_Abbr, Common_Postal_Code, Common_County_Name, Common_StateCounty_FIPS, Common_State_Abbr, Common_State_Name, Common_State_FIPS, Common_Region_Name, HPSA_Withdrawn_Date, HPSA_Withdrawn_Date_String, Provider_Type, Rural_Status_Code, Rural_Status_Desc, HPSA_Designation_Pop_Type_Desc, BHCMIS_OrgID) VALUES ('733007', 'Coos', 'W', 'Withdrawn', 'Hpsa Geo', 'Geographic HPSA', NULL, NULL, 'NH', NULL, 'Not applicable', '1979-05-30', '2003-06-27', NULL, NULL, NULL, NULL, 0.0, 'N', 'Non-Metropolitan', NULL, 9.0, 0, nan, 7, 'Mental Health', NULL, 'Coos', 'W', 'Withdrawn', 'SCTY', 'Single County', 'NH', NULL, '1979-05-30', '5/30/1979', '2003-06-27', '33007', 7, 'Coos', '33007', '33', 'NH', 'New Hampshire', 'New Hampshire', 33, 'Region I', 'N', 'N', '2019-12-17', '12/17/2019', 'Coos', 'Coos', 'N', nan, nan, 'TRC', 'Geographic Population', NULL, NULL, NULL, 'Coos County, NH', '33007', 'NH', 'New Hampshire', '33', 'Region I', '2003-06-27', '6/27/2003', NULL, 'R', 'Rural', 'Geographic Population', NULL), ('7449994412', 'Northern Rhode Island Catchment Area', 'W', 'Withdrawn', 'Hpsa Geo', 'Geographic HPSA', NULL, NULL, 'RI', NULL, 'Not applicable', '2003-02-20', '2008-08-11', 0, NULL, NULL, NULL, nan, 'M', 'Metropolitan', NULL, 6.5, 0, nan, 7, 'Mental Health', NULL, '184', 'W', 'Withdrawn', 'CT', 'Census Tract', 'RI', NULL, '2003-02-20', '2/20/2003', '2008-08-11', '44007018400', 7, 'Providence', '44007', '44', 'RI', 'Rhode Island', 'Rhode Island', 44, 'Region I', 'N', 'N', '2019-12-17', '12/17/2019', 'Northern Rhode Island Catchment Area', '184', 'N', nan, nan, 'TRC', 'Geographic Population', 0, NULL, NULL, 'Providence County, RI', '44007', 'RI', 'Rhode Island', '44', 'Region I', '2008-08-11', '8/11/2008', NULL, NULL, NULL, 'Geographic Population', NULL), ('7449994412', 'Northern Rhode Island Catchment Area', 'W', 'Withdrawn', 'Hpsa Geo', 'Geographic HPSA', NULL, NULL, 'RI', NULL, 'Not applicable', '2003-02-20', '2008-08-11', 0, NULL, NULL, NULL, nan, 'M', 'Metropolitan', NULL, 6.5, 0, nan, 7, 'Mental Health', NULL, '185', 'W', 'Withdrawn', 'CT', 'Census Tract', 'RI', NULL, '2003-02-20', '2/20/2003', '2008-08-11', '44007018500', 7, 'Providence', '44007', '44', 'RI', 'Rhode Island', 'Rhode Island', 44, 'Region I', 'N', 'N', '2019-12-17', '12/17/2019', 'Northern Rhode Island Catchment Area', '185', 'N', nan, nan, 'TRC', 'Geographic Population', 0, NULL, NULL, 'Providence County, RI', '44007', 'RI', 'Rhode Island', '44', 'Region I', '2008-08-11', '8/11/2008', NULL, NULL, NULL, 'Geographic Population', NULL), ('7449994412', 'Northern Rhode Island Catchment Area', 'W', 'Withdrawn', 'Hpsa Geo', 'Geographic HPSA', NULL, NULL, 'RI', NULL, 'Not applicable', '2003-02-20', '2008-08-11', 0, NULL, NULL, NULL, nan, 'M', 'Metropolitan', NULL, 6.5, 0, nan, 7, 'Mental Health', NULL, '130.02', 'W', 'Withdrawn', 'CT', 'Census Tract', 'RI', NULL, '2003-02-20', '2/20/2003', '2008-08-11', '44007013002', 7, 'Providence', '44007', '44', 'RI', 'Rhode Island', 'Rhode Island', 44, 'Region I', 'N', 'N', '2019-12-17', '12/17/2019', 'Northern Rhode Island Catchment Area', '130.02', 'N', nan, nan, 'TRC', 'Geographic Population', 0, NULL, NULL, 'Providence County, RI', '44007', 'RI', 'Rhode Island', '44', 'Region I', '2008-08-11', '8/11/2008', NULL, NULL, NULL, 'Geographic Population', NULL), ('7449994412', 'Northern Rhode Island Catchment Area', 'W', 'Withdrawn', 'Hpsa Geo', 'Geographic HPSA', NULL, NULL, 'RI', NULL, 'Not applicable', '2003-02-20', '2008-08-11', 0, NULL, NULL, NULL, nan, 'M', 'Metropolitan', NULL, 6.5, 0, nan, 7, 'Mental Health', NULL, '112', 'W', 'Withdrawn', 'CT', 'Census Tract', 'RI', NULL, '2003-02-20', '2/20/2003', '2008-08-11', '44007011200', 7, 'Providence', '44007', '44', 'RI', 'Rhode Island', 'Rhode Island', 44, 'Region I', 'N', 'N', '2019-12-17', '12/17/2019', 'Northern Rhode Island Catchment Area', '112', 'N', nan, nan, 'TRC', 'Geographic Population', 0, NULL, NULL, 'Providence County, RI', '44007', 'RI', 'Rhode Island', '44', 'Region I', '2008-08-11', '8/11/2008', NULL, NULL, NULL, 'Geographic Population', NULL);