Describes properties of a blood unit resulting from a donation, including unit type, weight, volume, container catalog and lot number, and transport temperature range. It accompanies the DON segment in blood bank messages and enables communication between blood center processing systems, inventory management, and hospital transfusion services to track individual blood products from collection through distribution.
from zato.hl7v2.v2_9 import BUI
from zato.hl7v2.v2_9 import EI, CWE, DTM
bui = BUI()
bui.set_id_bui = '1'
identifier = EI(entity_identifier='UNIT20240115001')
bui.blood_unit_identifier = identifierHow to construct and work with real-world BUI segments.
PRBC unit information
from zato.hl7v2.v2_9 import BUI
from zato.hl7v2.v2_9 import EI, CWE, DTM, NM
bui = BUI()
bui.set_id_bui = '1'
bui.blood_unit_identifier = EI(entity_identifier='UNIT20240115001')
bui.blood_unit_type = CWE(
identifier='PRBC',
text='Packed Red Blood Cells',
name_of_coding_system='ISBT128'
)
bui.blood_unit_expiration_date = DTM('20240215')
bui.blood_unit_volume = '350'
bui.blood_unit_volume_units = CWE(
identifier='mL',
text='mL',
name_of_coding_system='UCUM'
)FFP unit information
from zato.hl7v2.v2_9 import BUI
from zato.hl7v2.v2_9 import EI, CWE, DTM, NM
bui = BUI()
bui.set_id_bui = '2'
bui.blood_unit_identifier = EI(entity_identifier='UNIT20240115002')
bui.blood_unit_type = CWE(
identifier='FFP',
text='Fresh Frozen Plasma',
name_of_coding_system='ISBT128'
)
bui.blood_unit_expiration_date = DTM('20250115')
bui.blood_unit_volume = '250'
bui.blood_unit_volume_units = CWE(
identifier='mL',
text='mL',
name_of_coding_system='UCUM'
)Platelet unit information
from zato.hl7v2.v2_9 import BUI
from zato.hl7v2.v2_9 import EI, CWE, DTM, NM
bui = BUI()
bui.set_id_bui = '3'
bui.blood_unit_identifier = EI(entity_identifier='UNIT20240115003')
bui.blood_unit_type = CWE(
identifier='PLT',
text='Platelet Concentrate',
name_of_coding_system='ISBT128'
)
bui.blood_unit_expiration_date = DTM('20240120')
bui.blood_unit_volume = '300'
bui.blood_unit_volume_units = CWE(
identifier='mL',
text='mL',
name_of_coding_system='UCUM'
)Step-by-step guides for working with HL7 v2 in Zato.
BUI contains blood unit information including unit identifiers, product codes, expiration dates, and volume for blood bank operations.
Common blood product types include PRBC (Packed Red Blood Cells), FFP (Fresh Frozen Plasma), and PLT (Platelet Concentrate).
Use blood_unit_identifier field with EI datatype:
bui.blood_unit_identifier = EI(entity_identifier='UNIT20240115001')BUI contains blood unit information while DON contains donation information. A single donation may produce multiple blood units.
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 BUI segment, HL7 v2.9.
| # | Python name | Datatype | Usage | Repeatable | Table |
|---|---|---|---|---|---|
| 1 | set_id_bui | SI | Optional | No | - |
| 2 | blood_unit_identifier | EI | Required | No | - |
| 3 | blood_unit_type | CWE | Required | No | HL70566 |
| 4 | blood_unit_weight | NM | Required | No | - |
| 5 | weight_units | CNE | Required | No | HL70929 |
| 6 | blood_unit_volume | NM | Required | No | - |
| 7 | volume_units | CNE | Required | No | HL70930 |
| 8 | container_catalog_number | ST | Required | No | - |
| 9 | container_lot_number | ST | Required | No | - |
| 10 | container_manufacturer | XON | Required | No | - |
| 11 | transport_temperature | NR | Required | No | - |
| 12 | transport_temperature_units | CNE | Required | No | HL70931 |
| 13 | action_code | ID | Optional | No | - |
Get started with Zato and connect your systems in minutes.