Defines the configuration of a specific test code on a laboratory instrument, mapping a universal test identifier to a device-specific local code and carrying parameters such as calibration and QC settings. It is used in master-file-style configuration messages between LIS and analyzers or automation systems so that both systems agree on how tests are identified and processed on a given instrument.
from zato.hl7v2.v2_9 import TCC
from zato.hl7v2.v2_9 import CWE, EI
tcc = TCC()
tcc.universal_service_identifier = CWE(
identifier='GLU',
text='Glucose'
)
identifier = EI(entity_identifier='TEST001')
tcc.equipment_test_application_identifier = identifierHow to construct and work with real-world TCC segments.
Chemistry analyzer test setup
from zato.hl7v2.v2_9 import TCC
from zato.hl7v2.v2_9 import CWE, EI
tcc = TCC()
tcc.universal_service_identifier = CWE(
identifier='GLU',
text='Glucose',
name_of_coding_system='LN'
)
tcc.equipment_test_application_identifier = EI(
entity_identifier='TEST001',
namespace_id='CHEM-ANALYZER'
)
tcc.automatic_repeat_allowed = 'Y'Hematology analyzer test setup
from zato.hl7v2.v2_9 import TCC
from zato.hl7v2.v2_9 import CWE, EI
tcc = TCC()
tcc.universal_service_identifier = CWE(
identifier='CBC',
text='Complete Blood Count',
name_of_coding_system='LN'
)
tcc.equipment_test_application_identifier = EI(
entity_identifier='TEST002',
namespace_id='HEMA-ANALYZER'
)
tcc.automatic_repeat_allowed = 'Y'Chemistry analyzer lipid test
from zato.hl7v2.v2_9 import TCC
from zato.hl7v2.v2_9 import CWE, EI
tcc = TCC()
tcc.universal_service_identifier = CWE(
identifier='LIPID',
text='Lipid Panel',
name_of_coding_system='LN'
)
tcc.equipment_test_application_identifier = EI(
entity_identifier='TEST003',
namespace_id='CHEM-ANALYZER'
)
tcc.automatic_repeat_allowed = 'N'Step-by-step guides for working with HL7 v2 in Zato.
TCC contains test code configuration information including test codes, equipment identifiers, and processing parameters for laboratory automation.
Use universal_service_identifier field with CWE datatype:
tcc.universal_service_identifier = CWE(
identifier='GLU',
text='Glucose',
name_of_coding_system='LN'
)Automatic repeat allows the analyzer to automatically rerun a test if results are outside expected ranges. Set automatic_repeat_allowed to Y or N.
TCC contains test configuration while EQU contains equipment status. TCC defines how tests run on specific equipment.
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 TCC segment, HL7 v2.9.
| # | Python name | Datatype | Usage | Repeatable | Table |
|---|---|---|---|---|---|
| 1 | universal_service_identifier | CWE | Required | No | - |
| 2 | equipment_test_application_identifier | EI | Required | No | - |
| 4 | auto_dilution_factor_default | SN | Optional | No | - |
| 5 | rerun_dilution_factor_default | SN | Optional | No | - |
| 6 | pre_dilution_factor_default | SN | Optional | No | - |
| 7 | endogenous_content_of_pre_dilution_diluent | SN | Optional | No | - |
| 8 | inventory_limits_warning_level | NM | Optional | No | - |
| 9 | automatic_rerun_allowed | ID | Optional | No | HL70136 |
| 10 | automatic_repeat_allowed | ID | Optional | No | HL70136 |
| 11 | automatic_reflex_allowed | ID | Optional | No | HL70136 |
| 12 | equipment_dynamic_range | SN | Optional | No | - |
| 13 | units | CWE | Optional | No | HL70623 |
| 14 | processing_type | CWE | Optional | No | HL70388 |
| 15 | test_criticality | CWE | Optional | No | - |
Get started with Zato and connect your systems in minutes.