-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_medicare.referring_durable_medical_equip_2013`
(
  referring_npi STRING OPTIONS(description="NPI for the referring provider on the DMEPOS claim."),
  referring_provider_last_name_organization_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."),
  referring_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."),
  referring_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."),
  referring_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."),
  referring_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."),
  referring_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."),
  referring_provider_street_1 STRING OPTIONS(description="The first line of the referring provider’s street address, as reported in NPPES."),
  referring_provider_street_2 STRING OPTIONS(description="The second line of the referring provider’s street address, as reported in NPPES."),
  referring_provider_city STRING OPTIONS(description="The city where the referring provider is located, as reported in NPPES."),
  referring_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'"),
  referring_provider_zip STRING OPTIONS(description="The referring provider’s zip code, as reported in NPPES."),
  referring_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’; ‘IL’= Israel’; ‘AR’= ‘Argentina’; ‘IN’= India’; ‘AU’= ‘Australia’; ‘IS’= Iceland; ‘BR’= ‘Brazil’; ‘IT’= Italy’; ‘CA’= ‘Canada’; ‘JP’= Japan’; ‘CH’= Switzerland’; ‘KR’= ‘Korea’; ‘CN’= China’; ‘NL’= ‘Netherlands’; ‘CO’= Colombia’; ‘PK’= ‘Pakistan’; ‘DE’= ‘Germany’; ‘SA’= ‘Saudi Arabia’; ‘ES’= ‘Spain’; ‘SY’= ‘Syria’; ‘FR’= France’; ‘TR’= ‘Turkey’; ‘GB’= Great Britain’; ‘VE’= ‘Venezuela’; ‘HU’= Hungary’"),
  referring_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 & 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. Where a prescriber's NPI did not have associated Part B claims, the taxonomy code associated with the NPI in NPPES was mapped to a Medicare specialty code using an external crosswalk published here: http://www.cms.gov/Medicare/Provider-Enrollment-and-Certification/MedicareProviderSupEnroll/Taxonomy.html. For any taxonomy codes that could not be mapped to a Medicare specialty code, the taxonomy classification description was used."),
  referring_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 products/services billed through DMEPOS MACs."),
  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="Total number of unique beneficiaries associated with DMEPOS 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."),
  number_of_supplier_claims INT64 OPTIONS(description="Total number of DMEPOS claims submitted by suppliers, reflecting products/services ordered by the referring provider."),
  number_of_supplier_services INT64 OPTIONS(description="Total DMEPOS products/services rendered by suppliers and ordered by the referring provider."),
  supplier_submitted_charges FLOAT64 OPTIONS(description="The total charges that suppliers submitted for all DMEPOS products/services ordered by the referring provider."),
  supplier_medicare_allowed_amount FLOAT64 OPTIONS(description="The Medicare allowed amount for all DMEPOS 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."),
  supplier_medicare_payment_amount FLOAT64 OPTIONS(description="Amount that Medicare paid after deductible and coinsurance amounts have been deducted for all supplier's DMEPOS line item products/services ordered by the referring provider."),
  durable_medical_equipment_suppression_indicator STRING OPTIONS(description="A 1-byte value which defines the suppression, if needed, of the utilization, charge and payment information associated with durable medical equipment HCPCS codes. A value of '*' means the suppressed information is based on a dme-specific claim count of 1 through 10. A value of '#' means the dme-specific information has been counter-suppressed. Counter-suppression is needed when the display of dme-specific data could be used to recalculate suppressed values in non-dme-specific columns."),
  number_of_durable_medical_equipment_suppliers INT64 OPTIONS(description="Number of suppliers rendering durable medical equipment products/services."),
  number_of_durable_medical_equipment_hcpcs 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."),
  number_of_durable_medical_equipment_beneficiaries INT64 OPTIONS(description="Total number of unique durable medical equipment hcpcs codes billed by suppliers and ordered by the referring provider."),
  number_of_durable_medical_equipment_claims INT64 OPTIONS(description="Total number of durable medical equipment claims submitted by suppliers, reflecting services ordered by the referring provider."),
  number_of_durable_medical_equipment_services INT64 OPTIONS(description="Total durable medical equipment products/services rendered by suppliers and ordered by the referring provider."),
  durable_medical_equipment_submitted_charges FLOAT64 OPTIONS(description="The total charges that suppliers submitted for all durable medical equipment products/services ordered by the referring provider."),
  durable_medical_equipment_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."),
  durable_medical_equipment_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."),
  prosthetic_and_orthotic_suppression_indicator STRING OPTIONS(description="A 1-byte value which defines the suppression, if needed, of the utilization, charge and payment information associated with prosthetic and orthotic HCPCS codes. A value of '*' means the suppressed information is based on a prosthetic and orthotic-specific claim count of 1 through 10. A value of '#' means the prosthetic and orthotic-specific information has been counter-suppressed. Counter-suppression is needed when the display of prosthetic and orthotic-specific data could be used to recalculate suppressed values in non-prosthetic and orthotic-specific columns."),
  number_of_prosthetic_and_orthotic_suppliers INT64 OPTIONS(description="Number of suppliers rendering prosthetic and orthotic products/services."),
  number_of_prosthetic_and_orthotic_hcpcs INT64 OPTIONS(description="Total number of unique prosthetic and orthotic hcpcs codes billed by suppliers and ordered by the referring provider."),
  number_of_prosthetic_and_orthotic_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."),
  number_of_prosthetic_and_orthotic_claims INT64 OPTIONS(description="Total number of prosthetic and orthotic claims submitted by suppliers, reflecting products/services ordered by the referring provider."),
  number_of_prosthetic_and_orthotic_services INT64 OPTIONS(description="Total prosthetic and orthotic products/services rendered by suppliers and ordered by the referring provider."),
  prosthetic_and_orthotic_submitted_charges FLOAT64 OPTIONS(description="The total charges that suppliers submitted for all prosthetic and orthotic products/services ordered by the referring provider."),
  prosthetic_and_orthotic_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."),
  prosthetic_and_orthotic_medicare_payment_amount FLOAT64 OPTIONS(description="Amount that Medicare paid after deductible and coinsurance amounts have been deducted for all supplier's prosthetic and orthotic line item products/services ordered by the referring provider."),
  drug_and_nutritional_suppression_indicator STRING OPTIONS(description="A 1-byte value which defines the suppression, if needed, of the utilization, charge and payment information associated with drug and nutritional HCPCS codes. A value of '*' means the suppressed information is based on a drug and nutritional-specific claim count of 1 through 10. A value of '#' means the drug and nutritional-specific information has been counter-suppressed. Counter-suppression is needed when the display of drug and nutritional-specific data could be used to recalculate suppressed values in non-drug and nutritional-specific columns."),
  number_of_drug_and_nutritional_products_suppliers INT64 OPTIONS(description="Number of suppliers rendering drug and nutritional products/services."),
  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."),
  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."),
  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."),
  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."),
  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."),
  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."),
  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.")
);

INSERT INTO `bigquery-public-data.cms_medicare.referring_durable_medical_equip_2013` (referring_npi, referring_provider_last_name_organization_name, referring_provider_first_name, referring_provider_middle_initial, referring_provider_credentials, referring_provider_gender, referring_provider_entity_code, referring_provider_street_1, referring_provider_street_2, referring_provider_city, referring_provider_state, referring_provider_zip, referring_provider_country, referring_provider_type, referring_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, durable_medical_equipment_suppression_indicator, number_of_durable_medical_equipment_suppliers, number_of_durable_medical_equipment_hcpcs, number_of_durable_medical_equipment_beneficiaries, number_of_durable_medical_equipment_claims, number_of_durable_medical_equipment_services, durable_medical_equipment_submitted_charges, durable_medical_equipment_medicare_allowed_amount, durable_medical_equipment_medicare_payment_amount, prosthetic_and_orthotic_suppression_indicator, number_of_prosthetic_and_orthotic_suppliers, number_of_prosthetic_and_orthotic_hcpcs, number_of_prosthetic_and_orthotic_beneficiaries, number_of_prosthetic_and_orthotic_claims, number_of_prosthetic_and_orthotic_services, prosthetic_and_orthotic_submitted_charges, prosthetic_and_orthotic_medicare_allowed_amount, prosthetic_and_orthotic_medicare_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) VALUES ('1255456794', 'GOSHEN MEDICAL CENTER INCORPORATED', NULL, NULL, NULL, NULL, 'O', '2701 MEDICAL OFFICE PL', NULL, 'GOLDSBORO', 'NC', '275349458', 'US', 'Rehabilitation Agency', 'S', 4, 22, 22, 71, 6145, 18224.89, 9951.73, 7331.7, NULL, 3, 17, 15, 55, 4651, 12967.25, 5447.63, 4043.63, NULL, 2, 4, NULL, 16, 1474, 4597.64, 3844.1, 2792.83, NULL, 1, 1, NULL, 20, 20, 660.0, 660.0, 495.24), ('1689798449', 'P. REDDY TUKIVAKALA, M.D., P.A.', NULL, NULL, NULL, NULL, 'O', '810 NEWMAN DR # A', NULL, 'HELENA', 'AR', '723428950', 'US', 'Clinic/Center', 'T', 14, 24, 27, 113, 2267, 32554.57, 12920.41, 9711.29, NULL, 13, 20, 25, 102, 2046, 28700.57, 9946.36, 7400.22, NULL, 2, 3, NULL, 11, 203, 2450.0, 2380.05, 1869.16, NULL, 1, 1, NULL, 18, 18, 1404.0, 594.0, 441.91), ('1871521807', 'DUKE UNIVERSITY AFFILIATED PHYSICIANS, INC.', NULL, NULL, NULL, NULL, 'O', '2503 E LYON STATION RD', NULL, 'CREEDMOOR', 'NC', '275229112', 'US', 'Multispecialty Clinic/Group Practice', 'S', 6, 19, NULL, 42, 5689, 16178.1, 9841.86, 7522.34, NULL, 3, 7, NULL, 14, 114, 4531.74, 3306.57, 2555.47, NULL, 3, 10, NULL, 17, 618, 5209.5, 2419.16, 1832.42, NULL, 1, 2, NULL, 12, 4957, 6436.86, 4116.13, 3134.45), ('1912966656', 'HENDERSONVILLE PEDIATRICS, P.A.', NULL, NULL, NULL, NULL, 'O', '600 BEVERLY HANKS CTR', NULL, 'HENDERSONVILLE', 'NC', '287922305', 'US', 'Specialist', 'T', 1, 13, NULL, 42, 8332, 46420.32, 29044.83, 22802.89, NULL, 1, 7, NULL, 34, 2558, 32205.11, 19704.71, 15419.16, NULL, 1, 3, NULL, 14, 215, 4524.0, 2427.13, 1920.41, NULL, 1, 3, NULL, 21, 5559, 9691.21, 6912.99, 5463.32), ('1235149949', 'BASCOM CLARENCE RANEY', NULL, NULL, NULL, NULL, 'O', '8401 N CENTURY BLVD', NULL, 'CENTURY', 'FL', '325351631', 'US', 'Rehabilitation Agency', 'S', 3, 40, 53, 217, 4578, 56853.12, 35104.21, 26930.8, NULL, 3, 33, 43, 198, 4323, 47845.12, 27517.19, 21166.19, NULL, 2, 4, 17, 17, 115, 5873.0, 4761.27, 3628.94, NULL, 2, 3, NULL, 21, 140, 3135.0, 2825.75, 2135.67);