Carries application-level communication statistics such as message counts sent and received, character counts, and error tallies for a given network link. It is used in NMQ (Network Management Query) and NMD (Network Management Data) messages to allow system management applications to monitor the health and throughput of HL7 interfaces between systems.
from zato.hl7v2.v2_9 import NST
nst = NST()
nst.statistics_available = 'Y'
nst.source_identifier = 'LAB-INTERFACE'
nst.messages_received = '1500'
nst.messages_sent = '1498'How to construct and work with real-world NST segments.
A daily statistics summary showing that the lab interface is active, with the collection period start time and message counts
from zato.hl7v2.v2_9 import NST
nst = NST()
nst.statistics_available = 'Y'
nst.source_identifier = 'LAB-INTERFACE-01'
nst.source_type = 'I'
nst.statistics_start = '20240601000000'
nst.statistics_end = '20240601235959'A weekly throughput report for an ADT interface showing character counts and message totals for the period
from zato.hl7v2.v2_9 import NST
nst = NST()
nst.statistics_available = 'Y'
nst.source_identifier = 'ADT-FEED-EAST'
nst.source_type = 'A'
nst.statistics_start = '20240701000000'
nst.statistics_end = '20240707235959'
nst.receive_character_count = '524000'
nst.send_character_count = '518000'
nst.messages_received = '4200'
nst.messages_sent = '4195'A comprehensive monthly report for a pharmacy interface including message volumes, character counts, and error tallies
from zato.hl7v2.v2_9 import NST
nst = NST()
nst.statistics_available = 'Y'
nst.source_identifier = 'PHARM-LINK-03'
nst.source_type = 'I'
nst.statistics_start = '20240801000000'
nst.statistics_end = '20240831235959'
nst.receive_character_count = '2150000'
nst.send_character_count = '2140000'
nst.messages_received = '18500'
nst.messages_sent = '18490'
nst.checksum_errors_received = '0'
nst.length_errors_received = '0'
nst.other_errors_received = '0'
nst.connect_timeouts = '0'
nst.receive_timeouts = '0'
nst.application_control_level_errors = '0'Step-by-step guides for working with HL7 v2 in Zato.
NST contains application control level statistics including message counts, error counts, and performance metrics for monitoring wellness system health.
Use statistics_start and statistics_end fields:
nst.statistics_start = DTM('20240115120000')
nst.statistics_end = DTM('20240115180000')NST tracks checksum errors, length errors, and other receive errors. These help identify communication issues with wellness applications.
NST contains statistics while NSC contains status change information. Both are used for monitoring wellness application health.
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 NST segment, HL7 v2.9.
| # | Python name | Datatype | Usage | Repeatable | Table |
|---|---|---|---|---|---|
| 1 | statistics_available | ID | Required | No | HL70136 |
| 2 | source_identifier | ST | Optional | No | - |
| 3 | source_type | ID | Optional | No | HL70332 |
| 4 | statistics_start | DTM | Optional | No | - |
| 5 | statistics_end | DTM | Optional | No | - |
| 6 | receive_character_count | NM | Optional | No | - |
| 7 | send_character_count | NM | Optional | No | - |
| 8 | messages_received | NM | Optional | No | - |
| 9 | messages_sent | NM | Optional | No | - |
| 10 | checksum_errors_received | NM | Optional | No | - |
| 11 | length_errors_received | NM | Optional | No | - |
| 12 | other_errors_received | NM | Optional | No | - |
| 13 | connect_timeouts | NM | Optional | No | - |
| 14 | receive_timeouts | NM | Optional | No | - |
| 15 | application_control_level_errors | NM | Optional | No | - |
Get started with Zato and connect your systems in minutes.