Carries accident-related information including the date and time of the accident, the accident code (such as auto, employment, or other), and accident location. It appears in ADT, BAR, DFT, and referral messages when the patient's visit is related to an accident, and is used by billing and claims systems to route claims to workers' compensation, auto insurance, or other liability payers.
from zato.hl7v2 import ACC
acc = ACC()
acc.accident_date_time = '20260315'
acc.accident_code = 'MVA'
acc.accident_location = 'Home'How to construct and work with real-world ACC segments.
Basic administrative incident record with date, code, location, and entering staff
from zato.hl7v2.v2_9 import ACC
from zato.hl7v2.v2_9 import CWE
acc = ACC()
acc.accident_date_time = '20240315100000'
acc.accident_code = CWE(
identifier='MVA',
text='Motor vehicle',
name_of_coding_system='HL70050'
)
acc.accident_location = 'Main St Office'
acc.accident_description = 'Routine filing'Auto-related record with state code and job-related indicator for coverage filing
from zato.hl7v2.v2_9 import ACC
from zato.hl7v2.v2_9 import CWE
acc = ACC()
acc.accident_date_time = '20240601140000'
acc.accident_code = CWE(
identifier='AUTO',
text='Automobile',
name_of_coding_system='HL70050'
)
acc.auto_accident_state = CWE(
identifier='CA',
text='California',
name_of_coding_system='HL70347'
)
acc.accident_job_related_indicator = 'N'
acc.accident_death_indicator = 'N'Incident record with address, identifier, and brought-in-by for administrative filing
from zato.hl7v2.v2_9 import ACC
from zato.hl7v2.v2_9 import CWE, XCN, XAD, EI
acc = ACC()
acc.accident_date_time = '20240820090000'
acc.accident_code = CWE(
identifier='OTH',
text='Other',
name_of_coding_system='HL70050'
)
acc.accident_location = 'Park Ave Clinic'
acc.entered_by = XCN(
person_identifier='1234',
family_name='CLARK',
given_name='LISA',
suffix='RN'
)
acc.brought_in_by = 'Neighbor'
acc.police_notified_indicator = 'N'
acc.accident_address = XAD(
street_address='100 Elm St',
city='Springfield',
state='IL',
zip_code='62701'
)
acc.accident_identifier = EI(
entity_identifier='INC-2024-001',
namespace_id='WELLNESS'
)Step-by-step guides for working with HL7 v2 in Zato.
ACC carries administrative details about an incident record - the date and time, a classification code, location, whether it was auto-related, and job-related status. It appears in ADT and insurance claim messages to support documentation and coverage workflows.
Create the segment and access its fields directly:
from zato.hl7v2.v2_9 import ACC
acc = ACC()
acc.accident_date_time = '20240315100000'
acc.accident_code = 'MVA'
acc.accident_location = 'Main St Office'
date_time = acc.accident_date_time
code = acc.accident_code
location = acc.accident_locationThe accident_code field uses HL7 table 0050. Common values include:
from zato.hl7v2.v2_9 import ACC, CWE
acc = ACC()
# AUTO = Automobile
acc.accident_code = CWE(identifier='AUTO')
# MVA = Motor vehicle
acc.accident_code = CWE(identifier='MVA')
# OTH = Other
acc.accident_code = CWE(identifier='OTH')The auto_accident_state field uses the CWE datatype with HL7 table 0347:
from zato.hl7v2.v2_9 import ACC, CWE
acc = ACC()
acc.auto_accident_state = CWE(
identifier='CA',
text='California',
name_of_coding_system='HL70347'
)The accident_address field uses the XAD (extended address) datatype:
from zato.hl7v2.v2_9 import ACC, XAD
acc = ACC()
acc.accident_address = XAD(
street_address='100 Elm St',
city='Springfield',
state='IL',
zip_code='62701'
)Zato connects to any system that speaks HL7v2 over MLLP or FHIR over REST. This includes Epic, Cerner, Meditech, Allscripts, and other EHR platforms.
Yes, Zato has built-in MLLP support for sending and receiving HL7v2 messages. MLLP channels handle the framing protocol automatically.
Zato supports HL7 v2.9, which is backward compatible with earlier versions including v2.3, v2.5, and v2.7. Standard segments and datatypes are available as typed Python classes.
Yes. Zato handles both HL7v2 and FHIR natively, so you can parse v2 messages and build FHIR resources with IG-specific extensions in the same service. Typed Python classes are available for both protocols, including extensions from US Core, UK Core, Da Vinci, and other Implementation Guides.
Complete list of fields in the ACC segment, HL7 v2.9.
| # | Python name | Datatype | Usage | Repeatable | Table |
|---|---|---|---|---|---|
| 1 | accident_date_time | DTM | Optional | No | - |
| 2 | accident_code | CWE | Optional | No | HL70050 |
| 3 | accident_location | ST | Optional | No | - |
| 4 | auto_accident_state | CWE | Optional | No | HL70347 |
| 5 | accident_job_related_indicator | ID | Optional | No | HL70136 |
| 6 | accident_death_indicator | ID | Optional | No | HL70136 |
| 7 | entered_by | XCN | Optional | No | - |
| 8 | accident_description | ST | Optional | No | - |
| 9 | brought_in_by | ST | Optional | No | - |
| 10 | police_notified_indicator | ID | Optional | No | HL70136 |
| 11 | accident_address | XAD | Optional | No | - |
| 12 | degree_of_patient_liability | NM | Optional | No | - |
| 13 | accident_identifier | EI | Optional | Yes | - |
Get started with Zato and connect your systems in minutes.