Serves as the order detail segment for blood product requests, carrying the type of blood product being ordered, processing requirements (such as irradiated or leukoreduced), quantity, and intended use date. It is sent by an EHR or transfusion ordering system to the blood bank within OMB (Blood Product Order) messages. BPO pairs with an ORC segment to form a complete blood product order.
from zato.hl7v2 import BPO, CWE
bpo = BPO()
service = CWE(identifier='PLT01', text='Platelet Unit')
bpo.bp_universal_service_identifier = service
bpo.bp_quantity = '1'How to construct and work with real-world BPO segments.
Required service code and quantity for donor appreciation week inventory
from zato.hl7v2.v2_9 import BPO
from zato.hl7v2.v2_9 import CWE
bpo = BPO()
bpo.set_id_bpo = '1'
bpo.bp_universal_service_identifier = CWE(
identifier='PLT01',
text='Platelet apheresis unit',
)
bpo.bp_quantity = '1'Repeatable processing codes, amount, units, and intended use time
from zato.hl7v2.v2_9 import BPO
from zato.hl7v2.v2_9 import CWE, PL
bpo = BPO()
bpo.set_id_bpo = '1'
bpo.bp_universal_service_identifier = CWE(
identifier='PLASMA01',
text='Fresh frozen plasma',
)
bpo.bp_processing_requirements = [
CWE(identifier='PROC', text='Standard processing'),
CWE(identifier='LEU', text='Leukoreduced preparation'),
]
bpo.bp_quantity = '2'
bpo.bp_amount = '250'
bpo.bp_units = CWE(identifier='ML', text='Milliliters')
bpo.bp_intended_use_date_time = '20240416120000'
bpo.bp_intended_dispense_from_location = PL(
point_of_care='COMM',
room='Community blood bank',
bed='A',
)From and to locations, addresses, indication, and consent indicator
from zato.hl7v2.v2_9 import BPO
from zato.hl7v2.v2_9 import CWE, PL, XAD
bpo = BPO()
bpo.set_id_bpo = '1'
bpo.bp_universal_service_identifier = CWE(
identifier='PLT01',
text='Platelet apheresis unit',
)
bpo.bp_processing_requirements = [
CWE(identifier='PROC', text='Standard processing')]
bpo.bp_quantity = '1'
bpo.bp_amount = '300'
bpo.bp_units = CWE(identifier='UNIT', text='Apheresis unit')
bpo.bp_intended_use_date_time = '20240416100000'
bpo.bp_intended_dispense_from_location = PL(
point_of_care='BANK',
room='STOR1',
bed='A',
)
bpo.bp_intended_dispense_from_address = XAD(
street_address='50 Blood Services Way',
city='Denver',
state_or_province='CO',
zip_or_postal_code='80202',
country='USA',
)
bpo.bp_requested_dispense_date_time = '20240417103000'
bpo.bp_requested_dispense_to_location = PL(
point_of_care='EVENT',
room='HALL2',
bed='B',
)
bpo.bp_requested_dispense_to_address = XAD(
street_address='200 Community Lane',
city='Denver',
state_or_province='CO',
zip_or_postal_code='80204',
country='USA',
)
bpo.bp_indication_for_use = [
CWE(identifier='DRIVE', text='Community blood drive')]
bpo.bp_informed_consent_indicator = 'Y'Step-by-step guides for working with HL7 v2 in Zato.
BPO carries the ordered blood bank product or service, optional preparation preferences, quantity with optional amount and units, timing, staging and delivery locations with addresses, wellness-oriented indication text, and whether informed consent was recorded. It aligns with ORC and OBR and supports BPX and BTX follow-on segments.
Use CWE for field 2 and assign it to bp_universal_service_identifier:
from zato.hl7v2.v2_9 import BPO, CWE
bpo = BPO()
bpo.bp_universal_service_identifier = CWE(
identifier='PLT01', text='Platelet Unit')Field 3 may repeat in ER7 using ~ between occurrences. In Python, assign a list of CWE instances to bp_processing_requirements.
from zato.hl7v2.v2_9 import BPO, CWE
bpo = BPO()
bpo.bp_processing_requirements = [
CWE(identifier='PROC', text='Standard processing'),
CWE(identifier='LEU', text='Leukoreduced preparation'),
]Fields 8 and 9 describe where preparation should start; fields 11 and 12 describe the requested hand-off location and its address. Use PL for structured location and XAD for street-level detail.
from zato.hl7v2.v2_9 import BPO, PL, XAD
bpo = BPO()
bpo.bp_intended_dispense_from_location = PL(
point_of_care='BANK', room='STOR1')
bpo.bp_intended_dispense_from_address = XAD(
street_address='50 Blood Services Way',
city='Denver',
state_or_province='CO',
zip_or_postal_code='80202',
country='USA',
)Fields 1, 2, and 4 are required: set_id_bpo, bp_universal_service_identifier, and bp_quantity. Populate optional timing and location fields when your interface guide expects them for community drive or inventory workflows.
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 BPO segment, HL7 v2.9.
| # | Python name | Datatype | Usage | Repeatable | Table |
|---|---|---|---|---|---|
| 1 | set_id_bpo | SI | Required | No | - |
| 2 | bp_universal_service_identifier | CWE | Required | No | HL70575 |
| 3 | bp_processing_requirements | CWE | Optional | Yes | HL70508 |
| 4 | bp_quantity | NM | Required | No | - |
| 5 | bp_amount | NM | Optional | No | - |
| 6 | bp_units | CWE | Optional | No | HL70576 |
| 7 | bp_intended_use_date_time | DTM | Optional | No | - |
| 8 | bp_intended_dispense_from_location | PL | Optional | No | - |
| 9 | bp_intended_dispense_from_address | XAD | Optional | No | - |
| 10 | bp_requested_dispense_date_time | DTM | Optional | No | - |
| 11 | bp_requested_dispense_to_location | PL | Optional | No | - |
| 12 | bp_requested_dispense_to_address | XAD | Optional | No | - |
| 13 | bp_indication_for_use | CWE | Optional | Yes | HL70509 |
| 14 | bp_informed_consent_indicator | ID | Optional | No | HL70136 |
Get started with Zato and connect your systems in minutes.