-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_medicare.referring_durable_medical_equip_2014`
(
  referring_npi STRING NOT NULL OPTIONS(description="NPI for the referring provider on the DMEPOS claim."),
  provider_last_name STRING OPTIONS(description="When the referring provider is registered in NPPES as an individual (entity type code=’I’), this is the referring provider’s last name. When the referring provider is registered as an organization (entity type code = ‘O’), this is the organization name."),
  provider_first_name STRING OPTIONS(description="When the referring provider is registered in NPPES as an individual (entity type code=’I’), this is the referring provider’s first name. When the referring provider is registered as an organization (entity type code = ‘O’), this will be blank."),
  provider_middle_initial STRING OPTIONS(description="When the referring provider is registered in NPPES as an individual (entity type code=’I’), this is the referring provider’s middle initial. When the referring provider is registered as an organization (entity type code = ‘O’), this will be blank."),
  provider_credentials STRING OPTIONS(description="When the referring provider is registered in NPPES as an individual (entity type code=’I’), these are the referring provider’s credentials. When the referring provider is registered as an organization (entity type code = ‘O’), this will be blank."),
  provider_gender STRING OPTIONS(description="When the referring provider is registered in NPPES as an individual (entity type code=’I’), this is the referring provider’s gender. When the referring provider is registered as an organization (entity type code = ‘O’), this will be blank."),
  provider_entity_code STRING OPTIONS(description="Type of entity reported in NPPES. An entity code of ‘I’ identifies referring providers registered as individuals and an entity type code of ‘O’ identifies referring providers registered as organizations."),
  provider_street_1 STRING OPTIONS(description="The first line of the referring provider’s street address, as reported in NPPES."),
  provider_street_2 STRING OPTIONS(description="The second line of the referring provider’s street address, as reported in NPPES."),
  provider_city STRING OPTIONS(description="The city where the referring provider is located, as reported in NPPES"),
  provider_state STRING OPTIONS(description="The state where the referring provider is located, as reported in NPPES. The fifty U.S. states and the District of Columbia are reported by the state postal abbreviation. The following values are used for other areas: 'XX' = 'Unknown' 'AA' = 'Armed Forces Central/South America' 'AE' = 'Armed Forces Europe' 'AP' = 'Armed Forces Pacific' 'AS' = 'American Samoa' 'GU' = 'Guam' 'MP' = 'North Mariana Islands' 'PR' = 'Puerto Rico' 'VI' = 'Virgin Islands' 'ZZ' = 'Foreign Country'"),
  provider_zip STRING OPTIONS(description="The referring provider’s zip code, as reported in NPPES."),
  provider_country STRING OPTIONS(description="The country where the referring provider is located, as reported in NPPES. The country code will be ‘US’ for any state or U.S. possession. For foreign countries (i.e., state values of ‘ZZ’), the provider country values include the following: AE=United Arab Emirates IT=Italy AG=Antigua JP=Japan AR=Argentina KR=Korea AU=Australia KW=Kuwait BO=Bolivia KY=Cayman Islands BR=Brazil LB=Lebanon CA=Canada MX=Mexico CH=Switzerland NL=Netherlands CN=China NO=Norway CO=Colombia NZ=New Zealand DE= Germany PA=Panama ES= Spain PK=Pakistan FR=France RW=Rwanda GB=Great Britain SA=Saudi Arabia HU= Hungary SY=Syria IL= Israel TH=Thailand IN=India TR=Turkey IS= Iceland VE=Venezuela"),
  provider_type STRING OPTIONS(description="Derived from the Medicare provider/supplier specialty code reported on all of the NPI's Part B non-institutional claims (DMEPOS and non-DMEPOS). For referring providers that have more than one Medicare specialty code reported on their claims, the Medicare specialty code associated with the largest number of services was used."),
  provider_type_flag STRING OPTIONS(description="A flag variable that indicates the source of the Referring Provider Type: \"S\" = Medicare Specialty Code description \"T\" = Taxonomy Code Classification description"),
  number_of_suppliers INT64 OPTIONS(description="Number of suppliers rendering DMEPOS products/services ordered by the referring provider."),
  number_of_supplier_hcpcs INT64 OPTIONS(description="Total number of unique DMEPOS product/service HCPCS codes billed by suppliers and ordered by the referring provider."),
  number_of_supplier_beneficiaries INT64 OPTIONS(description="Number of beneficiaries associated with the supplier DMEPOS products/services ordered by the referring provider. Beneficiary counts fewer than 11 have been suppressed to protect the privacy of Medicare beneficiaries."),
  number_of_supplier_claims INT64 OPTIONS(description="Number of DMEPOS claims submitted by the supplier, reflecting products/services ordered by the referring provider. Aggregated records based on number_of_supplier_claims fewer than 11 are not included in the data file."),
  number_of_supplier_services INT64 OPTIONS(description="Number of DMEPOS products/services rendered by the supplier; note that the metrics used to count the number provided can vary from service to service."),
  supplier_submitted_charges FLOAT64 OPTIONS(description="Average of the charges that suppliers submit for DMEPOS products/services. Total submitted charges can be calculated by multiplying the avg_supplier_submitted_charge by the number_of_supplier_services."),
  supplier_medicare_allowed_amount FLOAT64 OPTIONS(description="Average Medicare allowed amounts for the DMEPOS product/service rendered by suppliers. Medicare allowed amounts includes the amount Medicare pays, the deductible and coinsurance amounts that the beneficiary is responsible for paying, and any amounts that a third party is responsible for paying. Total Medicare allowed amounts can be calculated by multiplying the avg_supplier_medicare_allow_amt by the number_of_supplier_services."),
  supplier_medicare_payment_amount FLOAT64 OPTIONS(description="Average amount that Medicare paid suppliers after deductible and coinsurance amounts have been deducted for the line item DMEPOS product/service. Total Medicare payment amounts can be calculated by multiplying the avg_supplier_medicare_pmt_amt by the number_of_supplier_services."),
  supplier_medicare_standard_payment_amount FLOAT64 OPTIONS(description="Average amount that Medicare paid after beneficiary deductible and coinsurance amounts have been deducted for the line item DMEPOS product/service and after standardization of the Medicare payment has been applied. Standardization removes geographic differences in payment rates for individual product/services and makes Medicare payments across geographic areas comparable."),
  durable_medical_equipment_suppression_indicator STRING OPTIONS(description="A flag indicating the reason the utilization, charge and payment subtotal information for Durable Medical Equipment is suppressed. “*” = Primary suppressed due to Number of Durable Medical Equipment Claims between 1 and 10. “#” = Counter suppressed because the claim count from at least one of the corresponding claim count categories (Number of Prosthetic and Orthotic Claims or Number of Drug and Nutritional Products Claims) is between 1 and 10. Counter suppression prevents the disclosure of a primary suppressed value when all categories sum to the total value."),
  dme_suppliers INT64 OPTIONS(description="Number of suppliers rendering durable medical equipment products/services. A blank indicates the value is suppressed."),
  dme_hcpcs INT64 OPTIONS(description="Total number of unique durable medical equipment HCPCS codes billed by suppliers and ordered by the referring provider. A blank indicates the value is suppressed."),
  dme_beneficiaries INT64 OPTIONS(description="Total number of unique beneficiaries associated with durable medical equipment claims submitted by suppliers and ordered by the referring provider. Beneficiary counts fewer than 11 have been suppressed to protect the privacy of Medicare beneficiaries. A blank indicates the value is suppressed."),
  dme_claims INT64 OPTIONS(description="Total number of durable medical equipment claims submitted by suppliers, reflecting services ordered by the referring provider. A blank indicates the value is suppressed."),
  dme_services INT64 OPTIONS(description="Total durable medical equipment products/services rendered by suppliers and ordered by the referring provider. A blank indicates the value is suppressed."),
  dme_submitted_charges FLOAT64 OPTIONS(description="The total charges that suppliers submitted for all durable medical equipment products/services ordered by the referring provider. A blank indicates the value is suppressed."),
  dme_medicare_allowed_amount FLOAT64 OPTIONS(description="The Medicare allowed amount for all durable medical equipment products/services ordered by the referring provider. This figure is the sum of the amount Medicare pays, the deductible and coinsurance amounts that the beneficiary is responsible for paying, and any amounts that a third party is responsible for paying. A blank indicates the value is suppressed."),
  dme_medicare_payment_amount FLOAT64 OPTIONS(description="Amount that Medicare paid after deductible and coinsurance amounts have been deducted for all supplier's durable medical equipment line item products/services ordered by the referring provider. A blank indicates the value is suppressed."),
  dme_medicare_standard_payment_amount FLOAT64 OPTIONS(description="Amount that Medicare paid after beneficiary deductible and coinsurance amounts have been deducted for all supplier’s durable medical equipment line item products/services and after standardization of the Medicare payment has been applied. Standardization removes geographic differences in payment rates for individual product/services and makes Medicare payments across geographic areas comparable. A blank indicates the value is suppressed."),
  prosthetic_and_orthotic_suppression_indicator STRING OPTIONS(description="A flag indicating the reason the utilization, charge and payment subtotal information for Prosthetics and Orthotics is suppressed.  “*” = Primary suppressed due to Number of Prosthetic and Orthotic Claims between 1 and 10. “#” = Counter suppressed because the claim count from at least one of the corresponding claim count categories (Number of Durable Medical Equipment Claims or Number of Drug and Nutritional Products Claims) is between 1 and 10. Counter suppression prevents the disclosure of a primary suppressed value when all categories sum to the total value."),
  po_suppliers INT64 OPTIONS(description="Number of suppliers rendering prosthetic and orthotic products/services. A blank indicates the value is suppressed."),
  po_hcpcs INT64 OPTIONS(description="Total number of unique prosthetic and orthotic HCPCS codes billed by suppliers and ordered by the referring provider. A blank indicates the value is suppressed."),
  po_beneficiaries INT64 OPTIONS(description="Total number of unique beneficiaries associated with prosthetic and orthotic claims submitted by suppliers and ordered by the referring provider. Beneficiary counts fewer than 11 have been suppressed to protect the privacy of Medicare beneficiaries. A blank indicates the value is suppressed."),
  po_claims INT64 OPTIONS(description="Total number of prosthetic and orthotic claims submitted by suppliers, reflecting products/services ordered by the referring provider. A blank indicates the value is suppressed."),
  po_services INT64 OPTIONS(description="Total prosthetic and orthotic products/services rendered by suppliers and ordered by the referring provider. A blank indicates the value is suppressed.."),
  po_submitted_charges FLOAT64 OPTIONS(description="The total charges that suppliers submitted for all prosthetic and orthotic products/services ordered by the referring provider. A blank indicates the value is suppressed."),
  po_medicare_allowed_amount FLOAT64 OPTIONS(description="The Medicare allowed amount for all prosthetic and orthotic products/services ordered by the referring provider. This figure is the sum of the amount Medicare pays, the deductible and coinsurance amounts that the beneficiary is responsible for paying, and any amounts that a third party is responsible for paying. A blank indicates the value is suppressed."),
  po_medicare_payment_amount FLOAT64 OPTIONS(description="Amount that Medicare paid after deductible and coinsurance amounts have been deducted for all supplier prosthetic and orthotic line item products/services ordered by the referring provider. A blank indicates the value is suppressed."),
  po_medicare_standard_payment_amount FLOAT64 OPTIONS(description="Amount that Medicare paid after beneficiary deductible and coinsurance amounts have been deducted for all supplier’s prosthetic and orthotic line item products/services and after standardization of the Medicare payment has been applied. Standardization removes geographic differences in payment rates for individual product/services and makes Medicare payments across geographic areas comparable. A blank indicates the value is suppressed."),
  drug_and_nutritional_suppression_indicator STRING OPTIONS(description="A flag indicating the reason the utilization, charge and payment subtotal information for Drug and Nutritional products is suppressed. “*” = Primary suppressed due to Number of Drug and Nutritional Products Claims between 1 and 10. “#” = Counter suppressed because the claim count from at least one of the corresponding claim count categories (Number of Durable Medical Equipment Claims or Number of Orthotic and Prosthetic Claims) is between 1 and 10. Counter suppression prevents the disclosure of a primary suppressed value when all categories sum to the total value."),
  number_of_drug_and_nutritional_products_suppliers INT64 OPTIONS(description="Number of suppliers rendering drug and nutritional products/services. A blank indicates the value is suppressed."),
  number_of_drug_and_nutritional_products_hcpcs INT64 OPTIONS(description="Total number of unique drug and nutritional product HCPCS codes billed by suppliers and ordered by the referring provider. A blank indicates the value is suppressed."),
  number_of_drug_and_nutritional_products_beneficiaries INT64 OPTIONS(description="Total number of unique beneficiaries associated with drug and nutritional product claims submitted by suppliers and ordered by the referring provider. Beneficiary counts fewer than 11 have been suppressed to protect the privacy of Medicare beneficiaries. A blank indicates the value is suppressed."),
  number_of_drug_and_nutritional_products_claims INT64 OPTIONS(description="Total number of drug and nutritional product claims submitted by suppliers, reflecting services ordered by the referring provider. A blank indicates the value is suppressed."),
  number_of_drug_and_nutritional_products_services INT64 OPTIONS(description="Total drug and nutritional products/services rendered by suppliers and ordered by the referring provider. A blank indicates the value is suppressed."),
  drug_and_nutritional_products_submitted_charges FLOAT64 OPTIONS(description="The total charges that suppliers submitted for drug and nutritional products/services ordered by the referring provider. A blank indicates the value is suppressed."),
  drug_and_nutritional_products_medicare_allowed_amount FLOAT64 OPTIONS(description="The Medicare allowed amount for drug and nutritional products/services ordered by the referring provider. This figure is the sum of the amount Medicare pays, the deductible and coinsurance amounts that the beneficiary is responsible for paying, and any amounts that a third party is responsible for paying. A blank indicates the value is suppressed."),
  drug_and_nutritional_products_medicare_payment_amount FLOAT64 OPTIONS(description="Amount that Medicare paid suppliers after deductible and coinsurance amounts have been deducted for drug and nutritional line item products/services ordered by the referring provider. A blank indicates the value is suppressed."),
  drug_and_nutritional_products_medicare_standard_payment_amount FLOAT64 OPTIONS(description="Amount that Medicare paid after beneficiary deductible and coinsurance amounts have been deducted for all supplier’s drug and nutritional line item products/services and after standardization of the Medicare payment has been applied.")
);

INSERT INTO `bigquery-public-data.cms_medicare.referring_durable_medical_equip_2014` (referring_npi, provider_last_name, provider_first_name, provider_middle_initial, provider_credentials, provider_gender, provider_entity_code, provider_street_1, provider_street_2, provider_city, provider_state, provider_zip, provider_country, provider_type, provider_type_flag, number_of_suppliers, number_of_supplier_hcpcs, number_of_supplier_beneficiaries, number_of_supplier_claims, number_of_supplier_services, supplier_submitted_charges, supplier_medicare_allowed_amount, supplier_medicare_payment_amount, supplier_medicare_standard_payment_amount, durable_medical_equipment_suppression_indicator, dme_suppliers, dme_hcpcs, dme_beneficiaries, dme_claims, dme_services, dme_submitted_charges, dme_medicare_allowed_amount, dme_medicare_payment_amount, dme_medicare_standard_payment_amount, prosthetic_and_orthotic_suppression_indicator, po_suppliers, po_hcpcs, po_beneficiaries, po_claims, po_services, po_submitted_charges, po_medicare_allowed_amount, po_medicare_payment_amount, po_medicare_standard_payment_amount, drug_and_nutritional_suppression_indicator, number_of_drug_and_nutritional_products_suppliers, number_of_drug_and_nutritional_products_hcpcs, number_of_drug_and_nutritional_products_beneficiaries, number_of_drug_and_nutritional_products_claims, number_of_drug_and_nutritional_products_services, drug_and_nutritional_products_submitted_charges, drug_and_nutritional_products_medicare_allowed_amount, drug_and_nutritional_products_medicare_payment_amount, drug_and_nutritional_products_medicare_standard_payment_amount) VALUES ('1659567360', 'BARNETT', 'CATHERINE', 'A', 'NP-C', 'F', 'I', '120 E BEAUREGARD AVE', NULL, 'SAN ANGELO', 'TX', '769035919', 'US', 'Certified Clinical Nurse Specialist', 'S', 27, 46, 38, 155, 6203, 38144.76, 18747.85, 14168.85, 16585.37, NULL, 20, 32, 34, 139, 5776, 31803.2, 14002.87, 10562.97, 12782.53, NULL, 8, 13, NULL, 16, 407, 5314.56, 4084.98, 3155.96, 3352.92, NULL, 5, 1, NULL, 20, 20, 1027.0, 660.0, 449.92, 449.92), ('1487782025', 'RUGHWANI', 'NISHA', 'A', 'M.D,', 'F', 'I', '1440 MADISON AVE', NULL, 'NEW YORK', 'NY', '100296508', 'US', 'Geriatric Medicine', 'S', 25, 46, 35, 136, 1846, 19956.51, 11307.3, 8598.77, 11451.75, NULL, 22, 40, 33, 122, 830, 15920.82, 7756.17, 5814.66, 8423.15, NULL, 5, 5, NULL, 14, 1004, 3639.69, 3155.13, 2473.67, 2718.16, NULL, 5, 1, NULL, 12, 12, 396.0, 396.0, 310.44, 310.44), ('1649460726', 'CHRISTIE', 'ALLISON', 'J', 'M.D., M.P.H.', 'F', 'I', '607 WASHINGTON HWY', NULL, 'MORRISVILLE', 'VT', '056618652', 'US', 'Pediatric Medicine', 'S', 30, 45, 62, 264, 5851, 73326.29, 28051.18, 20773.03, 23686.55, NULL, 22, 24, 53, 233, 2842, 57706.56, 17490.35, 12832.79, 15486.65, NULL, 10, 20, 13, 31, 2985, 14782.73, 9768.83, 7345.23, 7604.89, NULL, 5, 1, NULL, 24, 24, 837.0, 792.0, 595.01, 595.01), ('1851614838', 'SIDES', 'CONNIE', 'J', 'AHCNS', 'F', 'I', '1 HOSPITAL DR', NULL, 'COLUMBIA', 'MO', '652120001', 'US', 'Certified Clinical Nurse Specialist', 'S', 5, 23, 14, 62, 12157, 31574.71, 12982.54, 10178.33, 10279.58, NULL, 2, 9, NULL, 38, 294, 5140.42, 2479.11, 1943.59, 2031.86, NULL, 4, 11, NULL, 13, 596, 2992.59, 2439.16, 1912.33, 1925.31, NULL, 1, 3, NULL, 16, 11267, 23441.7, 8064.27, 6322.41, 6322.41), ('1114151461', 'BOLAND', 'JUDITH', 'R', 'RN, MSN, ACNS-BC', 'F', 'I', '2305 SOUTH 65 HIGHWAY', NULL, 'MARSHALL', 'MO', '653403702', 'US', 'Certified Clinical Nurse Specialist', 'S', 7, 33, 15, 127, 5845, 16962.9, 13271.24, 10031.89, 10068.21, NULL, 7, 25, 15, 116, 1537, 12332.61, 8926.33, 6808.68, 6843.72, NULL, 1, 3, NULL, 12, 103, 289.76, 266.45, 192.3, 193.58, NULL, 2, 5, NULL, 16, 4205, 4340.53, 4078.46, 3030.91, 3030.91);