Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | VARCHAR | 36 | null |
|
|
||||||
| code_type | VARCHAR | 20 | null |
|
|
CPT or HCPCS |
|||||
| code | VARCHAR | 20 | null |
|
|
Billing code (e.g., 97153, H2014) |
|||||
| description | TEXT | 65535 | null |
|
|
Full description of the service |
|||||
| unit_type | VARCHAR | 50 | √ | UNIT |
|
|
Unit type: UNIT, 15MIN, HOUR, DAY |
||||
| default_duration_minutes | INT | 10 | √ | null |
|
|
Default duration in minutes |
||||
| is_active | BIT | 1 | √ | 1 |
|
|
Whether code is active for use |
||||
| location_business_line_id | VARCHAR | 36 | √ | null |
|
|
|||||
| created_at | TIMESTAMP | 19 | CURRENT_TIMESTAMP |
|
|
||||||
| updated_at | TIMESTAMP | 19 | CURRENT_TIMESTAMP |
|
|
||||||
| created_by | VARCHAR | 255 | √ | system |
|
|
|||||
| updated_by | VARCHAR | 255 | √ | system |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| idx_billing_active | Performance | Asc | is_active |
| idx_billing_code | Performance | Asc | code |
| idx_billing_codes_location_business_line | Performance | Asc | location_business_line_id |
| idx_billing_type | Performance | Asc | code_type |
| unique_billing_code_location | Must be unique | Asc/Asc/Asc | code_type + code + location_business_line_id |