encounter_notes


Columns

Column Type Size Nulls Auto Default Children Parents Comments
id VARCHAR 36 null
encounter_id VARCHAR 36 null
location_business_line_id VARCHAR 36 √ null
note_template_id VARCHAR 36 √ null
template_version_at_creation INT 10 √ null
current_version INT 10 1
status VARCHAR 50 CREATED
service_start_time TIMESTAMP 19 √ null
service_end_time TIMESTAMP 19 √ null
service_duration_minutes INT 10 √ null
billable_units DECIMAL 5,2 √ null
non_billable_units DECIMAL 5,2 √ null
unit_calculation_notes TEXT 65535 √ null
is_signed BIT 1 0
signed_by VARCHAR 36 √ null
signed_at TIMESTAMP 19 √ null
signature_data TEXT 65535 √ null
signature_title VARCHAR 100 √ null
requires_cosignature BIT 1 0
co_signed_by VARCHAR 36 √ null
co_signed_at TIMESTAMP 19 √ null
co_signature_data TEXT 65535 √ null
co_signature_title VARCHAR 100 √ null
is_locked BIT 1 0
locked_at TIMESTAMP 19 √ null
created_at TIMESTAMP 19 √ CURRENT_TIMESTAMP
updated_at TIMESTAMP 19 √ CURRENT_TIMESTAMP
created_by VARCHAR 36 √ null
updated_by VARCHAR 36 √ null
form_data JSON 1073741824 √ null
caregiver_signed_by VARCHAR 255 √ null
caregiver_signed_at DATETIME 19 √ null
caregiver_signature_data LONGTEXT 2147483647 √ null

Indexes

Constraint Name Type Sort Column(s)
PRIMARY Primary key Asc id
encounter_id Must be unique Asc encounter_id
idx_encounter_notes_encounter Performance Asc encounter_id
idx_encounter_notes_location Performance Asc location_business_line_id
idx_encounter_notes_signed Performance Asc/Asc is_signed + signed_at
idx_encounter_notes_status Performance Asc status
idx_encounter_notes_template Performance Asc note_template_id

Relationships