Schedule a demo
Segment

Accident

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.

13fields
0required
v2.9HL7 version
acc.py
from zato.hl7v2 import ACC

acc = ACC()
acc.accident_date_time = '20260315'
acc.accident_code = 'MVA'
acc.accident_location = 'Home'

Build ACC segments in Python

How to construct and work with real-world ACC segments.

1

Incident record

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'
2

Insurance documentation

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'
3

Administrative entry

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'
)

Learn by building

Step-by-step guides for working with HL7 v2 in Zato.

Frequently asked questions

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_location

The 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.

ACC field reference

Complete list of fields in the ACC segment, HL7 v2.9.

#Python nameDatatypeUsageRepeatableTable
1accident_date_timeDTMOptionalNo-
2accident_codeCWEOptionalNoHL70050
3accident_locationSTOptionalNo-
4auto_accident_stateCWEOptionalNoHL70347
5accident_job_related_indicatorIDOptionalNoHL70136
6accident_death_indicatorIDOptionalNoHL70136
7entered_byXCNOptionalNo-
8accident_descriptionSTOptionalNo-
9brought_in_bySTOptionalNo-
10police_notified_indicatorIDOptionalNoHL70136
11accident_addressXADOptionalNo-
12degree_of_patient_liabilityNMOptionalNo-
13accident_identifierEIOptionalYes-

Ready to build integrations?

Get started with Zato and connect your systems in minutes.

Open source In Python