Schedule a demo
Segment

Patient death and autopsy

Carries information related to a patient's death and any subsequent autopsy. It includes the death location, certified indicator, certificate signing date/time, the certifying and performing providers, autopsy indicator with start/end dates, and the coroner indicator. This segment appears in ADT messages following notification of death and supports downstream mortality reporting and administrative closure workflows.

9fields
0required
v2.9HL7 version
pda.py
from zato.hl7v2 import PDA

pda = PDA()
pda.death_certified_indicator = 'Y'
pda.autopsy_indicator = 'N'
pda.coroner_indicator = 'N'

Build PDA segments in Python

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

1

Death certification

Basic death record with location, certification status, and the certifying provider

from zato.hl7v2.v2_9 import PDA
from zato.hl7v2.v2_9 import PL, XCN

pda = PDA()
pda.death_location = PL(
    point_of_care='ICU',
    room='Room 4',
    facility='Main Hospital'
)
pda.death_certified_indicator = 'Y'
pda.death_certificate_signed_date_time = (
    '20240315140000'
)
pda.death_certified_by = XCN(
    person_identifier='5544',
    family_name='JONES',
    given_name='MARIA',
    suffix='MD'
)
pda.autopsy_indicator = 'N'
2

Autopsy record

Death record with autopsy details including the performing pathologist and date range

from zato.hl7v2.v2_9 import PDA
from zato.hl7v2.v2_9 import PL, XCN, DR

pda = PDA()
pda.death_location = PL(
    point_of_care='ER',
    room='Bay 2',
    facility='City Hospital'
)
pda.death_certified_indicator = 'Y'
pda.death_certificate_signed_date_time = (
    '20240601100000'
)
pda.death_certified_by = XCN(
    person_identifier='3321',
    family_name='SMITH',
    given_name='ALAN',
    suffix='MD'
)
pda.autopsy_indicator = 'Y'
pda.autopsy_start_and_end_date_time = DR(
    range_start_date_time='20240602080000',
    range_end_date_time='20240602170000'
)
pda.autopsy_performed_by = XCN(
    person_identifier='7789',
    family_name='LEE',
    given_name='CHEN',
    suffix='MD'
)
pda.coroner_indicator = 'N'
3

Coroner referral

Death notification with coroner involvement and minimal autopsy information

from zato.hl7v2.v2_9 import PDA
from zato.hl7v2.v2_9 import PL

pda = PDA()
pda.death_location = PL(
    point_of_care='WARD',
    room='Room 12',
    facility='General Hospital'
)
pda.death_certified_indicator = 'N'
pda.autopsy_indicator = 'N'
pda.coroner_indicator = 'Y'

Learn by building

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

Frequently asked questions

PDA carries death and autopsy information for a patient. It includes the death location, certification status, certificate signing date, the certifying provider, autopsy indicator, autopsy date range and performer, and whether a coroner was involved. It appears in ADT death notification messages.

The death_location field uses the PL (person location) datatype:

from zato.hl7v2.v2_9 import PDA, PL

pda = PDA()
pda.death_location = PL(
    point_of_care='ICU',
    room='Room 4',
    facility='Main Hospital'
)

The autopsy_start_and_end_date_time field uses the DR (date/time range) datatype:

from zato.hl7v2.v2_9 import PDA, DR

pda = PDA()
pda.autopsy_start_and_end_date_time = DR(
    range_start_date_time='20240602080000',
    range_end_date_time='20240602170000'
)

The death_certified_by field uses the XCN (extended composite ID) datatype:

from zato.hl7v2.v2_9 import PDA, XCN

pda = PDA()
pda.death_certified_by = XCN(
    person_identifier='5544',
    family_name='JONES',
    given_name='MARIA',
    suffix='MD'
)

The coroner_indicator field uses HL7 table 0136 with standard Y/N values:

from zato.hl7v2.v2_9 import PDA

pda = PDA()
pda.coroner_indicator = 'Y'

pda2 = PDA()
pda2.coroner_indicator = 'N'

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.

PDA field reference

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

#Python nameDatatypeUsageRepeatableTable
1death_cause_codeCWEOptionalYes-
2death_locationPLOptionalNo-
3death_certified_indicatorIDOptionalNoHL70136
4death_certificate_signed_date_timeDTMOptionalNo-
5death_certified_byXCNOptionalNo-
6autopsy_indicatorIDOptionalNoHL70136
7autopsy_start_and_end_date_timeDROptionalNo-
8autopsy_performed_byXCNOptionalNo-
9coroner_indicatorIDOptionalNoHL70136

Ready to build integrations?

Get started with Zato and connect your systems in minutes.

Open source In Python