encounter_type_cpts


Description

CPT codes allowed for each encounter type

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_type_cpts_location R
encounter_type_id VARCHAR 36 null
encounter_types.id fk_encounter_type_cpts_encounter_type C

FK to encounter_types.id

cpt_code_id VARCHAR 36 null
cpt_codes.id fk_encounter_type_cpts_cpt C

FK to cpt_codes.id

is_default_for_type BIT 1 0

Default CPT for this encounter type?

max_minutes_per_encounter_for_cpt INT 10 √ null

Max minutes for this CPT within encounter

units_by_hour DECIMAL 5,2 4.00
config_json JSON 1073741824 √ null

Per CPT/type specific config (e.g., billing modifiers)

requires_data_collection BIT 1 0
data_collection_enabled BIT 1 1
is_active BIT 1 1
created_at TIMESTAMP 19 CURRENT_TIMESTAMP
updated_at TIMESTAMP 19 CURRENT_TIMESTAMP
created_by VARCHAR 36 √ null
updated_by VARCHAR 36 √ null

Indexes

Constraint Name Type Sort Column(s)
PRIMARY Primary key Asc id
idx_encounter_type_cpts_cpt Performance Asc cpt_code_id
idx_encounter_type_cpts_encounter_type Performance Asc encounter_type_id
idx_encounter_type_cpts_is_active Performance Asc is_active
idx_encounter_type_cpts_location Performance Asc location_business_line_id
uk_encounter_type_cpts Must be unique Asc/Asc encounter_type_id + cpt_code_id

Relationships