-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_medicare.hospice_providers_2014`
(
  provider_id STRING OPTIONS(description="The 6-digit identification number for the hospice provider on the claim."),
  name STRING OPTIONS(description="The hospice provider name, as reported in the POS file."),
  street_address STRING OPTIONS(description="The hospice provider address, as reported in the POS file."),
  city STRING OPTIONS(description="The city where the hospice provider is located, as reported in the POS file."),
  state STRING OPTIONS(description="The state where the hospice is located, as reported in the POS file. The fifty U.S. states, the District of Columbia and Puerto Rico are reported by the state postal abbreviation."),
  zip_code INT64 OPTIONS(description="The hospice provider zip code, as reported in the POS file."),
  hrr STRING OPTIONS(description="The Hospital Referral Region the hospice provider is located, based on provider ZIP code."),
  hospice_beneficiaries INT64 OPTIONS(description="Number of distinct Medicare beneficiaries receiving at least one day of hospice care in the calendar year."),
  total_days INT64 OPTIONS(description="Total count of hospice care days provided in the calendar year. Includes first and last day of care."),
  total_medicare_payment_amount INT64 OPTIONS(description="Total amount that Medicare paid for hospice care. Hospice services do not have any cost-sharing requirements and the Medicare payment amount will equal the allowed amount."),
  total_medicare_standard_payment_amount INT64 OPTIONS(description="Total amount that Medicare paid for hospice care adjusted for geographic differences in payment rates."),
  total_charge_amount INT64 OPTIONS(description="Total charges that hospice providers submitted for hospice care."),
  percent_routine_home_care_days INT64 OPTIONS(description="Percent of total number of hospice days that were routine home care (RHC) days. RHC days identified using Revenue Code 0651."),
  physician_services INT64 OPTIONS(description="Total number of hospice care physician services provided. Physician services identified using Revenue Code 0657."),
  home_health_visit_hours_per_day FLOAT64 OPTIONS(description="Average number of hours per day of home health hospice care provided. Home health visits identified using Revenue Codes 0570, 0571, 0572 and 0579."),
  skilled_nursing_visit_hours_per_day FLOAT64 OPTIONS(description="Average number of hours per day of skilled nursing hospice care provided. Skilled nursing visits identified using Revenue Codes 0550, 0551, 0552 and 0559."),
  social_service_visit_hours_per_day FLOAT64 OPTIONS(description="Average number of hours per day of social services hospice care provided. Social service visits identified using Revenue Codes 0560, 0561, 0562 and 0569."),
  total_live_discharges INT64 OPTIONS(description="Number of distinct Medicare beneficiaries with live discharges from hospice care. A hospice beneficiary was considered to have a live discharge if hospice beneficary did not die in hospice care and was not receiving hospice care in CY2015. Includes live discharges for any reason including revocation."),
  hospice_beneficiaries_with_seven_or_fewer_hospice_care_days INT64 OPTIONS(description="Number of distinct Medicare beneficiaries with 7 or fewer hospice care days in CY2014. Excludes hospice beneficaries whose hospice care continued from a previous calendar year or into the next calendar year."),
  hospice_beneficiaries_with_more_than_sixty_hospice_care_days INT64 OPTIONS(description="Number of distinct Medicare beneficiaries with more than 60 hospice care days in CY2014."),
  hospice_beneficiaries_with_more_than_one_hundred_eighty_hospice_care_days INT64 OPTIONS(description="Number of distinct Medicare beneficiaries with more than 180 hospice care days in CY2014."),
  home_health_visit_hours_per_day_during_week_prior_to_death FLOAT64 OPTIONS(description="Average number of hours per day of home health hospice care provided during the seven days prior to death. Home health visits identified using Revenue Codes 0570, 0571, 0572 and 0579."),
  skilled_nursing_visit_hours_per_day_during_week_prior_to_death FLOAT64 OPTIONS(description="Average number of hours per day of skilled nursing hospice care provided during the seven days prior to death. Skilled nursing visits identified using Revenue Codes 0550, 0551, 0552 and 0559."),
  social_service_visit_hours_per_day_during_week_prior_to_death FLOAT64 OPTIONS(description="Average number of hours per day of social services hospice care provided during the seven days prior to death. Social service visits identified using Revenue Codes 0560, 0561, 0562 and 0569."),
  average_age FLOAT64 OPTIONS(description="Average age of Medicare beneficiaries using hospice care in CY2014."),
  male_hospice_beneficiaries INT64 OPTIONS(description="Number of distinct male Medicare beneficiaries receiving at least one day of hospice care in the calendar year."),
  female_hospice_beneficiaries INT64 OPTIONS(description="Number of distinct female Medicare beneficiaries receiving at least one day of hospice care in the calendar year."),
  white_hospice_beneficiaries INT64 OPTIONS(description="Number of distinct white Medicare beneficiaries receiving at least one day of hospice care in the calendar year."),
  black_hospice_beneficiaries INT64 OPTIONS(description="Number of distinct black Medicare beneficiaries receiving at least one day of hospice care in the calendar year."),
  asian_hospice_beneficiaries INT64 OPTIONS(description="Number of distinct Asian Medicare beneficiaries receiving at least one day of hospice care in the calendar year."),
  hispanic_hospice_beneficiaries INT64 OPTIONS(description="Number of distinct Hispanic Medicare beneficiaries receiving at least one day of hospice care in the calendar year."),
  other_unknown_race_hospice_beneficiaries INT64 OPTIONS(description="Number of distinct Medicare beneficiaries of other/unknown race receiving at least one day of hospice care in the calendar year."),
  medicare_advantage_hospice_beneficiaries INT64 OPTIONS(description="Number of distinct Medicare beneficiaries enrolled in Medicare Advantage for at least one month and receiving at least one day of hospice care in the calendar year."),
  medicaid_eligible_hospice_beneficiaries INT64 OPTIONS(description="Number of distinct Medicare beneficiaries eligible for Medicaid for at least one month and receiving at least one day of hospice care in the calendar year."),
  hospice_beneficiaries_with_a_primary_diagnosis_of_cancer INT64 OPTIONS(description="Number of distinct Medicare beneficiaries receiving hospice care for a primary diagnosis of cancer. Clinical Classifications Software single level diagnosis categories 11-17 were used to define cancer diagnoses. If a hospice beneficiary had more than one primary diagnosis the most frequent diagnosis in terms of hospice care days was used."),
  hospice_beneficiaries_with_a_primary_diagnosis_of_dementia INT64 OPTIONS(description="Number of distinct Medicare beneficiaries receiving hospice care for a primary diagnosis of dementia. Clinical Classifications Software single level diagnosis category 653 were used to define dementia diagnoses. If a hospice beneficiary had more than one primary diagnosis the most frequent diagnosis in terms of hospice care days was used."),
  hospice_beneficiaries_with_a_primary_diagnosis_of_stroke INT64 OPTIONS(description="Number of distinct Medicare beneficiaries receiving hospice care for a primary diagnosis of circulatory/heart disease. Clinical Classifications Software single level diagnosis categories 96-108 and 114-121 were used to define circulatory/heart diagnoses. If a hospice beneficiary had more than one primary diagnosis the most frequent diagnosis in terms of hospice care days was used."),
  hospice_beneficiaries_with_a_primary_diagnosis_of_circulatory_heart_disease INT64 OPTIONS(description="Number of distinct Medicare beneficiaries receiving hospice care for a primary diagnosis of stroke. Clinical Classifications Software single level diagnosis categories 109-113 were used to define stroke diagnoses. If a hospice beneficiaryhad more than one primary diagnosis the most frequent diagnosis in terms of hospice care days was used."),
  hospice_beneficiaries_with_a_primary_diagnosis_of_respiratory_disease INT64 OPTIONS(description="Number of distinct Medicare beneficiaries receiving hospice care for a primary diagnosis of respiratory disease. Clinical Classifications Software single level diagnosis categories 127-134 were used to define respiratory diagnoses. If a hospice beneficiary had more than one primary diagnosis the most frequent diagnosis in terms of hospice care days was used."),
  hospice_beneficiaries_with_other_primary_diagnoses INT64 OPTIONS(description="Number of distinct Medicare beneficiaries receiving hospice care for a primary diagnosis other than cancer, dementia, circulatory/heart, stroke, or respiratory. If a hospice beneficiary had more than one primary diagnosis the most frequent diagnosis in terms of hospice care days was used."),
  site_of_service_home_hospice_beneficiaries INT64 OPTIONS(description="Number of distinct Medicare beneficiaries receiving the majority of their hospice care days at home. Site of service was determined using HCPCS codes Q5001-Q5010, Q5001 indicates care provided in hospice beneficiary's private residence (home)."),
  site_of_service_assisted_living_facility_hospice_beneficiaries INT64 OPTIONS(description="Number of distinct Medicare beneficiaries receiving the majority of their hospice care days in an assisted living facility. Site of service was determined using HCPCS codes Q5001-Q5010, Q5002 indicates care provided in an assisted living facility."),
  site_of_service_long_term_care_or_non_skilled_nursing_facility_hospice_beneficiaries INT64 OPTIONS(description="Number of distinct Medicare beneficiaries receiving the majority of their hospice care days in a long term care or non-skilled nursing facility. Site of service was determined using HCPCS codes Q5001-Q5010, Q5003 indicates care provided in a long term care or non-skilled nursing facility."),
  site_of_service_skilled_nursing_facility_hospice_beneficiaries INT64 OPTIONS(description="Number of distinct Medicare beneficiaries receiving the majority of their hospice care days in a skilled nursing facility. Site of service was determined using HCPCS codes Q5001-Q5010, Q5004 indicates care provided in a skilled nursing facility."),
  site_of_service_inpatient_hospital_hospice_beneficiaries INT64 OPTIONS(description="Number of distinct Medicare beneficiaries receiving the majority of their hospice care days in an inpatient hospital. Site of service was determined using HCPCS codes Q5001-Q5010, Q5005 indicates care provided in an inpatient hospital."),
  site_of_service_inpatient_hospice_hospice_beneficiaries INT64 OPTIONS(description="Number of distinct Medicare beneficiaries receiving the majority of their hospice care days in an inpatient hospice facility. Site of service was determined using HCPCS codes Q5001-Q5010, Q5006 indicates care provided in an inpatient hospice facility."),
  site_of_service_other_facility_hospice_beneficiaries INT64 OPTIONS(description="Number of distinct Medicare beneficiaries receiving the majority of their hospice care days in a long term care hospital, psychiatric facility, home care in a hospice facility or unknown facility. Site of service was determined using HCPCS codes Q5001-Q5010, Q5007-Q5010 indicate care provided in other facilities.")
);

INSERT INTO `bigquery-public-data.cms_medicare.hospice_providers_2014` (provider_id, name, street_address, city, state, zip_code, hrr, hospice_beneficiaries, total_days, total_medicare_payment_amount, total_medicare_standard_payment_amount, total_charge_amount, percent_routine_home_care_days, physician_services, home_health_visit_hours_per_day, skilled_nursing_visit_hours_per_day, social_service_visit_hours_per_day, total_live_discharges, hospice_beneficiaries_with_seven_or_fewer_hospice_care_days, hospice_beneficiaries_with_more_than_sixty_hospice_care_days, hospice_beneficiaries_with_more_than_one_hundred_eighty_hospice_care_days, home_health_visit_hours_per_day_during_week_prior_to_death, skilled_nursing_visit_hours_per_day_during_week_prior_to_death, social_service_visit_hours_per_day_during_week_prior_to_death, average_age, male_hospice_beneficiaries, female_hospice_beneficiaries, white_hospice_beneficiaries, black_hospice_beneficiaries, asian_hospice_beneficiaries, hispanic_hospice_beneficiaries, other_unknown_race_hospice_beneficiaries, medicare_advantage_hospice_beneficiaries, medicaid_eligible_hospice_beneficiaries, hospice_beneficiaries_with_a_primary_diagnosis_of_cancer, hospice_beneficiaries_with_a_primary_diagnosis_of_dementia, hospice_beneficiaries_with_a_primary_diagnosis_of_stroke, hospice_beneficiaries_with_a_primary_diagnosis_of_circulatory_heart_disease, hospice_beneficiaries_with_a_primary_diagnosis_of_respiratory_disease, hospice_beneficiaries_with_other_primary_diagnoses, site_of_service_home_hospice_beneficiaries, site_of_service_assisted_living_facility_hospice_beneficiaries, site_of_service_long_term_care_or_non_skilled_nursing_facility_hospice_beneficiaries, site_of_service_skilled_nursing_facility_hospice_beneficiaries, site_of_service_inpatient_hospital_hospice_beneficiaries, site_of_service_inpatient_hospice_hospice_beneficiaries, site_of_service_other_facility_hospice_beneficiaries) VALUES ('71500', 'CONNECTICUT HOSPICE INC, THE', '100 DOUBLE BEACH ROAD', 'BRANFORD', 'CT', 6405, 'CT - New Haven', 2034, 80083, 22875504, 19846238, 54149029, 84, 8117, 0.441, 0.391, 0.025, 132, 715, 368, 107, 0.272, 0.31, 0.037, 82.9, 836, 1198, 1801, 133, 12, 69, 19, 472, 469, 750, 233, 126, 292, 212, 421, 706, 45, 24, 207, 206, 834, 12), ('101533', 'HOSPICE OF THE COMFORTER INC', '480 WEST CENTRAL PARKWAY', 'ALTAMONTE SPRINGS', 'FL', 32714, 'FL - Orlando', 2098, 94665, 16219877, 17105829, 22197029, 95, 2111, 0.388, 0.318, 0.047, 232, 777, 478, 141, 0.442, 0.6, 0.074, 81.0, 949, 1149, 1585, 178, 37, 279, 19, 660, 414, 784, 301, 139, 293, 276, 305, 1131, 102, 130, 82, 97, 530, 26), ('101545', 'VITAS HEALTHCARE CORPORATION OF FLORIDA', '4450 W EAU GALLIE BLVD STE 250', 'MELBOURNE', 'FL', 32934, 'FL - Orlando', 22915, 2023444, 412884798, 417381588, 863441086, 92, 87682, 0.728, 0.784, 0.048, 2125, 5379, 8893, 4321, 0.676, 1.565, 0.112, 83.5, 9204, 13711, 14641, 2516, 176, 5383, 199, 9781, 6737, 5158, 1846, 3386, 4487, 2097, 5941, 10605, 4274, 3171, 25, 1313, 3511, 16), ('101508', 'SUNCOAST HOSPICE', '5771 ROOSEVELT BOULEVARD', 'CLEARWATER', 'FL', 33760, 'FL - Clearwater', 6677, 449662, 78623099, 83197773, 197295641, 95, 13567, 0.247, 0.35, 0.091, 629, 1959, 2129, 852, 0.258, 0.794, 0.124, 82.6, 2770, 3907, 6124, 259, 53, 196, 45, 2494, 1618, 1939, 1445, 477, 1079, 761, 976, 2659, 882, 1255, 57, 183, 1616, 25), ('101516', 'HOPE HOSPICE AND COMMUNITY SERVICES INC', '9470 HEALTHPARK CIRCLE', 'FORT MYERS', 'FL', 33908, 'FL - Fort Myers', 4570, 290390, 54485433, 57711413, 119603846, 92, 16323, 0.396, 0.278, 0.084, 368, 1229, 1360, 535, 0.763, 0.412, 0.114, 82.0, 2199, 2371, 4146, 150, 19, 230, 25, 1116, 783, 1405, 888, 329, 776, 528, 644, 1872, 478, 213, 285, 150, 1525, 47);