-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.sdoh_hrsa_shortage_areas.hpsa_primary_care`
(
  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_primary_care` (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 ('1569995651', 'Ft. Washakie PHS Indian Health Center', 'D', 'Designated', 'IHS', 'Indian, Tribal and Urban Indian Organizations', 'PO BOX 128', 'Fort Washakie', 'WY', '82514-0128', NULL, '2006-03-01', '2011-07-27', NULL, NULL, NULL, NULL, nan, 'N', 'Non-Metropolitan', NULL, nan, 16, 0.0, 1, 'Primary Care', '1569995651', 'Ft. Washakie PHS Indian Health Center', '0', 'Unknown', 'UNK', 'Unknown', NULL, NULL, 'NaT', NULL, 'NaT', 'POINT', 13, 'Fremont', '56013', '56', 'WY', 'Wyoming', 'Wyoming', 56, 'Region VIII', 'N', 'N', '2019-12-16', '2019-12-16', 'Ft. Washakie PHS Indian Health Center', 'Ft. Washakie PHS Indian Health Center', 'N', -108.874268, 42.998532, NULL, NULL, NULL, 'Fort Washakie', 82514, 'Fremont County, WY', '56013', 'WY', 'Wyoming', '56', 'Region VIII', 'NaT', NULL, NULL, 'R', 'Rural', 'Indian, Tribal and Urban Indian Organizations', NULL), ('1469994698', 'McLaughlin PHS Indian Medical/Dental Clinic', 'D', 'Designated', 'IHS', 'Indian, Tribal and Urban Indian Organizations', '611 2nd Ave E', 'Mc Laughlin', 'SD', '57642', NULL, '2009-08-01', '2011-06-27', NULL, NULL, NULL, NULL, nan, 'N', 'Non-Metropolitan', NULL, nan, 17, 0.0, 1, 'Primary Care', '1469994698', 'McLaughlin PHS Indian Medical/Dental Clinic', '0', 'Unknown', 'UNK', 'Unknown', NULL, NULL, 'NaT', NULL, 'NaT', 'POINT', 31, 'Corson', '46031', '46', 'SD', 'South Dakota', 'South Dakota', 46, 'Region VIII', 'N', 'N', '2019-12-16', '2019-12-16', 'McLaughlin PHS Indian Medical/Dental Clinic', 'McLaughlin PHS Indian Medical/Dental Clinic', 'N', -100.8078118, 45.8105513, NULL, NULL, NULL, 'Mc Laughlin', 57642, 'Corson County, SD', '46031', 'SD', 'South Dakota', '46', 'Region VIII', 'NaT', NULL, NULL, 'R', 'Rural', 'Indian, Tribal and Urban Indian Organizations', NULL), ('1469994687', 'Wagner PHS Indian Hospital', 'D', 'Designated', 'IHS', 'Indian, Tribal and Urban Indian Organizations', '110 Washington Ave NW', 'Wagner', 'SD', '57380', NULL, '2002-10-26', '2002-10-26', NULL, NULL, NULL, NULL, nan, 'N', 'Non-Metropolitan', NULL, nan, 18, 0.0, 1, 'Primary Care', '1469994687', 'Wagner PHS Indian Hospital', '0', 'Unknown', 'UNK', 'Unknown', NULL, NULL, 'NaT', NULL, 'NaT', 'POINT', 23, 'Charles Mix', '46023', '46', 'SD', 'South Dakota', 'South Dakota', 46, 'Region VIII', 'N', 'N', '2019-12-16', '2019-12-16', 'Wagner PHS Indian Hospital', 'Wagner PHS Indian Hospital', 'N', -98.29762274, 43.08182503, NULL, NULL, NULL, 'Wagner', 57380, 'Charles Mix County, SD', '46023', 'SD', 'South Dakota', '46', 'Region VIII', 'NaT', NULL, NULL, 'R', 'Rural', 'Indian, Tribal and Urban Indian Organizations', NULL), ('141999413V', 'Portland Area Office', 'D', 'Designated', 'IHS', 'Indian, Tribal and Urban Indian Organizations', '1220 SW 3rd Ave Ste 476', 'Portland', 'OR', '97204-2825', NULL, '2007-12-01', '2007-12-01', NULL, NULL, NULL, NULL, nan, 'M', 'Metropolitan', NULL, nan, 0, 0.0, 1, 'Primary Care', '141999413V', 'Portland Area Office', '0', 'Unknown', 'UNK', 'Unknown', NULL, NULL, 'NaT', NULL, 'NaT', 'POINT', 51, 'Multnomah', '41051', '41', 'OR', 'Oregon', 'Oregon', 41, 'Region X', 'N', 'N', '2019-12-16', '2019-12-16', 'Portland Area Office', 'Portland Area Office', 'N', -122.677522, 45.51458007, NULL, NULL, NULL, 'Portland', 97204, 'Multnomah County, OR', '41051', 'OR', 'Oregon', '41', 'Region X', 'NaT', NULL, NULL, 'N', 'Non-Rural', 'Indian, Tribal and Urban Indian Organizations', NULL), ('14099940N2', 'Shawnee Health Center', 'D', 'Designated', 'IHS', 'Indian, Tribal and Urban Indian Organizations', '2307 Gordon Cooper Dr', 'Shawnee', 'OK', '74801-9007', NULL, '2002-10-26', '2011-08-02', 1, NULL, NULL, NULL, nan, 'M', 'Metropolitan', NULL, nan, 9, 0.0, 1, 'Primary Care', '14099940N2', 'Shawnee Health Center', '0', 'Unknown', 'UNK', 'Unknown', NULL, NULL, 'NaT', NULL, 'NaT', 'POINT', 125, 'Pottawatomie', '40125', '40', 'OK', 'Oklahoma', 'Oklahoma', 40, 'Region VI', 'N', 'N', '2019-12-16', '2019-12-16', 'Shawnee Health Center', 'Shawnee Health Center', 'N', -96.92613002, 35.29191891, NULL, NULL, NULL, 'Shawnee', 74801, 'Pottawatomie County, OK', '40125', 'OK', 'Oklahoma', '40', 'Region VI', 'NaT', NULL, NULL, 'R', 'Rural', 'Indian, Tribal and Urban Indian Organizations', NULL);