Files
stack/src/aco/table/cclf.py
kert 8f99eeb154
Some checks failed
ci/woodpecker/push/deploy Pipeline failed
ci/woodpecker/push/ci Pipeline failed
add comprehensive test suite, CI/CD quality gates, and package publishing
- 5519 unit tests covering all modules (aco, bcda, bls, cms, pfs, rex, bib)
- ruff lint + format enforcement across entire codebase (377 files reformatted)
- pre-commit hook: ruff check, ruff format, pytest
- Woodpecker CI split into ci.yml (quality gate) and deploy.yml (package + images)
- ci.yml: lint → test → validate-compose, runs on every push/PR
- deploy.yml: build + publish Python package to Gitea PyPI registry, then
  container image builds, Trivy scans, and registry push (main branch only)
- Gitea branch protection on main: requires CI status checks to pass
- .gitignore updated for .coverage, dist/, *.egg-info/
- grafana config moved to dev/grafana/

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 14:58:48 -05:00

1037 lines
47 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""CCLF — Claim and Claim Line Feed file layouts.
Auto-generated from the CCLF Information Packet (IP):
https://www.cms.gov/files/document/cclf-information-packet.pdf
Version 41.0, 07/16/2025 — 302 fields across 12 files.
CCLF files are fixed-width text files delivered monthly to
ACOs participating in the Medicare Shared Savings Program,
ACO REACH, KCC, PCF, and IOTA models.
Files::
CCLF0: Summary Statistics Header Record(15 fields)
CCLF1: Part A Claims Header File(45 fields)
CCLF2: Part A Claims Revenue Center Detail File(23 fields)
CCLF3: Part A Procedure Code File(13 fields)
CCLF4: Part A Diagnosis Code File(14 fields)
CCLF5: Part B Physicians File(51 fields)
CCLF6: Part B DME File(28 fields)
CCLF7: Part D File(22 fields)
CCLF8: Beneficiary Demographics File(31 fields)
CCLF9: Beneficiary XREF File(6 fields)
CCLFA: Part A Claims Benefit Enhancement and Demonstration Code File(33 fields)
CCLFB: Part B Claims Benefit Enhancement and Demonstration Code File(21 fields)
"""
from __future__ import annotations
from datetime import date # noqa: F811
from aco.table.base import SQLTable
class Cclf0(SQLTable):
"""CCLF0: Summary Statistics Header Record
15 fields, fixed-width layout.
"""
__schema__ = "cclf"
__tablename__ = "cclf0"
file_number_label: str | None = None
"""“File Number” This field will be left-justified and right-padded with spaces."""
file_description_label: str | None = None
"""“File Description” This field will be left-justified and right-padded with spaces."""
total_records_count_label: str | None = None
"""“Total Records Count” This field will be left-justified and right-padded with spaces."""
record_length_label: str | None = None
"""“Record Length” This field will be left-justified and right-padded with spaces."""
file_type: str | None = None
"""Field will contain either “CCLF1,” “CCLF2,” “CCLF3,” “CCLF4,” “CCLF5,” “CCLF6,” “CCLF7,” “CCLF8,” “CCLF9,” “CCLFA,” o..."""
file_name: str | None = None
"""For file CCLF1, this field will contain “Part A Claims Header File.” For file CCLF2, this field will contain “Part A ..."""
number_of_records: str | None = None
"""This field will be right-justified and left-padded with spaces."""
length_of_record: str | None = None
"""This field will be right-justified and left-padded with spaces."""
class Cclf1(SQLTable):
"""CCLF1: Part A Claims Header File
45 fields, fixed-width layout.
"""
__schema__ = "cclf"
__tablename__ = "cclf1"
cur_clm_uniq_id: str | None = None
"""A unique identification number assigned to the claim. I"""
prvdr_oscar_num: str | None = None
"""A facility’s Medicare/Medicaid identification number. It is also known as a Medicare/Medicaid Provider Number, or CCN..."""
bene_mbi_id: str | None = None
"""A Medicare Beneficiary Identifier assigned to a beneficiary I"""
bene_hic_num: str | None = None
"""Legacy Beneficiary HICN field Note: To comply with MACRA of 2015, after the end of the New Medicare Card Transition P..."""
clm_type_cd: str | None = None
"""Signifies the type of claim being submitted through the Medicare or Medicaid programs. Claim type code include: 10 = ..."""
clm_from_dt: date | None = None
"""The first day on the billing statement that covers services rendered to the beneficiary. Also known as “Statement Cov..."""
clm_thru_dt: date | None = None
"""The last day on the billing statement that covers services rendered to the beneficiary. Also known as the “Statement ..."""
clm_bill_fac_type_cd: str | None = None
"""The first digit of the type of bill (TOB1) is used to identify the type of facility that provided care to the benefic..."""
clm_bill_clsfctn_cd: str | None = None
"""The second digit of the type of bill (TOB2) is used to indicate with greater specificity where the service was provid..."""
prncpl_dgns_cd: str | None = None
"""The ICD-9/10 diagnosis code identifies the beneficiary’s principal illness or disability."""
admtg_dgns_cd: str | None = None
"""The ICD-9/10 diagnosis code identifies the illness or disability for which the beneficiary was admitted."""
clm_mdcr_npmt_rsn_cd: str | None = None
"""Indicates the reason payment on an institutional claim is denied. Find Medicare Non-Payment Reason Code at the ResDAC..."""
clm_pmt_amt: float | None = None
"""Amount that Medicare paid on the claim."""
clm_nch_prmry_pyr_cd: str | None = None
"""If a payer other than Medicare has primary responsibility for payment of the beneficiary’s health insurance bills, th..."""
prvdr_fac_fips_st_cd: str | None = None
"""Identifies the state where the facility providing services is located."""
bene_ptnt_stus_cd: str | None = None
"""Indicates the patient's discharge status as of the Claim Through Date. For example, it may indicate where a patient w..."""
dgns_drg_cd: str | None = None
"""Indicates the diagnostic related group to which a hospital claim belongs for prospective payment purposes. I"""
clm_op_srvc_type_cd: str | None = None
"""A code reported by the provider that indicates the specific type of claim (Inpatient, Outpatient, etc.). H Claim Outp..."""
fac_prvdr_npi_num: str | None = None
"""Identifies the facility associated with the claim. Each facility is assigned its own unique NPI."""
oprtg_prvdr_npi_num: str | None = None
"""Identifies the operating provider associated with the claim. Each provider is assigned its own unique NPI."""
atndg_prvdr_npi_num: str | None = None
"""Identifies the attending provider associated with the claim. Each provider is assigned its own unique NPI."""
othr_prvdr_npi_num: str | None = None
"""Identifies the other providers associated with the claim. Each provider is assigned its own unique NPI."""
clm_adjsmt_type_cd: str | None = None
"""Indicates whether the claim is an original, cancellation, or adjustment claim. Claim Adjustment Type Code include: 0 ..."""
clm_efctv_dt: date | None = None
"""Date the claim was processed and added to the NCH. Also referred to as the NCH Weekly Processing Date."""
clm_idr_ld_dt: date | None = None
"""When the claim was loaded into the IDR."""
bene_eqtbl_bic_hicn_num: str | None = None
"""Legacy Beneficiary Equitable BIC HICN Number. Note: To comply with MACRA of 2015, after the end of the New Medicare C..."""
clm_admsn_type_cd: str | None = None
"""Indicates the type and priority of inpatient services. H Claim Admission Type Code include: 0 = Blank 1 = Emergency 2..."""
clm_admsn_src_cd: str | None = None
"""Indicates the source of the beneficiary’s referral for admission or visit (e.g., a physician or another facility). Fi..."""
clm_bill_freq_cd: str | None = None
"""The third digit of the type of bill (TOB3) code. It indicates the sequence of the claim in the beneficiary's current ..."""
clm_query_cd: str | None = None
"""Indicates the type of claim record being processed with respect to payment (e.g., debit/credit indicator or interim/f..."""
dgns_prcdr_icd_ind: str | None = None
"""9 = ICD-9 0 = ICD-10 U = any value other than “9” or “0” in the source data."""
clm_mdcr_instnl_tot_chrg_amt: float | None = None
"""Effective with NCH Version G, the total charges for all services included on the institutional claim. This field is r..."""
clm_mdcr_ip_pps_cptl_ime_amt: float | None = None
"""The amount of the indirect medical education (IME) (reimbursable amount for teaching hospitals only; an added amount ..."""
clm_oprtnl_ime_amt: float | None = None
"""The indirect medical education amount applicable to the bill. (Do not include PPS capital IME adjustment in this entr..."""
clm_mdcr_ip_pps_dsprprtnt_amt: float | None = None
"""Effective 3/2/92, the amount of disproportionate share (rate reflecting indigent population served) portion of the PP..."""
clm_hipps_uncompd_care_amt: float | None = None
"""This is a payment for DSH hospitals as part of Section 3133 of ACA. It represents the uncompensated care amount of th..."""
clm_oprtnl_dsprprtnt_amt: float | None = None
"""The disproportionate share amount applicable to the bill. Use the amount provided by the disproportionate share field..."""
clm_blg_prvdr_oscar_num: str | None = None
"""A facility’s Medicare/Medicaid identification number. It is also known as a Medicare/Medicaid Provider Number, or CCN..."""
clm_blg_prvdr_npi_num: str | None = None
"""Identifies the facility associated with the claim. Each facility is assigned its own unique NPI. Notes: • From Januar..."""
clm_oprtg_prvdr_npi_num: str | None = None
"""Identifies the operating provider associated with the claim. Each provider is assigned its own unique NPI. Notes: • F..."""
clm_atndg_prvdr_npi_num: str | None = None
"""Identifies the attending provider associated with the claim. Each provider is assigned its own unique NPI. Notes: • F..."""
clm_othr_prvdr_npi_num: str | None = None
"""Identifies the other providers associated with the claim. Each provider is assigned its own unique NPI. Notes: • From..."""
clm_cntl_num: str | None = None
"""An identifier assigned by the claim processor (i.e., MAC, Part D Plan, or Encounter Data Processing Contractor) to a ..."""
clm_org_cntl_num: str | None = None
"""A unique number assigned by the state’s payment system that identifies an original claim."""
clm_cntrctr_num: str | None = None
"""A number assigned by CMS identifying a MAC authorized to process Medicare claims."""
class Cclf2(SQLTable):
"""CCLF2: Part A Claims Revenue Center Detail File
23 fields, fixed-width layout.
"""
__schema__ = "cclf"
__tablename__ = "cclf2"
cur_clm_uniq_id: str | None = None
"""A unique identification number assigned to the claim. I"""
clm_line_num: str | None = None
"""A sequential number that identifies a specific claim line."""
bene_mbi_id: str | None = None
"""A Medicare Beneficiary Identifier assigned to a beneficiary. I"""
bene_hic_num: str | None = None
"""Legacy Beneficiary HICN field. Note: To comply with MACRA of 2015, after the end of the New Medicare Card Transition ..."""
clm_type_cd: str | None = None
"""Signifies the type of claim being submitted through the Medicare or Medicaid programs. Claim type code include: 10 = ..."""
clm_line_from_dt: date | None = None
"""The date the service associated with the line item began."""
clm_line_thru_dt: date | None = None
"""The date the service associated with the line item ended."""
clm_line_prod_rev_ctr_cd: str | None = None
"""The number a provider assigns to the cost center to which a particular charge is billed (e.g., accommodations or supp..."""
clm_line_instnl_rev_ctr_dt: date | None = None
"""The date that applies to the service associated with the Revenue Center code."""
clm_line_hcpcs_cd: str | None = None
"""The HCPCS code representing the procedure, supply, product, and/or service provided to the beneficiary. Note: Health ..."""
bene_eqtbl_bic_hicn_num: str | None = None
"""Legacy Beneficiary Equitable BIC HICN Number. Note: To comply with MACRA of 2015, after the end of the New Medicare C..."""
prvdr_oscar_num: str | None = None
"""A facility’s Medicare/Medicaid identification number, also known as a Medicare/Medicaid Provider Number, or CCN. This..."""
clm_from_dt: date | None = None
"""The first day on the billing statement that covers services rendered to the beneficiary. Also known as the “Statement..."""
clm_thru_dt: date | None = None
"""The last day on the billing statement that covers services rendered to the beneficiary. Also known as the “Statement ..."""
clm_line_srvc_unit_qty: float | None = None
"""Count of total units, at the line-item level, associated with services needing unit reporting (e.g., anesthesia time ..."""
clm_line_cvrd_pd_amt: float | None = None
"""The amount Medicare reimbursed the provider for covered services associated with the claim-line."""
hcpcs_1_mdfr_cd: str | None = None
"""The first code to modify the HCPCS procedure code associated with the claim-line. This provides more specific procedu..."""
hcpcs_2_mdfr_cd: str | None = None
"""The second code to modify the HCPCS procedure code associated with the claim-line. This provides more specific proced..."""
hcpcs_3_mdfr_cd: str | None = None
"""The third code to modify the HCPCS procedure code associated with the claim-line. This provides more specific procedu..."""
hcpcs_4_mdfr_cd: str | None = None
"""The fourth code to modify the HCPCS procedure code associated with the claim-line. This provides more specific proced..."""
hcpcs_5_mdfr_cd: str | None = None
"""The fifth code to modify the HCPCS procedure code associated with the claim-line. This provides more specific procedu..."""
clm_rev_apc_hipps_cd: str | None = None
"""APC group for outpatient claim type"""
clm_fac_prvdr_oscar_num: str | None = None
"""A facility’s Medicare/Medicaid identification number, also known as a Medicare/Medicaid Provider Number, or CCN. This..."""
class Cclf3(SQLTable):
"""CCLF3: Part A Procedure Code File
13 fields, fixed-width layout.
"""
__schema__ = "cclf"
__tablename__ = "cclf3"
cur_clm_uniq_id: str | None = None
"""A unique identification number assigned to the claim. I"""
bene_mbi_id: str | None = None
"""A Medicare Beneficiary Identifier assigned to a beneficiary. I"""
bene_hic_num: str | None = None
"""Legacy Beneficiary HICN field. Note: To comply with MACRA of 2015, after the end of the New Medicare Card Transition ..."""
clm_type_cd: str | None = None
"""Signifies the type of claim being submitted through the Medicare or Medicaid programs. Claim type code are: 10 = HHA ..."""
clm_val_sqnc_num: str | None = None
"""An arbitrary sequential number that uniquely identifies a procedure code record within the claim."""
clm_prcdr_cd: str | None = None
"""The ICD-9/10 code that indicates the procedure performed during the period covered by the claim."""
clm_prcdr_prfrm_dt: date | None = None
"""The date the indicated procedure was performed."""
bene_eqtbl_bic_hicn_num: str | None = None
"""Legacy Beneficiary Equitable BIC HICN Number. Note: To comply with MACRA of 2015, after the end of the New Medicare C..."""
prvdr_oscar_num: str | None = None
"""A facility’s Medicare/Medicaid identification number. It is also known as a Medicare/Medicaid Provider Number, or CCN..."""
clm_from_dt: date | None = None
"""The first day on the billing statement that covers services rendered to the beneficiary. Also known as “Statement Cov..."""
clm_thru_dt: date | None = None
"""The last day on the billing statement that covers services rendered to the beneficiary. Also known as the “Statement ..."""
dgns_prcdr_icd_ind: str | None = None
"""9 = ICD-9 0 = ICD-10 U = any value other than “9” or “0” in the source data."""
clm_blg_prvdr_oscar_num: str | None = None
"""A facility’s Medicare/Medicaid identification number, also known as a Medicare/Medicaid Provider Number, or CCN. This..."""
class Cclf4(SQLTable):
"""CCLF4: Part A Diagnosis Code File
14 fields, fixed-width layout.
"""
__schema__ = "cclf"
__tablename__ = "cclf4"
cur_clm_uniq_id: str | None = None
"""A unique identification number assigned to the claim. I"""
bene_mbi_id: str | None = None
"""A Medicare Beneficiary Identifier assigned to a beneficiary. I"""
bene_hic_num: str | None = None
"""Legacy Beneficiary HICN field. Note: To comply with MACRA of 2015, after the end of the New Medicare Card Transition ..."""
clm_type_cd: str | None = None
"""Signifies the type of claim being submitted through the Medicare or Medicaid programs. Claim type code include: 10 = ..."""
clm_prod_type_cd: str | None = None
"""Code classifying the diagnosis category. Category codes include: E = Accident diagnosis code 1 = First diagnosis E co..."""
clm_val_sqnc_num: str | None = None
"""An arbitrary sequential number that uniquely identifies a procedure code record within the claim."""
clm_dgns_cd: str | None = None
"""The ICD-9/10 diagnosis code identifying the beneficiary’s illness or disability. I"""
bene_eqtbl_bic_hicn_num: str | None = None
"""Legacy Beneficiary Equitable BIC HICN Number. Note: To comply with MACRA of 2015, after the end of the New Medicare C..."""
prvdr_oscar_num: str | None = None
"""The OSCAR is a facility’s Medicare/Medicaid identification number. It is also known as a Medicare/Medicaid Provider N..."""
clm_from_dt: date | None = None
"""The first day on the billing statement that covers services rendered to the beneficiary. Also known as the “Statement..."""
clm_thru_dt: date | None = None
"""The last day on the billing statement that covers services rendered to the beneficiary. Also known as the “Statement ..."""
clm_poa_ind: str | None = None
"""Indicates whether a patient had the condition listed on the claim line at the time of admission to the facility. H Fi..."""
dgns_prcdr_icd_ind: str | None = None
"""9 = ICD-9 0 = ICD-10 U = any value other than “9” or “0” in the source data."""
clm_blg_prvdr_oscar_num: str | None = None
"""A facility’s Medicare/Medicaid identification number, also known as a Medicare/Medicaid Provider Number, or CCN. This..."""
class Cclf5(SQLTable):
"""CCLF5: Part B Physicians File
51 fields, fixed-width layout.
"""
__schema__ = "cclf"
__tablename__ = "cclf5"
cur_clm_uniq_id: str | None = None
"""A unique identification number assigned to the claim. I"""
clm_line_num: str | None = None
"""A sequential number that identifies a specific claim line within a given claim."""
bene_mbi_id: str | None = None
"""A Medicare Beneficiary Identifier assigned to a beneficiary. I"""
bene_hic_num: str | None = None
"""Legacy Beneficiary HICN field. Note: To comply with MACRA of 2015, after the end of the New Medicare Card Transition ..."""
clm_type_cd: str | None = None
"""Signifies the type of claim being submitted through the Medicare or Medicaid programs. Claim type code include: 71 = ..."""
clm_from_dt: date | None = None
"""The first day on the billing statement that covers services rendered to the beneficiary. Also known as the “Statement..."""
clm_thru_dt: date | None = None
"""The last day on the billing statement that covers services rendered to the beneficiary. Also known as the “Statement ..."""
rndrg_prvdr_type_cd: str | None = None
"""Indicates the type of provider who provided the service associated with this line item on the claim. Provider Type Co..."""
rndrg_prvdr_fips_st_cd: str | None = None
"""Identifies the state that the provider providing the service is located in."""
clm_prvdr_spclty_cd: str | None = None
"""Indicates the CMS specialty code associated with the provider of services. CMS used this number to price the service ..."""
clm_fed_type_srvc_cd: str | None = None
"""Indicates the type of service (e.g., consultation, surgery) provided to the beneficiary. Types of Service Code are de..."""
clm_pos_cd: str | None = None
"""Indicates the place where the indicated service was provided (e.g., ambulance, school). Places of service are defined..."""
clm_line_from_dt: date | None = None
"""The date the service associated with the line item began."""
clm_line_thru_dt: date | None = None
"""The date the service associated with the line item ended."""
clm_line_hcpcs_cd: str | None = None
"""The HCPCS code representing the procedure, supply, product, and/or service provided to the beneficiary. I"""
clm_line_cvrd_pd_amt: str | None = None
"""The amount of payment made by Medicare on behalf of the beneficiary for the indicated service after deductible and co..."""
clm_line_prmry_pyr_cd: str | None = None
"""If a payer other than Medicare has primary responsibility for payment of the service indicated on the claim line, thi..."""
clm_line_dgns_cd: str | None = None
"""The ICD-9/10 diagnosis code identifying the beneficiary’s principal illness or disability. I"""
clm_rndrg_prvdr_tax_num: str | None = None
"""The SSN or Employee Identification Number (EIN) of the provider of the indicated service. This number identifies who ..."""
rndrg_prvdr_npi_num: str | None = None
"""A number that identifies the provider rendering the indicated service on the claim line. Each provider is assigned it..."""
clm_carr_pmt_dnl_cd: str | None = None
"""Indicates to whom payment was made (e.g., physician, beneficiary), or if the claim was denied. Find Carrier Payment D..."""
clm_prcsg_ind_cd: str | None = None
"""Indicates if the service indicated on the claim line was allowed or the reason it was denied. Find Processing Indicat..."""
clm_adjsmt_type_cd: str | None = None
"""Indicates whether the claim is an original, cancellation, or adjustment claim. Claim Adjustment Type Code include: 0 ..."""
clm_efctv_dt: date | None = None
"""The date the claim was processed and added to the NCH. This is also referred to as the NCH Weekly Processing Date."""
clm_idr_ld_dt: date | None = None
"""When the claim was loaded into the IDR."""
clm_cntl_num: str | None = None
"""A unique number assigned to a claim by the Medicare carrier. This number allows CMS to associate each line item with ..."""
bene_eqtbl_bic_hicn_num: str | None = None
"""Legacy Beneficiary Equitable BIC HICN Number. Note: To comply with MACRA of 2015, after the end of the New Medicare C..."""
clm_line_alowd_chrg_amt: str | None = None
"""The amount Medicare approved for payment to the provider."""
clm_line_srvc_unit_qty: float | None = None
"""Count of total units, at the line-item level, associated with services needing unit reporting (e.g., anesthesia time ..."""
hcpcs_1_mdfr_cd: str | None = None
"""The first code to modify the HCPCS procedure code associated with the claim- line. This provides more specific proced..."""
hcpcs_2_mdfr_cd: str | None = None
"""The second code to modify the HCPCS procedure code associated with the claim- line. This provides more specific proce..."""
hcpcs_3_mdfr_cd: str | None = None
"""The third code to modify the HCPCS procedure code associated with the claim- line. This provides more specific proced..."""
hcpcs_4_mdfr_cd: str | None = None
"""The fourth code to modify the HCPCS procedure code associated with the claim- line. This provides more specific proce..."""
hcpcs_5_mdfr_cd: str | None = None
"""The fifth code to modify the HCPCS procedure code associated with the claim- line. This provides more specific proced..."""
clm_disp_cd: str | None = None
"""Information regarding payment actions on the claim. Claim Disposition Code include: 01 = Debit accepted 02 = Debit ac..."""
clm_dgns_1_cd: str | None = None
"""The first of 12 allowable ICD-9/10 diagnosis code identifying the beneficiary’s illness or disability. I"""
clm_dgns_2_cd: str | None = None
"""The second of 12 allowable ICD-9/10 diagnosis code identifying the beneficiary’s illness or disability. I"""
clm_dgns_3_cd: str | None = None
"""The third of 12 allowable ICD-9/10 diagnosis code identifying the beneficiary’s illness or disability. I"""
clm_dgns_4_cd: str | None = None
"""The fourth of 12 allowable ICD-9/10 diagnosis code identifying the beneficiary’s illness or disability. I"""
clm_dgns_5_cd: str | None = None
"""The fifth of 12 allowable ICD-9/10 diagnosis code identifying the beneficiary’s illness or disability. I"""
clm_dgns_6_cd: str | None = None
"""The sixth of 12allowable ICD-9/10 diagnosis code identifying the beneficiary’s illness or disability. I"""
clm_dgns_7_cd: str | None = None
"""The seventh of 12 allowable ICD-9/10 diagnosis code identifying the beneficiary’s illness or disability. I"""
clm_dgns_8_cd: str | None = None
"""The eighth of 12 allowable ICD-9/10 diagnosis code identifying the beneficiary’s illness or disability. I"""
dgns_prcdr_icd_ind: str | None = None
"""9 = ICD-9 0 = ICD-10 U = any value other than “9” or “0” in the source data."""
clm_dgns_9_cd: str | None = None
"""The ninth of 12 allowable ICD-9/10 diagnosis code identifying the beneficiary’s illness or disability. I"""
clm_dgns_10_cd: str | None = None
"""The tenth of 12 allowable ICD-9/10 diagnosis code identifying the beneficiary’s illness or disability. I"""
clm_dgns_11_cd: str | None = None
"""The eleventh of 12 allowable ICD-9/10 diagnosis code identifying the beneficiary’s illness or disability. I"""
clm_dgns_12_cd: str | None = None
"""The twelfth of 12 allowable ICD-9/10 diagnosis code identifying the beneficiary’s illness or disability. I"""
hcpcs_betos_cd: str | None = None
"""A code representing a clinical category. The Berenson-Eggers Type of Service (BETOS) code."""
clm_rndrg_prvdr_npi_num: str | None = None
"""A number that identifies the provider rendering the indicated service on the claim line. Each provider is assigned it..."""
clm_rfrg_prvdr_npi_num: str | None = None
"""A number that identifies the provider that referred the service on the claim line. Each provider is assigned its own ..."""
class Cclf6(SQLTable):
"""CCLF6: Part B DME File
28 fields, fixed-width layout.
"""
__schema__ = "cclf"
__tablename__ = "cclf6"
clm_cntrctr_num: str | None = None
"""A number assigned by CMS identifying a MAC authorized to process Medicare claims."""
cur_clm_uniq_id: str | None = None
"""A unique identification number assigned to the claim. I"""
clm_line_num: str | None = None
"""A sequential number that identifies a specific claim line."""
bene_mbi_id: str | None = None
"""A Medicare Beneficiary Identifier assigned to a beneficiary. I"""
bene_hic_num: str | None = None
"""Legacy Beneficiary HICN field. Note: To comply with MACRA of 2015, after the end of the New Medicare Card Transition ..."""
clm_type_cd: str | None = None
"""Signifies the type of claim being submitted through the Medicare or Medicaid programs. Claim type code include: 81 = ..."""
clm_from_dt: date | None = None
"""The first day on the billing statement that covers services rendered to the beneficiary. Also known as the “Statement..."""
clm_thru_dt: date | None = None
"""The last day on the billing statement that covers services rendered to the beneficiary. Also known as the “Statement ..."""
clm_fed_type_srvc_cd: str | None = None
"""Indicates the type of service (e.g., consultation, surgery), provided to the beneficiary. Types of Service Code are d..."""
clm_pos_cd: str | None = None
"""Indicates place where the indicated service was provided (e.g., ambulance, school). Find Place of Service Code at the..."""
clm_line_from_dt: date | None = None
"""The date the service associated with the line item began."""
clm_line_thru_dt: date | None = None
"""The date the service associated with the line item ended."""
clm_line_hcpcs_cd: str | None = None
"""The HCPCS code representing the procedure, supply, product, and/or service provided to the beneficiary."""
clm_line_cvrd_pd_amt: float | None = None
"""The amount of payment made by Medicare on behalf of the beneficiary for the indicated service after deductible and co..."""
clm_prmry_pyr_cd: str | None = None
"""If a payer other than Medicare has primary responsibility for payment of the service indicated on the claim line, thi..."""
payto_prvdr_npi_num: str | None = None
"""A number that identifies the provider billing for the indicated service on the claim line. Each provider is assigned ..."""
ordrg_prvdr_npi_num: str | None = None
"""A number that identifies the provider ordering the indicated service on the claim line. Each provider is assigned its..."""
clm_carr_pmt_dnl_cd: str | None = None
"""Indicates to whom payment was made (e.g., physician, beneficiary) or if the claim was denied Find Carrier Payment Den..."""
clm_prcsg_ind_cd: str | None = None
"""Indicates if the service indicated on the claim line was allowed or the reason it was denied. Find Processing Indicat..."""
clm_adjsmt_type_cd: str | None = None
"""Indicates whether the claim is an original, cancellation, or adjustment claim. Claim Adjustment Type Code include: 0 ..."""
clm_efctv_dt: date | None = None
"""The date the claim was processed and added to the NCH. This is also referred to as the NCH Weekly Processing Date."""
clm_idr_ld_dt: date | None = None
"""When the claim was loaded into the IDR."""
clm_cntl_num: str | None = None
"""A unique number assigned to a claim by the Medicare carrier. This number allows CMS to associate each line item with ..."""
bene_eqtbl_bic_hicn_num: str | None = None
"""Legacy Beneficiary Equitable BIC HICN Number. Note: To comply with MACRA of 2015, after the end of the New Medicare C..."""
clm_line_alowd_chrg_amt: float | None = None
"""The amount Medicare approved for payment to the provider."""
clm_disp_cd: str | None = None
"""Contains information regarding payment actions on the claim. Claim Disposition Code include: 01 = Debit accepted 02 =..."""
clm_blg_prvdr_npi_num: str | None = None
"""A number that identifies the provider billing for the indicated service on the claim line. Each provider is assigned ..."""
clm_rfrg_prvdr_npi_num: str | None = None
"""A number that identifies the provider ordering the indicated service on the claim line. Each provider is assigned its..."""
class Cclf7(SQLTable):
"""CCLF7: Part D File
22 fields, fixed-width layout.
"""
__schema__ = "cclf"
__tablename__ = "cclf7"
cur_clm_uniq_id: str | None = None
"""A unique identification number assigned to the claim. I"""
bene_mbi_id: str | None = None
"""A Medicare Beneficiary Identifier assigned to a beneficiary. I"""
bene_hic_num: str | None = None
"""Legacy Beneficiary HICN field. Note: To comply with MACRA of 2015, after the end of the New Medicare Card Transition ..."""
clm_line_ndc_cd: str | None = None
"""A universal unique product identifier for human drugs."""
clm_type_cd: str | None = None
"""Signifies the type of claim being submitted through the Medicare or Medicaid programs. Claim type code include: 01 = ..."""
clm_line_from_dt: date | None = None
"""The date the service associated with the line item began (i.e., the date upon which the prescription was filled)."""
prvdr_srvc_id_qlfyr_cd: str | None = None
"""Indicates the type of number used to identify the pharmacy providing the services: 01 = NPI Number 06 = Unique Physic..."""
clm_srvc_prvdr_gnrc_id_num: str | None = None
"""The number associated with the indicated code in the Provider Service Identification Qualifier Code field."""
clm_dspnsng_stus_cd: str | None = None
"""Indicates the status of prescription fulfillment. Dispensing Code include: P = Partially filled C = Completely filled"""
clm_daw_prod_slctn_cd: str | None = None
"""Indicates the prescriber's instructions regarding generic substitution or how those instructions were followed. DAW P..."""
clm_line_srvc_unit_qty: float | None = None
"""Count of total units, at the line-item level, associated with services needing unit reporting (e.g., anesthesia time ..."""
clm_line_days_suply_qty: str | None = None
"""The number of days the supply of medication dispensed by the pharmacy will cover."""
prvdr_prsbng_id_qlfyr_cd: str | None = None
"""Indicates the type of number used to identify the prescribing provider: 01 = NPI Number 06 = UPIN 07 = NCPDP Number 0..."""
blank: str | None = None
"""A blank placeholder for the data element CLM_PRSBNG_PRVDR_G NRC_ID_NUM which was retired in this location and moved t..."""
clm_line_bene_pmt_amt: float | None = None
"""The dollar amount paid by the beneficiary that is not reimbursed by a third party (e.g., copayments, coinsurance, ded..."""
clm_adjsmt_type_cd: str | None = None
"""Indicates whether the claim an original, cancellation, or adjustment claim. Claim Adjustment Type Code include: 0 = O..."""
clm_efctv_dt: date | None = None
"""The date the claim was processed and added to the NCH. This is also referred to as the NCH Weekly Processing Date."""
clm_idr_ld_dt: date | None = None
"""When the claim was loaded into the IDR."""
clm_line_rx_srvc_rfrnc_num: str | None = None
"""Identifies a prescription dispensed by a particular service provider on a particular service date."""
clm_line_rx_fill_num: str | None = None
"""Assigned to the current dispensed supply by the pharmacy. It designates the sequential order of the original fill or ..."""
clm_phrmcy_srvc_type_cd: str | None = None
"""A unique identifier of a type of service being performed by a pharmacy when different contractual terms exist between..."""
clm_prsbng_prvdr_gnrc_id_num: str | None = None
"""The number associated with the indicated code in the Provider Prescribing Service Identification Qualifier Code field."""
class Cclf8(SQLTable):
"""CCLF8: Beneficiary Demographics File
31 fields, fixed-width layout.
"""
__schema__ = "cclf"
__tablename__ = "cclf8"
bene_mbi_id: str | None = None
"""A Medicare Beneficiary Identifier assigned to a beneficiary. I"""
bene_hic_num: str | None = None
"""Legacy Beneficiary HICN field. Note: To comply with MACRA of 2015, after the end of the New Medicare Card Transition ..."""
bene_fips_state_cd: str | None = None
"""Identifies the state where the beneficiary receiving services resides. I"""
bene_fips_cnty_cd: str | None = None
"""Identifies the county where the beneficiary receiving services resides. I"""
bene_zip_cd: str | None = None
"""The beneficiary’s ZIP code as indicated in their Medicare enrollment record. I"""
bene_dob: date | None = None
"""The month, day, and year of the beneficiary’s birth. I"""
bene_sex_cd: str | None = None
"""The beneficiary’s sex. H Code includes: 1 = Male 2 = Female 0 = Unknown"""
bene_race_cd: str | None = None
"""The beneficiary's race. H Code includes: 0 = Unknown 1 = White 2 = Black 3 = Other 4 = Asian 5 = Hispanic 6 = North A..."""
bene_age: str | None = None
"""The beneficiary’s current age, as calculated by subtracting the beneficiary’s date of birth from the current date. I"""
bene_mdcr_stus_cd: str | None = None
"""Indicates the reason for a beneficiary's entitlement to Medicare benefits as of a particular date, broken down by the..."""
bene_dual_stus_cd: str | None = None
"""Identifies the most recent entitlement status of beneficiaries eligible for a program(s) in addition to Medicare (e.g..."""
bene_death_dt: date | None = None
"""The month, day, and year of a beneficiary’s death. I"""
bene_rng_bgn_dt: date | None = None
"""The date the beneficiary enrolled in Hospice. I"""
bene_rng_end_dt: date | None = None
"""The date the beneficiary is- enrolled in hospice. I"""
bene_1st_name: str | None = None
"""The first name of the beneficiary. I"""
bene_midl_name: str | None = None
"""The middle name of the beneficiary. I"""
bene_last_name: str | None = None
"""The last name of the beneficiary. I"""
bene_orgnl_entlmt_rsn_cd: str | None = None
"""The reason for the beneficiary's original entitlement to Medicare benefits. H 0 = Old Age and Survivors Insurance (OA..."""
bene_entlmt_buyin_ind: str | None = None
"""Indicates for each month of the denominator reference year, the entitlement of the beneficiary to Medicare Part A, Me..."""
bene_part_a_enrlmt_bgn_dt: date | None = None
"""The date that a beneficiary is entitled for Medicare Part A benefits."""
bene_part_b_enrlmt_bgn_dt: date | None = None
"""The date that a beneficiary is entitled for Medicare Part B benefits."""
bene_line_1_adr: str | None = None
"""The first line of the street address."""
bene_line_2_adr: str | None = None
"""The second line of the street address."""
bene_line_3_adr: str | None = None
"""The third line of the street address."""
bene_line_4_adr: str | None = None
"""The fourth line of the street address."""
bene_line_5_adr: str | None = None
"""The fifth line of the street address."""
bene_line_6_adr: str | None = None
"""The sixth line of the street address."""
geo_zip_plc_name: str | None = None
"""The name of the city."""
geo_usps_state_cd: str | None = None
"""State code used by the United States Postal Service to identify a state."""
geo_zip5_cd: str | None = None
"""The US Postal Service code that is associated with a geographical area."""
geo_zip4_cd: str | None = None
"""A four-digit extension to a ZIP Code that represents a subdivision for mailing purposes of the ZIP Code."""
class Cclf9(SQLTable):
"""CCLF9: Beneficiary XREF File
6 fields, fixed-width layout.
"""
__schema__ = "cclf"
__tablename__ = "cclf9"
hicn_mbi_xref_ind: str | None = None
"""M = MBI Note: To comply with MACRA of 2015, after the end of the New Medicare Card Transition Period in December 2019..."""
crnt_num: str | None = None
"""Current Beneficiary MBI will denote the MBI. Note: To comply with MACRA of 2015, after the end of the New Medicare Ca..."""
prvs_num: str | None = None
"""Previous Beneficiary MBI. Note: To comply with MACRA of 2015, after the end of the New Medicare Card Transition Perio..."""
prvs_id_efctv_dt: date | None = None
"""The date the previous identifier became active."""
prvs_id_obslt_dt: date | None = None
"""The date the previous identifier ceased to be active."""
bene_rrb_num: str | None = None
"""Legacy RRB number. Note: To comply with MACRA of 2015, after the end of the New Medicare Card Transition Period in De..."""
class CclfA(SQLTable):
"""CCLFA: Part A Claims Benefit Enhancement and Demonstration Code File
33 fields, fixed-width layout.
"""
__schema__ = "cclf"
__tablename__ = "cclfa"
cur_clm_uniq_id: str | None = None
"""A unique identification number assigned to the claim. I"""
bene_mbi_id: str | None = None
"""A Medicare Beneficiary Identifier assigned to a beneficiary. I"""
bene_hic_num: str | None = None
"""Legacy Beneficiary HICN field. Note: To comply with MACRA of 2015, after the end of the New Medicare Card Transition ..."""
clm_type_cd: str | None = None
"""Signifies the type of claim being submitted through the Medicare or Medicaid programs. Claim type code include: 10 = ..."""
clm_actv_care_from_dt: date | None = None
"""On an institutional claim, the date the beneficiary was admitted to the hospital, skilled nursing facility, or Christ..."""
clm_ngaco_pbpmt_sw: str | None = None
"""A single character code of “Y” or “N” that indicates whether a particular claim is tied to a PBP benefit enhancement...."""
clm_ngaco_pdschrg_hcbs_sw: str | None = None
"""A single character code of “Y” or “N” that indicates whether a particular claim is tied to a Post Discharge Home Visi..."""
clm_ngaco_snf_wvr_sw: str | None = None
"""A single character code of “Y” or “N” that indicates whether a particular claim is tied to a SNF 3-Day Waiver benefit..."""
clm_ngaco_tlhlth_sw: str | None = None
"""A single character code of “Y” or “N” that indicates whether a particular claim is tied to a Telehealth benefit enhan..."""
clm_ngaco_cptatn_sw: str | None = None
"""A single character code of “Y” or “N” that indicates whether a particular claim is tied to an AIPBP benefit enhanceme..."""
clm_demo_1st_num: str | None = None
"""Medicare Demonstration Special Processing Number (SPN). This is a first demonstration number. This field will be used..."""
clm_demo_2nd_num: str | None = None
"""Medicare Demonstration Special Processing Number (SPN). This is a second demonstration number. This field will be use..."""
clm_demo_3rd_num: str | None = None
"""Medicare Demonstration Special Processing Number (SPN). This is a third demonstration number. This field will be used..."""
clm_demo_4th_num: str | None = None
"""Medicare Demonstration Special Processing Number (SPN). This is a fourth demonstration number. This field will be use..."""
clm_demo_5th_num: str | None = None
"""Medicare Demonstration Special Processing Number (SPN). This is a fifth demonstration number. This field will be used..."""
clm_pbp_inclsn_amt: float | None = None
"""The amount that would have been paid in the absence of PBP/ AIPBP Reduction. The value for the PBP/AIPBP Inclusion Am..."""
clm_pbp_rdctn_amt: float | None = None
"""The PBP/AIPBP Reduction Amount withheld from payment to the Provider. The value for the PBP/AIPBP Reduction Amount is..."""
clm_ngaco_cmg_wvr_sw: str | None = None
"""A single character code of “Y” or “N” that indicates whether a particular claim is tied to a Care Management Home Vis..."""
clm_instnl_per_diem_amt: float | None = None
"""The maximum amount a provider can be paid for each day of care."""
clm_mdcr_ip_bene_ddctbl_amt: float | None = None
"""The amount of the deductible the beneficiary paid for inpatient services, as originally submitted on the institutiona..."""
clm_mdcr_coinsrnc_amt: float | None = None
"""An amount identifying the portion applied toward the coinsurance a beneficiary is responsible for."""
clm_blood_lblty_amt: float | None = None
"""An amount identifying the portion of the blood deductible a beneficiary is liable for."""
clm_instnl_prfnl_amt: float | None = None
"""For inpatient and outpatient claims, the amount of physician and other professional charges covered under Medicare Pa..."""
clm_ncvrd_chrg_amt: float | None = None
"""The charges for institutional long-term care are not reimbursable by the primary payer. The non-covered charges do no..."""
clm_mdcr_ddctbl_amt: float | None = None
"""An amount identifying the portion applied toward the deductible a beneficiary is responsible for."""
clm_rlt_cond_cd: str | None = None
"""The code that indicates a condition relating to an institutional claim that may affect payer processing."""
clm_oprtnl_outlr_amt: float | None = None
"""Operating Outlier Amount (DSH)"""
clm_mdcr_new_tech_amt: float | None = None
"""Medicare new technology add-on payment"""
clm_islet_isoln_amt: float | None = None
"""Islet Isolation Add-on payment amount"""
clm_sqstrtn_rdctn_amt: float | None = None
"""The payment to the provider will be reduced by the amount specified by CMS."""
clm_1_rev_cntr_ansi_rsn_cd: str | None = None
"""A Fiscal Intermediary Shared System (FISS) code identifying the type of adjustment being performed."""
clm_1_rev_cntr_ansi_grp_cd: str | None = None
"""These codes categorize a payment adjustment."""
clm_mips_pmt_amt: float | None = None
"""Capital MIPS payment costs"""
class CclfB(SQLTable):
"""CCLFB: Part B Claims Benefit Enhancement and Demonstration Code File
21 fields, fixed-width layout.
"""
__schema__ = "cclf"
__tablename__ = "cclfb"
cur_clm_uniq_id: str | None = None
"""A unique identification number assigned to the claim. I"""
clm_line_num: str | None = None
"""A sequential number that identifies a specific claim line within a given claim."""
bene_mbi_id: str | None = None
"""A Medicare Beneficiary Identifier assigned to a beneficiary. I"""
bene_hic_num: str | None = None
"""Legacy Beneficiary HICN field. Note: To comply with MACRA of 2015, after the end of the New Medicare Card Transition ..."""
clm_type_cd: str | None = None
"""Signifies the type of claim being submitted through the Medicare or Medicaid programs Claim type code include: 71=RIC..."""
clm_line_ngaco_pbpmt_sw: str | None = None
"""A single character code of “Y” or “N” that indicates whether a particular claim line is tied to a PBP benefit enhance..."""
clm_line_ngaco_pdschrg_hcbs_sw: str | None = None
"""A single character code of “Y” or “N” that indicates whether a particular claim line is tied to a Post Discharge Home..."""
clm_line_ngaco_snf_wvr_sw: str | None = None
"""A single character code of “Y” or “N” that indicates whether a particular claim line is tied to a SNF 3-Day Waiver be..."""
clm_line_ngaco_tlhlth_sw: str | None = None
"""A single character code of “Y” or “N” that indicates whether a particular claim line is tied to a Telehealth benefit ..."""
clm_line_ngaco_cptatn_sw: str | None = None
"""A single character code of “Y” or “N” that indicates whether a particular claim line is tied to an AIPBP benefit enha..."""
clm_demo_1st_num: str | None = None
"""Medicare Demonstration Special Processing Number (SPN). This is a first demonstration number. This field will be used..."""
clm_demo_2nd_num: str | None = None
"""Medicare Demonstration Special Processing Number (SPN). This is a second demonstration number. This field will be use..."""
clm_demo_3rd_num: str | None = None
"""Medicare Demonstration Special Processing Number (SPN). This is a third demonstration number. This field will be used..."""
clm_demo_4th_num: str | None = None
"""Medicare Demonstration Special Processing Number (SPN). This is a fourth demonstration number. This field will be use..."""
clm_demo_5th_num: str | None = None
"""Medicare Demonstration Special Processing Number (SPN). This is a fifth demonstration number. This field will be used..."""
clm_pbp_inclsn_amt: float | None = None
"""The amount that would have been paid in the absence of PBP/AIPBP Reduction. The value for the PBP/AIPBP Inclusion Amo..."""
clm_pbp_rdctn_amt: float | None = None
"""The PBP/AIPBP Reduction Amount withheld from payment to the Provider. The value for the PBP/AIPBP Reduction Amount is..."""
clm_ngaco_cmg_wvr_sw: str | None = None
"""A single character code of “Y” or “N” that indicates whether a particular claim is tied to a Care Management Home Vis..."""
clm_mdcr_ddctbl_amt: float | None = None
"""Amount indicates the Medicare deductible amount billed to Medicaid for this service. The Medicare Deductible Amount d..."""
clm_sqstrtn_rdctn_amt: float | None = None
"""The payment to the provider will be reduced by the amount specified by CMS. Only one period has been defined by CMS f..."""
clm_line_carr_hpsa_scrcty_cd: str | None = None
"""A code used to track the Health Professional Shortage Area (HPSA) related bonus payments on Part B Professional claims"""