Schedule a demo
Segment

Notification detail

Carries details of a system or application notification including the reference number, date/time, alert severity, and notification code. It appears in notification messages to communicate alerts, warnings, or informational notices between HL7 applications, enabling receiving systems to prioritize and route notifications based on severity and type.

4fields
4required
v2.9HL7 version
nds.py
from zato.hl7v2 import NDS

nds = NDS()
nds.notification_reference_number = '1'
nds.notification_date_time = '20260601'

Build NDS segments in Python

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

1

Critical system alert

Reports a critical notification with severity, timestamp, and alert code

from zato.hl7v2.v2_9 import NDS
from zato.hl7v2.v2_9 import CWE

nds = NDS()
nds.notification_reference_number = '1'
nds.notification_date_time = (
    '20240601120000'
)
nds.notification_alert_severity = CWE(
    identifier='C',
    text='Critical',
    name_of_coding_system='HL70367'
)
nds.notification_code = CWE(
    identifier='SYS-DOWN',
    text='System unavailable',
    name_of_coding_system='HL70610'
)
2

Warning notification

Sends a warning-level notification about degraded performance

from zato.hl7v2.v2_9 import NDS
from zato.hl7v2.v2_9 import CWE

nds = NDS()
nds.notification_reference_number = '2'
nds.notification_date_time = (
    '20240715083000'
)
nds.notification_alert_severity = CWE(
    identifier='W',
    text='Warning',
    name_of_coding_system='HL70367'
)
nds.notification_code = CWE(
    identifier='PERF-DEG',
    text='Performance degraded',
    name_of_coding_system='HL70610'
)
3

Informational notice

Sends an informational notification about scheduled maintenance

from zato.hl7v2.v2_9 import NDS
from zato.hl7v2.v2_9 import CWE

nds = NDS()
nds.notification_reference_number = '3'
nds.notification_date_time = (
    '20240820170000'
)
nds.notification_alert_severity = CWE(
    identifier='I',
    text='Information',
    name_of_coding_system='HL70367'
)
nds.notification_code = CWE(
    identifier='MAINT',
    text='Scheduled maintenance',
    name_of_coding_system='HL70610'
)

Learn by building

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

Frequently asked questions

NDS carries details of a system or application notification including a reference number, timestamp, alert severity, and notification code. It is used in notification messages to communicate alerts, warnings, and informational notices between HL7 applications.

The notification_alert_severity field uses the CWE datatype with HL7 table 0367:

from zato.hl7v2.v2_9 import NDS, CWE

nds = NDS()
nds.notification_alert_severity = CWE(
    identifier='C',
    text='Critical',
    name_of_coding_system='HL70367'
)

The notification_code field uses the CWE datatype with HL7 table 0610:

from zato.hl7v2.v2_9 import NDS, CWE

nds = NDS()
nds.notification_code = CWE(
    identifier='SYS-DOWN',
    text='System unavailable',
    name_of_coding_system='HL70610'
)

HL7 table 0367 defines the standard severity levels for notifications:

from zato.hl7v2.v2_9 import NDS, CWE

nds = NDS()

# C = Critical
nds.notification_alert_severity = CWE(identifier='C')

# W = Warning
nds.notification_alert_severity = CWE(identifier='W')

# I = Information
nds.notification_alert_severity = CWE(identifier='I')

All four fields are required in NDS - set the reference number, timestamp, severity, and code:

from zato.hl7v2.v2_9 import NDS, CWE

nds = NDS()
nds.notification_reference_number = (
    '1'
)
nds.notification_date_time = (
    '20240601120000'
)
nds.notification_alert_severity = CWE(
    identifier='C',
    text='Critical'
)
nds.notification_code = CWE(
    identifier='SYS-DOWN',
    text='System unavailable'
)

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.

NDS field reference

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

#Python nameDatatypeUsageRepeatableTable
1notification_reference_numberNMRequiredNo-
2notification_date_timeDTMRequiredNo-
3notification_alert_severityCWERequiredNoHL70367
4notification_codeCWERequiredNoHL70610

Ready to build integrations?

Get started with Zato and connect your systems in minutes.

Open source In Python