Schedule a demo
Segment

Employment status

Carries a patient's current or historical employment status as part of occupational data collection. It includes the employment status code, effective start and end dates, the date the information was entered, and a unique identifier for the record. This segment appears in ADT and occupational health messages and supports public health reporting and occupational exposure tracking workflows.

7fields
3required
v2.9HL7 version
oh1.py
from zato.hl7v2 import OH1

oh1 = OH1()
oh1.set_id = '1'
oh1.employment_status = 'FT'
oh1.entered_date = '20260601'

Build OH1 segments in Python

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

1

Active employment

Records full-time employment status with start date and entry timestamp

from zato.hl7v2.v2_9 import OH1
from zato.hl7v2.v2_9 import CWE

oh1 = OH1()
oh1.set_id = '1'
oh1.employment_status = CWE(
    identifier='FT',
    text='Full time',
    name_of_coding_system='HL70957'
)
oh1.employment_status_start_date = (
    '20230101'
)
oh1.entered_date = '20240601'
2

Retired status

Records retired employment status with both start and end dates

from zato.hl7v2.v2_9 import OH1
from zato.hl7v2.v2_9 import CWE, EI

oh1 = OH1()
oh1.set_id = '2'
oh1.employment_status = CWE(
    identifier='RT',
    text='Retired',
    name_of_coding_system='HL70957'
)
oh1.employment_status_start_date = (
    '20200601'
)
oh1.employment_status_end_date = (
    '20240101'
)
oh1.entered_date = '20240115'
oh1.employment_status_unique_identifier = EI(
    entity_identifier='OH1-2024-001',
    namespace_id='MAIN'
)
3

Part-time record

Part-time employment status with an action code for update processing

from zato.hl7v2.v2_9 import OH1
from zato.hl7v2.v2_9 import CWE

oh1 = OH1()
oh1.set_id = '3'
oh1.action_code = 'UP'
oh1.employment_status = CWE(
    identifier='PT',
    text='Part time',
    name_of_coding_system='HL70957'
)
oh1.employment_status_start_date = (
    '20240301'
)
oh1.entered_date = '20240315'

Learn by building

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

Frequently asked questions

OH1 carries a patient's employment status as part of occupational data. It records the status code, effective date range, entry date, and a unique identifier. It appears in ADT and occupational health messages to support exposure tracking and public health reporting.

The employment_status field uses CWE with HL7 table 0957:

from zato.hl7v2.v2_9 import OH1, CWE

oh1 = OH1()
oh1.employment_status = CWE(
    identifier='FT',
    text='Full time',
    name_of_coding_system='HL70957'
)

Use the start and end date fields for the employment period:

from zato.hl7v2.v2_9 import OH1

oh1 = OH1()
oh1.employment_status_start_date = (
    '20230101'
)
oh1.employment_status_end_date = (
    '20240101'
)

The employment_status_unique_identifier field uses the EI datatype:

from zato.hl7v2.v2_9 import OH1, EI

oh1 = OH1()
oh1.employment_status_unique_identifier = EI(
    entity_identifier='OH1-2024-001',
    namespace_id='MAIN'
)

The action_code field accepts standard HL7 action codes for record management:

from zato.hl7v2.v2_9 import OH1

oh1 = OH1()
oh1.set_id = '1'
oh1.action_code = 'AD'

oh1_upd = OH1()
oh1_upd.set_id = '2'
oh1_upd.action_code = 'UP'

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.

OH1 field reference

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

#Python nameDatatypeUsageRepeatableTable
1set_idSIRequiredNo-
2action_codeIDOptionalNo-
3employment_statusCWERequiredNoHL70957
4employment_status_start_dateDTOptionalNo-
5employment_status_end_dateDTOptionalNo-
6entered_dateDTRequiredNo-
7employment_status_unique_identifierEIOptionalNo-

Ready to build integrations?

Get started with Zato and connect your systems in minutes.

Open source In Python