Schedule a demo
Segment

Blood code

Identifies blood products associated with a patient encounter, carrying the blood product code and the amount administered or ordered. It appears in transfusion-related and blood-bank messages to communicate which blood components are being dispensed, crossmatched, or transfused, and in what quantities.

2fields
0required
v2.9HL7 version
blc.py
from zato.hl7v2 import BLC

blc = BLC()
blc.blood_product_code = 'PRBC'
blc.blood_amount = '2'

Build BLC segments in Python

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

1

Red cell transfusion

Packed red blood cells ordered with amount specified in units

from zato.hl7v2.v2_9 import BLC
from zato.hl7v2.v2_9 import CWE, CQ

blc = BLC()
blc.blood_product_code = CWE(
    identifier='PRBC',
    text=
        'Packed Red Blood Cells',
    name_of_coding_system=
        'HL70426'
)
blc.blood_amount = CQ(
    quantity='2',
    units='U'
)
2

Platelet concentrate

Platelet product with amount in millilitres for a transfusion order

from zato.hl7v2.v2_9 import BLC
from zato.hl7v2.v2_9 import CWE, CQ

blc = BLC()
blc.blood_product_code = CWE(
    identifier='PLT',
    text='Platelets',
    name_of_coding_system=
        'HL70426'
)
blc.blood_amount = CQ(
    quantity='250',
    units='mL'
)
3

Fresh frozen plasma

FFP product with volume for an emergency transfusion record

from zato.hl7v2.v2_9 import BLC
from zato.hl7v2.v2_9 import CWE, CQ

blc = BLC()
blc.blood_product_code = CWE(
    identifier='FFP',
    text='Fresh Frozen Plasma',
    name_of_coding_system=
        'HL70426'
)
blc.blood_amount = CQ(
    quantity='300',
    units='mL'
)

Learn by building

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

Frequently asked questions

BLC carries blood product identification and quantity data within transfusion and blood-bank messages. It links a coded blood product (such as packed red cells or platelets) with the amount ordered or dispensed.

The blood_product_code field uses CWE with HL7 table 0426:

from zato.hl7v2.v2_9 import BLC, CWE

blc = BLC()
blc.blood_product_code = CWE(
    identifier='PRBC',
    text=
        'Packed Red Blood Cells',
    name_of_coding_system=
        'HL70426'
)

The blood_amount field uses the CQ (composite quantity) datatype:

from zato.hl7v2.v2_9 import BLC, CQ

blc = BLC()
blc.blood_amount = CQ(
    quantity='2',
    units='U'
)

Yes, set the units component to the appropriate volume measure:

from zato.hl7v2.v2_9 import BLC, CQ

blc = BLC()
blc.blood_amount = CQ(
    quantity='250',
    units='mL'
)

Access the fields directly after creating the segment:

from zato.hl7v2.v2_9 import BLC

blc = BLC()
blc.blood_product_code = 'PRBC'
blc.blood_amount = '2'

product = blc.blood_product_code
amount = blc.blood_amount

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.

BLC field reference

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

#Python nameDatatypeUsageRepeatableTable
1blood_product_codeCWEOptionalNoHL70426
2blood_amountCQOptionalNo-

Ready to build integrations?

Get started with Zato and connect your systems in minutes.

Open source In Python