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.
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')How to construct and work with real-world ILT segments.
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'
)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'
)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'
)Step-by-step guides for working with HL7 v2 in Zato.
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.
Complete list of fields in the ILT segment, HL7 v2.9.
| # | Python name | Datatype | Usage | Repeatable | Table |
|---|---|---|---|---|---|
| 1 | set_id_ilt | SI | Required | No | - |
| 2 | inventory_lot_number | ST | Required | No | - |
| 3 | inventory_expiration_date | DTM | Optional | No | - |
| 4 | inventory_received_date | DTM | Optional | No | - |
| 5 | inventory_received_quantity | NM | Optional | No | - |
| 6 | inventory_received_quantity_unit | CWE | Optional | No | - |
| 7 | inventory_received_item_cost | MO | Optional | No | - |
| 8 | inventory_on_hand_date | DTM | Optional | No | - |
| 9 | inventory_on_hand_quantity | NM | Optional | No | - |
| 10 | inventory_on_hand_quantity_unit | CWE | Optional | No | - |
Get started with Zato and connect your systems in minutes.