-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_medicare.part_d_prescriber_2014`
(
  npi STRING NOT NULL OPTIONS(description="National Provider Identifier"),
  nppes_provider_last_org_name STRING OPTIONS(description="Last Name/Organization Name of the Provider"),
  nppes_provider_first_name STRING OPTIONS(description="First Name of the Provider"),
  nppes_provider_city STRING OPTIONS(description="City of the Provider"),
  nppes_provider_state STRING OPTIONS(description="State Code of the Provider"),
  specialty_description STRING OPTIONS(description="Provider Specialty Type"),
  description_flag STRING OPTIONS(description="Source of Provider Specialty"),
  drug_name STRING NOT NULL OPTIONS(description="Name of the drug"),
  generic_name STRING OPTIONS(description="Generic name of the drug"),
  bene_count INT64 OPTIONS(description="Number of Medicare Beneficiaries"),
  total_claim_count INT64 OPTIONS(description="Number of Medicare Part D Claims, Including Refills"),
  total_day_supply INT64 OPTIONS(description="Number of Day's Supply for All Claims"),
  total_drug_cost FLOAT64 OPTIONS(description="Aggregate Cost Paid for All Claims"),
  bene_count_ge65 INT64 OPTIONS(description="Number of Medicare Beneficiaries Age 65+"),
  bene_count_ge65_suppress_flag STRING OPTIONS(description="Reason for Suppression of Bene_Count_ge65"),
  total_claim_count_ge65 INT64 OPTIONS(description="Number of Claims, Including Refills, for Beneficiaries Age 65+"),
  ge65_suppress_flag STRING OPTIONS(description="Reason for Suppression of Total_Claim_Count_Ge65, Total_Drug_Cost_Ge65, and Total_Day_Supply_Ge65"),
  total_day_supply_ge65 INT64 OPTIONS(description="Number of Day's Supply for All Claims for Beneficiaries Age 65+"),
  total_drug_cost_ge65 FLOAT64 OPTIONS(description="Aggregate Cost Paid for All Claims for Beneficiaries Age 65+"),
  total_30_day_fill_count FLOAT64 OPTIONS(description="The aggregate number of Medicare Part D standardized 30-day fills. The standardized 30-day fill is derived from the number of days supplied on each Part D claim divided by 30. Standardized 30-day fill values less than 1.0 were bottom-coded with a value of 1.0 and standardized 30- day fill values greater than 12.0 were top-coded with a value of 12.0."),
  total_30_day_fill_count_ge65 FLOAT64 OPTIONS(description="The number of Medicare Part D standardized 30-day fills for beneficiaries age 65 and older. The standardized 30-day fill is derived from the number of days supplied on each Part D claim divided by 30. Standardized 30-day fill values less than 1.0 were bottom-coded with a value of 1.0 and standardized 30-day fill values greater than 12.0 were top-coded with a value of 12.0.")
);

INSERT INTO `bigquery-public-data.cms_medicare.part_d_prescriber_2014` (npi, nppes_provider_last_org_name, nppes_provider_first_name, nppes_provider_city, nppes_provider_state, specialty_description, description_flag, drug_name, generic_name, bene_count, total_claim_count, total_day_supply, total_drug_cost, bene_count_ge65, bene_count_ge65_suppress_flag, total_claim_count_ge65, ge65_suppress_flag, total_day_supply_ge65, total_drug_cost_ge65, total_30_day_fill_count, total_30_day_fill_count_ge65) VALUES ('1003800079', 'GROSSNICKLE', 'RICHARD', 'PARIS', 'TX', 'Ophthalmology', 'S', 'TOBRAMYCIN', 'TOBRAMYCIN', 71, 107, 2628, 834.52, NULL, '#', NULL, '#', NULL, nan, 111.3, nan), ('1003818261', 'KLEIN', 'SCOTT', 'WINTER HAVEN', 'FL', 'Ophthalmology', 'S', 'POLYMYXIN B SUL-TRIMETHOPRIM', 'POLYMYXIN B SULF/TRIMETHOPRIM', 31, 35, 1262, 311.12, NULL, '#', NULL, '#', NULL, nan, 43.8, nan), ('1003831397', 'ANDERSON', 'SHAWN', 'MERIDIAN', 'MS', 'Family Practice', 'S', 'TRAMADOL HCL-ACETAMINOPHEN', 'TRAMADOL HCL/ACETAMINOPHEN', 48, 60, 1208, 605.78, NULL, '#', NULL, '#', NULL, nan, 61.5, nan), ('1003909094', 'SHULTZ', 'CHAD', 'YOUNGSTOWN', 'OH', 'Optometry', 'S', 'DORZOLAMIDE-TIMOLOL', 'DORZOLAMIDE HCL/TIMOLOL MALEAT', NULL, 14, 679, 427.85, NULL, '#', NULL, '#', NULL, nan, 22.6, nan), ('1023058245', 'NIGBOR', 'DOUGLAS', 'GASTONIA', 'NC', 'Nephrology', 'S', 'HYDRALAZINE HCL', 'HYDRALAZINE HCL', 17, 65, 2430, 1327.37, NULL, '#', NULL, '#', NULL, nan, 81.0, nan);