Skip to main content

line_item_view

Materialized: false

Definition
 SELECT line_item.line_item_id,
line_item.claim_id,
line_item.line_number,
line_item.rev_code,
line_item.product_service_code_qualifier,
line_item.product_service_code,
line_item.procedure_modifiers,
line_item.procedure_description,
line_item.product_service_id,
line_item.billed_amount,
line_item.quantity,
line_item.units,
line_item.place_of_service,
line_item.diagnosis_code_pointers,
line_item.facility_non_covered_amount,
line_item.is_emergency_professional,
line_item.is_epsdt_professional,
line_item.is_family_planning_professional,
line_item.copay_status,
line_item.dental_oral_cavity_designations,
line_item.dental_prosthesis_crown_or_inlay_placement,
line_item.dme_length_of_medical_necessity_units,
line_item.dme_length_of_medical_necessity_quantity,
line_item.dme_rental_price,
line_item.dme_purchase_price,
line_item.dme_rental_billing_frequency,
line_item.ambulance_patient_weight_units,
line_item.ambulance_patient_weight_quantity,
line_item.ambulance_transport_reason,
line_item.ambulance_transport_distance_units,
line_item.ambulance_transport_distance_quantity,
line_item.ambulance_round_trip_purpose_description,
line_item.ambulance_stretcher_purpose_description,
line_item.ambulance_pickup_address_id,
line_item.ambulance_dropoff_address_id,
line_item.ambulance_applicable_conditions,
line_item.ambulance_not_applicable_conditions,
line_item.ambulance_patient_count,
line_item.dme_certification_type,
line_item.dme_need_duration_units,
line_item.dme_need_duration_quantity,
line_item.dme_applicable_conditions,
line_item.dme_not_applicable_conditions,
line_item.dme_certification_date,
line_item.rendering_provider_is_hospice_employee,
line_item.service_date_from,
line_item.service_date_through,
line_item.tpa_processed_date,
line_item.prescription_date,
line_item.begin_therapy_date,
line_item.last_certification_date,
line_item.last_seen_date,
line_item.most_recent_hemoglobin_or_hematocrit_date,
line_item.most_recent_serum_creatine_date,
line_item.shipped_date,
line_item.last_x_ray_date,
line_item.initial_treatment_date,
line_item.estimated_prior_placement_date,
line_item.prior_placement_date,
line_item.appliance_placement_date,
line_item.replacement_date,
line_item.treatment_start_date,
line_item.treatment_completion_date,
line_item.obstetric_anesthesia_additional_units,
line_item.contract_type,
line_item.contract_amount,
line_item.contract_billed_percentage,
line_item.contract_identification_code,
line_item.contract_terms_discount_percent,
line_item.contract_version_identifier,
line_item.repriced_line_item_number,
line_item.adjusted_repriced_line_item_number,
line_item.line_item_prior_authorization_number,
line_item.line_item_provider_control_number,
line_item.intermediary_authorization_type,
line_item.intermediary_authorization_identifier,
line_item.mammography_certification_number,
line_item.clia_number,
line_item.referring_clia_number,
line_item.immunization_batch_number,
line_item.referral_number,
line_item.predetermination_of_benefits_identifier,
line_item.tpa_network_identifier,
line_item.tpa_network_name,
line_item.tpa_network_status,
line_item.tpa_line_item_status,
line_item.sales_tax_amount,
line_item.service_tax_amount,
line_item.facility_tax_amount,
line_item.postage_amount,
line_item.purchased_service_provider_identifier,
line_item.purchased_service_billed_amount,
line_item.reprice_methodology,
line_item.reprice_allowed_amount,
line_item.reprice_savings_amount,
line_item.reprice_organization_identifier,
line_item.reprice_per_diem_or_flat_rate_amount,
line_item.reprice_approved_drg_or_apg_code,
line_item.reprice_approved_drg_or_apg_amount,
line_item.reprice_approved_revenue_code,
line_item.reprice_approved_product_service_code_qualifier,
line_item.reprice_approved_product_service_code,
line_item.reprice_approved_units,
line_item.reprice_approved_quantity,
line_item.reprice_reject_reason,
line_item.reprice_policy_compliance,
line_item.reprice_exception,
line_item.drug_ndc,
line_item.drug_quantity,
line_item.drug_units,
line_item.drug_link_sequence_number,
line_item.prescription_reference_number,
line_item.associated_prescription_reference_number,
line_item.associated_prescription_service_date,
line_item.rx_fill_number,
line_item.rx_days_supply,
line_item.rx_dispense_as_written,
line_item.rx_refills_authorized,
line_item.prescription_origin,
line_item.rx_submission_clarifications,
line_item.rx_special_packaging,
line_item.originally_prescribed_product_service_code_qualifier,
line_item.originally_prescribed_product_service_code,
line_item.originally_prescribed_quantity,
line_item.scheduled_prescription_id_number,
line_item.rx_level_of_service,
line_item.prior_authorization_type,
line_item.rx_dispensing_status,
line_item.rx_quantity_intended,
line_item.rx_days_supply_intended,
line_item.rx_route_of_administration,
line_item.rx_compound_type,
line_item.pharmacy_service_type,
line_item.rx_ingredient_cost_submitted,
line_item.rx_ingredient_cost_paid,
line_item.rx_ingredient_cost_basis_submitted,
line_item.rx_ingredient_reimbursement_basis,
line_item.rx_dispensing_fee_submitted,
line_item.rx_dispensing_fee_paid,
line_item.rx_dispensing_fee_basis_of_calculation,
line_item.rx_incentive_amount_submitted,
line_item.rx_incentive_amount_paid,
line_item.rx_professional_service_fee_submitted,
line_item.rx_professional_service_fee_paid,
line_item.rx_delivery_cost_submitted,
line_item.rx_delivery_amount_paid,
line_item.rx_shipping_cost_submitted,
line_item.rx_shipping_amount_paid,
line_item.rx_postage_cost_submitted,
line_item.rx_postage_amount_paid,
line_item.rx_administrative_cost_submitted,
line_item.rx_administrative_amount_paid,
line_item.rx_compound_preparation_cost_submitted,
line_item.rx_compound_preparation_amount_paid,
line_item.rx_medication_administration_cost_submitted,
line_item.rx_medication_administration_amount_paid,
line_item.rx_medication_synchronization_cost_submitted,
line_item.rx_medication_synchronization_amount_paid,
line_item.rx_adherence_packaging_cost_submitted,
line_item.rx_adherence_packaging_amount_paid,
line_item.rx_flat_sales_tax_submitted,
line_item.rx_flat_sales_tax_paid,
line_item.rx_flat_sales_tax_basis_of_calculation,
line_item.rx_percentage_sales_tax_submitted,
line_item.rx_percentage_sales_tax_paid,
line_item.rx_percentage_sales_tax_rate_submitted,
line_item.rx_percentage_sales_tax_rate_paid,
line_item.rx_percentage_sales_tax_basis_submitted,
line_item.rx_percentage_sales_tax_basis_paid,
line_item.rx_percentage_sales_tax_basis_of_calculation,
line_item.rx_tax_exempt_indicator,
line_item.rx_usual_and_customary_charge,
line_item.rx_cob_paid_amount_recognized,
line_item.rx_total_amount_paid,
line_item.rx_amount_attributed_to_sales_tax,
line_item.rx_accumulated_deductible_amount,
line_item.rx_remaining_deductible_amount,
line_item.rx_remaining_benefit_amount,
line_item.rx_amount_applied_to_deductible,
line_item.rx_amount_exceeding_benefit_max,
line_item.rx_copay_basis_of_calculation,
line_item.rx_coinsurance_amount_basis_of_calculation,
line_item.rx_amount_attributed_to_processor_fee,
line_item.rx_patient_sales_tax_amount,
line_item.rx_plan_sales_tax_amount,
line_item.rx_estimated_generic_savings,
line_item.rx_spending_account_amount_remaining,
line_item.rx_health_plan_funded_assistance_amount,
line_item.rx_amount_attributed_to_provider_network_selection,
line_item.rx_amount_attributed_to_brand_selection,
line_item.rx_amount_attributed_to_non_preferred_formulary_selection,
line_item.rx_amount_attributed_to_brand_non_preferred_formulary_selection,
line_item.rx_amount_attributed_to_coverage_gap,
line_item.rx_ingredient_cost_reimbursable_amount,
line_item.rx_dispensing_fee_reimbursable_amount,
line_item.coupon_type,
line_item.coupon_number,
line_item.coupon_value_amount,
line_item.rx_compound_dosage_form,
line_item.rx_compound_dispensing_unit,
line_item.rx_generic_equivalent_product_service_code_qualifier,
line_item.rx_generic_equivalent_product_service_code,
line_item.data_errors,
line_item.payment_limit,
line_item.billed_adjustment,
line_item.allowed_amount,
line_item.not_covered_amount,
line_item.allowed_adjustment_amount,
line_item.plan_payment_amount,
line_item.cob_paid_amount,
line_item.copay_amount,
line_item.coinsurance_amount,
line_item.deductible_amount,
line_item.payment_identification_code,
line_item.payment_method_type,
line_item.payment_date,
line_item.payment_to_provider,
line_item.payment_to_member,
nubc_revenue_code_lookup.title AS revenue_code_title,
nubc_revenue_code_group_lookup.title AS revenue_code_group_title,
product_service_code_lookup.long_description AS product_service_long_description,
product_service_code_lookup.short_description AS product_service_short_description,
product_service_code_lookup.medium_description AS product_service_medium_description,
product_service_code_lookup.consumer_friendly_description AS product_service_consumer_friendly_description,
hcup_hcpcs_group_lookup.hcup_hcpcs_group_code,
hcup_hcpcs_group_lookup.description AS hcup_hcpcs_group_description
FROM claims.line_item
LEFT JOIN claims.product_service_code_lookup ON product_service_code_lookup.product_service_id = line_item.product_service_id
LEFT JOIN claims.hcpcs_hcup_group ON hcpcs_hcup_group.product_service_id = line_item.product_service_id
LEFT JOIN claims.nubc_revenue_code_lookup ON nubc_revenue_code_lookup.revenue_code = line_item.rev_code
LEFT JOIN claims.nubc_revenue_code_group_lookup ON nubc_revenue_code_group_lookup.revenue_code_group = nubc_revenue_code_lookup.revenue_code_group
LEFT JOIN claims.cpt_hcup_group ON cpt_hcup_group.product_service_id = line_item.product_service_id
LEFT JOIN claims.hcup_hcpcs_group_lookup ON hcup_hcpcs_group_lookup.hcup_hcpcs_group_id = COALESCE(hcpcs_hcup_group.hcup_hcpcs_group_id, cpt_hcup_group.hcup_hcpcs_group_id);
ColumnData TypeIndexed
line_item_idbigintNo
claim_idbigintNo
line_numbertextNo
rev_codetextNo
product_service_code_qualifierproduct_service_code_typeNo
product_service_codetextNo
procedure_modifierstext[]No
procedure_descriptiontextNo
product_service_idbigintNo
billed_amountnumericNo
quantitynumericNo
unitstextNo
place_of_servicetextNo
diagnosis_code_pointerssmallint[]No
facility_non_covered_amountnumericNo
is_emergency_professionalbooleanNo
is_epsdt_professionalbooleanNo
is_family_planning_professionalbooleanNo
copay_statuscopay_status_typeNo
dental_oral_cavity_designationsdental_oral_cavity_designation_type[]No
dental_prosthesis_crown_or_inlay_placementdental_prosthesis_crown_or_inlay_placement_typeNo
dme_length_of_medical_necessity_unitsunit_typeNo
dme_length_of_medical_necessity_quantitynumericNo
dme_rental_pricenumericNo
dme_purchase_pricenumericNo
dme_rental_billing_frequencyfrequency_codeNo
ambulance_patient_weight_unitsunit_typeNo
ambulance_patient_weight_quantitynumericNo
ambulance_transport_reasonambulance_transport_reason_typeNo
ambulance_transport_distance_unitsunit_typeNo
ambulance_transport_distance_quantitynumericNo
ambulance_round_trip_purpose_descriptiontextNo
ambulance_stretcher_purpose_descriptiontextNo
ambulance_pickup_address_idbigintNo
ambulance_dropoff_address_idbigintNo
ambulance_applicable_conditionscondition_indicator_type[]No
ambulance_not_applicable_conditionscondition_indicator_type[]No
ambulance_patient_countsmallintNo
dme_certification_typecertification_typeNo
dme_need_duration_unitsunit_typeNo
dme_need_duration_quantitynumericNo
dme_applicable_conditionscondition_indicator_type[]No
dme_not_applicable_conditionscondition_indicator_type[]No
dme_certification_datedateNo
rendering_provider_is_hospice_employeebooleanNo
service_date_fromdateNo
service_date_throughdateNo
tpa_processed_datedateNo
prescription_datedateNo
begin_therapy_datedateNo
last_certification_datedateNo
last_seen_datedateNo
most_recent_hemoglobin_or_hematocrit_datedateNo
most_recent_serum_creatine_datedateNo
shipped_datedateNo
last_x_ray_datedateNo
initial_treatment_datedateNo
estimated_prior_placement_datedateNo
prior_placement_datedateNo
appliance_placement_datedateNo
replacement_datedateNo
treatment_start_datedateNo
treatment_completion_datedateNo
obstetric_anesthesia_additional_unitsnumericNo
contract_typecontract_typeNo
contract_amountnumericNo
contract_billed_percentagenumericNo
contract_identification_codetextNo
contract_terms_discount_percentnumericNo
contract_version_identifiertextNo
repriced_line_item_numbertextNo
adjusted_repriced_line_item_numbertextNo
line_item_prior_authorization_numbertextNo
line_item_provider_control_numbertextNo
intermediary_authorization_typetextNo
intermediary_authorization_identifiertextNo
mammography_certification_numbertextNo
clia_numbertextNo
referring_clia_numbertextNo
immunization_batch_numbertextNo
referral_numbertextNo
predetermination_of_benefits_identifiertextNo
tpa_network_identifiertextNo
tpa_network_nametextNo
tpa_network_statustextNo
tpa_line_item_statustextNo
sales_tax_amountnumericNo
service_tax_amountnumericNo
facility_tax_amountnumericNo
postage_amountnumericNo
purchased_service_provider_identifiertextNo
purchased_service_billed_amountnumericNo
reprice_methodologypricing_methodology_typeNo
reprice_allowed_amountnumericNo
reprice_savings_amountnumericNo
reprice_organization_identifiertextNo
reprice_per_diem_or_flat_rate_amountnumericNo
reprice_approved_drg_or_apg_codetextNo
reprice_approved_drg_or_apg_amountnumericNo
reprice_approved_revenue_codetextNo
reprice_approved_product_service_code_qualifierproduct_service_code_typeNo
reprice_approved_product_service_codetextNo
reprice_approved_unitsunit_typeNo
reprice_approved_quantitynumericNo
reprice_reject_reasonreject_reason_typeNo
reprice_policy_compliancepolicy_compliance_typeNo
reprice_exceptionrepricing_exception_typeNo
drug_ndctextNo
drug_quantitynumericNo
drug_unitsunit_typeNo
prescription_reference_numbertextNo
associated_prescription_reference_numbertextNo
associated_prescription_service_datedateNo
rx_fill_numberintegerNo
rx_days_supplynumericNo
rx_dispense_as_writtenrx_dispense_as_written_typeNo
rx_refills_authorizednumericNo
prescription_originprescription_origin_typeNo
rx_submission_clarificationsrx_submission_clarification_type[]No
rx_special_packagingrx_special_packaging_typeNo
originally_prescribed_product_service_code_qualifierproduct_service_code_typeNo
originally_prescribed_product_service_codetextNo
originally_prescribed_quantitynumericNo
scheduled_prescription_id_numbertextNo
rx_level_of_servicerx_level_of_service_typeNo
prior_authorization_typeprior_authorization_typeNo
rx_dispensing_statusrx_dispensing_status_typeNo
rx_quantity_intendednumericNo
rx_days_supply_intendednumericNo
rx_route_of_administrationtextNo
rx_compound_typerx_compound_typeNo
pharmacy_service_typepharmacy_service_typeNo
rx_ingredient_cost_submittednumericNo
rx_ingredient_cost_paidnumericNo
rx_ingredient_cost_basis_submittedrx_ingredient_cost_basis_typeNo
rx_ingredient_reimbursement_basisrx_ingredient_cost_basis_typeNo
rx_dispensing_fee_submittednumericNo
rx_dispensing_fee_paidnumericNo
rx_dispensing_fee_basis_of_calculationbasis_of_calculation_typeNo
rx_incentive_amount_submittednumericNo
rx_incentive_amount_paidnumericNo
rx_professional_service_fee_submittednumericNo
rx_professional_service_fee_paidnumericNo
rx_delivery_cost_submittednumericNo
rx_delivery_amount_paidnumericNo
rx_shipping_cost_submittednumericNo
rx_shipping_amount_paidnumericNo
rx_postage_cost_submittednumericNo
rx_postage_amount_paidnumericNo
rx_administrative_cost_submittednumericNo
rx_administrative_amount_paidnumericNo
rx_compound_preparation_cost_submittednumericNo
rx_compound_preparation_amount_paidnumericNo
rx_medication_administration_cost_submittednumericNo
rx_medication_administration_amount_paidnumericNo
rx_medication_synchronization_cost_submittednumericNo
rx_medication_synchronization_amount_paidnumericNo
rx_adherence_packaging_cost_submittednumericNo
rx_adherence_packaging_amount_paidnumericNo
rx_flat_sales_tax_submittednumericNo
rx_flat_sales_tax_paidnumericNo
rx_flat_sales_tax_basis_of_calculationbasis_of_calculation_typeNo
rx_percentage_sales_tax_submittednumericNo
rx_percentage_sales_tax_paidnumericNo
rx_percentage_sales_tax_rate_submittednumericNo
rx_percentage_sales_tax_rate_paidnumericNo
rx_percentage_sales_tax_basis_submittedrx_percentage_sales_tax_basis_typeNo
rx_percentage_sales_tax_basis_paidrx_percentage_sales_tax_basis_typeNo
rx_percentage_sales_tax_basis_of_calculationbasis_of_calculation_typeNo
rx_tax_exempt_indicatorrx_tax_exempt_indicator_typeNo
rx_usual_and_customary_chargenumericNo
rx_cob_paid_amount_recognizednumericNo
rx_total_amount_paidnumericNo
rx_amount_attributed_to_sales_taxnumericNo
rx_accumulated_deductible_amountnumericNo
rx_remaining_deductible_amountnumericNo
rx_remaining_benefit_amountnumericNo
rx_amount_applied_to_deductiblenumericNo
rx_amount_exceeding_benefit_maxnumericNo
rx_copay_basis_of_calculationbasis_of_calculation_typeNo
rx_coinsurance_amount_basis_of_calculationbasis_of_calculation_typeNo
rx_amount_attributed_to_processor_feenumericNo
rx_patient_sales_tax_amountnumericNo
rx_plan_sales_tax_amountnumericNo
rx_estimated_generic_savingsnumericNo
rx_spending_account_amount_remainingnumericNo
rx_health_plan_funded_assistance_amountnumericNo
rx_amount_attributed_to_provider_network_selectionnumericNo
rx_amount_attributed_to_brand_selectionnumericNo
rx_amount_attributed_to_non_preferred_formulary_selectionnumericNo
rx_amount_attributed_to_brand_non_preferred_formulary_selectionnumericNo
rx_amount_attributed_to_coverage_gapnumericNo
rx_ingredient_cost_reimbursable_amountnumericNo
rx_dispensing_fee_reimbursable_amountnumericNo
coupon_typecoupon_typeNo
coupon_numbertextNo
coupon_value_amounttextNo
rx_compound_dosage_formrx_compound_dosage_form_typeNo
rx_compound_dispensing_unitunit_typeNo
rx_generic_equivalent_product_service_code_qualifierproduct_service_code_typeNo
rx_generic_equivalent_product_service_codetextNo
data_errorstext[]No
payment_limitnumericNo
billed_adjustmentnumericNo
allowed_amountnumericNo
not_covered_amountnumericNo
allowed_adjustment_amountnumericNo
plan_payment_amountnumericNo
cob_paid_amountnumericNo
copay_amountnumericNo
coinsurance_amountnumericNo
deductible_amountnumericNo
payment_identification_codetextNo
payment_method_typepayment_method_typeNo
payment_datedateNo
payment_to_providernumericNo
payment_to_membernumericNo
revenue_code_titletextNo
revenue_code_group_titletextNo
product_service_long_descriptiontextNo
product_service_short_descriptiontextNo
product_service_medium_descriptiontextNo
product_service_consumer_friendly_descriptiontextNo
hcup_hcpcs_group_codesmallintNo
hcup_hcpcs_group_descriptiontextNo