encounter_cpt_codes


Description

CPT codes used on specific encounters

Columns

Column Type Size Nulls Auto Default Children Parents Comments
id VARCHAR 36 null
location_business_line_id VARCHAR 36 null
location_business_lines.id fk_encounter_cpt_codes_location R
encounter_id VARCHAR 36 null
encounters.id fk_encounter_cpt_codes_encounter C

FK to encounters.id

cpt_code_id VARCHAR 36 null
cpt_codes.id fk_encounter_cpt_codes_cpt R

FK to cpt_codes.id

units DECIMAL 10,2 1.00

Units or minutes for billing

is_primary BIT 1 0

Primary billing code?

modifier VARCHAR 10 √ null

Billing modifier (e.g., HN, HO)

created_at TIMESTAMP 19 CURRENT_TIMESTAMP
updated_at TIMESTAMP 19 CURRENT_TIMESTAMP
created_by VARCHAR 36 √ null
updated_by VARCHAR 36 √ null
prior_authorization_cpt_code_id VARCHAR 36 √ null

Indexes

Constraint Name Type Sort Column(s)
PRIMARY Primary key Asc id
idx_encounter_cpt_codes_cpt Performance Asc cpt_code_id
idx_encounter_cpt_codes_encounter Performance Asc encounter_id
idx_encounter_cpt_codes_location Performance Asc location_business_line_id
uk_encounter_cpt_codes Must be unique Asc/Asc encounter_id + cpt_code_id

Relationships