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.procedure_qualifier,
line_item.procedure_code,
line_item.procedure_modifiers,
line_item.procedure_description,
line_item.line_item_procedure_code_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_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.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_id,
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_procedure_qualifier,
line_item.reprice_approved_procedure_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.drug_prescription_number,
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,
line_item_procedure_code_lookup.long_description AS procedure_long_description,
line_item_procedure_code_lookup.short_description AS procedure_short_description,
line_item_procedure_code_lookup.medium_description AS procedure_medium_description,
line_item_procedure_code_lookup.consumer_friendly_description AS procedure_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.line_item_procedure_code_lookup ON line_item_procedure_code_lookup.line_item_procedure_code_id = line_item.line_item_procedure_code_id
LEFT JOIN claims.hcpcs_hcup_group ON hcpcs_hcup_group.line_item_procedure_code_id = line_item.line_item_procedure_code_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.line_item_procedure_code_id = line_item.line_item_procedure_code_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
procedure_qualifierproduct_service_id_typeNo
procedure_codetextNo
procedure_modifierstext[]No
procedure_descriptiontextNo
line_item_procedure_code_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_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
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_idtextNo
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_procedure_qualifierproduct_service_id_typeNo
reprice_approved_procedure_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
drug_prescription_numbertextNo
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
procedure_long_descriptiontextNo
procedure_short_descriptiontextNo
procedure_medium_descriptiontextNo
procedure_consumer_friendly_descriptiontextNo
hcup_hcpcs_group_codesmallintNo
hcup_hcpcs_group_descriptiontextNo