Schedule a demo
Segment

Material lot

Carries lot-level information for inventory supply items, including lot number, expiration date, transaction quantity, and on-hand quantity. It is nested under IVT segments in MFN (Master File Notification) messages and is used to synchronize lot-level inventory data between materials management or ERP systems and clinical or pharmacy systems.

10fields
2required
v2.9HL7 version
ilt.py
from zato.hl7v2.v2_9 import ILT
from zato.hl7v2.v2_9 import EI, DTM, NM

ilt = ILT()
ilt.set_id_ilt = '1'
ilt.inventory_lot_number = 'LOT20260115001'
ilt.inventory_expiration_date = DTM('20271231')

Build ILT segments in Python

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

1

Medical supply lot

Surgical gloves inventory

from zato.hl7v2.v2_9 import ILT
from zato.hl7v2.v2_9 import DTM, NM, CWE

ilt = ILT()
ilt.set_id_ilt = '1'
ilt.inventory_lot_number = 'LOT20240115001'
ilt.inventory_expiration_date = DTM('20251231')
ilt.inventory_received_date = DTM('20240115')
ilt.inventory_received_quantity = '500'
ilt.inventory_received_quantity_unit = CWE(
    identifier='EA',
    text='Each',
    name_of_coding_system='UCUM'
)
2

Pharmaceutical lot

Medication inventory

from zato.hl7v2.v2_9 import ILT
from zato.hl7v2.v2_9 import DTM, NM, CWE

ilt = ILT()
ilt.set_id_ilt = '2'
ilt.inventory_lot_number = 'LOT20240116002'
ilt.inventory_expiration_date = DTM('20250630')
ilt.inventory_received_date = DTM('20240116')
ilt.inventory_received_quantity = '1000'
ilt.inventory_received_quantity_unit = CWE(
    identifier='TAB',
    text='Tablet',
    name_of_coding_system='UCUM'
)
3

Lab reagent lot

Laboratory reagent inventory

from zato.hl7v2.v2_9 import ILT
from zato.hl7v2.v2_9 import DTM, NM, CWE

ilt = ILT()
ilt.set_id_ilt = '3'
ilt.inventory_lot_number = 'LOT20240117003'
ilt.inventory_expiration_date = DTM('20240715')
ilt.inventory_received_date = DTM('20240117')
ilt.inventory_received_quantity = '50'
ilt.inventory_received_quantity_unit = CWE(
    identifier='mL',
    text='Milliliter',
    name_of_coding_system='UCUM'
)

Learn by building

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

Frequently asked questions

ILT contains material lot information including lot numbers, expiration dates, and quantities for materials management.

Use inventory_lot_number field:

from zato.hl7v2.v2_9 import ILT

ilt = ILT()
ilt.inventory_lot_number = 'LOT20240115001'

Use inventory_expiration_date field with DTM datatype:

from zato.hl7v2.v2_9 import ILT
from zato.hl7v2.v2_9 import DTM

ilt = ILT()
ilt.inventory_expiration_date = DTM('20251231')

ILT contains lot-specific information while ITM contains item master data. Multiple ILT segments can reference the same ITM.

Use inventory_on_hand_date, inventory_on_hand_quantity, and inventory_on_hand_quantity_unit to capture current stock for nutrition, fitness, and self-care supplies between receipts.

from zato.hl7v2.v2_9 import ILT
from zato.hl7v2.v2_9 import DTM, CWE

ilt = ILT()
ilt.inventory_on_hand_date = DTM('20250405120000')
ilt.inventory_on_hand_quantity = '120'
ilt.inventory_on_hand_quantity_unit = CWE(
    identifier='EA',
    text='Each',
    name_of_coding_system='UCUM'
)

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.

ILT field reference

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

#Python nameDatatypeUsageRepeatableTable
1set_id_iltSIRequiredNo-
2inventory_lot_numberSTRequiredNo-
3inventory_expiration_dateDTMOptionalNo-
4inventory_received_dateDTMOptionalNo-
5inventory_received_quantityNMOptionalNo-
6inventory_received_quantity_unitCWEOptionalNo-
7inventory_received_item_costMOOptionalNo-
8inventory_on_hand_dateDTMOptionalNo-
9inventory_on_hand_quantityNMOptionalNo-
10inventory_on_hand_quantity_unitCWEOptionalNo-

Ready to build integrations?

Get started with Zato and connect your systems in minutes.

Open source In Python