Segregation Under IEC 62304: How One Clause Shapes Failure Behaviour in DICOM to CDA Pipelines

IEC 62304 has one architecture clause that architecture documents often get wrong. It requires you to identify any segregation between software items that risk control depends on, and to state how that segregation is ensured. In a distributed diagnostic system that takes in DICOM, runs inference and emits HL7 CDA reports, that one sentence decides where the process boundaries go, what the message broker may share and which component can claim a lower safety class. Reviewers read the clause literally, so your evidence should be written to the same standard.

Three families, three questions

The standards that apply here are easier to defend when you group them by the question each one answers. The software lifecycle standard, IEC 62304, says how the software is built and divided into items. Risk management under ISO 14971 says which hazards that division has to contain. The IEC 80001 family, which covers IT networks that include medical devices, says what the hospital owes you, and what you owe the hospital, when the network between your items fails. DICOM and HL7 are interoperability standards rather than safety standards, but their association, acknowledgement and identifier rules define where failures can enter. Only one version detail affects the design: the 2015 amendment to IEC 62304 lets risk control measures outside the software justify a lower safety class. That is why segregation evidence carries so much weight, because a lower class for the CDA composer depends entirely on showing that a fault upstream cannot reach the clinician through it.

In a distributed system, segregation is not a container boundary but a demonstrated absence of shared failure paths: two processes that read the same cache key, share a thread pool through a sidecar, or acknowledge each other's messages on one broker channel are a single software item for this clause, whatever the deployment diagram shows.

The failure that matters is the plausible one

Consider an inference worker that crashes after the orchestrator has matched an incoming study to its order. The CDA composer waits, times out, and falls back to the most recent cached finding, which is stored by patient identifier instead of by Study Instance UID. It then produces a valid, signed report that carries the previous study's finding. Every health check passes, because no component is down, and the hazard is a wrong result rather than a missing one. The segregation clause turns this from a coding detail into an architecture requirement. The composer must require each finding to be tied to the source SOP Instance UIDs and a content hash generated inside the inference item, and it must refuse to write a report when that tie is missing. The orchestrator declares the inference item failed after 2 s without a heartbeat. From that moment the composer's documented behaviour is either an explicit result unavailable section or no document at all, never a substitute value.

A decision rule for the evidence file

For each pair of communicating items, ask whether a failure in one can make the other's output wrong, or only late or absent. If it can only make the output late or absent, timeouts, durable queues and idempotent replay of C-STORE operations are enough, and you record them in the architecture without changing the safety class. If it can make the output wrong, you need stated segregation backed by a mechanism: a separate process and credential, provenance checked by the consumer, and no shared mutable cache. The evidence for it is fault injection that kills the producer partway through a transaction and shows the consumer staying silent. The cost does not go away. Provenance checks make the composer reject partial reports that a radiologist might have accepted, and that is a benefit-risk judgement under ISO 14971 that you have to record rather than assume. The hospital also has to be told, through its IEC 80001 risk file, that a network partition produces gaps in reporting and not stale reports, so its downtime procedure must cover studies that come back with no result.

Can a Kubernetes namespace or network policy count as the segregation mechanism?

Only for the failure paths it actually cuts. A namespace with network policies can show that the composer cannot reach the inference model's storage. It shows nothing if both items still use one broker topic, one cache or one service account. Reviewers will accept it as part of the argument when your fault-injection tests show that the shared infrastructure that remains cannot carry a wrong result across the boundary.

Back to SaMDSystem · Domains

← Back to SaMDSystem
Engineering & Architecture Brief

Segregation Under IEC 62304: How One Clause Shapes Failure Behaviour in DICOM to CDA Pipelines

IEC 62304 has one architecture clause that architecture documents often get wrong. It requires you to identify any segregation between software items that risk control depends on, and to state how that segregation is ensured. In a distributed diagnostic system that takes in DICOM, runs inference and emits HL7 CDA reports, that one sentence decides where the process boundaries go, what the message broker may share and which component can claim a lower safety class. Reviewers read the clause literally, so your evidence should be written to the same standard.

Three families, three questions

The standards that apply here are easier to defend when you group them by the question each one answers. The software lifecycle standard, IEC 62304, says how the software is built and divided into items. Risk management under ISO 14971 says which hazards that division has to contain. The IEC 80001 family, which covers IT networks that include medical devices, says what the hospital owes you, and what you owe the hospital, when the network between your items fails. DICOM and HL7 are interoperability standards rather than safety standards, but their association, acknowledgement and identifier rules define where failures can enter. Only one version detail affects the design: the 2015 amendment to IEC 62304 lets risk control measures outside the software justify a lower safety class. That is why segregation evidence carries so much weight, because a lower class for the CDA composer depends entirely on showing that a fault upstream cannot reach the clinician through it.

In a distributed system, segregation is not a container boundary but a demonstrated absence of shared failure paths: two processes that read the same cache key, share a thread pool through a sidecar, or acknowledge each other's messages on one broker channel are a single software item for this clause, whatever the deployment diagram shows.

The failure that matters is the plausible one

Consider an inference worker that crashes after the orchestrator has matched an incoming study to its order. The CDA composer waits, times out, and falls back to the most recent cached finding, which is stored by patient identifier instead of by Study Instance UID. It then produces a valid, signed report that carries the previous study's finding. Every health check passes, because no component is down, and the hazard is a wrong result rather than a missing one. The segregation clause turns this from a coding detail into an architecture requirement. The composer must require each finding to be tied to the source SOP Instance UIDs and a content hash generated inside the inference item, and it must refuse to write a report when that tie is missing. The orchestrator declares the inference item failed after 2 s without a heartbeat. From that moment the composer's documented behaviour is either an explicit result unavailable section or no document at all, never a substitute value.

A decision rule for the evidence file

For each pair of communicating items, ask whether a failure in one can make the other's output wrong, or only late or absent. If it can only make the output late or absent, timeouts, durable queues and idempotent replay of C-STORE operations are enough, and you record them in the architecture without changing the safety class. If it can make the output wrong, you need stated segregation backed by a mechanism: a separate process and credential, provenance checked by the consumer, and no shared mutable cache. The evidence for it is fault injection that kills the producer partway through a transaction and shows the consumer staying silent. The cost does not go away. Provenance checks make the composer reject partial reports that a radiologist might have accepted, and that is a benefit-risk judgement under ISO 14971 that you have to record rather than assume. The hospital also has to be told, through its IEC 80001 risk file, that a network partition produces gaps in reporting and not stale reports, so its downtime procedure must cover studies that come back with no result.

Technical FAQ: Can a Kubernetes namespace or network policy count as the segregation mechanism?

Only for the failure paths it actually cuts. A namespace with network policies can show that the composer cannot reach the inference model's storage. It shows nothing if both items still use one broker topic, one cache or one service account. Reviewers will accept it as part of the argument when your fault-injection tests show that the shared infrastructure that remains cannot carry a wrong result across the boundary.

Related Architecture Specifications (HEALTHVIGILANCE): dtxsystem.com · smartiomt.com · bciscale.com

More Technical Articles on samdsystem.com

DICOMweb Architecture: Implementing WADO-RS, QIDO-RS, and STOW-RS for Modern Clinical Imaging →Systems Engineering Blueprint: Fulfilling IEC 62304 Class C Architectural Requirements →Proving That a Diagnostic Worker Cannot Disable Its Own Safeguards →